(function(Xu){typeof define=="function"&&define.amd?define(Xu):Xu()})((function(){"use strict";var N0e=Object.defineProperty;var k0e=(Xu,yl,Qc)=>yl in Xu?N0e(Xu,yl,{enumerable:!0,configurable:!0,writable:!0,value:Qc}):Xu[yl]=Qc;var j=(Xu,yl,Qc)=>k0e(Xu,typeof yl!="symbol"?yl+"":yl,Qc);function Xu(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qc={exports:{}},wv={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nO;function VB(){if(nO)return wv;nO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var d in a)d!=="key"&&(l[d]=a[d])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:u,ref:a!==void 0?a:null,props:l}}return wv.Fragment=t,wv.jsx=n,wv.jsxs=n,wv}var Tv={},KS={exports:{}},mn={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rO;function BB(){if(rO)return mn;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function E(F){return F===null||typeof F!="object"?null:(F=T&&F[T]||F["@@iterator"],typeof F=="function"?F:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,_={};function D(F,te,Y){this.props=F,this.context=te,this.refs=_,this.updater=Y||A}D.prototype.isReactComponent={},D.prototype.setState=function(F,te){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,te,"setState")},D.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function z(){}z.prototype=D.prototype;function V(F,te,Y){this.props=F,this.context=te,this.refs=_,this.updater=Y||A}var P=V.prototype=new z;P.constructor=V,R(P,D.prototype),P.isPureReactComponent=!0;var I=Array.isArray;function H(){}var X={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function ce(F,te,Y){var Me=Y.ref;return{$$typeof:e,type:F,key:te,ref:Me!==void 0?Me:null,props:Y}}function ie(F,te){return ce(F.type,te,F.props)}function ue(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function U(F){var te={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Y){return te[Y]})}var le=/\/+/g;function Q(F,te){return typeof F=="object"&&F!==null&&F.key!=null?U(""+F.key):te.toString(36)}function ee(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(H,H):(F.status="pending",F.then(function(te){F.status==="pending"&&(F.status="fulfilled",F.value=te)},function(te){F.status==="pending"&&(F.status="rejected",F.reason=te)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function W(F,te,Y,Me,Ee){var _e=typeof F;(_e==="undefined"||_e==="boolean")&&(F=null);var Be=!1;if(F===null)Be=!0;else switch(_e){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(F.$$typeof){case e:case t:Be=!0;break;case v:return Be=F._init,W(Be(F._payload),te,Y,Me,Ee)}}if(Be)return Ee=Ee(F),Be=Me===""?"."+Q(F,0):Me,I(Ee)?(Y="",Be!=null&&(Y=Be.replace(le,"$&/")+"/"),W(Ee,te,Y,"",function(Xe){return Xe})):Ee!=null&&(ue(Ee)&&(Ee=ie(Ee,Y+(Ee.key==null||F&&F.key===Ee.key?"":(""+Ee.key).replace(le,"$&/")+"/")+Be)),te.push(Ee)),1;Be=0;var Ue=Me===""?".":Me+":";if(I(F))for(var Ye=0;Ye<F.length;Ye++)Me=F[Ye],_e=Ue+Q(Me,Ye),Be+=W(Me,te,Y,_e,Ee);else if(Ye=E(F),typeof Ye=="function")for(F=Ye.call(F),Ye=0;!(Me=F.next()).done;)Me=Me.value,_e=Ue+Q(Me,Ye++),Be+=W(Me,te,Y,_e,Ee);else if(_e==="object"){if(typeof F.then=="function")return W(ee(F),te,Y,Me,Ee);throw te=String(F),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return Be}function oe(F,te,Y){if(F==null)return F;var Me=[],Ee=0;return W(F,Me,"","",function(_e){return te.call(Y,_e,Ee++)}),Me}function he(F){if(F._status===-1){var te=F._result;te=te(),te.then(function(Y){(F._status===0||F._status===-1)&&(F._status=1,F._result=Y)},function(Y){(F._status===0||F._status===-1)&&(F._status=2,F._result=Y)}),F._status===-1&&(F._status=0,F._result=te)}if(F._status===1)return F._result.default;throw F._result}var be=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)},re={map:oe,forEach:function(F,te,Y){oe(F,function(){te.apply(this,arguments)},Y)},count:function(F){var te=0;return oe(F,function(){te++}),te},toArray:function(F){return oe(F,function(te){return te})||[]},only:function(F){if(!ue(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};return mn.Activity=x,mn.Children=re,mn.Component=D,mn.Fragment=n,mn.Profiler=a,mn.PureComponent=V,mn.StrictMode=r,mn.Suspense=h,mn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,mn.__COMPILER_RUNTIME={__proto__:null,c:function(F){return X.H.useMemoCache(F)}},mn.cache=function(F){return function(){return F.apply(null,arguments)}},mn.cacheSignal=function(){return null},mn.cloneElement=function(F,te,Y){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var Me=R({},F.props),Ee=F.key;if(te!=null)for(_e in te.key!==void 0&&(Ee=""+te.key),te)!se.call(te,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&te.ref===void 0||(Me[_e]=te[_e]);var _e=arguments.length-2;if(_e===1)Me.children=Y;else if(1<_e){for(var Be=Array(_e),Ue=0;Ue<_e;Ue++)Be[Ue]=arguments[Ue+2];Me.children=Be}return ce(F.type,Ee,Me)},mn.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:l,_context:F},F},mn.createElement=function(F,te,Y){var Me,Ee={},_e=null;if(te!=null)for(Me in te.key!==void 0&&(_e=""+te.key),te)se.call(te,Me)&&Me!=="key"&&Me!=="__self"&&Me!=="__source"&&(Ee[Me]=te[Me]);var Be=arguments.length-2;if(Be===1)Ee.children=Y;else if(1<Be){for(var Ue=Array(Be),Ye=0;Ye<Be;Ye++)Ue[Ye]=arguments[Ye+2];Ee.children=Ue}if(F&&F.defaultProps)for(Me in Be=F.defaultProps,Be)Ee[Me]===void 0&&(Ee[Me]=Be[Me]);return ce(F,_e,Ee)},mn.createRef=function(){return{current:null}},mn.forwardRef=function(F){return{$$typeof:d,render:F}},mn.isValidElement=ue,mn.lazy=function(F){return{$$typeof:v,_payload:{_status:-1,_result:F},_init:he}},mn.memo=function(F,te){return{$$typeof:y,type:F,compare:te===void 0?null:te}},mn.startTransition=function(F){var te=X.T,Y={};X.T=Y;try{var Me=F(),Ee=X.S;Ee!==null&&Ee(Y,Me),typeof Me=="object"&&Me!==null&&typeof Me.then=="function"&&Me.then(H,be)}catch(_e){be(_e)}finally{te!==null&&Y.types!==null&&(te.types=Y.types),X.T=te}},mn.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},mn.use=function(F){return X.H.use(F)},mn.useActionState=function(F,te,Y){return X.H.useActionState(F,te,Y)},mn.useCallback=function(F,te){return X.H.useCallback(F,te)},mn.useContext=function(F){return X.H.useContext(F)},mn.useDebugValue=function(){},mn.useDeferredValue=function(F,te){return X.H.useDeferredValue(F,te)},mn.useEffect=function(F,te){return X.H.useEffect(F,te)},mn.useEffectEvent=function(F){return X.H.useEffectEvent(F)},mn.useId=function(){return X.H.useId()},mn.useImperativeHandle=function(F,te,Y){return X.H.useImperativeHandle(F,te,Y)},mn.useInsertionEffect=function(F,te){return X.H.useInsertionEffect(F,te)},mn.useLayoutEffect=function(F,te){return X.H.useLayoutEffect(F,te)},mn.useMemo=function(F,te){return X.H.useMemo(F,te)},mn.useOptimistic=function(F,te){return X.H.useOptimistic(F,te)},mn.useReducer=function(F,te,Y){return X.H.useReducer(F,te,Y)},mn.useRef=function(F){return X.H.useRef(F)},mn.useState=function(F){return X.H.useState(F)},mn.useSyncExternalStore=function(F,te,Y){return X.H.useSyncExternalStore(F,te,Y)},mn.useTransition=function(){return X.H.useTransition()},mn.version="19.2.6",mn}var Av={exports:{}};Av.exports;var iO;function PB(){return iO||(iO=1,(function(e,t){var n={};/**
 * @license React
 * react.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */n.NODE_ENV!=="production"&&(function(){function r(J,Oe){Object.defineProperty(u.prototype,J,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Oe[0],Oe[1])}})}function a(J){return J===null||typeof J!="object"?null:(J=Re&&J[Re]||J["@@iterator"],typeof J=="function"?J:null)}function l(J,Oe){J=(J=J.constructor)&&(J.displayName||J.name)||"ReactClass";var nt=J+"."+Oe;ut[nt]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Oe,J),ut[nt]=!0)}function u(J,Oe,nt){this.props=J,this.context=Oe,this.refs=St,this.updater=nt||Vt}function d(){}function h(J,Oe,nt){this.props=J,this.context=Oe,this.refs=St,this.updater=nt||Vt}function y(){}function v(J){return""+J}function x(J){try{v(J);var Oe=!1}catch{Oe=!0}if(Oe){Oe=console;var nt=Oe.error,Ze=typeof Symbol=="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return nt.call(Oe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ze),v(J)}}function T(J){if(J==null)return null;if(typeof J=="function")return J.$$typeof===vn?null:J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case te:return"Fragment";case Me:return"Profiler";case Y:return"StrictMode";case Ue:return"Suspense";case Ye:return"SuspenseList";case Ve:return"Activity"}if(typeof J=="object")switch(typeof J.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),J.$$typeof){case F:return"Portal";case _e:return J.displayName||"Context";case Ee:return(J._context.displayName||"Context")+".Consumer";case Be:var Oe=J.render;return J=J.displayName,J||(J=Oe.displayName||Oe.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case Xe:return Oe=J.displayName||null,Oe!==null?Oe:T(J.type)||"Memo";case Je:Oe=J._payload,J=J._init;try{return T(J(Oe))}catch{}}return null}function E(J){if(J===te)return"<>";if(typeof J=="object"&&J!==null&&J.$$typeof===Je)return"<...>";try{var Oe=T(J);return Oe?"<"+Oe+">":"<...>"}catch{return"<...>"}}function A(){var J=it.A;return J===null?null:J.getOwner()}function R(){return Error("react-stack-top-frame")}function _(J){if(Mt.call(J,"key")){var Oe=Object.getOwnPropertyDescriptor(J,"key").get;if(Oe&&Oe.isReactWarning)return!1}return J.key!==void 0}function D(J,Oe){function nt(){tn||(tn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Oe))}nt.isReactWarning=!0,Object.defineProperty(J,"key",{get:nt,configurable:!0})}function z(){var J=T(this.type);return xe[J]||(xe[J]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),J=this.props.ref,J!==void 0?J:null}function V(J,Oe,nt,Ze,mt,tt){var ot=nt.ref;return J={$$typeof:re,type:J,key:Oe,props:nt,_owner:Ze},(ot!==void 0?ot:null)!==null?Object.defineProperty(J,"ref",{enumerable:!1,get:z}):Object.defineProperty(J,"ref",{enumerable:!1,value:null}),J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(J,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(J,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:mt}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:tt}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function P(J,Oe){return Oe=V(J.type,Oe,J.props,J._owner,J._debugStack,J._debugTask),J._store&&(Oe._store.validated=J._store.validated),Oe}function I(J){H(J)?J._store&&(J._store.validated=1):typeof J=="object"&&J!==null&&J.$$typeof===Je&&(J._payload.status==="fulfilled"?H(J._payload.value)&&J._payload.value._store&&(J._payload.value._store.validated=1):J._store&&(J._store.validated=1))}function H(J){return typeof J=="object"&&J!==null&&J.$$typeof===re}function X(J){var Oe={"=":"=0",":":"=2"};return"$"+J.replace(/[=:]/g,function(nt){return Oe[nt]})}function se(J,Oe){return typeof J=="object"&&J!==null&&J.key!=null?(x(J.key),X(""+J.key)):Oe.toString(36)}function ce(J){switch(J.status){case"fulfilled":return J.value;case"rejected":throw J.reason;default:switch(typeof J.status=="string"?J.then(y,y):(J.status="pending",J.then(function(Oe){J.status==="pending"&&(J.status="fulfilled",J.value=Oe)},function(Oe){J.status==="pending"&&(J.status="rejected",J.reason=Oe)})),J.status){case"fulfilled":return J.value;case"rejected":throw J.reason}}throw J}function ie(J,Oe,nt,Ze,mt){var tt=typeof J;(tt==="undefined"||tt==="boolean")&&(J=null);var ot=!1;if(J===null)ot=!0;else switch(tt){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(J.$$typeof){case re:case F:ot=!0;break;case Je:return ot=J._init,ie(ot(J._payload),Oe,nt,Ze,mt)}}if(ot){ot=J,mt=mt(ot);var zt=Ze===""?"."+se(ot,0):Ze;return Cn(mt)?(nt="",zt!=null&&(nt=zt.replace(ht,"$&/")+"/"),ie(mt,Oe,nt,"",function(Rn){return Rn})):mt!=null&&(H(mt)&&(mt.key!=null&&(ot&&ot.key===mt.key||x(mt.key)),nt=P(mt,nt+(mt.key==null||ot&&ot.key===mt.key?"":(""+mt.key).replace(ht,"$&/")+"/")+zt),Ze!==""&&ot!=null&&H(ot)&&ot.key==null&&ot._store&&!ot._store.validated&&(nt._store.validated=2),mt=nt),Oe.push(mt)),1}if(ot=0,zt=Ze===""?".":Ze+":",Cn(J))for(var ct=0;ct<J.length;ct++)Ze=J[ct],tt=zt+se(Ze,ct),ot+=ie(Ze,Oe,nt,tt,mt);else if(ct=a(J),typeof ct=="function")for(ct===J.entries&&(dt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),dt=!0),J=ct.call(J),ct=0;!(Ze=J.next()).done;)Ze=Ze.value,tt=zt+se(Ze,ct++),ot+=ie(Ze,Oe,nt,tt,mt);else if(tt==="object"){if(typeof J.then=="function")return ie(ce(J),Oe,nt,Ze,mt);throw Oe=String(J),Error("Objects are not valid as a React child (found: "+(Oe==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":Oe)+"). If you meant to render a collection of children, use an array instead.")}return ot}function ue(J,Oe,nt){if(J==null)return J;var Ze=[],mt=0;return ie(J,Ze,"","",function(tt){return Oe.call(nt,tt,mt++)}),Ze}function U(J){if(J._status===-1){var Oe=J._ioInfo;Oe!=null&&(Oe.start=Oe.end=performance.now()),Oe=J._result;var nt=Oe();if(nt.then(function(mt){if(J._status===0||J._status===-1){J._status=1,J._result=mt;var tt=J._ioInfo;tt!=null&&(tt.end=performance.now()),nt.status===void 0&&(nt.status="fulfilled",nt.value=mt)}},function(mt){if(J._status===0||J._status===-1){J._status=2,J._result=mt;var tt=J._ioInfo;tt!=null&&(tt.end=performance.now()),nt.status===void 0&&(nt.status="rejected",nt.reason=mt)}}),Oe=J._ioInfo,Oe!=null){Oe.value=nt;var Ze=nt.displayName;typeof Ze=="string"&&(Oe.name=Ze)}J._status===-1&&(J._status=0,J._result=nt)}if(J._status===1)return Oe=J._result,Oe===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))

Did you accidentally put curly braces around the import?`,Oe),"default"in Oe||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))`,Oe),Oe.default;throw J._result}function le(){var J=it.H;return J===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),J}function Q(){it.asyncTransitions--}function ee(J){if(Lt===null)try{var Oe=("require"+Math.random()).slice(0,7);Lt=(e&&e[Oe]).call(e,"timers").setImmediate}catch{Lt=function(Ze){fn===!1&&(fn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var mt=new MessageChannel;mt.port1.onmessage=Ze,mt.port2.postMessage(void 0)}}return Lt(J)}function W(J){return 1<J.length&&typeof AggregateError=="function"?new AggregateError(J):J[0]}function oe(J,Oe){Oe!==Ht-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ht=Oe}function he(J,Oe,nt){var Ze=it.actQueue;if(Ze!==null)if(Ze.length!==0)try{be(Ze),ee(function(){return he(J,Oe,nt)});return}catch(mt){it.thrownErrors.push(mt)}else it.actQueue=null;0<it.thrownErrors.length?(Ze=W(it.thrownErrors),it.thrownErrors.length=0,nt(Ze)):Oe(J)}function be(J){if(!gn){gn=!0;var Oe=0;try{for(;Oe<J.length;Oe++){var nt=J[Oe];do{it.didUsePromise=!1;var Ze=nt(!1);if(Ze!==null){if(it.didUsePromise){J[Oe]=nt,J.splice(0,Oe);return}nt=Ze}else break}while(!0)}J.length=0}catch(mt){J.splice(0,Oe+1),it.thrownErrors.push(mt)}finally{gn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var re=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),_e=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),Xe=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Ve=Symbol.for("react.activity"),Re=Symbol.iterator,ut={},Vt={isMounted:function(){return!1},enqueueForceUpdate:function(J){l(J,"forceUpdate")},enqueueReplaceState:function(J){l(J,"replaceState")},enqueueSetState:function(J){l(J,"setState")}},Qt=Object.assign,St={};Object.freeze(St),u.prototype.isReactComponent={},u.prototype.setState=function(J,Oe){if(typeof J!="object"&&typeof J!="function"&&J!=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,J,Oe,"setState")},u.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,"forceUpdate")};var $t={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(vr in $t)$t.hasOwnProperty(vr)&&r(vr,$t[vr]);d.prototype=u.prototype,$t=h.prototype=new d,$t.constructor=h,Qt($t,u.prototype),$t.isPureReactComponent=!0;var Cn=Array.isArray,vn=Symbol.for("react.client.reference"),it={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Mt=Object.prototype.hasOwnProperty,Dn=console.createTask?console.createTask:function(){return null};$t={react_stack_bottom_frame:function(J){return J()}};var tn,et,xe={},Le=$t.react_stack_bottom_frame.bind($t,R)(),at=Dn(E(R)),dt=!1,ht=/\/+/g,wt=typeof reportError=="function"?reportError:function(J){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J),error:J});if(!window.dispatchEvent(Oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",J);return}console.error(J)},fn=!1,Lt=null,Ht=0,jn=!1,gn=!1,Pr=typeof queueMicrotask=="function"?function(J){queueMicrotask(function(){return queueMicrotask(J)})}:ee;$t=Object.freeze({__proto__:null,c:function(J){return le().useMemoCache(J)}});var vr={map:ue,forEach:function(J,Oe,nt){ue(J,function(){Oe.apply(this,arguments)},nt)},count:function(J){var Oe=0;return ue(J,function(){Oe++}),Oe},toArray:function(J){return ue(J,function(Oe){return Oe})||[]},only:function(J){if(!H(J))throw Error("React.Children.only expected to receive a single React element child.");return J}};t.Activity=Ve,t.Children=vr,t.Component=u,t.Fragment=te,t.Profiler=Me,t.PureComponent=h,t.StrictMode=Y,t.Suspense=Ue,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=it,t.__COMPILER_RUNTIME=$t,t.act=function(J){var Oe=it.actQueue,nt=Ht;Ht++;var Ze=it.actQueue=Oe!==null?Oe:[],mt=!1;try{var tt=J()}catch(ct){it.thrownErrors.push(ct)}if(0<it.thrownErrors.length)throw oe(Oe,nt),J=W(it.thrownErrors),it.thrownErrors.length=0,J;if(tt!==null&&typeof tt=="object"&&typeof tt.then=="function"){var ot=tt;return Pr(function(){mt||jn||(jn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ct,Rn){mt=!0,ot.then(function(si){if(oe(Oe,nt),nt===0){try{be(Ze),ee(function(){return he(si,ct,Rn)})}catch(Ef){it.thrownErrors.push(Ef)}if(0<it.thrownErrors.length){var n1=W(it.thrownErrors);it.thrownErrors.length=0,Rn(n1)}}else ct(si)},function(si){oe(Oe,nt),0<it.thrownErrors.length&&(si=W(it.thrownErrors),it.thrownErrors.length=0),Rn(si)})}}}var zt=tt;if(oe(Oe,nt),nt===0&&(be(Ze),Ze.length!==0&&Pr(function(){mt||jn||(jn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),it.actQueue=null),0<it.thrownErrors.length)throw J=W(it.thrownErrors),it.thrownErrors.length=0,J;return{then:function(ct,Rn){mt=!0,nt===0?(it.actQueue=Ze,ee(function(){return he(zt,ct,Rn)})):ct(zt)}}},t.cache=function(J){return function(){return J.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var J=it.getCurrentStack;return J===null?null:J()},t.cloneElement=function(J,Oe,nt){if(J==null)throw Error("The argument must be a React element, but you passed "+J+".");var Ze=Qt({},J.props),mt=J.key,tt=J._owner;if(Oe!=null){var ot;e:{if(Mt.call(Oe,"ref")&&(ot=Object.getOwnPropertyDescriptor(Oe,"ref").get)&&ot.isReactWarning){ot=!1;break e}ot=Oe.ref!==void 0}ot&&(tt=A()),_(Oe)&&(x(Oe.key),mt=""+Oe.key);for(zt in Oe)!Mt.call(Oe,zt)||zt==="key"||zt==="__self"||zt==="__source"||zt==="ref"&&Oe.ref===void 0||(Ze[zt]=Oe[zt])}var zt=arguments.length-2;if(zt===1)Ze.children=nt;else if(1<zt){ot=Array(zt);for(var ct=0;ct<zt;ct++)ot[ct]=arguments[ct+2];Ze.children=ot}for(Ze=V(J.type,mt,Ze,tt,J._debugStack,J._debugTask),mt=2;mt<arguments.length;mt++)I(arguments[mt]);return Ze},t.createContext=function(J){return J={$$typeof:_e,_currentValue:J,_currentValue2:J,_threadCount:0,Provider:null,Consumer:null},J.Provider=J,J.Consumer={$$typeof:Ee,_context:J},J._currentRenderer=null,J._currentRenderer2=null,J},t.createElement=function(J,Oe,nt){for(var Ze=2;Ze<arguments.length;Ze++)I(arguments[Ze]);Ze={};var mt=null;if(Oe!=null)for(ct in et||!("__self"in Oe)||"key"in Oe||(et=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),_(Oe)&&(x(Oe.key),mt=""+Oe.key),Oe)Mt.call(Oe,ct)&&ct!=="key"&&ct!=="__self"&&ct!=="__source"&&(Ze[ct]=Oe[ct]);var tt=arguments.length-2;if(tt===1)Ze.children=nt;else if(1<tt){for(var ot=Array(tt),zt=0;zt<tt;zt++)ot[zt]=arguments[zt+2];Object.freeze&&Object.freeze(ot),Ze.children=ot}if(J&&J.defaultProps)for(ct in tt=J.defaultProps,tt)Ze[ct]===void 0&&(Ze[ct]=tt[ct]);mt&&D(Ze,typeof J=="function"?J.displayName||J.name||"Unknown":J);var ct=1e4>it.recentlyCreatedOwnerStacks++;return V(J,mt,Ze,A(),ct?Error("react-stack-top-frame"):Le,ct?Dn(E(J)):at)},t.createRef=function(){var J={current:null};return Object.seal(J),J},t.forwardRef=function(J){J!=null&&J.$$typeof===Xe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof J!="function"?console.error("forwardRef requires a render function but was given %s.",J===null?"null":typeof J):J.length!==0&&J.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",J.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),J!=null&&J.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Oe={$$typeof:Be,render:J},nt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return nt},set:function(Ze){nt=Ze,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ze}),J.displayName=Ze)}}),Oe},t.isValidElement=H,t.lazy=function(J){J={_status:-1,_result:J};var Oe={$$typeof:Je,_payload:J,_init:U},nt={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return J._ioInfo=nt,Oe._debugInfo=[{awaited:nt}],Oe},t.memo=function(J,Oe){J==null&&console.error("memo: The first argument must be a component. Instead received: %s",J===null?"null":typeof J),Oe={$$typeof:Xe,type:J,compare:Oe===void 0?null:Oe};var nt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return nt},set:function(Ze){nt=Ze,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ze}),J.displayName=Ze)}}),Oe},t.startTransition=function(J){var Oe=it.T,nt={};nt._updatedFibers=new Set,it.T=nt;try{var Ze=J(),mt=it.S;mt!==null&&mt(nt,Ze),typeof Ze=="object"&&Ze!==null&&typeof Ze.then=="function"&&(it.asyncTransitions++,Ze.then(Q,Q),Ze.then(y,wt))}catch(tt){wt(tt)}finally{Oe===null&&nt._updatedFibers&&(J=nt._updatedFibers.size,nt._updatedFibers.clear(),10<J&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Oe!==null&&nt.types!==null&&(Oe.types!==null&&Oe.types!==nt.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),Oe.types=nt.types),it.T=Oe}},t.unstable_useCacheRefresh=function(){return le().useCacheRefresh()},t.use=function(J){return le().use(J)},t.useActionState=function(J,Oe,nt){return le().useActionState(J,Oe,nt)},t.useCallback=function(J,Oe){return le().useCallback(J,Oe)},t.useContext=function(J){var Oe=le();return J.$$typeof===Ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Oe.useContext(J)},t.useDebugValue=function(J,Oe){return le().useDebugValue(J,Oe)},t.useDeferredValue=function(J,Oe){return le().useDeferredValue(J,Oe)},t.useEffect=function(J,Oe){return J==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useEffect(J,Oe)},t.useEffectEvent=function(J){return le().useEffectEvent(J)},t.useId=function(){return le().useId()},t.useImperativeHandle=function(J,Oe,nt){return le().useImperativeHandle(J,Oe,nt)},t.useInsertionEffect=function(J,Oe){return J==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useInsertionEffect(J,Oe)},t.useLayoutEffect=function(J,Oe){return J==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),le().useLayoutEffect(J,Oe)},t.useMemo=function(J,Oe){return le().useMemo(J,Oe)},t.useOptimistic=function(J,Oe){return le().useOptimistic(J,Oe)},t.useReducer=function(J,Oe,nt){return le().useReducer(J,Oe,nt)},t.useRef=function(J){return le().useRef(J)},t.useState=function(J){return le().useState(J)},t.useSyncExternalStore=function(J,Oe,nt){return le().useSyncExternalStore(J,Oe,nt)},t.useTransition=function(){return le().useTransition()},t.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Av,Av.exports)),Av.exports}var aO;function Nd(){if(aO)return KS.exports;aO=1;var e={};return e.NODE_ENV==="production"?KS.exports=BB():KS.exports=PB(),KS.exports}var oO;function jB(){if(oO)return Tv;oO=1;var e={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){function t(te){if(te==null)return null;if(typeof te=="function")return te.$$typeof===U?null:te.displayName||te.name||null;if(typeof te=="string")return te;switch(te){case D:return"Fragment";case V:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case se:return"SuspenseList";case ue:return"Activity"}if(typeof te=="object")switch(typeof te.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),te.$$typeof){case _:return"Portal";case I:return te.displayName||"Context";case P:return(te._context.displayName||"Context")+".Consumer";case H:var Y=te.render;return te=te.displayName,te||(te=Y.displayName||Y.name||"",te=te!==""?"ForwardRef("+te+")":"ForwardRef"),te;case ce:return Y=te.displayName||null,Y!==null?Y:t(te.type)||"Memo";case ie:Y=te._payload,te=te._init;try{return t(te(Y))}catch{}}return null}function n(te){return""+te}function r(te){try{n(te);var Y=!1}catch{Y=!0}if(Y){Y=console;var Me=Y.error,Ee=typeof Symbol=="function"&&Symbol.toStringTag&&te[Symbol.toStringTag]||te.constructor.name||"Object";return Me.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ee),n(te)}}function a(te){if(te===D)return"<>";if(typeof te=="object"&&te!==null&&te.$$typeof===ie)return"<...>";try{var Y=t(te);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function l(){var te=le.A;return te===null?null:te.getOwner()}function u(){return Error("react-stack-top-frame")}function d(te){if(Q.call(te,"key")){var Y=Object.getOwnPropertyDescriptor(te,"key").get;if(Y&&Y.isReactWarning)return!1}return te.key!==void 0}function h(te,Y){function Me(){oe||(oe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}Me.isReactWarning=!0,Object.defineProperty(te,"key",{get:Me,configurable:!0})}function y(){var te=t(this.type);return he[te]||(he[te]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),te=this.props.ref,te!==void 0?te:null}function v(te,Y,Me,Ee,_e,Be){var Ue=Me.ref;return te={$$typeof:R,type:te,key:Y,props:Me,_owner:Ee},(Ue!==void 0?Ue:null)!==null?Object.defineProperty(te,"ref",{enumerable:!1,get:y}):Object.defineProperty(te,"ref",{enumerable:!1,value:null}),te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(te,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(te,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.defineProperty(te,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te}function x(te,Y,Me,Ee,_e,Be){var Ue=Y.children;if(Ue!==void 0)if(Ee)if(ee(Ue)){for(Ee=0;Ee<Ue.length;Ee++)T(Ue[Ee]);Object.freeze&&Object.freeze(Ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(Ue);if(Q.call(Y,"key")){Ue=t(te);var Ye=Object.keys(Y).filter(function(Je){return Je!=="key"});Ee=0<Ye.length?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}",F[Ue+Ee]||(Ye=0<Ye.length?"{"+Ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`,Ee,Ue,Ye,Ue),F[Ue+Ee]=!0)}if(Ue=null,Me!==void 0&&(r(Me),Ue=""+Me),d(Y)&&(r(Y.key),Ue=""+Y.key),"key"in Y){Me={};for(var Xe in Y)Xe!=="key"&&(Me[Xe]=Y[Xe])}else Me=Y;return Ue&&h(Me,typeof te=="function"?te.displayName||te.name||"Unknown":te),v(te,Ue,Me,l(),_e,Be)}function T(te){E(te)?te._store&&(te._store.validated=1):typeof te=="object"&&te!==null&&te.$$typeof===ie&&(te._payload.status==="fulfilled"?E(te._payload.value)&&te._payload.value._store&&(te._payload.value._store.validated=1):te._store&&(te._store.validated=1))}function E(te){return typeof te=="object"&&te!==null&&te.$$typeof===R}var A=Nd(),R=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),I=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),le=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(te){return te()}};var oe,he={},be=A.react_stack_bottom_frame.bind(A,u)(),re=W(a(u)),F={};Tv.Fragment=D,Tv.jsx=function(te,Y,Me){var Ee=1e4>le.recentlyCreatedOwnerStacks++;return x(te,Y,Me,!1,Ee?Error("react-stack-top-frame"):be,Ee?W(a(te)):re)},Tv.jsxs=function(te,Y,Me){var Ee=1e4>le.recentlyCreatedOwnerStacks++;return x(te,Y,Me,!0,Ee?Error("react-stack-top-frame"):be,Ee?W(a(te)):re)}})(),Tv}var lO;function $B(){if(lO)return Qc.exports;lO=1;var e={};return e.NODE_ENV==="production"?Qc.exports=VB():Qc.exports=jB(),Qc.exports}var L=$B(),q=Nd();const ou=yl(q),oT=Xu({__proto__:null,default:ou},[q]);var QS={exports:{}},Cv={},ZS={exports:{}},lT={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sO;function UB(){return sO||(sO=1,(function(e){function t(W,oe){var he=W.length;W.push(oe);e:for(;0<he;){var be=he-1>>>1,re=W[be];if(0<a(re,oe))W[be]=oe,W[he]=re,he=be;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var oe=W[0],he=W.pop();if(he!==oe){W[0]=he;e:for(var be=0,re=W.length,F=re>>>1;be<F;){var te=2*(be+1)-1,Y=W[te],Me=te+1,Ee=W[Me];if(0>a(Y,he))Me<re&&0>a(Ee,Y)?(W[be]=Ee,W[Me]=he,be=Me):(W[be]=Y,W[te]=he,be=te);else if(Me<re&&0>a(Ee,he))W[be]=Ee,W[Me]=he,be=Me;else break e}}return oe}function a(W,oe){var he=W.sortIndex-oe.sortIndex;return he!==0?he:W.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],y=[],v=1,x=null,T=3,E=!1,A=!1,R=!1,_=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function P(W){for(var oe=n(y);oe!==null;){if(oe.callback===null)r(y);else if(oe.startTime<=W)r(y),oe.sortIndex=oe.expirationTime,t(h,oe);else break;oe=n(y)}}function I(W){if(R=!1,P(W),!A)if(n(h)!==null)A=!0,H||(H=!0,U());else{var oe=n(y);oe!==null&&ee(I,oe.startTime-W)}}var H=!1,X=-1,se=5,ce=-1;function ie(){return _?!0:!(e.unstable_now()-ce<se)}function ue(){if(_=!1,H){var W=e.unstable_now();ce=W;var oe=!0;try{e:{A=!1,R&&(R=!1,z(X),X=-1),E=!0;var he=T;try{t:{for(P(W),x=n(h);x!==null&&!(x.expirationTime>W&&ie());){var be=x.callback;if(typeof be=="function"){x.callback=null,T=x.priorityLevel;var re=be(x.expirationTime<=W);if(W=e.unstable_now(),typeof re=="function"){x.callback=re,P(W),oe=!0;break t}x===n(h)&&r(h),P(W)}else r(h);x=n(h)}if(x!==null)oe=!0;else{var F=n(y);F!==null&&ee(I,F.startTime-W),oe=!1}}break e}finally{x=null,T=he,E=!1}oe=void 0}}finally{oe?U():H=!1}}}var U;if(typeof V=="function")U=function(){V(ue)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Q=le.port2;le.port1.onmessage=ue,U=function(){Q.postMessage(null)}}else U=function(){D(ue,0)};function ee(W,oe){X=D(function(){W(e.unstable_now())},oe)}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(W){W.callback=null},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(W){switch(T){case 1:case 2:case 3:var oe=3;break;default:oe=T}var he=T;T=oe;try{return W()}finally{T=he}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(W,oe){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var he=T;T=W;try{return oe()}finally{T=he}},e.unstable_scheduleCallback=function(W,oe,he){var be=e.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?be+he:be):he=be,W){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=he+re,W={id:v++,callback:oe,priorityLevel:W,startTime:he,expirationTime:re,sortIndex:-1},he>be?(W.sortIndex=he,t(y,W),n(h)===null&&W===n(y)&&(R?(z(X),X=-1):R=!0,ee(I,he-be))):(W.sortIndex=re,t(h,W),A||E||(A=!0,H||(H=!0,U()))),W},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(W){var oe=T;return function(){var he=T;T=oe;try{return W.apply(this,arguments)}finally{T=he}}}})(lT)),lT}var sT={},uO;function HB(){return uO||(uO=1,(function(e){var t={};/**
 * @license React
 * scheduler.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */t.NODE_ENV!=="production"&&(function(){function n(){if(H=!1,ie){var oe=e.unstable_now();le=oe;var he=!0;try{e:{P=!1,I&&(I=!1,se(ue),ue=-1),V=!0;var be=z;try{t:{for(d(oe),D=a(A);D!==null&&!(D.expirationTime>oe&&y());){var re=D.callback;if(typeof re=="function"){D.callback=null,z=D.priorityLevel;var F=re(D.expirationTime<=oe);if(oe=e.unstable_now(),typeof F=="function"){D.callback=F,d(oe),he=!0;break t}D===a(A)&&l(A),d(oe)}else l(A);D=a(A)}if(D!==null)he=!0;else{var te=a(R);te!==null&&v(h,te.startTime-oe),he=!1}}break e}finally{D=null,z=be,V=!1}he=void 0}}finally{he?Q():ie=!1}}}function r(oe,he){var be=oe.length;oe.push(he);e:for(;0<be;){var re=be-1>>>1,F=oe[re];if(0<u(F,he))oe[re]=he,oe[be]=F,be=re;else break e}}function a(oe){return oe.length===0?null:oe[0]}function l(oe){if(oe.length===0)return null;var he=oe[0],be=oe.pop();if(be!==he){oe[0]=be;e:for(var re=0,F=oe.length,te=F>>>1;re<te;){var Y=2*(re+1)-1,Me=oe[Y],Ee=Y+1,_e=oe[Ee];if(0>u(Me,be))Ee<F&&0>u(_e,Me)?(oe[re]=_e,oe[Ee]=be,re=Ee):(oe[re]=Me,oe[Y]=be,re=Y);else if(Ee<F&&0>u(_e,be))oe[re]=_e,oe[Ee]=be,re=Ee;else break e}}return he}function u(oe,he){var be=oe.sortIndex-he.sortIndex;return be!==0?be:oe.id-he.id}function d(oe){for(var he=a(R);he!==null;){if(he.callback===null)l(R);else if(he.startTime<=oe)l(R),he.sortIndex=he.expirationTime,r(A,he);else break;he=a(R)}}function h(oe){if(I=!1,d(oe),!P)if(a(A)!==null)P=!0,ie||(ie=!0,Q());else{var he=a(R);he!==null&&v(h,he.startTime-oe)}}function y(){return H?!0:!(e.unstable_now()-le<U)}function v(oe,he){ue=X(function(){oe(e.unstable_now())},he)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;e.unstable_now=function(){return x.now()}}else{var T=Date,E=T.now();e.unstable_now=function(){return T.now()-E}}var A=[],R=[],_=1,D=null,z=3,V=!1,P=!1,I=!1,H=!1,X=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ie=!1,ue=-1,U=5,le=-1;if(typeof ce=="function")var Q=function(){ce(n)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,W=ee.port2;ee.port1.onmessage=n,Q=function(){W.postMessage(null)}}else Q=function(){X(n,0)};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(oe){oe.callback=null},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_next=function(oe){switch(z){case 1:case 2:case 3:var he=3;break;default:he=z}var be=z;z=he;try{return oe()}finally{z=be}},e.unstable_requestPaint=function(){H=!0},e.unstable_runWithPriority=function(oe,he){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var be=z;z=oe;try{return he()}finally{z=be}},e.unstable_scheduleCallback=function(oe,he,be){var re=e.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?re+be:re):be=re,oe){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=be+F,oe={id:_++,callback:he,priorityLevel:oe,startTime:be,expirationTime:F,sortIndex:-1},be>re?(oe.sortIndex=be,r(R,oe),a(A)===null&&oe===a(R)&&(I?(se(ue),ue=-1):I=!0,v(h,be-re))):(oe.sortIndex=F,r(A,oe),P||V||(P=!0,ie||(ie=!0,Q()))),oe},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(oe){var he=z;return function(){var be=z;z=he;try{return oe.apply(this,arguments)}finally{z=be}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(sT)),sT}var cO;function fO(){if(cO)return ZS.exports;cO=1;var e={};return e.NODE_ENV==="production"?ZS.exports=UB():ZS.exports=HB(),ZS.exports}var JS={exports:{}},ja={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dO;function qB(){if(dO)return ja;dO=1;var e=Nd();function t(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(h,y,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:x==null?null:""+x,children:h,containerInfo:y,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ja.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ja.createPortal=function(h,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return l(h,y,null,v)},ja.flushSync=function(h){var y=u.T,v=r.p;try{if(u.T=null,r.p=2,h)return h()}finally{u.T=y,r.p=v,r.d.f()}},ja.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(h,y))},ja.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},ja.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var v=y.as,x=d(v,y.crossOrigin),T=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?r.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:E}):v==="script"&&r.d.X(h,{crossOrigin:x,integrity:T,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ja.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=d(y.as,y.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(h)},ja.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,x=d(v,y.crossOrigin);r.d.L(h,v,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ja.preloadModule=function(h,y){if(typeof h=="string")if(y){var v=d(y.as,y.crossOrigin);r.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(h)},ja.requestFormReset=function(h){r.d.r(h)},ja.unstable_batchedUpdates=function(h,y){return h(y)},ja.useFormState=function(h,y,v){return u.H.useFormState(h,y,v)},ja.useFormStatus=function(){return u.H.useHostTransitionStatus()},ja.version="19.2.6",ja}var $a={},hO;function GB(){if(hO)return $a;hO=1;var e={};/**
 * @license React
 * react-dom.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){function t(){}function n(T){return""+T}function r(T,E,A){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(R);var _=!1}catch{_=!0}return _&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),n(R)),{$$typeof:v,key:R==null?null:""+R,children:T,containerInfo:E,implementation:A}}function a(T,E){if(T==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}function l(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function u(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T=="string"?JSON.stringify(T):typeof T=="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function d(){var T=x.H;return T===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=Nd(),y={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},v=Symbol.for("react.portal"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),$a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,$a.createPortal=function(T,E){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error("Target container is not a DOM element.");return r(T,E,null,A)},$a.flushSync=function(T){var E=x.T,A=y.p;try{if(x.T=null,y.p=2,T)return T()}finally{x.T=E,y.p=A,y.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},$a.preconnect=function(T,E){typeof T=="string"&&T?E!=null&&typeof E!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",u(E)):E!=null&&typeof E.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",l(E.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(T)),typeof T=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,y.d.C(T,E))},$a.prefetchDNS=function(T){if(typeof T!="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(T));else if(1<arguments.length){var E=arguments[1];typeof E=="object"&&E.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(E)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(E))}typeof T=="string"&&y.d.D(T)},$a.preinit=function(T,E){if(typeof T=="string"&&T?E==null||typeof E!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",u(E)):E.as!=="style"&&E.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',u(E.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(T)),typeof T=="string"&&E&&typeof E.as=="string"){var A=E.as,R=a(A,E.crossOrigin),_=typeof E.integrity=="string"?E.integrity:void 0,D=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;A==="style"?y.d.S(T,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:R,integrity:_,fetchPriority:D}):A==="script"&&y.d.X(T,{crossOrigin:R,integrity:_,fetchPriority:D,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},$a.preinitModule=function(T,E){var A="";if(typeof T=="string"&&T||(A+=" The `href` argument encountered was "+l(T)+"."),E!==void 0&&typeof E!="object"?A+=" The `options` argument encountered was "+l(E)+".":E&&"as"in E&&E.as!=="script"&&(A+=" The `as` option encountered was "+u(E.as)+"."),A)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",A);else switch(A=E&&typeof E.as=="string"?E.as:"script",A){case"script":break;default:A=u(A),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',A,T)}typeof T=="string"&&(typeof E=="object"&&E!==null?(E.as==null||E.as==="script")&&(A=a(E.as,E.crossOrigin),y.d.M(T,{crossOrigin:A,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})):E==null&&y.d.M(T))},$a.preload=function(T,E){var A="";if(typeof T=="string"&&T||(A+=" The `href` argument encountered was "+l(T)+"."),E==null||typeof E!="object"?A+=" The `options` argument encountered was "+l(E)+".":typeof E.as=="string"&&E.as||(A+=" The `as` option encountered was "+l(E.as)+"."),A&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',A),typeof T=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){A=E.as;var R=a(A,E.crossOrigin);y.d.L(T,A,{crossOrigin:R,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},$a.preloadModule=function(T,E){var A="";typeof T=="string"&&T||(A+=" The `href` argument encountered was "+l(T)+"."),E!==void 0&&typeof E!="object"?A+=" The `options` argument encountered was "+l(E)+".":E&&"as"in E&&typeof E.as!="string"&&(A+=" The `as` option encountered was "+l(E.as)+"."),A&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',A),typeof T=="string"&&(E?(A=a(E.as,E.crossOrigin),y.d.m(T,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:A,integrity:typeof E.integrity=="string"?E.integrity:void 0})):y.d.m(T))},$a.requestFormReset=function(T){y.d.r(T)},$a.unstable_batchedUpdates=function(T,E){return T(E)},$a.useFormState=function(T,E,A){return d().useFormState(T,E,A)},$a.useFormStatus=function(){return d().useHostTransitionStatus()},$a.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),$a}var pO;function uT(){if(pO)return JS.exports;pO=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),JS.exports=qB()):JS.exports=GB(),JS.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mO;function FB(){if(mO)return Cv;mO=1;var e=fO(),t=Nd(),n=uT();function r(s){var f="https://react.dev/errors/"+s;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+s+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function l(s){var f=s,m=s;if(s.alternate)for(;f.return;)f=f.return;else{s=f;do f=s,(f.flags&4098)!==0&&(m=f.return),s=f.return;while(s)}return f.tag===3?m:null}function u(s){if(s.tag===13){var f=s.memoizedState;if(f===null&&(s=s.alternate,s!==null&&(f=s.memoizedState)),f!==null)return f.dehydrated}return null}function d(s){if(s.tag===31){var f=s.memoizedState;if(f===null&&(s=s.alternate,s!==null&&(f=s.memoizedState)),f!==null)return f.dehydrated}return null}function h(s){if(l(s)!==s)throw Error(r(188))}function y(s){var f=s.alternate;if(!f){if(f=l(s),f===null)throw Error(r(188));return f!==s?null:s}for(var m=s,b=f;;){var C=m.return;if(C===null)break;var O=C.alternate;if(O===null){if(b=C.return,b!==null){m=b;continue}break}if(C.child===O.child){for(O=C.child;O;){if(O===m)return h(C),s;if(O===b)return h(C),f;O=O.sibling}throw Error(r(188))}if(m.return!==b.return)m=C,b=O;else{for(var $=!1,ne=C.child;ne;){if(ne===m){$=!0,m=C,b=O;break}if(ne===b){$=!0,b=C,m=O;break}ne=ne.sibling}if(!$){for(ne=O.child;ne;){if(ne===m){$=!0,m=O,b=C;break}if(ne===b){$=!0,b=O,m=C;break}ne=ne.sibling}if(!$)throw Error(r(189))}}if(m.alternate!==b)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?s:f}function v(s){var f=s.tag;if(f===5||f===26||f===27||f===6)return s;for(s=s.child;s!==null;){if(f=v(s),f!==null)return f;s=s.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),V=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function U(s){return s===null||typeof s!="object"?null:(s=ue&&s[ue]||s["@@iterator"],typeof s=="function"?s:null)}var le=Symbol.for("react.client.reference");function Q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===le?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case R:return"Fragment";case D:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case H:return"SuspenseList";case ce:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case A:return"Portal";case V:return s.displayName||"Context";case z:return(s._context.displayName||"Context")+".Consumer";case P:var f=s.render;return s=s.displayName,s||(s=f.displayName||f.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case X:return f=s.displayName||null,f!==null?f:Q(s.type)||"Memo";case se:f=s._payload,s=s._init;try{return Q(s(f))}catch{}}return null}var ee=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},be=[],re=-1;function F(s){return{current:s}}function te(s){0>re||(s.current=be[re],be[re]=null,re--)}function Y(s,f){re++,be[re]=s.current,s.current=f}var Me=F(null),Ee=F(null),_e=F(null),Be=F(null);function Ue(s,f){switch(Y(_e,f),Y(Ee,s),Y(Me,null),f.nodeType){case 9:case 11:s=(s=f.documentElement)&&(s=s.namespaceURI)?$h(s):0;break;default:if(s=f.tagName,f=f.namespaceURI)f=$h(f),s=ZE(f,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}te(Me),Y(Me,s)}function Ye(){te(Me),te(Ee),te(_e)}function Xe(s){s.memoizedState!==null&&Y(Be,s);var f=Me.current,m=ZE(f,s.type);f!==m&&(Y(Ee,s),Y(Me,m))}function Je(s){Ee.current===s&&(te(Me),te(Ee)),Be.current===s&&(te(Be),ti._currentValue=he)}var Ve,Re;function ut(s){if(Ve===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Ve=f&&f[1]||"",Re=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ve+s+Re}var Vt=!1;function Qt(s,f){if(!s||Vt)return"";Vt=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(f){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(je){var ze=je}Reflect.construct(s,[],Qe)}else{try{Qe.call()}catch(je){ze=je}s.call(Qe.prototype)}}else{try{throw Error()}catch(je){ze=je}(Qe=s())&&typeof Qe.catch=="function"&&Qe.catch(function(){})}}catch(je){if(je&&ze&&typeof je.stack=="string")return[je.stack,ze.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=b.DetermineComponentFrameRoot(),$=O[0],ne=O[1];if($&&ne){var ve=$.split(`
`),ke=ne.split(`
`);for(C=b=0;b<ve.length&&!ve[b].includes("DetermineComponentFrameRoot");)b++;for(;C<ke.length&&!ke[C].includes("DetermineComponentFrameRoot");)C++;if(b===ve.length||C===ke.length)for(b=ve.length-1,C=ke.length-1;1<=b&&0<=C&&ve[b]!==ke[C];)C--;for(;1<=b&&0<=C;b--,C--)if(ve[b]!==ke[C]){if(b!==1||C!==1)do if(b--,C--,0>C||ve[b]!==ke[C]){var He=`
`+ve[b].replace(" at new "," at ");return s.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",s.displayName)),He}while(1<=b&&0<=C);break}}}finally{Vt=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?ut(m):""}function St(s,f){switch(s.tag){case 26:case 27:case 5:return ut(s.type);case 16:return ut("Lazy");case 13:return s.child!==f&&f!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return Qt(s.type,!1);case 11:return Qt(s.type.render,!1);case 1:return Qt(s.type,!0);case 31:return ut("Activity");default:return""}}function $t(s){try{var f="",m=null;do f+=St(s,m),m=s,s=s.return;while(s);return f}catch(b){return`
Error generating stack: `+b.message+`
`+b.stack}}var Cn=Object.prototype.hasOwnProperty,vn=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,Mt=e.unstable_shouldYield,Dn=e.unstable_requestPaint,tn=e.unstable_now,et=e.unstable_getCurrentPriorityLevel,xe=e.unstable_ImmediatePriority,Le=e.unstable_UserBlockingPriority,at=e.unstable_NormalPriority,dt=e.unstable_LowPriority,ht=e.unstable_IdlePriority,wt=e.log,fn=e.unstable_setDisableYieldValue,Lt=null,Ht=null;function jn(s){if(typeof wt=="function"&&fn(s),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Lt,s)}catch{}}var gn=Math.clz32?Math.clz32:J,Pr=Math.log,vr=Math.LN2;function J(s){return s>>>=0,s===0?32:31-(Pr(s)/vr|0)|0}var Oe=256,nt=262144,Ze=4194304;function mt(s){var f=s&42;if(f!==0)return f;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function tt(s,f,m){var b=s.pendingLanes;if(b===0)return 0;var C=0,O=s.suspendedLanes,$=s.pingedLanes;s=s.warmLanes;var ne=b&134217727;return ne!==0?(b=ne&~O,b!==0?C=mt(b):($&=ne,$!==0?C=mt($):m||(m=ne&~s,m!==0&&(C=mt(m))))):(ne=b&~O,ne!==0?C=mt(ne):$!==0?C=mt($):m||(m=b&~s,m!==0&&(C=mt(m)))),C===0?0:f!==0&&f!==C&&(f&O)===0&&(O=C&-C,m=f&-f,O>=m||O===32&&(m&4194048)!==0)?f:C}function ot(s,f){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&f)===0}function zt(s,f){switch(s){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+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 ct(){var s=Ze;return Ze<<=1,(Ze&62914560)===0&&(Ze=4194304),s}function Rn(s){for(var f=[],m=0;31>m;m++)f.push(s);return f}function si(s,f){s.pendingLanes|=f,f!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function n1(s,f,m,b,C,O){var $=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var ne=s.entanglements,ve=s.expirationTimes,ke=s.hiddenUpdates;for(m=$&~m;0<m;){var He=31-gn(m),Qe=1<<He;ne[He]=0,ve[He]=-1;var ze=ke[He];if(ze!==null)for(ke[He]=null,He=0;He<ze.length;He++){var je=ze[He];je!==null&&(je.lane&=-536870913)}m&=~Qe}b!==0&&Ef(s,b,0),O!==0&&C===0&&s.tag!==0&&(s.suspendedLanes|=O&~($&~f))}function Ef(s,f,m){s.pendingLanes|=f,s.suspendedLanes&=~f;var b=31-gn(f);s.entangledLanes|=f,s.entanglements[b]=s.entanglements[b]|1073741824|m&261930}function Y0(s,f){var m=s.entangledLanes|=f;for(s=s.entanglements;m;){var b=31-gn(m),C=1<<b;C&f|s[b]&f&&(s[b]|=f),m&=~C}}function ss(s,f){var m=f&-f;return m=(m&42)!==0?1:Wa(m),(m&(s.suspendedLanes|f))!==0?0:m}function Wa(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function r1(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function K6(){var s=oe.p;return s!==0?s:(s=window.event,s===void 0?32:wm(s.type))}function i1(s,f){var m=oe.p;try{return oe.p=s,f()}finally{oe.p=m}}var yu=Math.random().toString(36).slice(2),yi="__reactFiber$"+yu,_r="__reactProps$"+yu,wf="__reactContainer$"+yu,X0="__reactEvents$"+yu,Q6="__reactListeners$"+yu,n4="__reactHandles$"+yu,r4="__reactResources$"+yu,rh="__reactMarker$"+yu;function yc(s){delete s[yi],delete s[_r],delete s[X0],delete s[Q6],delete s[n4]}function Tf(s){var f=s[yi];if(f)return f;for(var m=s.parentNode;m;){if(f=m[wf]||m[yi]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(s=Dy(s);s!==null;){if(m=s[yi])return m;s=Dy(s)}return f}s=m,m=s.parentNode}return null}function Af(s){if(s=s[yi]||s[wf]){var f=s.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return s}return null}function ih(s){var f=s.tag;if(f===5||f===26||f===27||f===6)return s.stateNode;throw Error(r(33))}function Cf(s){var f=s[r4];return f||(f=s[r4]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Ti(s){s[rh]=!0}var Ka=new Set,Of={};function To(s,f){Mf(s,f),Mf(s+"Capture",f)}function Mf(s,f){for(Of[s]=f,s=0;s<f.length;s++)Ka.add(f[s])}var W0=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]*$"),K0={},a1={};function Q0(s){return Cn.call(a1,s)?!0:Cn.call(K0,s)?!1:W0.test(s)?a1[s]=!0:(K0[s]=!0,!1)}function vu(s,f,m){if(Q0(f))if(m===null)s.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":s.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){s.removeAttribute(f);return}}s.setAttribute(f,""+m)}}function ah(s,f,m){if(m===null)s.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(f);return}s.setAttribute(f,""+m)}}function bu(s,f,m,b){if(b===null)s.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(m);return}s.setAttributeNS(f,m,""+b)}}function Ko(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function i4(s){var f=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function a4(s,f,m){var b=Object.getOwnPropertyDescriptor(s.constructor.prototype,f);if(!s.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var C=b.get,O=b.set;return Object.defineProperty(s,f,{configurable:!0,get:function(){return C.call(this)},set:function($){m=""+$,O.call(this,$)}}),Object.defineProperty(s,f,{enumerable:b.enumerable}),{getValue:function(){return m},setValue:function($){m=""+$},stopTracking:function(){s._valueTracker=null,delete s[f]}}}}function Z0(s){if(!s._valueTracker){var f=i4(s)?"checked":"value";s._valueTracker=a4(s,f,""+s[f])}}function o4(s){if(!s)return!1;var f=s._valueTracker;if(!f)return!0;var m=f.getValue(),b="";return s&&(b=i4(s)?s.checked?"true":"false":s.value),s=b,s!==m?(f.setValue(s),!0):!1}function J0(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var Z6=/[\n"\\]/g;function Qo(s){return s.replace(Z6,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function o1(s,f,m,b,C,O,$,ne){s.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?s.type=$:s.removeAttribute("type"),f!=null?$==="number"?(f===0&&s.value===""||s.value!=f)&&(s.value=""+Ko(f)):s.value!==""+Ko(f)&&(s.value=""+Ko(f)):$!=="submit"&&$!=="reset"||s.removeAttribute("value"),f!=null?oh(s,$,Ko(f)):m!=null?oh(s,$,Ko(m)):b!=null&&s.removeAttribute("value"),C==null&&O!=null&&(s.defaultChecked=!!O),C!=null&&(s.checked=C&&typeof C!="function"&&typeof C!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?s.name=""+Ko(ne):s.removeAttribute("name")}function l1(s,f,m,b,C,O,$,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(s.type=O),f!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||f!=null)){Z0(s);return}m=m!=null?""+Ko(m):"",f=f!=null?""+Ko(f):m,ne||f===s.value||(s.value=f),s.defaultValue=f}b=b??C,b=typeof b!="function"&&typeof b!="symbol"&&!!b,s.checked=ne?s.checked:!!b,s.defaultChecked=!!b,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(s.name=$),Z0(s)}function oh(s,f,m){f==="number"&&J0(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function us(s,f,m,b){if(s=s.options,f){f={};for(var C=0;C<m.length;C++)f["$"+m[C]]=!0;for(m=0;m<s.length;m++)C=f.hasOwnProperty("$"+s[m].value),s[m].selected!==C&&(s[m].selected=C),C&&b&&(s[m].defaultSelected=!0)}else{for(m=""+Ko(m),f=null,C=0;C<s.length;C++){if(s[C].value===m){s[C].selected=!0,b&&(s[C].defaultSelected=!0);return}f!==null||s[C].disabled||(f=s[C])}f!==null&&(f.selected=!0)}}function J6(s,f,m){if(f!=null&&(f=""+Ko(f),f!==s.value&&(s.value=f),m==null)){s.defaultValue!==f&&(s.defaultValue=f);return}s.defaultValue=m!=null?""+Ko(m):""}function l4(s,f,m,b){if(f==null){if(b!=null){if(m!=null)throw Error(r(92));if(ee(b)){if(1<b.length)throw Error(r(93));b=b[0]}m=b}m==null&&(m=""),f=m}m=Ko(f),s.defaultValue=m,b=s.textContent,b===m&&b!==""&&b!==null&&(s.value=b),Z0(s)}function Rf(s,f){if(f){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=f;return}}s.textContent=f}var ep=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 s4(s,f,m){var b=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?b?s.setProperty(f,""):f==="float"?s.cssFloat="":s[f]="":b?s.setProperty(f,m):typeof m!="number"||m===0||ep.has(f)?f==="float"?s.cssFloat=m:s[f]=(""+m).trim():s[f]=m+"px"}function eE(s,f,m){if(f!=null&&typeof f!="object")throw Error(r(62));if(s=s.style,m!=null){for(var b in m)!m.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?s.setProperty(b,""):b==="float"?s.cssFloat="":s[b]="");for(var C in f)b=f[C],f.hasOwnProperty(C)&&m[C]!==b&&s4(s,C,b)}else for(var O in f)f.hasOwnProperty(O)&&s4(s,O,f[O])}function u4(s){if(s.indexOf("-")===-1)return!1;switch(s){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 RA=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"]]),_A=/^[\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 vc(s){return _A.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function Xi(){}var tp=null;function s1(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _f=null,cs=null;function c4(s){var f=Af(s);if(f&&(s=f.stateNode)){var m=s[_r]||null;e:switch(s=f.stateNode,f.type){case"input":if(o1(s,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=s;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Qo(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var b=m[f];if(b!==s&&b.form===s.form){var C=b[_r]||null;if(!C)throw Error(r(90));o1(b,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(f=0;f<m.length;f++)b=m[f],b.form===s.form&&o4(b)}break e;case"textarea":J6(s,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&us(s,!!m.multiple,f,!1)}}}var lh=!1;function np(s,f,m){if(lh)return s(f,m);lh=!0;try{var b=s(f);return b}finally{if(lh=!1,(_f!==null||cs!==null)&&(am(),_f&&(f=_f,s=cs,cs=_f=null,c4(f),s)))for(f=0;f<s.length;f++)c4(s[f])}}function sh(s,f){var m=s.stateNode;if(m===null)return null;var b=m[_r]||null;if(b===null)return null;m=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(m&&typeof m!="function")throw Error(r(231,f,typeof m));return m}var Wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f4=!1;if(Wr)try{var Df={};Object.defineProperty(Df,"passive",{get:function(){f4=!0}}),window.addEventListener("test",Df,Df),window.removeEventListener("test",Df,Df)}catch{f4=!1}var xu=null,u1=null,c1=null;function tE(){if(c1)return c1;var s,f=u1,m=f.length,b,C="value"in xu?xu.value:xu.textContent,O=C.length;for(s=0;s<m&&f[s]===C[s];s++);var $=m-s;for(b=1;b<=$&&f[m-b]===C[O-b];b++);return c1=C.slice(s,1<b?1-b:void 0)}function rp(s){var f=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&f===13&&(s=13)):s=f,s===10&&(s=13),32<=s||s===13?s:0}function f1(){return!0}function d4(){return!1}function Qa(s){function f(m,b,C,O,$){this._reactName=m,this._targetInst=C,this.type=b,this.nativeEvent=O,this.target=$,this.currentTarget=null;for(var ne in s)s.hasOwnProperty(ne)&&(m=s[ne],this[ne]=m?m(O):O[ne]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?f1:d4,this.isPropagationStopped=d4,this}return x(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=f1)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=f1)},persist:function(){},isPersistent:f1}),f}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ip=Qa(fs),uh=x({},fs,{view:0,detail:0}),nE=Qa(uh),h4,p4,ap,d1=x({},uh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ao,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==ap&&(ap&&s.type==="mousemove"?(h4=s.screenX-ap.screenX,p4=s.screenY-ap.screenY):p4=h4=0,ap=s),h4)},movementY:function(s){return"movementY"in s?s.movementY:p4}}),rE=Qa(d1),op=x({},d1,{dataTransfer:0}),iE=Qa(op),aE=x({},uh,{relatedTarget:0}),h1=Qa(aE),oE=x({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),m4=Qa(oE),lE=x({},fs,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Nf=Qa(lE),kf=x({},fs,{data:0}),Zo=Qa(kf),DA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g4={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"},ds={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sE(s){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(s):(s=ds[s])?!!f[s]:!1}function Ao(){return sE}var hs=x({},uh,{key:function(s){if(s.key){var f=DA[s.key]||s.key;if(f!=="Unidentified")return f}return s.type==="keypress"?(s=rp(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?g4[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ao,charCode:function(s){return s.type==="keypress"?rp(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?rp(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),p1=Qa(hs),m1=x({},d1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g1=Qa(m1),ps=x({},uh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ao}),NA=Qa(ps),uE=x({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),cE=Qa(uE),kA=x({},d1,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),y4=Qa(kA),zA=x({},fs,{newState:0,oldState:0}),fE=Qa(zA),v4=[9,13,27,32],ch=Wr&&"CompositionEvent"in window,bc=null;Wr&&"documentMode"in document&&(bc=document.documentMode);var b4=Wr&&"TextEvent"in window&&!bc,Wi=Wr&&(!ch||bc&&8<bc&&11>=bc),x4=" ",lp=!1;function xc(s,f){switch(s){case"keyup":return v4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var zf=!1;function dE(s,f){switch(s){case"compositionend":return y1(f);case"keypress":return f.which!==32?null:(lp=!0,x4);case"textInput":return s=f.data,s===x4&&lp?null:s;default:return null}}function hE(s,f){if(zf)return s==="compositionend"||!ch&&xc(s,f)?(s=tE(),c1=u1=xu=null,zf=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Wi&&f.locale!=="ko"?null:f.data;default:return null}}var IA={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 v1(s){var f=s&&s.nodeName&&s.nodeName.toLowerCase();return f==="input"?!!IA[s.type]:f==="textarea"}function ms(s,f,m,b){_f?cs?cs.push(b):cs=[b]:_f=b,f=Ty(f,"onChange"),0<f.length&&(m=new ip("onChange","change",null,m,b),s.push({event:m,listeners:f}))}var fh=null,If=null;function b1(s){Bx(s,0)}function gs(s){var f=ih(s);if(o4(f))return s}function x1(s,f){if(s==="change")return f}var S4=!1;if(Wr){var sp;if(Wr){var Ma="oninput"in document;if(!Ma){var ys=document.createElement("div");ys.setAttribute("oninput","return;"),Ma=typeof ys.oninput=="function"}sp=Ma}else sp=!1;S4=sp&&(!document.documentMode||9<document.documentMode)}function E4(){fh&&(fh.detachEvent("onpropertychange",S1),If=fh=null)}function S1(s){if(s.propertyName==="value"&&gs(If)){var f=[];ms(f,If,s,s1(s)),np(b1,f)}}function w4(s,f,m){s==="focusin"?(E4(),fh=f,If=m,fh.attachEvent("onpropertychange",S1)):s==="focusout"&&E4()}function pE(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return gs(If)}function mE(s,f){if(s==="click")return gs(f)}function Sc(s,f){if(s==="input"||s==="change")return gs(f)}function Lf(s,f){return s===f&&(s!==0||1/s===1/f)||s!==s&&f!==f}var Za=typeof Object.is=="function"?Object.is:Lf;function Ec(s,f){if(Za(s,f))return!0;if(typeof s!="object"||s===null||typeof f!="object"||f===null)return!1;var m=Object.keys(s),b=Object.keys(f);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var C=m[b];if(!Cn.call(f,C)||!Za(s[C],f[C]))return!1}return!0}function Su(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function T4(s,f){var m=Su(s);s=0;for(var b;m;){if(m.nodeType===3){if(b=s+m.textContent.length,s<=f&&b>=f)return{node:m,offset:f-s};s=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Su(m)}}function A4(s,f){return s&&f?s===f?!0:s&&s.nodeType===3?!1:f&&f.nodeType===3?A4(s,f.parentNode):"contains"in s?s.contains(f):s.compareDocumentPosition?!!(s.compareDocumentPosition(f)&16):!1:!1}function Vf(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var f=J0(s.document);f instanceof s.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)s=f.contentWindow;else break;f=J0(s.document)}return f}function Eu(s){var f=s&&s.nodeName&&s.nodeName.toLowerCase();return f&&(f==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||f==="textarea"||s.contentEditable==="true")}var C4=Wr&&"documentMode"in document&&11>=document.documentMode,vs=null,up=null,wc=null,bs=!1;function xs(s,f,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;bs||vs==null||vs!==J0(b)||(b=vs,"selectionStart"in b&&Eu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),wc&&Ec(wc,b)||(wc=b,b=Ty(up,"onSelect"),0<b.length&&(f=new ip("onSelect","select",null,f,m),s.push({event:f,listeners:b}),f.target=vs)))}function wu(s,f){var m={};return m[s.toLowerCase()]=f.toLowerCase(),m["Webkit"+s]="webkit"+f,m["Moz"+s]="moz"+f,m}var Tc={animationend:wu("Animation","AnimationEnd"),animationiteration:wu("Animation","AnimationIteration"),animationstart:wu("Animation","AnimationStart"),transitionrun:wu("Transition","TransitionRun"),transitionstart:wu("Transition","TransitionStart"),transitioncancel:wu("Transition","TransitionCancel"),transitionend:wu("Transition","TransitionEnd")},Ac={},cp={};Wr&&(cp=document.createElement("div").style,"AnimationEvent"in window||(delete Tc.animationend.animation,delete Tc.animationiteration.animation,delete Tc.animationstart.animation),"TransitionEvent"in window||delete Tc.transitionend.transition);function Co(s){if(Ac[s])return Ac[s];if(!Tc[s])return s;var f=Tc[s],m;for(m in f)if(f.hasOwnProperty(m)&&m in cp)return Ac[s]=f[m];return s}var Er=Co("animationend"),fp=Co("animationiteration"),O4=Co("animationstart"),M4=Co("transitionrun"),Bf=Co("transitionstart"),dp=Co("transitioncancel"),_l=Co("transitionend"),gE=new Map,Dl="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Dl.push("scrollEnd");function Ja(s,f){gE.set(s,f),To(f,[s])}var Cc=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},Ra=[],Li=0,_a=0;function Oo(){for(var s=Li,f=_a=Li=0;f<s;){var m=Ra[f];Ra[f++]=null;var b=Ra[f];Ra[f++]=null;var C=Ra[f];Ra[f++]=null;var O=Ra[f];if(Ra[f++]=null,b!==null&&C!==null){var $=b.pending;$===null?C.next=C:(C.next=$.next,$.next=C),b.pending=C}O!==0&&E1(m,C,O)}}function Mo(s,f,m,b){Ra[Li++]=s,Ra[Li++]=f,Ra[Li++]=m,Ra[Li++]=b,_a|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function Jo(s,f,m,b){return Mo(s,f,m,b),dh(s)}function ua(s,f){return Mo(s,null,null,f),dh(s)}function E1(s,f,m){s.lanes|=m;var b=s.alternate;b!==null&&(b.lanes|=m);for(var C=!1,O=s.return;O!==null;)O.childLanes|=m,b=O.alternate,b!==null&&(b.childLanes|=m),O.tag===22&&(s=O.stateNode,s===null||s._visibility&1||(C=!0)),s=O,O=O.return;return s.tag===3?(O=s.stateNode,C&&f!==null&&(C=31-gn(m),s=O.hiddenUpdates,b=s[C],b===null?s[C]=[f]:b.push(f),f.lane=m|536870912),O):null}function dh(s){if(50<sd)throw sd=0,fy=null,Error(r(185));for(var f=s.return;f!==null;)s=f,f=s.return;return s.tag===3?s.stateNode:null}var Pf={};function Ss(s,f,m,b){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function eo(s,f,m,b){return new Ss(s,f,m,b)}function el(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Ro(s,f){var m=s.alternate;return m===null?(m=eo(s.tag,f,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m.alternate=s,s.alternate=m):(m.pendingProps=f,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=s.flags&65011712,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,f=s.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m.refCleanup=s.refCleanup,m}function yE(s,f){s.flags&=65011714;var m=s.alternate;return m===null?(s.childLanes=0,s.lanes=f,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=m.childLanes,s.lanes=m.lanes,s.child=m.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=m.memoizedProps,s.memoizedState=m.memoizedState,s.updateQueue=m.updateQueue,s.type=m.type,f=m.dependencies,s.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),s}function hp(s,f,m,b,C,O){var $=0;if(b=s,typeof s=="function")el(s)&&($=1);else if(typeof s=="string")$=eS(s,m,Me.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case ce:return s=eo(31,m,f,C),s.elementType=ce,s.lanes=O,s;case R:return jf(m.children,C,O,f);case _:$=8,C|=24;break;case D:return s=eo(12,m,f,C|2),s.elementType=D,s.lanes=O,s;case I:return s=eo(13,m,f,C),s.elementType=I,s.lanes=O,s;case H:return s=eo(19,m,f,C),s.elementType=H,s.lanes=O,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case V:$=10;break e;case z:$=9;break e;case P:$=11;break e;case X:$=14;break e;case se:$=16,b=null;break e}$=29,m=Error(r(130,s===null?"null":typeof s,"")),b=null}return f=eo($,m,f,C),f.elementType=s,f.type=b,f.lanes=O,f}function jf(s,f,m,b){return s=eo(7,s,b,f),s.lanes=m,s}function pp(s,f,m){return s=eo(6,s,null,f),s.lanes=m,s}function mp(s){var f=eo(18,null,null,0);return f.stateNode=s,f}function w1(s,f,m){return f=eo(4,s.children!==null?s.children:[],s.key,f),f.lanes=m,f.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},f}var R4=new WeakMap;function _o(s,f){if(typeof s=="object"&&s!==null){var m=R4.get(s);return m!==void 0?m:(f={value:s,source:f,stack:$t(f)},R4.set(s,f),f)}return{value:s,source:f,stack:$t(f)}}var $f=[],Do=0,gp=null,hh=0,dr=[],to=0,Nl=null,No=1,no="";function Es(s,f){$f[Do++]=hh,$f[Do++]=gp,gp=s,hh=f}function yp(s,f,m){dr[to++]=No,dr[to++]=no,dr[to++]=Nl,Nl=s;var b=No;s=no;var C=32-gn(b)-1;b&=~(1<<C),m+=1;var O=32-gn(f)+C;if(30<O){var $=C-C%5;O=(b&(1<<$)-1).toString(32),b>>=$,C-=$,No=1<<32-gn(f)+C|m<<C|b,no=O+s}else No=1<<O|m<<C|b,no=s}function T1(s){s.return!==null&&(Es(s,1),yp(s,1,0))}function ph(s){for(;s===gp;)gp=$f[--Do],$f[Do]=null,hh=$f[--Do],$f[Do]=null;for(;s===Nl;)Nl=dr[--to],dr[to]=null,no=dr[--to],dr[to]=null,No=dr[--to],dr[to]=null}function _4(s,f){dr[to++]=No,dr[to++]=no,dr[to++]=Nl,No=f.id,no=f.overflow,Nl=s}var vi=null,wr=null,In=!1,ws=null,ro=!1,Ts=Error(r(519));function Da(s){var f=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bp(_o(f,s)),Ts}function mh(s){var f=s.stateNode,m=s.type,b=s.memoizedProps;switch(f[yi]=s,f[_r]=b,m){case"dialog":Nn("cancel",f),Nn("close",f);break;case"iframe":case"object":case"embed":Nn("load",f);break;case"video":case"audio":for(m=0;m<fd.length;m++)Nn(fd[m],f);break;case"source":Nn("error",f);break;case"img":case"image":case"link":Nn("error",f),Nn("load",f);break;case"details":Nn("toggle",f);break;case"input":Nn("invalid",f),l1(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"select":Nn("invalid",f);break;case"textarea":Nn("invalid",f),l4(f,b.value,b.defaultValue,b.children)}m=b.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||b.suppressHydrationWarning===!0||Ux(f.textContent,m)?(b.popover!=null&&(Nn("beforetoggle",f),Nn("toggle",f)),b.onScroll!=null&&Nn("scroll",f),b.onScrollEnd!=null&&Nn("scrollend",f),b.onClick!=null&&(f.onclick=Xi),f=!0):f=!1,f||Da(s,!0)}function vp(s){for(vi=s.return;vi;)switch(vi.tag){case 5:case 31:case 13:ro=!1;return;case 27:case 3:ro=!0;return;default:vi=vi.return}}function As(s){if(s!==vi)return!1;if(!In)return vp(s),In=!0,!1;var f=s.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=s.type,m=!(m!=="form"&&m!=="button")||My(s.type,s.memoizedProps)),m=!m),m&&wr&&Da(s),vp(s),f===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));wr=_y(s)}else if(f===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));wr=_y(s)}else f===27?(f=wr,qs(s.type)?(s=Gh,Gh=null,wr=s):wr=f):wr=vi?na(s.stateNode.nextSibling):null;return!0}function kl(){wr=vi=null,In=!1}function A1(){var s=ws;return s!==null&&(co===null?co=s:co.push.apply(co,s),ws=null),s}function bp(s){ws===null?ws=[s]:ws.push(s)}var C1=F(null),Oc=null,zl=null;function Cs(s,f,m){Y(C1,f._currentValue),f._currentValue=m}function ca(s){s._currentValue=C1.current,te(C1)}function xp(s,f,m){for(;s!==null;){var b=s.alternate;if((s.childLanes&f)!==f?(s.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),s===m)break;s=s.return}}function O1(s,f,m,b){var C=s.child;for(C!==null&&(C.return=s);C!==null;){var O=C.dependencies;if(O!==null){var $=C.child;O=O.firstContext;e:for(;O!==null;){var ne=O;O=C;for(var ve=0;ve<f.length;ve++)if(ne.context===f[ve]){O.lanes|=m,ne=O.alternate,ne!==null&&(ne.lanes|=m),xp(O.return,m,s),b||($=null);break e}O=ne.next}}else if(C.tag===18){if($=C.return,$===null)throw Error(r(341));$.lanes|=m,O=$.alternate,O!==null&&(O.lanes|=m),xp($,m,s),$=null}else $=C.child;if($!==null)$.return=C;else for($=C;$!==null;){if($===s){$=null;break}if(C=$.sibling,C!==null){C.return=$.return,$=C;break}$=$.return}C=$}}function ko(s,f,m,b){s=null;for(var C=f,O=!1;C!==null;){if(!O){if((C.flags&524288)!==0)O=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var $=C.alternate;if($===null)throw Error(r(387));if($=$.memoizedProps,$!==null){var ne=C.type;Za(C.pendingProps.value,$.value)||(s!==null?s.push(ne):s=[ne])}}else if(C===Be.current){if($=C.alternate,$===null)throw Error(r(387));$.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(s!==null?s.push(ti):s=[ti])}C=C.return}s!==null&&O1(f,s,m,b),f.flags|=262144}function fa(s){for(s=s.firstContext;s!==null;){if(!Za(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Os(s){Oc=s,zl=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function qt(s){return Uf(Oc,s)}function lt(s,f){return Oc===null&&Os(s),Uf(s,f)}function Uf(s,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},zl===null){if(s===null)throw Error(r(308));zl=f,s.dependencies={lanes:0,firstContext:f},s.flags|=524288}else zl=zl.next=f;return m}var M1=typeof AbortController<"u"?AbortController:function(){var s=[],f=this.signal={aborted:!1,addEventListener:function(m,b){s.push(b)}};this.abort=function(){f.aborted=!0,s.forEach(function(m){return m()})}},Kr=e.unstable_scheduleCallback,D4=e.unstable_NormalPriority,Qr={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function R1(){return{controller:new M1,data:new Map,refCount:0}}function Hf(s){s.refCount--,s.refCount===0&&Kr(D4,function(){s.controller.abort()})}var Sp=null,Ep=0,Mc=0,Rc=null;function Na(s,f){if(Sp===null){var m=Sp=[];Ep=0,Mc=ud(),Rc={status:"pending",value:void 0,then:function(b){m.push(b)}}}return Ep++,f.then(Qn,Qn),f}function Qn(){if(--Ep===0&&Sp!==null){Rc!==null&&(Rc.status="fulfilled");var s=Sp;Sp=null,Mc=0,Rc=null;for(var f=0;f<s.length;f++)(0,s[f])()}}function _1(s,f){var m=[],b={status:"pending",value:null,reason:null,then:function(C){m.push(C)}};return s.then(function(){b.status="fulfilled",b.value=f;for(var C=0;C<m.length;C++)(0,m[C])(f)},function(C){for(b.status="rejected",b.reason=C,C=0;C<m.length;C++)(0,m[C])(void 0)}),b}var gh=W.S;W.S=function(s,f){Iu=tn(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Na(s,f),gh!==null&&gh(s,f)};var io=F(null);function Tu(){var s=io.current;return s!==null?s:hr.pooledCache}function ao(s,f){f===null?Y(io,io.current):Y(io,f.pool)}function D1(){var s=Tu();return s===null?null:{parent:Qr._currentValue,pool:s}}var Il=Error(r(460)),wp=Error(r(474)),_c=Error(r(542)),yh={then:function(){}};function Tp(s){return s=s.status,s==="fulfilled"||s==="rejected"}function N4(s,f,m){switch(m=s[m],m===void 0?s.push(f):m!==f&&(f.then(Xi,Xi),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw s=f.reason,z4(s),s;default:if(typeof f.status=="string")f.then(Xi,Xi);else{if(s=hr,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=f,s.status="pending",s.then(function(b){if(f.status==="pending"){var C=f;C.status="fulfilled",C.value=b}},function(b){if(f.status==="pending"){var C=f;C.status="rejected",C.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw s=f.reason,z4(s),s}throw Nc=f,Il}}function Dc(s){try{var f=s._init;return f(s._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Nc=m,Il):m}}var Nc=null;function k4(){if(Nc===null)throw Error(r(459));var s=Nc;return Nc=null,s}function z4(s){if(s===Il||s===_c)throw Error(r(483))}var kc=null,qf=0;function vh(s){var f=qf;return qf+=1,kc===null&&(kc=[]),N4(kc,s,f)}function bh(s,f){f=f.props.ref,s.ref=f!==void 0?f:null}function Ap(s,f){throw f.$$typeof===T?Error(r(525)):(s=Object.prototype.toString.call(f),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":s)))}function I4(s){function f(De,Te){if(s){var Ne=De.deletions;Ne===null?(De.deletions=[Te],De.flags|=16):Ne.push(Te)}}function m(De,Te){if(!s)return null;for(;Te!==null;)f(De,Te),Te=Te.sibling;return null}function b(De){for(var Te=new Map;De!==null;)De.key!==null?Te.set(De.key,De):Te.set(De.index,De),De=De.sibling;return Te}function C(De,Te){return De=Ro(De,Te),De.index=0,De.sibling=null,De}function O(De,Te,Ne){return De.index=Ne,s?(Ne=De.alternate,Ne!==null?(Ne=Ne.index,Ne<Te?(De.flags|=67108866,Te):Ne):(De.flags|=67108866,Te)):(De.flags|=1048576,Te)}function $(De){return s&&De.alternate===null&&(De.flags|=67108866),De}function ne(De,Te,Ne,Fe){return Te===null||Te.tag!==6?(Te=pp(Ne,De.mode,Fe),Te.return=De,Te):(Te=C(Te,Ne),Te.return=De,Te)}function ve(De,Te,Ne,Fe){var Ut=Ne.type;return Ut===R?He(De,Te,Ne.props.children,Fe,Ne.key):Te!==null&&(Te.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===se&&Dc(Ut)===Te.type)?(Te=C(Te,Ne.props),bh(Te,Ne),Te.return=De,Te):(Te=hp(Ne.type,Ne.key,Ne.props,null,De.mode,Fe),bh(Te,Ne),Te.return=De,Te)}function ke(De,Te,Ne,Fe){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==Ne.containerInfo||Te.stateNode.implementation!==Ne.implementation?(Te=w1(Ne,De.mode,Fe),Te.return=De,Te):(Te=C(Te,Ne.children||[]),Te.return=De,Te)}function He(De,Te,Ne,Fe,Ut){return Te===null||Te.tag!==7?(Te=jf(Ne,De.mode,Fe,Ut),Te.return=De,Te):(Te=C(Te,Ne),Te.return=De,Te)}function Qe(De,Te,Ne){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=pp(""+Te,De.mode,Ne),Te.return=De,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case E:return Ne=hp(Te.type,Te.key,Te.props,null,De.mode,Ne),bh(Ne,Te),Ne.return=De,Ne;case A:return Te=w1(Te,De.mode,Ne),Te.return=De,Te;case se:return Te=Dc(Te),Qe(De,Te,Ne)}if(ee(Te)||U(Te))return Te=jf(Te,De.mode,Ne,null),Te.return=De,Te;if(typeof Te.then=="function")return Qe(De,vh(Te),Ne);if(Te.$$typeof===V)return Qe(De,lt(De,Te),Ne);Ap(De,Te)}return null}function ze(De,Te,Ne,Fe){var Ut=Te!==null?Te.key:null;if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return Ut!==null?null:ne(De,Te,""+Ne,Fe);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case E:return Ne.key===Ut?ve(De,Te,Ne,Fe):null;case A:return Ne.key===Ut?ke(De,Te,Ne,Fe):null;case se:return Ne=Dc(Ne),ze(De,Te,Ne,Fe)}if(ee(Ne)||U(Ne))return Ut!==null?null:He(De,Te,Ne,Fe,null);if(typeof Ne.then=="function")return ze(De,Te,vh(Ne),Fe);if(Ne.$$typeof===V)return ze(De,Te,lt(De,Ne),Fe);Ap(De,Ne)}return null}function je(De,Te,Ne,Fe,Ut){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return De=De.get(Ne)||null,ne(Te,De,""+Fe,Ut);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case E:return De=De.get(Fe.key===null?Ne:Fe.key)||null,ve(Te,De,Fe,Ut);case A:return De=De.get(Fe.key===null?Ne:Fe.key)||null,ke(Te,De,Fe,Ut);case se:return Fe=Dc(Fe),je(De,Te,Ne,Fe,Ut)}if(ee(Fe)||U(Fe))return De=De.get(Ne)||null,He(Te,De,Fe,Ut,null);if(typeof Fe.then=="function")return je(De,Te,Ne,vh(Fe),Ut);if(Fe.$$typeof===V)return je(De,Te,Ne,lt(Te,Fe),Ut);Ap(Te,Fe)}return null}function kt(De,Te,Ne,Fe){for(var Ut=null,Yn=null,It=Te,yn=Te=0,On=null;It!==null&&yn<Ne.length;yn++){It.index>yn?(On=It,It=null):On=It.sibling;var kn=ze(De,It,Ne[yn],Fe);if(kn===null){It===null&&(It=On);break}s&&It&&kn.alternate===null&&f(De,It),Te=O(kn,Te,yn),Yn===null?Ut=kn:Yn.sibling=kn,Yn=kn,It=On}if(yn===Ne.length)return m(De,It),In&&Es(De,yn),Ut;if(It===null){for(;yn<Ne.length;yn++)It=Qe(De,Ne[yn],Fe),It!==null&&(Te=O(It,Te,yn),Yn===null?Ut=It:Yn.sibling=It,Yn=It);return In&&Es(De,yn),Ut}for(It=b(It);yn<Ne.length;yn++)On=je(It,De,yn,Ne[yn],Fe),On!==null&&(s&&On.alternate!==null&&It.delete(On.key===null?yn:On.key),Te=O(On,Te,yn),Yn===null?Ut=On:Yn.sibling=On,Yn=On);return s&&It.forEach(function(Gc){return f(De,Gc)}),In&&Es(De,yn),Ut}function Zt(De,Te,Ne,Fe){if(Ne==null)throw Error(r(151));for(var Ut=null,Yn=null,It=Te,yn=Te=0,On=null,kn=Ne.next();It!==null&&!kn.done;yn++,kn=Ne.next()){It.index>yn?(On=It,It=null):On=It.sibling;var Gc=ze(De,It,kn.value,Fe);if(Gc===null){It===null&&(It=On);break}s&&It&&Gc.alternate===null&&f(De,It),Te=O(Gc,Te,yn),Yn===null?Ut=Gc:Yn.sibling=Gc,Yn=Gc,It=On}if(kn.done)return m(De,It),In&&Es(De,yn),Ut;if(It===null){for(;!kn.done;yn++,kn=Ne.next())kn=Qe(De,kn.value,Fe),kn!==null&&(Te=O(kn,Te,yn),Yn===null?Ut=kn:Yn.sibling=kn,Yn=kn);return In&&Es(De,yn),Ut}for(It=b(It);!kn.done;yn++,kn=Ne.next())kn=je(It,De,yn,kn.value,Fe),kn!==null&&(s&&kn.alternate!==null&&It.delete(kn.key===null?yn:kn.key),Te=O(kn,Te,yn),Yn===null?Ut=kn:Yn.sibling=kn,Yn=kn);return s&&It.forEach(function(Gy){return f(De,Gy)}),In&&Es(De,yn),Ut}function pr(De,Te,Ne,Fe){if(typeof Ne=="object"&&Ne!==null&&Ne.type===R&&Ne.key===null&&(Ne=Ne.props.children),typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case E:e:{for(var Ut=Ne.key;Te!==null;){if(Te.key===Ut){if(Ut=Ne.type,Ut===R){if(Te.tag===7){m(De,Te.sibling),Fe=C(Te,Ne.props.children),Fe.return=De,De=Fe;break e}}else if(Te.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===se&&Dc(Ut)===Te.type){m(De,Te.sibling),Fe=C(Te,Ne.props),bh(Fe,Ne),Fe.return=De,De=Fe;break e}m(De,Te);break}else f(De,Te);Te=Te.sibling}Ne.type===R?(Fe=jf(Ne.props.children,De.mode,Fe,Ne.key),Fe.return=De,De=Fe):(Fe=hp(Ne.type,Ne.key,Ne.props,null,De.mode,Fe),bh(Fe,Ne),Fe.return=De,De=Fe)}return $(De);case A:e:{for(Ut=Ne.key;Te!==null;){if(Te.key===Ut)if(Te.tag===4&&Te.stateNode.containerInfo===Ne.containerInfo&&Te.stateNode.implementation===Ne.implementation){m(De,Te.sibling),Fe=C(Te,Ne.children||[]),Fe.return=De,De=Fe;break e}else{m(De,Te);break}else f(De,Te);Te=Te.sibling}Fe=w1(Ne,De.mode,Fe),Fe.return=De,De=Fe}return $(De);case se:return Ne=Dc(Ne),pr(De,Te,Ne,Fe)}if(ee(Ne))return kt(De,Te,Ne,Fe);if(U(Ne)){if(Ut=U(Ne),typeof Ut!="function")throw Error(r(150));return Ne=Ut.call(Ne),Zt(De,Te,Ne,Fe)}if(typeof Ne.then=="function")return pr(De,Te,vh(Ne),Fe);if(Ne.$$typeof===V)return pr(De,Te,lt(De,Ne),Fe);Ap(De,Ne)}return typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint"?(Ne=""+Ne,Te!==null&&Te.tag===6?(m(De,Te.sibling),Fe=C(Te,Ne),Fe.return=De,De=Fe):(m(De,Te),Fe=pp(Ne,De.mode,Fe),Fe.return=De,De=Fe),$(De)):m(De,Te)}return function(De,Te,Ne,Fe){try{qf=0;var Ut=pr(De,Te,Ne,Fe);return kc=null,Ut}catch(It){if(It===Il||It===_c)throw It;var Yn=eo(29,It,null,De.mode);return Yn.lanes=Fe,Yn.return=De,Yn}finally{}}}var Gf=I4(!0),L4=I4(!1),Au=!1;function N1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cp(s,f){s=s.updateQueue,f.updateQueue===s&&(f.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Cu(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ou(s,f,m){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(Fn&2)!==0){var C=b.pending;return C===null?f.next=f:(f.next=C.next,C.next=f),b.pending=f,f=dh(s),E1(s,null,m),f}return Mo(s,b,f,m),dh(s)}function Ms(s,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var b=f.lanes;b&=s.pendingLanes,m|=b,f.lanes=m,Y0(s,m)}}function xh(s,f){var m=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var C=null,O=null;if(m=m.firstBaseUpdate,m!==null){do{var $={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?C=O=$:O=O.next=$,m=m.next}while(m!==null);O===null?C=O=f:O=O.next=f}else C=O=f;m={baseState:b.baseState,firstBaseUpdate:C,lastBaseUpdate:O,shared:b.shared,callbacks:b.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=f:s.next=f,m.lastBaseUpdate=f}var k1=!1;function Op(){if(k1){var s=Rc;if(s!==null)throw s}}function zc(s,f,m,b){k1=!1;var C=s.updateQueue;Au=!1;var O=C.firstBaseUpdate,$=C.lastBaseUpdate,ne=C.shared.pending;if(ne!==null){C.shared.pending=null;var ve=ne,ke=ve.next;ve.next=null,$===null?O=ke:$.next=ke,$=ve;var He=s.alternate;He!==null&&(He=He.updateQueue,ne=He.lastBaseUpdate,ne!==$&&(ne===null?He.firstBaseUpdate=ke:ne.next=ke,He.lastBaseUpdate=ve))}if(O!==null){var Qe=C.baseState;$=0,He=ke=ve=null,ne=O;do{var ze=ne.lane&-536870913,je=ze!==ne.lane;if(je?(Ln&ze)===ze:(b&ze)===ze){ze!==0&&ze===Mc&&(k1=!0),He!==null&&(He=He.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var kt=s,Zt=ne;ze=f;var pr=m;switch(Zt.tag){case 1:if(kt=Zt.payload,typeof kt=="function"){Qe=kt.call(pr,Qe,ze);break e}Qe=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=Zt.payload,ze=typeof kt=="function"?kt.call(pr,Qe,ze):kt,ze==null)break e;Qe=x({},Qe,ze);break e;case 2:Au=!0}}ze=ne.callback,ze!==null&&(s.flags|=64,je&&(s.flags|=8192),je=C.callbacks,je===null?C.callbacks=[ze]:je.push(ze))}else je={lane:ze,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},He===null?(ke=He=je,ve=Qe):He=He.next=je,$|=ze;if(ne=ne.next,ne===null){if(ne=C.shared.pending,ne===null)break;je=ne,ne=je.next,je.next=null,C.lastBaseUpdate=je,C.shared.pending=null}}while(!0);He===null&&(ve=Qe),C.baseState=ve,C.firstBaseUpdate=ke,C.lastBaseUpdate=He,O===null&&(C.shared.lanes=0),ll|=$,s.lanes=$,s.memoizedState=Qe}}function Ff(s,f){if(typeof s!="function")throw Error(r(191,s));s.call(f)}function z1(s,f){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;s<m.length;s++)Ff(m[s],f)}var tl=F(null),Ki=F(0);function Mp(s,f){s=$s,Y(Ki,s),Y(tl,f),$s=s|f.baseLanes}function V4(){Y(Ki,$s),Y(tl,tl.current)}function Rp(){$s=Ki.current,te(tl),te(Ki)}var da=F(null),oo=null;function Mu(s){var f=s.alternate;Y(jr,jr.current&1),Y(da,s),oo===null&&(f===null||tl.current!==null||f.memoizedState!==null)&&(oo=s)}function _p(s){Y(jr,jr.current),Y(da,s),oo===null&&(oo=s)}function Dp(s){s.tag===22?(Y(jr,jr.current),Y(da,s),oo===null&&(oo=s)):Rs()}function Rs(){Y(jr,jr.current),Y(da,da.current)}function ha(s){te(da),oo===s&&(oo=null),te(jr)}var jr=F(0);function Yf(s){for(var f=s;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Xx(m)||ul(m)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break;for(;f.sibling===null;){if(f.return===null||f.return===s)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var Ll=0,pn=null,ir=null,Zr=null,Np=!1,Ru=!1,Ic=!1,Sh=0,Eh=0,Xf=null,B4=0;function $r(){throw Error(r(321))}function I1(s,f){if(f===null)return!1;for(var m=0;m<f.length&&m<s.length;m++)if(!Za(s[m],f[m]))return!1;return!0}function _u(s,f,m,b,C,O){return Ll=O,pn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,W.H=s===null||s.memoizedState===null?TE:ex,Ic=!1,O=m(b,C),Ic=!1,Ru&&(O=V1(f,m,b,C)),L1(s),O}function L1(s){W.H=Mh;var f=ir!==null&&ir.next!==null;if(Ll=0,Zr=ir=pn=null,Np=!1,Eh=0,Xf=null,f)throw Error(r(300));s===null||ui||(s=s.dependencies,s!==null&&fa(s)&&(ui=!0))}function V1(s,f,m,b){pn=s;var C=0;do{if(Ru&&(Xf=null),Eh=0,Ru=!1,25<=C)throw Error(r(301));if(C+=1,Zr=ir=null,s.updateQueue!=null){var O=s.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}W.H=tx,O=f(m,b)}while(Ru);return O}function LA(){var s=W.H,f=s.useState()[0];return f=typeof f.then=="function"?wh(f):f,s=s.useState()[0],(ir!==null?ir.memoizedState:null)!==s&&(pn.flags|=1024),f}function P4(){var s=Sh!==0;return Sh=0,s}function B1(s,f,m){f.updateQueue=s.updateQueue,f.flags&=-2053,s.lanes&=~m}function Wf(s){if(Np){for(s=s.memoizedState;s!==null;){var f=s.queue;f!==null&&(f.pending=null),s=s.next}Np=!1}Ll=0,Zr=ir=pn=null,Ru=!1,Eh=Sh=0,Xf=null}function Qi(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zr===null?pn.memoizedState=Zr=s:Zr=Zr.next=s,Zr}function zr(){if(ir===null){var s=pn.alternate;s=s!==null?s.memoizedState:null}else s=ir.next;var f=Zr===null?pn.memoizedState:Zr.next;if(f!==null)Zr=f,ir=s;else{if(s===null)throw pn.alternate===null?Error(r(467)):Error(r(310));ir=s,s={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},Zr===null?pn.memoizedState=Zr=s:Zr=Zr.next=s}return Zr}function kp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wh(s){var f=Eh;return Eh+=1,Xf===null&&(Xf=[]),s=N4(Xf,s,f),f=pn,(Zr===null?f.memoizedState:Zr.next)===null&&(f=f.alternate,W.H=f===null||f.memoizedState===null?TE:ex),s}function Th(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return wh(s);if(s.$$typeof===V)return qt(s)}throw Error(r(438,String(s)))}function zp(s){var f=null,m=pn.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var b=pn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(C){return C.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=kp(),pn.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(s),b=0;b<s;b++)m[b]=ie;return f.index++,m}function _s(s,f){return typeof f=="function"?f(s):f}function Ip(s){var f=zr();return Du(f,ir,s)}function Du(s,f,m){var b=s.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=m;var C=s.baseQueue,O=b.pending;if(O!==null){if(C!==null){var $=C.next;C.next=O.next,O.next=$}f.baseQueue=C=O,b.pending=null}if(O=s.baseState,C===null)s.memoizedState=O;else{f=C.next;var ne=$=null,ve=null,ke=f,He=!1;do{var Qe=ke.lane&-536870913;if(Qe!==ke.lane?(Ln&Qe)===Qe:(Ll&Qe)===Qe){var ze=ke.revertLane;if(ze===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),Qe===Mc&&(He=!0);else if((Ll&ze)===ze){ke=ke.next,ze===Mc&&(He=!0);continue}else Qe={lane:0,revertLane:ke.revertLane,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},ve===null?(ne=ve=Qe,$=O):ve=ve.next=Qe,pn.lanes|=ze,ll|=ze;Qe=ke.action,Ic&&m(O,Qe),O=ke.hasEagerState?ke.eagerState:m(O,Qe)}else ze={lane:Qe,revertLane:ke.revertLane,gesture:ke.gesture,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},ve===null?(ne=ve=ze,$=O):ve=ve.next=ze,pn.lanes|=Qe,ll|=Qe;ke=ke.next}while(ke!==null&&ke!==f);if(ve===null?$=O:ve.next=ne,!Za(O,s.memoizedState)&&(ui=!0,He&&(m=Rc,m!==null)))throw m;s.memoizedState=O,s.baseState=$,s.baseQueue=ve,b.lastRenderedState=O}return C===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function P1(s){var f=zr(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=s;var b=m.dispatch,C=m.pending,O=f.memoizedState;if(C!==null){m.pending=null;var $=C=C.next;do O=s(O,$.action),$=$.next;while($!==C);Za(O,f.memoizedState)||(ui=!0),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),m.lastRenderedState=O}return[O,b]}function j4(s,f,m){var b=pn,C=zr(),O=In;if(O){if(m===void 0)throw Error(r(407));m=m()}else m=f();var $=!Za((ir||C).memoizedState,m);if($&&(C.memoizedState=m,ui=!0),C=C.queue,jp(U4.bind(null,b,C,s),[s]),C.getSnapshot!==f||$||Zr!==null&&Zr.memoizedState.tag&1){if(b.flags|=2048,Kf(9,{destroy:void 0},Lp.bind(null,b,C,m,f),null),hr===null)throw Error(r(349));O||(Ll&127)!==0||$4(b,f,m)}return m}function $4(s,f,m){s.flags|=16384,s={getSnapshot:f,value:m},f=pn.updateQueue,f===null?(f=kp(),pn.updateQueue=f,f.stores=[s]):(m=f.stores,m===null?f.stores=[s]:m.push(s))}function Lp(s,f,m,b){f.value=m,f.getSnapshot=b,j1(f)&&$1(s)}function U4(s,f,m){return m(function(){j1(f)&&$1(s)})}function j1(s){var f=s.getSnapshot;s=s.value;try{var m=f();return!Za(s,m)}catch{return!0}}function $1(s){var f=ua(s,2);f!==null&&ho(f,s,2)}function Vp(s){var f=Qi();if(typeof s=="function"){var m=s;if(s=m(),Ic){jn(!0);try{m()}finally{jn(!1)}}}return f.memoizedState=f.baseState=s,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_s,lastRenderedState:s},f}function vE(s,f,m,b){return s.baseState=m,Du(s,ir,typeof b=="function"?b:_s)}function Zi(s,f,m,b,C){if(Nu(s))throw Error(r(485));if(s=f.action,s!==null){var O={payload:C,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function($){O.listeners.push($)}};W.T!==null?m(!0):O.isTransition=!1,b(O),m=f.pending,m===null?(O.next=f.pending=O,H4(f,O)):(O.next=m.next,f.pending=m.next=O)}}function H4(s,f){var m=f.action,b=f.payload,C=s.state;if(f.isTransition){var O=W.T,$={};W.T=$;try{var ne=m(C,b),ve=W.S;ve!==null&&ve($,ne),q4(s,f,ne)}catch(ke){U1(s,f,ke)}finally{O!==null&&$.types!==null&&(O.types=$.types),W.T=O}}else try{O=m(C,b),q4(s,f,O)}catch(ke){U1(s,f,ke)}}function q4(s,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(b){G4(s,f,b)},function(b){return U1(s,f,b)}):G4(s,f,m)}function G4(s,f,m){f.status="fulfilled",f.value=m,Ah(f),s.state=m,f=s.pending,f!==null&&(m=f.next,m===f?s.pending=null:(m=m.next,f.next=m,H4(s,m)))}function U1(s,f,m){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=m,Ah(f),f=f.next;while(f!==b)}s.action=null}function Ah(s){s=s.listeners;for(var f=0;f<s.length;f++)(0,s[f])()}function F4(s,f){return f}function Bp(s,f){if(In){var m=hr.formState;if(m!==null){e:{var b=pn;if(In){if(wr){t:{for(var C=wr,O=ro;C.nodeType!==8;){if(!O){C=null;break t}if(C=na(C.nextSibling),C===null){C=null;break t}}O=C.data,C=O==="F!"||O==="F"?C:null}if(C){wr=na(C.nextSibling),b=C.data==="F!";break e}}Da(b)}b=!1}b&&(f=m[0])}}return m=Qi(),m.memoizedState=m.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:F4,lastRenderedState:f},m.queue=b,m=Z4.bind(null,pn,b),b.dispatch=m,b=Vp(!1),O=Zf.bind(null,pn,!1,b.queue),b=Qi(),C={state:f,dispatch:null,action:s,pending:null},b.queue=C,m=Zi.bind(null,pn,C,O,m),C.dispatch=m,b.memoizedState=s,[f,m,!1]}function Y4(s){var f=zr();return bE(f,ir,s)}function bE(s,f,m){if(f=Du(s,f,F4)[0],s=Ip(_s)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=wh(f)}catch($){throw $===Il?_c:$}else b=f;f=zr();var C=f.queue,O=C.dispatch;return m!==f.memoizedState&&(pn.flags|=2048,Kf(9,{destroy:void 0},H1.bind(null,C,m),null)),[b,O,s]}function H1(s,f){s.action=f}function q1(s){var f=zr(),m=ir;if(m!==null)return bE(f,m,s);zr(),f=f.memoizedState,m=zr();var b=m.queue.dispatch;return m.memoizedState=s,[f,b,!1]}function Kf(s,f,m,b){return s={tag:s,create:m,deps:b,inst:f,next:null},f=pn.updateQueue,f===null&&(f=kp(),pn.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=s.next=s:(b=m.next,m.next=s,s.next=b,f.lastEffect=s),s}function X4(){return zr().memoizedState}function Pp(s,f,m,b){var C=Qi();pn.flags|=s,C.memoizedState=Kf(1|f,{destroy:void 0},m,b===void 0?null:b)}function Ch(s,f,m,b){var C=zr();b=b===void 0?null:b;var O=C.memoizedState.inst;ir!==null&&b!==null&&I1(b,ir.memoizedState.deps)?C.memoizedState=Kf(f,O,m,b):(pn.flags|=s,C.memoizedState=Kf(1|f,O,m,b))}function G1(s,f){Pp(8390656,8,s,f)}function jp(s,f){Ch(2048,8,s,f)}function xE(s){pn.flags|=4;var f=pn.updateQueue;if(f===null)f=kp(),pn.updateQueue=f,f.events=[s];else{var m=f.events;m===null?f.events=[s]:m.push(s)}}function F1(s){var f=zr().memoizedState;return xE({ref:f,nextImpl:s}),function(){if((Fn&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}function $p(s,f){return Ch(4,2,s,f)}function Y1(s,f){return Ch(4,4,s,f)}function W4(s,f){if(typeof f=="function"){s=s();var m=f(s);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return s=s(),f.current=s,function(){f.current=null}}function X1(s,f,m){m=m!=null?m.concat([s]):null,Ch(4,4,W4.bind(null,f,s),m)}function W1(){}function Ds(s,f){var m=zr();f=f===void 0?null:f;var b=m.memoizedState;return f!==null&&I1(f,b[1])?b[0]:(m.memoizedState=[s,f],s)}function K1(s,f){var m=zr();f=f===void 0?null:f;var b=m.memoizedState;if(f!==null&&I1(f,b[1]))return b[0];if(b=s(),Ic){jn(!0);try{s()}finally{jn(!1)}}return m.memoizedState=[b,f],b}function K4(s,f,m){return m===void 0||(Ll&1073741824)!==0&&(Ln&261930)===0?s.memoizedState=f:(s.memoizedState=m,s=Mx(),pn.lanes|=s,ll|=s,m)}function Q1(s,f,m,b){return Za(m,f)?m:tl.current!==null?(s=K4(s,m,b),Za(s,f)||(ui=!0),s):(Ll&42)===0||(Ll&1073741824)!==0&&(Ln&261930)===0?(ui=!0,s.memoizedState=m):(s=Mx(),pn.lanes|=s,ll|=s,f)}function Ns(s,f,m,b,C){var O=oe.p;oe.p=O!==0&&8>O?O:8;var $=W.T,ne={};W.T=ne,Zf(s,!1,f,m);try{var ve=C(),ke=W.S;if(ke!==null&&ke(ne,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var He=_1(ve,b);Qf(s,f,He,Va(s))}else Qf(s,f,b,Va(s))}catch(Qe){Qf(s,f,{then:function(){},status:"rejected",reason:Qe},Va())}finally{oe.p=O,$!==null&&ne.types!==null&&($.types=ne.types),W.T=$}}function Q4(){}function Z1(s,f,m,b){if(s.tag!==5)throw Error(r(476));var C=Up(s).queue;Ns(s,C,f,he,m===null?Q4:function(){return Oh(s),m(b)})}function Up(s){var f=s.memoizedState;if(f!==null)return f;f={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_s,lastRenderedState:he},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_s,lastRenderedState:m},next:null},s.memoizedState=f,s=s.alternate,s!==null&&(s.memoizedState=f),f}function Oh(s){var f=Up(s);f.next===null&&(f=s.alternate.memoizedState),Qf(s,f.next.queue,{},Va())}function ar(){return qt(ti)}function SE(){return zr().memoizedState}function EE(){return zr().memoizedState}function wE(s){for(var f=s.return;f!==null;){switch(f.tag){case 24:case 3:var m=Va();s=Cu(m);var b=Ou(f,s,m);b!==null&&(ho(b,f,m),Ms(b,f,m)),f={cache:R1()},s.payload=f;return}f=f.return}}function ks(s,f,m){var b=Va();m={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Nu(s)?J4(f,m):(m=Jo(s,f,m,b),m!==null&&(ho(m,s,b),J1(m,f,b)))}function Z4(s,f,m){var b=Va();Qf(s,f,m,b)}function Qf(s,f,m,b){var C={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Nu(s))J4(f,C);else{var O=s.alternate;if(s.lanes===0&&(O===null||O.lanes===0)&&(O=f.lastRenderedReducer,O!==null))try{var $=f.lastRenderedState,ne=O($,m);if(C.hasEagerState=!0,C.eagerState=ne,Za(ne,$))return Mo(s,f,C,0),hr===null&&Oo(),!1}catch{}finally{}if(m=Jo(s,f,C,b),m!==null)return ho(m,s,b),J1(m,f,b),!0}return!1}function Zf(s,f,m,b){if(b={lane:2,revertLane:ud(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Nu(s)){if(f)throw Error(r(479))}else f=Jo(s,m,b,2),f!==null&&ho(f,s,2)}function Nu(s){var f=s.alternate;return s===pn||f!==null&&f===pn}function J4(s,f){Ru=Np=!0;var m=s.pending;m===null?f.next=f:(f.next=m.next,m.next=f),s.pending=f}function J1(s,f,m){if((m&4194048)!==0){var b=f.lanes;b&=s.pendingLanes,m|=b,f.lanes=m,Y0(s,m)}}var Mh={readContext:qt,use:Th,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useLayoutEffect:$r,useInsertionEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useSyncExternalStore:$r,useId:$r,useHostTransitionStatus:$r,useFormState:$r,useActionState:$r,useOptimistic:$r,useMemoCache:$r,useCacheRefresh:$r};Mh.useEffectEvent=$r;var TE={readContext:qt,use:Th,useCallback:function(s,f){return Qi().memoizedState=[s,f===void 0?null:f],s},useContext:qt,useEffect:G1,useImperativeHandle:function(s,f,m){m=m!=null?m.concat([s]):null,Pp(4194308,4,W4.bind(null,f,s),m)},useLayoutEffect:function(s,f){return Pp(4194308,4,s,f)},useInsertionEffect:function(s,f){Pp(4,2,s,f)},useMemo:function(s,f){var m=Qi();f=f===void 0?null:f;var b=s();if(Ic){jn(!0);try{s()}finally{jn(!1)}}return m.memoizedState=[b,f],b},useReducer:function(s,f,m){var b=Qi();if(m!==void 0){var C=m(f);if(Ic){jn(!0);try{m(f)}finally{jn(!1)}}}else C=f;return b.memoizedState=b.baseState=C,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:C},b.queue=s,s=s.dispatch=ks.bind(null,pn,s),[b.memoizedState,s]},useRef:function(s){var f=Qi();return s={current:s},f.memoizedState=s},useState:function(s){s=Vp(s);var f=s.queue,m=Z4.bind(null,pn,f);return f.dispatch=m,[s.memoizedState,m]},useDebugValue:W1,useDeferredValue:function(s,f){var m=Qi();return K4(m,s,f)},useTransition:function(){var s=Vp(!1);return s=Ns.bind(null,pn,s.queue,!0,!1),Qi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,f,m){var b=pn,C=Qi();if(In){if(m===void 0)throw Error(r(407));m=m()}else{if(m=f(),hr===null)throw Error(r(349));(Ln&127)!==0||$4(b,f,m)}C.memoizedState=m;var O={value:m,getSnapshot:f};return C.queue=O,G1(U4.bind(null,b,O,s),[s]),b.flags|=2048,Kf(9,{destroy:void 0},Lp.bind(null,b,O,m,f),null),m},useId:function(){var s=Qi(),f=hr.identifierPrefix;if(In){var m=no,b=No;m=(b&~(1<<32-gn(b)-1)).toString(32)+m,f="_"+f+"R_"+m,m=Sh++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=B4++,f="_"+f+"r_"+m.toString(32)+"_";return s.memoizedState=f},useHostTransitionStatus:ar,useFormState:Bp,useActionState:Bp,useOptimistic:function(s){var f=Qi();f.memoizedState=f.baseState=s;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Zf.bind(null,pn,!0,m),m.dispatch=f,[s,f]},useMemoCache:zp,useCacheRefresh:function(){return Qi().memoizedState=wE.bind(null,pn)},useEffectEvent:function(s){var f=Qi(),m={impl:s};return f.memoizedState=m,function(){if((Fn&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},ex={readContext:qt,use:Th,useCallback:Ds,useContext:qt,useEffect:jp,useImperativeHandle:X1,useInsertionEffect:$p,useLayoutEffect:Y1,useMemo:K1,useReducer:Ip,useRef:X4,useState:function(){return Ip(_s)},useDebugValue:W1,useDeferredValue:function(s,f){var m=zr();return Q1(m,ir.memoizedState,s,f)},useTransition:function(){var s=Ip(_s)[0],f=zr().memoizedState;return[typeof s=="boolean"?s:wh(s),f]},useSyncExternalStore:j4,useId:SE,useHostTransitionStatus:ar,useFormState:Y4,useActionState:Y4,useOptimistic:function(s,f){var m=zr();return vE(m,ir,s,f)},useMemoCache:zp,useCacheRefresh:EE};ex.useEffectEvent=F1;var tx={readContext:qt,use:Th,useCallback:Ds,useContext:qt,useEffect:jp,useImperativeHandle:X1,useInsertionEffect:$p,useLayoutEffect:Y1,useMemo:K1,useReducer:P1,useRef:X4,useState:function(){return P1(_s)},useDebugValue:W1,useDeferredValue:function(s,f){var m=zr();return ir===null?K4(m,s,f):Q1(m,ir.memoizedState,s,f)},useTransition:function(){var s=P1(_s)[0],f=zr().memoizedState;return[typeof s=="boolean"?s:wh(s),f]},useSyncExternalStore:j4,useId:SE,useHostTransitionStatus:ar,useFormState:q1,useActionState:q1,useOptimistic:function(s,f){var m=zr();return ir!==null?vE(m,ir,s,f):(m.baseState=s,[s,m.queue.dispatch])},useMemoCache:zp,useCacheRefresh:EE};tx.useEffectEvent=F1;function nx(s,f,m,b){f=s.memoizedState,m=m(b,f),m=m==null?f:x({},f,m),s.memoizedState=m,s.lanes===0&&(s.updateQueue.baseState=m)}var Jf={enqueueSetState:function(s,f,m){s=s._reactInternals;var b=Va(),C=Cu(b);C.payload=f,m!=null&&(C.callback=m),f=Ou(s,C,b),f!==null&&(ho(f,s,b),Ms(f,s,b))},enqueueReplaceState:function(s,f,m){s=s._reactInternals;var b=Va(),C=Cu(b);C.tag=1,C.payload=f,m!=null&&(C.callback=m),f=Ou(s,C,b),f!==null&&(ho(f,s,b),Ms(f,s,b))},enqueueForceUpdate:function(s,f){s=s._reactInternals;var m=Va(),b=Cu(m);b.tag=2,f!=null&&(b.callback=f),f=Ou(s,b,m),f!==null&&(ho(f,s,m),Ms(f,s,m))}};function Vl(s,f,m,b,C,O,$){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,O,$):f.prototype&&f.prototype.isPureReactComponent?!Ec(m,b)||!Ec(C,O):!0}function rx(s,f,m,b){s=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,b),f.state!==s&&Jf.enqueueReplaceState(f,f.state,null)}function ed(s,f){var m=f;if("ref"in f){m={};for(var b in f)b!=="ref"&&(m[b]=f[b])}if(s=s.defaultProps){m===f&&(m=x({},m));for(var C in s)m[C]===void 0&&(m[C]=s[C])}return m}function ix(s){Cc(s)}function ey(s){console.error(s)}function ax(s){Cc(s)}function Rh(s,f){try{var m=s.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function ty(s,f,m){try{var b=s.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function _h(s,f,m){return m=Cu(m),m.tag=3,m.payload={element:null},m.callback=function(){Rh(s,f)},m}function AE(s){return s=Cu(s),s.tag=3,s}function ox(s,f,m,b){var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var O=b.value;s.payload=function(){return C(O)},s.callback=function(){ty(f,m,b)}}var $=m.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(s.callback=function(){ty(f,m,b),typeof C!="function"&&(Hs===null?Hs=new Set([this]):Hs.add(this));var ne=b.stack;this.componentDidCatch(b.value,{componentStack:ne!==null?ne:""})})}function CE(s,f,m,b,C){if(m.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=m.alternate,f!==null&&ko(f,m,C,!0),m=da.current,m!==null){switch(m.tag){case 31:case 13:return oo===null?hy():m.alternate===null&&Ir===0&&(Ir=3),m.flags&=-257,m.flags|=65536,m.lanes=C,b===yh?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([b]):f.add(b),gy(s,b,C)),!1;case 22:return m.flags|=65536,b===yh?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([b]):m.add(b)),gy(s,b,C)),!1}throw Error(r(435,m.tag))}return gy(s,b,C),hy(),!1}if(In)return f=da.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=C,b!==Ts&&(s=Error(r(422),{cause:b}),bp(_o(s,m)))):(b!==Ts&&(f=Error(r(423),{cause:b}),bp(_o(f,m))),s=s.current.alternate,s.flags|=65536,C&=-C,s.lanes|=C,b=_o(b,m),C=_h(s.stateNode,b,C),xh(s,C),Ir!==4&&(Ir=2)),!1;var O=Error(r(520),{cause:b});if(O=_o(O,m),Jr===null?Jr=[O]:Jr.push(O),Ir!==4&&(Ir=2),f===null)return!0;b=_o(b,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,s=C&-C,m.lanes|=s,s=_h(m.stateNode,b,s),xh(m,s),!1;case 1:if(f=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Hs===null||!Hs.has(O))))return m.flags|=65536,C&=-C,m.lanes|=C,C=AE(C),ox(C,s,m,b),xh(m,C),!1}m=m.return}while(m!==null);return!1}var lx=Error(r(461)),ui=!1;function Vi(s,f,m,b){f.child=s===null?L4(f,null,m,b):Gf(f,s.child,m,b)}function zs(s,f,m,b,C){m=m.render;var O=f.ref;if("ref"in b){var $={};for(var ne in b)ne!=="ref"&&($[ne]=b[ne])}else $=b;return Os(f),b=_u(s,f,m,$,O,C),ne=P4(),s!==null&&!ui?(B1(s,f,C),Is(s,f,C)):(In&&ne&&T1(f),f.flags|=1,Vi(s,f,b,C),f.child)}function sx(s,f,m,b,C){if(s===null){var O=m.type;return typeof O=="function"&&!el(O)&&O.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=O,ux(s,f,O,b,C)):(s=hp(m.type,null,b,f,f.mode,C),s.ref=f.ref,s.return=f,f.child=s)}if(O=s.child,!td(s,C)){var $=O.memoizedProps;if(m=m.compare,m=m!==null?m:Ec,m($,b)&&s.ref===f.ref)return Is(s,f,C)}return f.flags|=1,s=Ro(O,b),s.ref=f.ref,s.return=f,f.child=s}function ux(s,f,m,b,C){if(s!==null){var O=s.memoizedProps;if(Ec(O,b)&&s.ref===f.ref)if(ui=!1,f.pendingProps=b=O,td(s,C))(s.flags&131072)!==0&&(ui=!0);else return f.lanes=s.lanes,Is(s,f,C)}return nl(s,f,m,b,C)}function cx(s,f,m,b){var C=b.children,O=s!==null?s.memoizedState:null;if(s===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode==="hidden"){if((f.flags&128)!==0){if(O=O!==null?O.baseLanes|m:m,s!==null){for(b=f.child=s.child,C=0;b!==null;)C=C|b.lanes|b.childLanes,b=b.sibling;b=C&~O}else b=0,f.child=null;return qp(s,f,O,m,b)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},s!==null&&ao(f,O!==null?O.cachePool:null),O!==null?Mp(f,O):V4(),Dp(f);else return b=f.lanes=536870912,qp(s,f,O!==null?O.baseLanes|m:m,m,b)}else O!==null?(ao(f,O.cachePool),Mp(f,O),Rs(),f.memoizedState=null):(s!==null&&ao(f,null),V4(),Rs());return Vi(s,f,C,m),f.child}function Hp(s,f){return s!==null&&s.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function qp(s,f,m,b,C){var O=Tu();return O=O===null?null:{parent:Qr._currentValue,pool:O},f.memoizedState={baseLanes:m,cachePool:O},s!==null&&ao(f,null),V4(),Dp(f),s!==null&&ko(s,f,b,!0),f.childLanes=C,null}function Ji(s,f){return f=ku({mode:f.mode,children:f.children},s.mode),f.ref=s.ref,s.child=f,f.return=s,f}function fx(s,f,m){return Gf(f,s.child,null,m),s=Ji(f,f.pendingProps),s.flags|=2,ha(f),f.memoizedState=null,s}function lo(s,f,m){var b=f.pendingProps,C=(f.flags&128)!==0;if(f.flags&=-129,s===null){if(In){if(b.mode==="hidden")return s=Ji(f,b),f.lanes=536870912,Hp(null,s);if(_p(f),(s=wr)?(s=bn(s,ro),s=s!==null&&s.data==="&"?s:null,s!==null&&(f.memoizedState={dehydrated:s,treeContext:Nl!==null?{id:No,overflow:no}:null,retryLane:536870912,hydrationErrors:null},m=mp(s),m.return=f,f.child=m,vi=f,wr=null)):s=null,s===null)throw Da(f);return f.lanes=536870912,null}return Ji(f,b)}var O=s.memoizedState;if(O!==null){var $=O.dehydrated;if(_p(f),C)if(f.flags&256)f.flags&=-257,f=fx(s,f,m);else if(f.memoizedState!==null)f.child=s.child,f.flags|=128,f=null;else throw Error(r(558));else if(ui||ko(s,f,m,!1),C=(m&s.childLanes)!==0,ui||C){if(b=hr,b!==null&&($=ss(b,m),$!==0&&$!==O.retryLane))throw O.retryLane=$,ua(s,$),ho(b,s,$),lx;hy(),f=fx(s,f,m)}else s=O.treeContext,wr=na($.nextSibling),vi=f,In=!0,ws=null,ro=!1,s!==null&&_4(f,s),f=Ji(f,b),f.flags|=4096;return f}return s=Ro(s.child,{mode:b.mode,children:b.children}),s.ref=f.ref,f.child=s,s.return=f,s}function Gp(s,f){var m=f.ref;if(m===null)s!==null&&s.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(s===null||s.ref!==m)&&(f.flags|=4194816)}}function nl(s,f,m,b,C){return Os(f),m=_u(s,f,m,b,void 0,C),b=P4(),s!==null&&!ui?(B1(s,f,C),Is(s,f,C)):(In&&b&&T1(f),f.flags|=1,Vi(s,f,m,C),f.child)}function dx(s,f,m,b,C,O){return Os(f),f.updateQueue=null,m=V1(f,b,m,C),L1(s),b=P4(),s!==null&&!ui?(B1(s,f,O),Is(s,f,O)):(In&&b&&T1(f),f.flags|=1,Vi(s,f,m,O),f.child)}function Lc(s,f,m,b,C){if(Os(f),f.stateNode===null){var O=Pf,$=m.contextType;typeof $=="object"&&$!==null&&(O=qt($)),O=new m(b,O),f.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Jf,f.stateNode=O,O._reactInternals=f,O=f.stateNode,O.props=b,O.state=f.memoizedState,O.refs={},N1(f),$=m.contextType,O.context=typeof $=="object"&&$!==null?qt($):Pf,O.state=f.memoizedState,$=m.getDerivedStateFromProps,typeof $=="function"&&(nx(f,m,$,b),O.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||($=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),$!==O.state&&Jf.enqueueReplaceState(O,O.state,null),zc(f,b,O,C),Op(),O.state=f.memoizedState),typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(s===null){O=f.stateNode;var ne=f.memoizedProps,ve=ed(m,ne);O.props=ve;var ke=O.context,He=m.contextType;$=Pf,typeof He=="object"&&He!==null&&($=qt(He));var Qe=m.getDerivedStateFromProps;He=typeof Qe=="function"||typeof O.getSnapshotBeforeUpdate=="function",ne=f.pendingProps!==ne,He||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne||ke!==$)&&rx(f,O,b,$),Au=!1;var ze=f.memoizedState;O.state=ze,zc(f,b,O,C),Op(),ke=f.memoizedState,ne||ze!==ke||Au?(typeof Qe=="function"&&(nx(f,m,Qe,b),ke=f.memoizedState),(ve=Au||Vl(f,m,ve,b,ze,ke,$))?(He||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(f.flags|=4194308)):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=ke),O.props=b,O.state=ke,O.context=$,b=ve):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{O=f.stateNode,Cp(s,f),$=f.memoizedProps,He=ed(m,$),O.props=He,Qe=f.pendingProps,ze=O.context,ke=m.contextType,ve=Pf,typeof ke=="object"&&ke!==null&&(ve=qt(ke)),ne=m.getDerivedStateFromProps,(ke=typeof ne=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||($!==Qe||ze!==ve)&&rx(f,O,b,ve),Au=!1,ze=f.memoizedState,O.state=ze,zc(f,b,O,C),Op();var je=f.memoizedState;$!==Qe||ze!==je||Au||s!==null&&s.dependencies!==null&&fa(s.dependencies)?(typeof ne=="function"&&(nx(f,m,ne,b),je=f.memoizedState),(He=Au||Vl(f,m,He,b,ze,je,ve)||s!==null&&s.dependencies!==null&&fa(s.dependencies))?(ke||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(b,je,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(b,je,ve)),typeof O.componentDidUpdate=="function"&&(f.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof O.componentDidUpdate!="function"||$===s.memoizedProps&&ze===s.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||$===s.memoizedProps&&ze===s.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=je),O.props=b,O.state=je,O.context=ve,b=He):(typeof O.componentDidUpdate!="function"||$===s.memoizedProps&&ze===s.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||$===s.memoizedProps&&ze===s.memoizedState||(f.flags|=1024),b=!1)}return O=b,Gp(s,f),b=(f.flags&128)!==0,O||b?(O=f.stateNode,m=b&&typeof m.getDerivedStateFromError!="function"?null:O.render(),f.flags|=1,s!==null&&b?(f.child=Gf(f,s.child,null,C),f.child=Gf(f,null,m,C)):Vi(s,f,m,C),f.memoizedState=O.state,s=f.child):s=Is(s,f,C),s}function hx(s,f,m,b){return kl(),f.flags|=256,Vi(s,f,m,b),f.child}var rl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fp(s){return{baseLanes:s,cachePool:D1()}}function Yp(s,f,m){return s=s!==null?s.childLanes&~m:0,f&&(s|=uo),s}function il(s,f,m){var b=f.pendingProps,C=!1,O=(f.flags&128)!==0,$;if(($=O)||($=s!==null&&s.memoizedState===null?!1:(jr.current&2)!==0),$&&(C=!0,f.flags&=-129),$=(f.flags&32)!==0,f.flags&=-33,s===null){if(In){if(C?Mu(f):Rs(),(s=wr)?(s=bn(s,ro),s=s!==null&&s.data!=="&"?s:null,s!==null&&(f.memoizedState={dehydrated:s,treeContext:Nl!==null?{id:No,overflow:no}:null,retryLane:536870912,hydrationErrors:null},m=mp(s),m.return=f,f.child=m,vi=f,wr=null)):s=null,s===null)throw Da(f);return ul(s)?f.lanes=32:f.lanes=536870912,null}var ne=b.children;return b=b.fallback,C?(Rs(),C=f.mode,ne=ku({mode:"hidden",children:ne},C),b=jf(b,C,m,null),ne.return=f,b.return=f,ne.sibling=b,f.child=ne,b=f.child,b.memoizedState=Fp(m),b.childLanes=Yp(s,$,m),f.memoizedState=rl,Hp(null,b)):(Mu(f),ny(f,ne))}var ve=s.memoizedState;if(ve!==null&&(ne=ve.dehydrated,ne!==null)){if(O)f.flags&256?(Mu(f),f.flags&=-257,f=ry(s,f,m)):f.memoizedState!==null?(Rs(),f.child=s.child,f.flags|=128,f=null):(Rs(),ne=b.fallback,C=f.mode,b=ku({mode:"visible",children:b.children},C),ne=jf(ne,C,m,null),ne.flags|=2,b.return=f,ne.return=f,b.sibling=ne,f.child=b,Gf(f,s.child,null,m),b=f.child,b.memoizedState=Fp(m),b.childLanes=Yp(s,$,m),f.memoizedState=rl,f=Hp(null,b));else if(Mu(f),ul(ne)){if($=ne.nextSibling&&ne.nextSibling.dataset,$)var ke=$.dgst;$=ke,b=Error(r(419)),b.stack="",b.digest=$,bp({value:b,source:null,stack:null}),f=ry(s,f,m)}else if(ui||ko(s,f,m,!1),$=(m&s.childLanes)!==0,ui||$){if($=hr,$!==null&&(b=ss($,m),b!==0&&b!==ve.retryLane))throw ve.retryLane=b,ua(s,b),ho($,s,b),lx;Xx(ne)||hy(),f=ry(s,f,m)}else Xx(ne)?(f.flags|=192,f.child=s.child,f=null):(s=ve.treeContext,wr=na(ne.nextSibling),vi=f,In=!0,ws=null,ro=!1,s!==null&&_4(f,s),f=ny(f,b.children),f.flags|=4096);return f}return C?(Rs(),ne=b.fallback,C=f.mode,ve=s.child,ke=ve.sibling,b=Ro(ve,{mode:"hidden",children:b.children}),b.subtreeFlags=ve.subtreeFlags&65011712,ke!==null?ne=Ro(ke,ne):(ne=jf(ne,C,m,null),ne.flags|=2),ne.return=f,b.return=f,b.sibling=ne,f.child=b,Hp(null,b),b=f.child,ne=s.child.memoizedState,ne===null?ne=Fp(m):(C=ne.cachePool,C!==null?(ve=Qr._currentValue,C=C.parent!==ve?{parent:ve,pool:ve}:C):C=D1(),ne={baseLanes:ne.baseLanes|m,cachePool:C}),b.memoizedState=ne,b.childLanes=Yp(s,$,m),f.memoizedState=rl,Hp(s.child,b)):(Mu(f),m=s.child,s=m.sibling,m=Ro(m,{mode:"visible",children:b.children}),m.return=f,m.sibling=null,s!==null&&($=f.deletions,$===null?(f.deletions=[s],f.flags|=16):$.push(s)),f.child=m,f.memoizedState=null,m)}function ny(s,f){return f=ku({mode:"visible",children:f},s.mode),f.return=s,s.child=f}function ku(s,f){return s=eo(22,s,null,f),s.lanes=0,s}function ry(s,f,m){return Gf(f,s.child,null,m),s=ny(f,f.pendingProps.children),s.flags|=2,f.memoizedState=null,s}function Dh(s,f,m){s.lanes|=f;var b=s.alternate;b!==null&&(b.lanes|=f),xp(s.return,f,m)}function Vc(s,f,m,b,C,O){var $=s.memoizedState;$===null?s.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:C,treeForkCount:O}:($.isBackwards=f,$.rendering=null,$.renderingStartTime=0,$.last=b,$.tail=m,$.tailMode=C,$.treeForkCount=O)}function px(s,f,m){var b=f.pendingProps,C=b.revealOrder,O=b.tail;b=b.children;var $=jr.current,ne=($&2)!==0;if(ne?($=$&1|2,f.flags|=128):$&=1,Y(jr,$),Vi(s,f,b,m),b=In?hh:0,!ne&&s!==null&&(s.flags&128)!==0)e:for(s=f.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Dh(s,m,f);else if(s.tag===19)Dh(s,m,f);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===f)break e;for(;s.sibling===null;){if(s.return===null||s.return===f)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(C){case"forwards":for(m=f.child,C=null;m!==null;)s=m.alternate,s!==null&&Yf(s)===null&&(C=m),m=m.sibling;m=C,m===null?(C=f.child,f.child=null):(C=m.sibling,m.sibling=null),Vc(f,!1,C,m,O,b);break;case"backwards":case"unstable_legacy-backwards":for(m=null,C=f.child,f.child=null;C!==null;){if(s=C.alternate,s!==null&&Yf(s)===null){f.child=C;break}s=C.sibling,C.sibling=m,m=C,C=s}Vc(f,!0,m,null,O,b);break;case"together":Vc(f,!1,null,null,void 0,b);break;default:f.memoizedState=null}return f.child}function Is(s,f,m){if(s!==null&&(f.dependencies=s.dependencies),ll|=f.lanes,(m&f.childLanes)===0)if(s!==null){if(ko(s,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(s!==null&&f.child!==s.child)throw Error(r(153));if(f.child!==null){for(s=f.child,m=Ro(s,s.pendingProps),f.child=m,m.return=f;s.sibling!==null;)s=s.sibling,m=m.sibling=Ro(s,s.pendingProps),m.return=f;m.sibling=null}return f.child}function td(s,f){return(s.lanes&f)!==0?!0:(s=s.dependencies,!!(s!==null&&fa(s)))}function OE(s,f,m){switch(f.tag){case 3:Ue(f,f.stateNode.containerInfo),Cs(f,Qr,s.memoizedState.cache),kl();break;case 27:case 5:Xe(f);break;case 4:Ue(f,f.stateNode.containerInfo);break;case 10:Cs(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,_p(f),null;break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(Mu(f),f.flags|=128,null):(m&f.child.childLanes)!==0?il(s,f,m):(Mu(f),s=Is(s,f,m),s!==null?s.sibling:null);Mu(f);break;case 19:var C=(s.flags&128)!==0;if(b=(m&f.childLanes)!==0,b||(ko(s,f,m,!1),b=(m&f.childLanes)!==0),C){if(b)return px(s,f,m);f.flags|=128}if(C=f.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),Y(jr,jr.current),b)break;return null;case 22:return f.lanes=0,cx(s,f,m,f.pendingProps);case 24:Cs(f,Qr,s.memoizedState.cache)}return Is(s,f,m)}function Xp(s,f,m){if(s!==null)if(s.memoizedProps!==f.pendingProps)ui=!0;else{if(!td(s,m)&&(f.flags&128)===0)return ui=!1,OE(s,f,m);ui=(s.flags&131072)!==0}else ui=!1,In&&(f.flags&1048576)!==0&&yp(f,hh,f.index);switch(f.lanes=0,f.tag){case 16:e:{var b=f.pendingProps;if(s=Dc(f.elementType),f.type=s,typeof s=="function")el(s)?(b=ed(s,b),f.tag=1,f=Lc(null,f,s,b,m)):(f.tag=0,f=nl(null,f,s,b,m));else{if(s!=null){var C=s.$$typeof;if(C===P){f.tag=11,f=zs(null,f,s,b,m);break e}else if(C===X){f.tag=14,f=sx(null,f,s,b,m);break e}}throw f=Q(s)||s,Error(r(306,f,""))}}return f;case 0:return nl(s,f,f.type,f.pendingProps,m);case 1:return b=f.type,C=ed(b,f.pendingProps),Lc(s,f,b,C,m);case 3:e:{if(Ue(f,f.stateNode.containerInfo),s===null)throw Error(r(387));b=f.pendingProps;var O=f.memoizedState;C=O.element,Cp(s,f),zc(f,b,null,m);var $=f.memoizedState;if(b=$.cache,Cs(f,Qr,b),b!==O.cache&&O1(f,[Qr],m,!0),Op(),b=$.element,O.isDehydrated)if(O={element:b,isDehydrated:!1,cache:$.cache},f.updateQueue.baseState=O,f.memoizedState=O,f.flags&256){f=hx(s,f,b,m);break e}else if(b!==C){C=_o(Error(r(424)),f),bp(C),f=hx(s,f,b,m);break e}else{switch(s=f.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(wr=na(s.firstChild),vi=f,In=!0,ws=null,ro=!0,m=L4(f,null,b,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(kl(),b===C){f=Is(s,f,m);break e}Vi(s,f,b,m)}f=f.child}return f;case 26:return Gp(s,f),s===null?(m=ju(f.type,null,f.pendingProps,null))?f.memoizedState=m:In||(m=f.type,s=f.pendingProps,b=gm(_e.current).createElement(m),b[yi]=f,b[_r]=s,ta(b,m,s),Ti(b),f.stateNode=b):f.memoizedState=ju(f.type,s.memoizedProps,f.pendingProps,s.memoizedState),null;case 27:return Xe(f),s===null&&In&&(b=f.stateNode=$l(f.type,f.pendingProps,_e.current),vi=f,ro=!0,C=wr,qs(f.type)?(Gh=C,wr=na(b.firstChild)):wr=C),Vi(s,f,f.pendingProps.children,m),Gp(s,f),s===null&&(f.flags|=4194304),f.child;case 5:return s===null&&In&&((C=b=wr)&&(b=Yx(b,f.type,f.pendingProps,ro),b!==null?(f.stateNode=b,vi=f,wr=na(b.firstChild),ro=!1,C=!0):C=!1),C||Da(f)),Xe(f),C=f.type,O=f.pendingProps,$=s!==null?s.memoizedProps:null,b=O.children,My(C,O)?b=null:$!==null&&My(C,$)&&(f.flags|=32),f.memoizedState!==null&&(C=_u(s,f,LA,null,null,m),ti._currentValue=C),Gp(s,f),Vi(s,f,b,m),f.child;case 6:return s===null&&In&&((s=m=wr)&&(m=$A(m,f.pendingProps,ro),m!==null?(f.stateNode=m,vi=f,wr=null,s=!0):s=!1),s||Da(f)),null;case 13:return il(s,f,m);case 4:return Ue(f,f.stateNode.containerInfo),b=f.pendingProps,s===null?f.child=Gf(f,null,b,m):Vi(s,f,b,m),f.child;case 11:return zs(s,f,f.type,f.pendingProps,m);case 7:return Vi(s,f,f.pendingProps,m),f.child;case 8:return Vi(s,f,f.pendingProps.children,m),f.child;case 12:return Vi(s,f,f.pendingProps.children,m),f.child;case 10:return b=f.pendingProps,Cs(f,f.type,b.value),Vi(s,f,b.children,m),f.child;case 9:return C=f.type._context,b=f.pendingProps.children,Os(f),C=qt(C),b=b(C),f.flags|=1,Vi(s,f,b,m),f.child;case 14:return sx(s,f,f.type,f.pendingProps,m);case 15:return ux(s,f,f.type,f.pendingProps,m);case 19:return px(s,f,m);case 31:return lo(s,f,m);case 22:return cx(s,f,m,f.pendingProps);case 24:return Os(f),b=qt(Qr),s===null?(C=Tu(),C===null&&(C=hr,O=R1(),C.pooledCache=O,O.refCount++,O!==null&&(C.pooledCacheLanes|=m),C=O),f.memoizedState={parent:b,cache:C},N1(f),Cs(f,Qr,C)):((s.lanes&m)!==0&&(Cp(s,f),zc(f,null,null,m),Op()),C=s.memoizedState,O=f.memoizedState,C.parent!==b?(C={parent:b,cache:b},f.memoizedState=C,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=C),Cs(f,Qr,b)):(b=O.cache,Cs(f,Qr,b),b!==C.cache&&O1(f,[Qr],m,!0))),Vi(s,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function Ls(s){s.flags|=4}function iy(s,f,m,b,C){if((f=(s.mode&32)!==0)&&(f=!1),f){if(s.flags|=16777216,(C&335544128)===C)if(s.stateNode.complete)s.flags|=8192;else if(Lh())s.flags|=8192;else throw Nc=yh,wp}else s.flags&=-16777217}function ME(s,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!Ly(f))if(Lh())s.flags|=8192;else throw Nc=yh,wp}function Wp(s,f){f!==null&&(s.flags|=4),s.flags&16384&&(f=s.tag!==22?ct():536870912,s.lanes|=f,jc|=f)}function ea(s,f){if(!In)switch(s.tailMode){case"hidden":f=s.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?s.tail=null:m.sibling=null;break;case"collapsed":m=s.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?f||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function Tr(s){var f=s.alternate!==null&&s.alternate.child===s.child,m=0,b=0;if(f)for(var C=s.child;C!==null;)m|=C.lanes|C.childLanes,b|=C.subtreeFlags&65011712,b|=C.flags&65011712,C.return=s,C=C.sibling;else for(C=s.child;C!==null;)m|=C.lanes|C.childLanes,b|=C.subtreeFlags,b|=C.flags,C.return=s,C=C.sibling;return s.subtreeFlags|=b,s.childLanes=m,f}function Ur(s,f,m){var b=f.pendingProps;switch(ph(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tr(f),null;case 1:return Tr(f),null;case 3:return m=f.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),ca(Qr),Ye(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(s===null||s.child===null)&&(As(f)?Ls(f):s===null||s.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,A1())),Tr(f),null;case 26:var C=f.type,O=f.memoizedState;return s===null?(Ls(f),O!==null?(Tr(f),ME(f,O)):(Tr(f),iy(f,C,null,b,m))):O?O!==s.memoizedState?(Ls(f),Tr(f),ME(f,O)):(Tr(f),f.flags&=-16777217):(s=s.memoizedProps,s!==b&&Ls(f),Tr(f),iy(f,C,s,b,m)),null;case 27:if(Je(f),m=_e.current,C=f.type,s!==null&&f.stateNode!=null)s.memoizedProps!==b&&Ls(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Tr(f),null}s=Me.current,As(f)?mh(f):(s=$l(C,b,m),f.stateNode=s,Ls(f))}return Tr(f),null;case 5:if(Je(f),C=f.type,s!==null&&f.stateNode!=null)s.memoizedProps!==b&&Ls(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Tr(f),null}if(O=Me.current,As(f))mh(f);else{var $=gm(_e.current);switch(O){case 1:O=$.createElementNS("http://www.w3.org/2000/svg",C);break;case 2:O=$.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;default:switch(C){case"svg":O=$.createElementNS("http://www.w3.org/2000/svg",C);break;case"math":O=$.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;case"script":O=$.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof b.is=="string"?$.createElement("select",{is:b.is}):$.createElement("select"),b.multiple?O.multiple=!0:b.size&&(O.size=b.size);break;default:O=typeof b.is=="string"?$.createElement(C,{is:b.is}):$.createElement(C)}}O[yi]=f,O[_r]=b;e:for($=f.child;$!==null;){if($.tag===5||$.tag===6)O.appendChild($.stateNode);else if($.tag!==4&&$.tag!==27&&$.child!==null){$.child.return=$,$=$.child;continue}if($===f)break e;for(;$.sibling===null;){if($.return===null||$.return===f)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}f.stateNode=O;e:switch(ta(O,C,b),C){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&Ls(f)}}return Tr(f),iy(f,f.type,s===null?null:s.memoizedProps,f.pendingProps,m),null;case 6:if(s&&f.stateNode!=null)s.memoizedProps!==b&&Ls(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(r(166));if(s=_e.current,As(f)){if(s=f.stateNode,m=f.memoizedProps,b=null,C=vi,C!==null)switch(C.tag){case 27:case 5:b=C.memoizedProps}s[yi]=f,s=!!(s.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||Ux(s.nodeValue,m)),s||Da(f,!0)}else s=gm(s).createTextNode(b),s[yi]=f,f.stateNode=s}return Tr(f),null;case 31:if(m=f.memoizedState,s===null||s.memoizedState!==null){if(b=As(f),m!==null){if(s===null){if(!b)throw Error(r(318));if(s=f.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[yi]=f}else kl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Tr(f),s=!1}else m=A1(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),s=!0;if(!s)return f.flags&256?(ha(f),f):(ha(f),null);if((f.flags&128)!==0)throw Error(r(558))}return Tr(f),null;case 13:if(b=f.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(C=As(f),b!==null&&b.dehydrated!==null){if(s===null){if(!C)throw Error(r(318));if(C=f.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[yi]=f}else kl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Tr(f),C=!1}else C=A1(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=C),C=!0;if(!C)return f.flags&256?(ha(f),f):(ha(f),null)}return ha(f),(f.flags&128)!==0?(f.lanes=m,f):(m=b!==null,s=s!==null&&s.memoizedState!==null,m&&(b=f.child,C=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(C=b.alternate.memoizedState.cachePool.pool),O=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(O=b.memoizedState.cachePool.pool),O!==C&&(b.flags|=2048)),m!==s&&m&&(f.child.flags|=8192),Wp(f,f.updateQueue),Tr(f),null);case 4:return Ye(),s===null&&Px(f.stateNode.containerInfo),Tr(f),null;case 10:return ca(f.type),Tr(f),null;case 19:if(te(jr),b=f.memoizedState,b===null)return Tr(f),null;if(C=(f.flags&128)!==0,O=b.rendering,O===null)if(C)ea(b,!1);else{if(Ir!==0||s!==null&&(s.flags&128)!==0)for(s=f.child;s!==null;){if(O=Yf(s),O!==null){for(f.flags|=128,ea(b,!1),s=O.updateQueue,f.updateQueue=s,Wp(f,s),f.subtreeFlags=0,s=m,m=f.child;m!==null;)yE(m,s),m=m.sibling;return Y(jr,jr.current&1|2),In&&Es(f,b.treeForkCount),f.child}s=s.sibling}b.tail!==null&&tn()>im&&(f.flags|=128,C=!0,ea(b,!1),f.lanes=4194304)}else{if(!C)if(s=Yf(O),s!==null){if(f.flags|=128,C=!0,s=s.updateQueue,f.updateQueue=s,Wp(f,s),ea(b,!0),b.tail===null&&b.tailMode==="hidden"&&!O.alternate&&!In)return Tr(f),null}else 2*tn()-b.renderingStartTime>im&&m!==536870912&&(f.flags|=128,C=!0,ea(b,!1),f.lanes=4194304);b.isBackwards?(O.sibling=f.child,f.child=O):(s=b.last,s!==null?s.sibling=O:f.child=O,b.last=O)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=tn(),s.sibling=null,m=jr.current,Y(jr,C?m&1|2:m&1),In&&Es(f,b.treeForkCount),s):(Tr(f),null);case 22:case 23:return ha(f),Rp(),b=f.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(m&536870912)!==0&&(f.flags&128)===0&&(Tr(f),f.subtreeFlags&6&&(f.flags|=8192)):Tr(f),m=f.updateQueue,m!==null&&Wp(f,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==m&&(f.flags|=2048),s!==null&&te(io),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),ca(Qr),Tr(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function RE(s,f){switch(ph(f),f.tag){case 1:return s=f.flags,s&65536?(f.flags=s&-65537|128,f):null;case 3:return ca(Qr),Ye(),s=f.flags,(s&65536)!==0&&(s&128)===0?(f.flags=s&-65537|128,f):null;case 26:case 27:case 5:return Je(f),null;case 31:if(f.memoizedState!==null){if(ha(f),f.alternate===null)throw Error(r(340));kl()}return s=f.flags,s&65536?(f.flags=s&-65537|128,f):null;case 13:if(ha(f),s=f.memoizedState,s!==null&&s.dehydrated!==null){if(f.alternate===null)throw Error(r(340));kl()}return s=f.flags,s&65536?(f.flags=s&-65537|128,f):null;case 19:return te(jr),null;case 4:return Ye(),null;case 10:return ca(f.type),null;case 22:case 23:return ha(f),Rp(),s!==null&&te(io),s=f.flags,s&65536?(f.flags=s&-65537|128,f):null;case 24:return ca(Qr),null;case 25:return null;default:return null}}function mx(s,f){switch(ph(f),f.tag){case 3:ca(Qr),Ye();break;case 26:case 27:case 5:Je(f);break;case 4:Ye();break;case 31:f.memoizedState!==null&&ha(f);break;case 13:ha(f);break;case 19:te(jr);break;case 10:ca(f.type);break;case 22:case 23:ha(f),Rp(),s!==null&&te(io);break;case 24:ca(Qr)}}function Kp(s,f){try{var m=f.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var C=b.next;m=C;do{if((m.tag&s)===s){b=void 0;var O=m.create,$=m.inst;b=O(),$.destroy=b}m=m.next}while(m!==C)}}catch(ne){or(f,f.return,ne)}}function ka(s,f,m){try{var b=f.updateQueue,C=b!==null?b.lastEffect:null;if(C!==null){var O=C.next;b=O;do{if((b.tag&s)===s){var $=b.inst,ne=$.destroy;if(ne!==void 0){$.destroy=void 0,C=f;var ve=m,ke=ne;try{ke()}catch(He){or(C,ve,He)}}}b=b.next}while(b!==O)}}catch(He){or(f,f.return,He)}}function nd(s){var f=s.updateQueue;if(f!==null){var m=s.stateNode;try{z1(f,m)}catch(b){or(s,s.return,b)}}}function ay(s,f,m){m.props=ed(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(b){or(s,f,b)}}function Bl(s,f){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var b=s.stateNode;break;case 30:b=s.stateNode;break;default:b=s.stateNode}typeof m=="function"?s.refCleanup=m(b):m.current=b}}catch(C){or(s,f,C)}}function za(s,f){var m=s.ref,b=s.refCleanup;if(m!==null)if(typeof b=="function")try{b()}catch(C){or(s,f,C)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(C){or(s,f,C)}else m.current=null}function gx(s){var f=s.type,m=s.memoizedProps,b=s.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&b.focus();break e;case"img":m.src?b.src=m.src:m.srcSet&&(b.srcset=m.srcSet)}}catch(C){or(s,s.return,C)}}function oy(s,f,m){try{var b=s.stateNode;jA(b,s.type,m,f),b[_r]=f}catch(C){or(s,s.return,C)}}function yx(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&qs(s.type)||s.tag===4}function ly(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||yx(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&qs(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Nh(s,f,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(s),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Xi));else if(b!==4&&(b===27&&qs(s.type)&&(m=s.stateNode,f=null),s=s.child,s!==null))for(Nh(s,f,m),s=s.sibling;s!==null;)Nh(s,f,m),s=s.sibling}function rd(s,f,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,f?m.insertBefore(s,f):m.appendChild(s);else if(b!==4&&(b===27&&qs(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(rd(s,f,m),s=s.sibling;s!==null;)rd(s,f,m),s=s.sibling}function sy(s){var f=s.stateNode,m=s.memoizedProps;try{for(var b=s.type,C=f.attributes;C.length;)f.removeAttributeNode(C[0]);ta(f,b,m),f[yi]=s,f[_r]=m}catch(O){or(s,s.return,O)}}var Vs=!1,bi=!1,vx=!1,bx=typeof WeakSet=="function"?WeakSet:Set,Ai=null;function VA(s,f){if(s=s.containerInfo,mm=$u,s=Vf(s),Eu(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var C=b.anchorOffset,O=b.focusNode;b=b.focusOffset;try{m.nodeType,O.nodeType}catch{m=null;break e}var $=0,ne=-1,ve=-1,ke=0,He=0,Qe=s,ze=null;t:for(;;){for(var je;Qe!==m||C!==0&&Qe.nodeType!==3||(ne=$+C),Qe!==O||b!==0&&Qe.nodeType!==3||(ve=$+b),Qe.nodeType===3&&($+=Qe.nodeValue.length),(je=Qe.firstChild)!==null;)ze=Qe,Qe=je;for(;;){if(Qe===s)break t;if(ze===m&&++ke===C&&(ne=$),ze===O&&++He===b&&(ve=$),(je=Qe.nextSibling)!==null)break;Qe=ze,ze=Qe.parentNode}Qe=je}m=ne===-1||ve===-1?null:{start:ne,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(Oy={focusedElem:s,selectionRange:m},$u=!1,Ai=f;Ai!==null;)if(f=Ai,s=f.child,(f.subtreeFlags&1028)!==0&&s!==null)s.return=f,Ai=s;else for(;Ai!==null;){switch(f=Ai,O=f.alternate,s=f.flags,f.tag){case 0:if((s&4)!==0&&(s=f.updateQueue,s=s!==null?s.events:null,s!==null))for(m=0;m<s.length;m++)C=s[m],C.ref.impl=C.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&O!==null){s=void 0,m=f,C=O.memoizedProps,O=O.memoizedState,b=m.stateNode;try{var kt=ed(m.type,C);s=b.getSnapshotBeforeUpdate(kt,O),b.__reactInternalSnapshotBeforeUpdate=s}catch(Zt){or(m,m.return,Zt)}}break;case 3:if((s&1024)!==0){if(s=f.stateNode.containerInfo,m=s.nodeType,m===9)ei(s);else if(m===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":ei(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=f.sibling,s!==null){s.return=f.return,Ai=s;break}Ai=f.return}}function id(s,f,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:Ps(s,m),b&4&&Kp(5,m);break;case 1:if(Ps(s,m),b&4)if(s=m.stateNode,f===null)try{s.componentDidMount()}catch($){or(m,m.return,$)}else{var C=ed(m.type,f.memoizedProps);f=f.memoizedState;try{s.componentDidUpdate(C,f,s.__reactInternalSnapshotBeforeUpdate)}catch($){or(m,m.return,$)}}b&64&&nd(m),b&512&&Bl(m,m.return);break;case 3:if(Ps(s,m),b&64&&(s=m.updateQueue,s!==null)){if(f=null,m.child!==null)switch(m.child.tag){case 27:case 5:f=m.child.stateNode;break;case 1:f=m.child.stateNode}try{z1(s,f)}catch($){or(m,m.return,$)}}break;case 27:f===null&&b&4&&sy(m);case 26:case 5:Ps(s,m),f===null&&b&4&&gx(m),b&512&&Bl(m,m.return);break;case 12:Ps(s,m);break;case 31:Ps(s,m),b&4&&Sx(s,m);break;case 13:Ps(s,m),b&4&&_E(s,m),b&64&&(s=m.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(m=PA.bind(null,m),qh(s,m))));break;case 22:if(b=m.memoizedState!==null||Vs,!b){f=f!==null&&f.memoizedState!==null||bi,C=Vs;var O=bi;Vs=b,(bi=f)&&!O?zu(s,m,(m.subtreeFlags&8772)!==0):Ps(s,m),Vs=C,bi=O}break;case 30:break;default:Ps(s,m)}}function Qp(s){var f=s.alternate;f!==null&&(s.alternate=null,Qp(f)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(f=s.stateNode,f!==null&&yc(f)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var Dr=null,pa=!1;function Bs(s,f,m){for(m=m.child;m!==null;)xx(s,f,m),m=m.sibling}function xx(s,f,m){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Lt,m)}catch{}switch(m.tag){case 26:bi||za(m,f),Bs(s,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:bi||za(m,f);var b=Dr,C=pa;qs(m.type)&&(Dr=m.stateNode,pa=!1),Bs(s,f,m),Bu(m.stateNode),Dr=b,pa=C;break;case 5:bi||za(m,f);case 6:if(b=Dr,C=pa,Dr=null,Bs(s,f,m),Dr=b,pa=C,Dr!==null)if(pa)try{(Dr.nodeType===9?Dr.body:Dr.nodeName==="HTML"?Dr.ownerDocument.body:Dr).removeChild(m.stateNode)}catch(O){or(m,f,O)}else try{Dr.removeChild(m.stateNode)}catch(O){or(m,f,O)}break;case 18:Dr!==null&&(pa?(s=Dr,ym(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,m.stateNode),Wh(s)):ym(Dr,m.stateNode));break;case 4:b=Dr,C=pa,Dr=m.stateNode.containerInfo,pa=!0,Bs(s,f,m),Dr=b,pa=C;break;case 0:case 11:case 14:case 15:ka(2,m,f),bi||ka(4,m,f),Bs(s,f,m);break;case 1:bi||(za(m,f),b=m.stateNode,typeof b.componentWillUnmount=="function"&&ay(m,f,b)),Bs(s,f,m);break;case 21:Bs(s,f,m);break;case 22:bi=(b=bi)||m.memoizedState!==null,Bs(s,f,m),bi=b;break;default:Bs(s,f,m)}}function Sx(s,f){if(f.memoizedState===null&&(s=f.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{Wh(s)}catch(m){or(f,f.return,m)}}}function _E(s,f){if(f.memoizedState===null&&(s=f.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Wh(s)}catch(m){or(f,f.return,m)}}function DE(s){switch(s.tag){case 31:case 13:case 19:var f=s.stateNode;return f===null&&(f=s.stateNode=new bx),f;case 22:return s=s.stateNode,f=s._retryCache,f===null&&(f=s._retryCache=new bx),f;default:throw Error(r(435,s.tag))}}function Bc(s,f){var m=DE(s);f.forEach(function(b){if(!m.has(b)){m.add(b);var C=zo.bind(null,s,b);b.then(C,C)}})}function Ia(s,f){var m=f.deletions;if(m!==null)for(var b=0;b<m.length;b++){var C=m[b],O=s,$=f,ne=$;e:for(;ne!==null;){switch(ne.tag){case 27:if(qs(ne.type)){Dr=ne.stateNode,pa=!1;break e}break;case 5:Dr=ne.stateNode,pa=!1;break e;case 3:case 4:Dr=ne.stateNode.containerInfo,pa=!0;break e}ne=ne.return}if(Dr===null)throw Error(r(160));xx(O,$,C),Dr=null,pa=!1,O=C.alternate,O!==null&&(O.return=null),C.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)Wn(f,s),f=f.sibling}var al=null;function Wn(s,f){var m=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Ia(f,s),ma(s),b&4&&(ka(3,s,s.return),Kp(3,s),ka(5,s,s.return));break;case 1:Ia(f,s),ma(s),b&512&&(bi||m===null||za(m,m.return)),b&64&&Vs&&(s=s.updateQueue,s!==null&&(b=s.callbacks,b!==null&&(m=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var C=al;if(Ia(f,s),ma(s),b&512&&(bi||m===null||za(m,m.return)),b&4){var O=m!==null?m.memoizedState:null;if(b=s.memoizedState,m===null)if(b===null)if(s.stateNode===null){e:{b=s.type,m=s.memoizedProps,C=C.ownerDocument||C;t:switch(b){case"title":O=C.getElementsByTagName("title")[0],(!O||O[rh]||O[yi]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=C.createElement(b),C.head.insertBefore(O,C.querySelector("head > title"))),ta(O,b,m),O[yi]=s,Ti(O),b=O;break e;case"link":var $=Iy("link","href",C).get(b+(m.href||""));if($){for(var ne=0;ne<$.length;ne++)if(O=$[ne],O.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&O.getAttribute("rel")===(m.rel==null?null:m.rel)&&O.getAttribute("title")===(m.title==null?null:m.title)&&O.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){$.splice(ne,1);break t}}O=C.createElement(b),ta(O,b,m),C.head.appendChild(O);break;case"meta":if($=Iy("meta","content",C).get(b+(m.content||""))){for(ne=0;ne<$.length;ne++)if(O=$[ne],O.getAttribute("content")===(m.content==null?null:""+m.content)&&O.getAttribute("name")===(m.name==null?null:m.name)&&O.getAttribute("property")===(m.property==null?null:m.property)&&O.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&O.getAttribute("charset")===(m.charSet==null?null:m.charSet)){$.splice(ne,1);break t}}O=C.createElement(b),ta(O,b,m),C.head.appendChild(O);break;default:throw Error(r(468,b))}O[yi]=s,Ti(O),b=O}s.stateNode=b}else Jx(C,s.type,s.stateNode);else s.stateNode=Zx(C,b,s.memoizedProps);else O!==b?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,b===null?Jx(C,s.type,s.stateNode):Zx(C,b,s.memoizedProps)):b===null&&s.stateNode!==null&&oy(s,s.memoizedProps,m.memoizedProps)}break;case 27:Ia(f,s),ma(s),b&512&&(bi||m===null||za(m,m.return)),m!==null&&b&4&&oy(s,s.memoizedProps,m.memoizedProps);break;case 5:if(Ia(f,s),ma(s),b&512&&(bi||m===null||za(m,m.return)),s.flags&32){C=s.stateNode;try{Rf(C,"")}catch(kt){or(s,s.return,kt)}}b&4&&s.stateNode!=null&&(C=s.memoizedProps,oy(s,C,m!==null?m.memoizedProps:C)),b&1024&&(vx=!0);break;case 6:if(Ia(f,s),ma(s),b&4){if(s.stateNode===null)throw Error(r(162));b=s.memoizedProps,m=s.stateNode;try{m.nodeValue=b}catch(kt){or(s,s.return,kt)}}break;case 3:if(Sm=null,C=al,al=dd(f.containerInfo),Ia(f,s),al=C,ma(s),b&4&&m!==null&&m.memoizedState.isDehydrated)try{Wh(f.containerInfo)}catch(kt){or(s,s.return,kt)}vx&&(vx=!1,NE(s));break;case 4:b=al,al=dd(s.stateNode.containerInfo),Ia(f,s),ma(s),al=b;break;case 12:Ia(f,s),ma(s);break;case 31:Ia(f,s),ma(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Bc(s,b)));break;case 13:Ia(f,s),ma(s),s.child.flags&8192&&s.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(rm=tn()),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Bc(s,b)));break;case 22:C=s.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,ke=Vs,He=bi;if(Vs=ke||C,bi=He||ve,Ia(f,s),bi=He,Vs=ke,ma(s),b&8192)e:for(f=s.stateNode,f._visibility=C?f._visibility&-2:f._visibility|1,C&&(m===null||ve||Vs||bi||ad(s)),m=null,f=s;;){if(f.tag===5||f.tag===26){if(m===null){ve=m=f;try{if(O=ve.stateNode,C)$=O.style,typeof $.setProperty=="function"?$.setProperty("display","none","important"):$.display="none";else{ne=ve.stateNode;var Qe=ve.memoizedProps.style,ze=Qe!=null&&Qe.hasOwnProperty("display")?Qe.display:null;ne.style.display=ze==null||typeof ze=="boolean"?"":(""+ze).trim()}}catch(kt){or(ve,ve.return,kt)}}}else if(f.tag===6){if(m===null){ve=f;try{ve.stateNode.nodeValue=C?"":ve.memoizedProps}catch(kt){or(ve,ve.return,kt)}}}else if(f.tag===18){if(m===null){ve=f;try{var je=ve.stateNode;C?Fx(je,!0):Fx(ve.stateNode,!1)}catch(kt){or(ve,ve.return,kt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===s)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break e;for(;f.sibling===null;){if(f.return===null||f.return===s)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=s.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,Bc(s,m))));break;case 19:Ia(f,s),ma(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Bc(s,b)));break;case 30:break;case 21:break;default:Ia(f,s),ma(s)}}function ma(s){var f=s.flags;if(f&2){try{for(var m,b=s.return;b!==null;){if(yx(b)){m=b;break}b=b.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var C=m.stateNode,O=ly(s);rd(s,O,C);break;case 5:var $=m.stateNode;m.flags&32&&(Rf($,""),m.flags&=-33);var ne=ly(s);rd(s,ne,$);break;case 3:case 4:var ve=m.stateNode.containerInfo,ke=ly(s);Nh(s,ke,ve);break;default:throw Error(r(161))}}catch(He){or(s,s.return,He)}s.flags&=-3}f&4096&&(s.flags&=-4097)}function NE(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var f=s;NE(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),s=s.sibling}}function Ps(s,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)id(s,f.alternate,f),f=f.sibling}function ad(s){for(s=s.child;s!==null;){var f=s;switch(f.tag){case 0:case 11:case 14:case 15:ka(4,f,f.return),ad(f);break;case 1:za(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&ay(f,f.return,m),ad(f);break;case 27:Bu(f.stateNode);case 26:case 5:za(f,f.return),ad(f);break;case 22:f.memoizedState===null&&ad(f);break;case 30:ad(f);break;default:ad(f)}s=s.sibling}}function zu(s,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,C=s,O=f,$=O.flags;switch(O.tag){case 0:case 11:case 15:zu(C,O,m),Kp(4,O);break;case 1:if(zu(C,O,m),b=O,C=b.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(ke){or(b,b.return,ke)}if(b=O,C=b.updateQueue,C!==null){var ne=b.stateNode;try{var ve=C.shared.hiddenCallbacks;if(ve!==null)for(C.shared.hiddenCallbacks=null,C=0;C<ve.length;C++)Ff(ve[C],ne)}catch(ke){or(b,b.return,ke)}}m&&$&64&&nd(O),Bl(O,O.return);break;case 27:sy(O);case 26:case 5:zu(C,O,m),m&&b===null&&$&4&&gx(O),Bl(O,O.return);break;case 12:zu(C,O,m);break;case 31:zu(C,O,m),m&&$&4&&Sx(C,O);break;case 13:zu(C,O,m),m&&$&4&&_E(C,O);break;case 22:O.memoizedState===null&&zu(C,O,m),Bl(O,O.return);break;case 30:break;default:zu(C,O,m)}f=f.sibling}}function Zp(s,f){var m=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),s=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(s=f.memoizedState.cachePool.pool),s!==m&&(s!=null&&s.refCount++,m!=null&&Hf(m))}function uy(s,f){s=null,f.alternate!==null&&(s=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==s&&(f.refCount++,s!=null&&Hf(s))}function ol(s,f,m,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)Ex(s,f,m,b),f=f.sibling}function Ex(s,f,m,b){var C=f.flags;switch(f.tag){case 0:case 11:case 15:ol(s,f,m,b),C&2048&&Kp(9,f);break;case 1:ol(s,f,m,b);break;case 3:ol(s,f,m,b),C&2048&&(s=null,f.alternate!==null&&(s=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==s&&(f.refCount++,s!=null&&Hf(s)));break;case 12:if(C&2048){ol(s,f,m,b),s=f.stateNode;try{var O=f.memoizedProps,$=O.id,ne=O.onPostCommit;typeof ne=="function"&&ne($,f.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ve){or(f,f.return,ve)}}else ol(s,f,m,b);break;case 31:ol(s,f,m,b);break;case 13:ol(s,f,m,b);break;case 23:break;case 22:O=f.stateNode,$=f.alternate,f.memoizedState!==null?O._visibility&2?ol(s,f,m,b):Jp(s,f):O._visibility&2?ol(s,f,m,b):(O._visibility|=2,js(s,f,m,b,(f.subtreeFlags&10256)!==0||!1)),C&2048&&Zp($,f);break;case 24:ol(s,f,m,b),C&2048&&uy(f.alternate,f);break;default:ol(s,f,m,b)}}function js(s,f,m,b,C){for(C=C&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var O=s,$=f,ne=m,ve=b,ke=$.flags;switch($.tag){case 0:case 11:case 15:js(O,$,ne,ve,C),Kp(8,$);break;case 23:break;case 22:var He=$.stateNode;$.memoizedState!==null?He._visibility&2?js(O,$,ne,ve,C):Jp(O,$):(He._visibility|=2,js(O,$,ne,ve,C)),C&&ke&2048&&Zp($.alternate,$);break;case 24:js(O,$,ne,ve,C),C&&ke&2048&&uy($.alternate,$);break;default:js(O,$,ne,ve,C)}f=f.sibling}}function Jp(s,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=s,b=f,C=b.flags;switch(b.tag){case 22:Jp(m,b),C&2048&&Zp(b.alternate,b);break;case 24:Jp(m,b),C&2048&&uy(b.alternate,b);break;default:Jp(m,b)}f=f.sibling}}var em=8192;function La(s,f,m){if(s.subtreeFlags&em)for(s=s.child;s!==null;)kh(s,f,m),s=s.sibling}function kh(s,f,m){switch(s.tag){case 26:La(s,f,m),s.flags&em&&s.memoizedState!==null&&Io(m,al,s.memoizedState,s.memoizedProps);break;case 5:La(s,f,m);break;case 3:case 4:var b=al;al=dd(s.stateNode.containerInfo),La(s,f,m),al=b;break;case 22:s.memoizedState===null&&(b=s.alternate,b!==null&&b.memoizedState!==null?(b=em,em=16777216,La(s,f,m),em=b):La(s,f,m));break;default:La(s,f,m)}}function kE(s){var f=s.alternate;if(f!==null&&(s=f.child,s!==null)){f.child=null;do f=s.sibling,s.sibling=null,s=f;while(s!==null)}}function od(s){var f=s.deletions;if((s.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ai=b,Tx(b,s)}kE(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)wx(s),s=s.sibling}function wx(s){switch(s.tag){case 0:case 11:case 15:od(s),s.flags&2048&&ka(9,s,s.return);break;case 3:od(s);break;case 12:od(s);break;case 22:var f=s.stateNode;s.memoizedState!==null&&f._visibility&2&&(s.return===null||s.return.tag!==13)?(f._visibility&=-3,tm(s)):od(s);break;default:od(s)}}function tm(s){var f=s.deletions;if((s.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];Ai=b,Tx(b,s)}kE(s)}for(s=s.child;s!==null;){switch(f=s,f.tag){case 0:case 11:case 15:ka(8,f,f.return),tm(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,tm(f));break;default:tm(f)}s=s.sibling}}function Tx(s,f){for(;Ai!==null;){var m=Ai;switch(m.tag){case 0:case 11:case 15:ka(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var b=m.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:Hf(m.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,Ai=b;else e:for(m=s;Ai!==null;){b=Ai;var C=b.sibling,O=b.return;if(Qp(b),b===m){Ai=null;break e}if(C!==null){C.return=O,Ai=C;break e}Ai=O}}}var Ax={getCacheForType:function(s){var f=qt(Qr),m=f.data.get(s);return m===void 0&&(m=s(),f.data.set(s,m)),m},cacheSignal:function(){return qt(Qr).controller.signal}},zE=typeof WeakMap=="function"?WeakMap:Map,Fn=0,hr=null,_n=null,Ln=0,Kn=0,so=null,dn=!1,Pc=!1,nm=!1,$s=0,Ir=0,ll=0,Us=0,Cx=0,uo=0,jc=0,Jr=null,co=null,sl=!1,rm=0,Iu=0,im=1/0,Zn=null,Hs=null,$n=0,$c=null,ld=null,Pl=0,cy=0,fo=null,Ox=null,sd=0,fy=null;function Va(){return(Fn&2)!==0&&Ln!==0?Ln&-Ln:W.T!==null?ud():K6()}function Mx(){if(uo===0)if((Ln&536870912)===0||In){var s=nt;nt<<=1,(nt&3932160)===0&&(nt=262144),uo=s}else uo=536870912;return s=da.current,s!==null&&(s.flags|=32),uo}function ho(s,f,m){(s===hr&&(Kn===2||Kn===9)||s.cancelPendingCommit!==null)&&(zh(s,0),Lu(s,Ln,uo,!1)),si(s,m),((Fn&2)===0||s!==hr)&&(s===hr&&((Fn&2)===0&&(Us|=m),Ir===4&&Lu(s,Ln,uo,!1)),jl(s))}function Rx(s,f,m){if((Fn&6)!==0)throw Error(r(327));var b=!m&&(f&127)===0&&(f&s.expiredLanes)===0||ot(s,f),C=b?BA(s,f):_x(s,f,!0),O=b;do{if(C===0){Pc&&!b&&Lu(s,f,0,!1);break}else{if(m=s.current.alternate,O&&!dy(m)){C=_x(s,f,!1),O=!1;continue}if(C===2){if(O=f,s.errorRecoveryDisabledLanes&O)var $=0;else $=s.pendingLanes&-536870913,$=$!==0?$:$&536870912?536870912:0;if($!==0){f=$;e:{var ne=s;C=Jr;var ve=ne.current.memoizedState.isDehydrated;if(ve&&(zh(ne,$).flags|=256),$=_x(ne,$,!1),$!==2){if(nm&&!ve){ne.errorRecoveryDisabledLanes|=O,Us|=O,C=4;break e}O=co,co=C,O!==null&&(co===null?co=O:co.push.apply(co,O))}C=$}if(O=!1,C!==2)continue}}if(C===1){zh(s,0),Lu(s,f,0,!0);break}e:{switch(b=s,O=C,O){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:Lu(b,f,uo,!dn);break e;case 2:co=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(C=rm+300-tn(),10<C)){if(Lu(b,f,uo,!dn),tt(b,0,!0)!==0)break e;Pl=f,b.timeoutHandle=ew(IE.bind(null,b,m,co,Zn,sl,f,uo,Us,jc,dn,O,"Throttled",-0,0),C);break e}IE(b,m,co,Zn,sl,f,uo,Us,jc,dn,O,null,-0,0)}}break}while(!0);jl(s)}function IE(s,f,m,b,C,O,$,ne,ve,ke,He,Qe,ze,je){if(s.timeoutHandle=-1,Qe=f.subtreeFlags,Qe&8192||(Qe&16785408)===16785408){Qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xi},kh(f,O,Qe);var kt=(O&62914560)===O?rm-tn():(O&4194048)===O?Iu-tn():0;if(kt=Ul(Qe,kt),kt!==null){Pl=O,s.cancelPendingCommit=kt($E.bind(null,s,f,O,m,b,C,$,ne,ve,He,Qe,null,ze,je)),Lu(s,O,$,!ke);return}}$E(s,f,O,m,b,C,$,ne,ve)}function dy(s){for(var f=s;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var C=m[b],O=C.getSnapshot;C=C.value;try{if(!Za(O(),C))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===s)break;for(;f.sibling===null;){if(f.return===null||f.return===s)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function Lu(s,f,m,b){f&=~Cx,f&=~Us,s.suspendedLanes|=f,s.pingedLanes&=~f,b&&(s.warmLanes|=f),b=s.expirationTimes;for(var C=f;0<C;){var O=31-gn(C),$=1<<O;b[O]=-1,C&=~$}m!==0&&Ef(s,m,f)}function am(){return(Fn&6)===0?(um(0),!1):!0}function om(){if(_n!==null){if(Kn===0)var s=_n.return;else s=_n,zl=Oc=null,Wf(s),kc=null,qf=0,s=_n;for(;s!==null;)mx(s.alternate,s),s=s.return;_n=null}}function zh(s,f){var m=s.timeoutHandle;m!==-1&&(s.timeoutHandle=-1,Ry(m)),m=s.cancelPendingCommit,m!==null&&(s.cancelPendingCommit=null,m()),Pl=0,om(),hr=s,_n=m=Ro(s.current,null),Ln=f,Kn=0,so=null,dn=!1,Pc=ot(s,f),nm=!1,jc=uo=Cx=Us=ll=Ir=0,co=Jr=null,sl=!1,(f&8)!==0&&(f|=f&32);var b=s.entangledLanes;if(b!==0)for(s=s.entanglements,b&=f;0<b;){var C=31-gn(b),O=1<<C;f|=s[C],b&=~O}return $s=f,Oo(),m}function Ih(s,f){pn=null,W.H=Mh,f===Il||f===_c?(f=k4(),Kn=3):f===wp?(f=k4(),Kn=4):Kn=f===lx?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,so=f,_n===null&&(Ir=1,Rh(s,_o(f,s.current)))}function Lh(){var s=da.current;return s===null?!0:(Ln&4194048)===Ln?oo===null:(Ln&62914560)===Ln||(Ln&536870912)!==0?s===oo:!1}function LE(){var s=W.H;return W.H=Mh,s===null?Mh:s}function VE(){var s=W.A;return W.A=Ax,s}function hy(){Ir=4,dn||(Ln&4194048)!==Ln&&da.current!==null||(Pc=!0),(ll&134217727)===0&&(Us&134217727)===0||hr===null||Lu(hr,Ln,uo,!1)}function _x(s,f,m){var b=Fn;Fn|=2;var C=LE(),O=VE();(hr!==s||Ln!==f)&&(Zn=null,zh(s,f)),f=!1;var $=Ir;e:do try{if(Kn!==0&&_n!==null){var ne=_n,ve=so;switch(Kn){case 8:om(),$=6;break e;case 3:case 2:case 9:case 6:da.current===null&&(f=!0);var ke=Kn;if(Kn=0,so=null,Vh(s,ne,ve,ke),m&&Pc){$=0;break e}break;default:ke=Kn,Kn=0,so=null,Vh(s,ne,ve,ke)}}BE(),$=Ir;break}catch(He){Ih(s,He)}while(!0);return f&&s.shellSuspendCounter++,zl=Oc=null,Fn=b,W.H=C,W.A=O,_n===null&&(hr=null,Ln=0,Oo()),$}function BE(){for(;_n!==null;)Vu(_n)}function BA(s,f){var m=Fn;Fn|=2;var b=LE(),C=VE();hr!==s||Ln!==f?(Zn=null,im=tn()+500,zh(s,f)):Pc=ot(s,f);e:do try{if(Kn!==0&&_n!==null){f=_n;var O=so;t:switch(Kn){case 1:Kn=0,so=null,Vh(s,f,O,1);break;case 2:case 9:if(Tp(O)){Kn=0,so=null,jE(f);break}f=function(){Kn!==2&&Kn!==9||hr!==s||(Kn=7),jl(s)},O.then(f,f);break e;case 3:Kn=7;break e;case 4:Kn=5;break e;case 7:Tp(O)?(Kn=0,so=null,jE(f)):(Kn=0,so=null,Vh(s,f,O,7));break;case 5:var $=null;switch(_n.tag){case 26:$=_n.memoizedState;case 5:case 27:var ne=_n;if($?Ly($):ne.stateNode.complete){Kn=0,so=null;var ve=ne.sibling;if(ve!==null)_n=ve;else{var ke=ne.return;ke!==null?(_n=ke,lm(ke)):_n=null}break t}}Kn=0,so=null,Vh(s,f,O,5);break;case 6:Kn=0,so=null,Vh(s,f,O,6);break;case 8:om(),Ir=6;break e;default:throw Error(r(462))}}PE();break}catch(He){Ih(s,He)}while(!0);return zl=Oc=null,W.H=b,W.A=C,Fn=m,_n!==null?0:(hr=null,Ln=0,Oo(),Ir)}function PE(){for(;_n!==null&&!Mt();)Vu(_n)}function Vu(s){var f=Xp(s.alternate,s,$s);s.memoizedProps=s.pendingProps,f===null?lm(s):_n=f}function jE(s){var f=s,m=f.alternate;switch(f.tag){case 15:case 0:f=dx(m,f,f.pendingProps,f.type,void 0,Ln);break;case 11:f=dx(m,f,f.pendingProps,f.type.render,f.ref,Ln);break;case 5:Wf(f);default:mx(m,f),f=_n=yE(f,$s),f=Xp(m,f,$s)}s.memoizedProps=s.pendingProps,f===null?lm(s):_n=f}function Vh(s,f,m,b){zl=Oc=null,Wf(f),kc=null,qf=0;var C=f.return;try{if(CE(s,C,f,m,Ln)){Ir=1,Rh(s,_o(m,s.current)),_n=null;return}}catch(O){if(C!==null)throw _n=C,O;Ir=1,Rh(s,_o(m,s.current)),_n=null;return}f.flags&32768?(In||b===1?s=!0:Pc||(Ln&536870912)!==0?s=!1:(dn=s=!0,(b===2||b===9||b===3||b===6)&&(b=da.current,b!==null&&b.tag===13&&(b.flags|=16384))),Dx(f,s)):lm(f)}function lm(s){var f=s;do{if((f.flags&32768)!==0){Dx(f,dn);return}s=f.return;var m=Ur(f.alternate,f,$s);if(m!==null){_n=m;return}if(f=f.sibling,f!==null){_n=f;return}_n=f=s}while(f!==null);Ir===0&&(Ir=5)}function Dx(s,f){do{var m=RE(s.alternate,s);if(m!==null){m.flags&=32767,_n=m;return}if(m=s.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(s=s.sibling,s!==null)){_n=s;return}_n=s=m}while(s!==null);Ir=6,_n=null}function $E(s,f,m,b,C,O,$,ne,ve){s.cancelPendingCommit=null;do py();while($n!==0);if((Fn&6)!==0)throw Error(r(327));if(f!==null){if(f===s.current)throw Error(r(177));if(O=f.lanes|f.childLanes,O|=_a,n1(s,m,O,$,ne,ve),s===hr&&(_n=hr=null,Ln=0),ld=f,$c=s,Pl=m,cy=O,fo=C,Ox=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,YE(at,function(){return my(),null})):(s.callbackNode=null,s.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=W.T,W.T=null,C=oe.p,oe.p=2,$=Fn,Fn|=4;try{VA(s,f,m)}finally{Fn=$,oe.p=C,W.T=b}}$n=1,UE(),HE(),qE()}}function UE(){if($n===1){$n=0;var s=$c,f=ld,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=W.T,W.T=null;var b=oe.p;oe.p=2;var C=Fn;Fn|=4;try{Wn(f,s);var O=Oy,$=Vf(s.containerInfo),ne=O.focusedElem,ve=O.selectionRange;if($!==ne&&ne&&ne.ownerDocument&&A4(ne.ownerDocument.documentElement,ne)){if(ve!==null&&Eu(ne)){var ke=ve.start,He=ve.end;if(He===void 0&&(He=ke),"selectionStart"in ne)ne.selectionStart=ke,ne.selectionEnd=Math.min(He,ne.value.length);else{var Qe=ne.ownerDocument||document,ze=Qe&&Qe.defaultView||window;if(ze.getSelection){var je=ze.getSelection(),kt=ne.textContent.length,Zt=Math.min(ve.start,kt),pr=ve.end===void 0?Zt:Math.min(ve.end,kt);!je.extend&&Zt>pr&&($=pr,pr=Zt,Zt=$);var De=T4(ne,Zt),Te=T4(ne,pr);if(De&&Te&&(je.rangeCount!==1||je.anchorNode!==De.node||je.anchorOffset!==De.offset||je.focusNode!==Te.node||je.focusOffset!==Te.offset)){var Ne=Qe.createRange();Ne.setStart(De.node,De.offset),je.removeAllRanges(),Zt>pr?(je.addRange(Ne),je.extend(Te.node,Te.offset)):(Ne.setEnd(Te.node,Te.offset),je.addRange(Ne))}}}}for(Qe=[],je=ne;je=je.parentNode;)je.nodeType===1&&Qe.push({element:je,left:je.scrollLeft,top:je.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Qe.length;ne++){var Fe=Qe[ne];Fe.element.scrollLeft=Fe.left,Fe.element.scrollTop=Fe.top}}$u=!!mm,Oy=mm=null}finally{Fn=C,oe.p=b,W.T=m}}s.current=f,$n=2}}function HE(){if($n===2){$n=0;var s=$c,f=ld,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=W.T,W.T=null;var b=oe.p;oe.p=2;var C=Fn;Fn|=4;try{id(s,f.alternate,f)}finally{Fn=C,oe.p=b,W.T=m}}$n=3}}function qE(){if($n===4||$n===3){$n=0,Dn();var s=$c,f=ld,m=Pl,b=Ox;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?$n=5:($n=0,ld=$c=null,GE(s,s.pendingLanes));var C=s.pendingLanes;if(C===0&&(Hs=null),r1(m),f=f.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Lt,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=W.T,C=oe.p,oe.p=2,W.T=null;try{for(var O=s.onRecoverableError,$=0;$<b.length;$++){var ne=b[$];O(ne.value,{componentStack:ne.stack})}}finally{W.T=f,oe.p=C}}(Pl&3)!==0&&py(),jl(s),C=s.pendingLanes,(m&261930)!==0&&(C&42)!==0?s===fy?sd++:(sd=0,fy=s):sd=0,um(0)}}function GE(s,f){(s.pooledCacheLanes&=f)===0&&(f=s.pooledCache,f!=null&&(s.pooledCache=null,Hf(f)))}function py(){return UE(),HE(),qE(),my()}function my(){if($n!==5)return!1;var s=$c,f=cy;cy=0;var m=r1(Pl),b=W.T,C=oe.p;try{oe.p=32>m?32:m,W.T=null,m=fo,fo=null;var O=$c,$=Pl;if($n=0,ld=$c=null,Pl=0,(Fn&6)!==0)throw Error(r(331));var ne=Fn;if(Fn|=4,wx(O.current),Ex(O,O.current,$,m),Fn=ne,um(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Lt,O)}catch{}return!0}finally{oe.p=C,W.T=b,GE(s,f)}}function FE(s,f,m){f=_o(m,f),f=_h(s.stateNode,f,2),s=Ou(s,f,2),s!==null&&(si(s,2),jl(s))}function or(s,f,m){if(s.tag===3)FE(s,s,m);else for(;f!==null;){if(f.tag===3){FE(f,s,m);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Hs===null||!Hs.has(b))){s=_o(m,s),m=AE(2),b=Ou(f,m,2),b!==null&&(ox(m,b,f,s),si(b,2),jl(b));break}}f=f.return}}function gy(s,f,m){var b=s.pingCache;if(b===null){b=s.pingCache=new zE;var C=new Set;b.set(f,C)}else C=b.get(f),C===void 0&&(C=new Set,b.set(f,C));C.has(m)||(nm=!0,C.add(m),s=Nx.bind(null,s,f,m),f.then(s,s))}function Nx(s,f,m){var b=s.pingCache;b!==null&&b.delete(f),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,hr===s&&(Ln&m)===m&&(Ir===4||Ir===3&&(Ln&62914560)===Ln&&300>tn()-rm?(Fn&2)===0&&zh(s,0):Cx|=m,jc===Ln&&(jc=0)),jl(s)}function yy(s,f){f===0&&(f=ct()),s=ua(s,f),s!==null&&(si(s,f),jl(s))}function PA(s){var f=s.memoizedState,m=0;f!==null&&(m=f.retryLane),yy(s,m)}function zo(s,f){var m=0;switch(s.tag){case 31:case 13:var b=s.stateNode,C=s.memoizedState;C!==null&&(m=C.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(f),yy(s,m)}function YE(s,f){return vn(s,f)}var sm=null,Uc=null,vy=!1,by=!1,kx=!1,Hc=0;function jl(s){s!==Uc&&s.next===null&&(Uc===null?sm=Uc=s:Uc=Uc.next=s),by=!0,vy||(vy=!0,Bh())}function um(s,f){if(!kx&&by){kx=!0;do for(var m=!1,b=sm;b!==null;){if(s!==0){var C=b.pendingLanes;if(C===0)var O=0;else{var $=b.suspendedLanes,ne=b.pingedLanes;O=(1<<31-gn(42|s)+1)-1,O&=C&~($&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,dm(b,O))}else O=Ln,O=tt(b,b===hr?O:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(O&3)===0||ot(b,O)||(m=!0,dm(b,O));b=b.next}while(m);kx=!1}}function cm(){fm()}function fm(){by=vy=!1;var s=0;Hc!==0&&JE()&&(s=Hc);for(var f=tn(),m=null,b=sm;b!==null;){var C=b.next,O=zx(b,f);O===0?(b.next=null,m===null?sm=C:m.next=C,C===null&&(Uc=m)):(m=b,(s!==0||(O&3)!==0)&&(by=!0)),b=C}$n!==0&&$n!==5||um(s),Hc!==0&&(Hc=0)}function zx(s,f){for(var m=s.suspendedLanes,b=s.pingedLanes,C=s.expirationTimes,O=s.pendingLanes&-62914561;0<O;){var $=31-gn(O),ne=1<<$,ve=C[$];ve===-1?((ne&m)===0||(ne&b)!==0)&&(C[$]=zt(ne,f)):ve<=f&&(s.expiredLanes|=ne),O&=~ne}if(f=hr,m=Ln,m=tt(s,s===f?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b=s.callbackNode,m===0||s===f&&(Kn===2||Kn===9)||s.cancelPendingCommit!==null)return b!==null&&b!==null&&it(b),s.callbackNode=null,s.callbackPriority=0;if((m&3)===0||ot(s,m)){if(f=m&-m,f===s.callbackPriority)return f;switch(b!==null&&it(b),r1(m)){case 2:case 8:m=Le;break;case 32:m=at;break;case 268435456:m=ht;break;default:m=at}return b=Ix.bind(null,s),m=vn(m,b),s.callbackPriority=f,s.callbackNode=m,f}return b!==null&&b!==null&&it(b),s.callbackPriority=2,s.callbackNode=null,2}function Ix(s,f){if($n!==0&&$n!==5)return s.callbackNode=null,s.callbackPriority=0,null;var m=s.callbackNode;if(py()&&s.callbackNode!==m)return null;var b=Ln;return b=tt(s,s===hr?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b===0?null:(Rx(s,b,f),zx(s,tn()),s.callbackNode!=null&&s.callbackNode===m?Ix.bind(null,s):null)}function dm(s,f){if(py())return null;Rx(s,f,!0)}function Bh(){Hh(function(){(Fn&6)!==0?vn(xe,cm):fm()})}function ud(){if(Hc===0){var s=Mc;s===0&&(s=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Hc=s}return Hc}function Lx(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:vc(""+s)}function XE(s,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,s.id&&m.setAttribute("form",s.id),f.parentNode.insertBefore(m,f),s=new FormData(s),m.parentNode.removeChild(m),s}function Ph(s,f,m,b,C){if(f==="submit"&&m&&m.stateNode===C){var O=Lx((C[_r]||null).action),$=b.submitter;$&&(f=(f=$[_r]||null)?Lx(f.formAction):$.getAttribute("formAction"),f!==null&&(O=f,$=null));var ne=new ip("action","action",null,b,C);s.push({event:ne,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Hc!==0){var ve=$?XE(C,$):new FormData(C);Z1(m,{pending:!0,data:ve,method:C.method,action:O},null,ve)}}else typeof O=="function"&&(ne.preventDefault(),ve=$?XE(C,$):new FormData(C),Z1(m,{pending:!0,data:ve,method:C.method,action:O},O,ve))},currentTarget:C}]})}}for(var cd=0;cd<Dl.length;cd++){var xy=Dl[cd],Sy=xy.toLowerCase(),Vx=xy[0].toUpperCase()+xy.slice(1);Ja(Sy,"on"+Vx)}Ja(Er,"onAnimationEnd"),Ja(fp,"onAnimationIteration"),Ja(O4,"onAnimationStart"),Ja("dblclick","onDoubleClick"),Ja("focusin","onFocus"),Ja("focusout","onBlur"),Ja(M4,"onTransitionRun"),Ja(Bf,"onTransitionStart"),Ja(dp,"onTransitionCancel"),Ja(_l,"onTransitionEnd"),Mf("onMouseEnter",["mouseout","mouseover"]),Mf("onMouseLeave",["mouseout","mouseover"]),Mf("onPointerEnter",["pointerout","pointerover"]),Mf("onPointerLeave",["pointerout","pointerover"]),To("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),To("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),To("onBeforeInput",["compositionend","keypress","textInput","paste"]),To("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),To("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),To("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fd="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(" "),WE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fd));function Bx(s,f){f=(f&4)!==0;for(var m=0;m<s.length;m++){var b=s[m],C=b.event;b=b.listeners;e:{var O=void 0;if(f)for(var $=b.length-1;0<=$;$--){var ne=b[$],ve=ne.instance,ke=ne.currentTarget;if(ne=ne.listener,ve!==O&&C.isPropagationStopped())break e;O=ne,C.currentTarget=ke;try{O(C)}catch(He){Cc(He)}C.currentTarget=null,O=ve}else for($=0;$<b.length;$++){if(ne=b[$],ve=ne.instance,ke=ne.currentTarget,ne=ne.listener,ve!==O&&C.isPropagationStopped())break e;O=ne,C.currentTarget=ke;try{O(C)}catch(He){Cc(He)}C.currentTarget=null,O=ve}}}}function Nn(s,f){var m=f[X0];m===void 0&&(m=f[X0]=new Set);var b=s+"__bubble";m.has(b)||(hm(f,s,2,!1),m.add(b))}function Ey(s,f,m){var b=0;f&&(b|=4),hm(m,s,b,f)}var wy="_reactListening"+Math.random().toString(36).slice(2);function Px(s){if(!s[wy]){s[wy]=!0,Ka.forEach(function(m){m!=="selectionchange"&&(WE.has(m)||Ey(m,!1,s),Ey(m,!0,s))});var f=s.nodeType===9?s:s.ownerDocument;f===null||f[wy]||(f[wy]=!0,Ey("selectionchange",!1,f))}}function hm(s,f,m,b){switch(wm(f)){case 2:var C=ga;break;case 8:C=Fs;break;default:C=dl}m=C.bind(null,f,m,s),C=void 0,!f4||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(C=!0),b?C!==void 0?s.addEventListener(f,m,{capture:!0,passive:C}):s.addEventListener(f,m,!0):C!==void 0?s.addEventListener(f,m,{passive:C}):s.addEventListener(f,m,!1)}function jh(s,f,m,b,C){var O=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var $=b.tag;if($===3||$===4){var ne=b.stateNode.containerInfo;if(ne===C)break;if($===4)for($=b.return;$!==null;){var ve=$.tag;if((ve===3||ve===4)&&$.stateNode.containerInfo===C)return;$=$.return}for(;ne!==null;){if($=Tf(ne),$===null)return;if(ve=$.tag,ve===5||ve===6||ve===26||ve===27){b=O=$;continue e}ne=ne.parentNode}}b=b.return}np(function(){var ke=O,He=s1(m),Qe=[];e:{var ze=gE.get(s);if(ze!==void 0){var je=ip,kt=s;switch(s){case"keypress":if(rp(m)===0)break e;case"keydown":case"keyup":je=p1;break;case"focusin":kt="focus",je=h1;break;case"focusout":kt="blur",je=h1;break;case"beforeblur":case"afterblur":je=h1;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":je=rE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":je=iE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":je=NA;break;case Er:case fp:case O4:je=m4;break;case _l:je=cE;break;case"scroll":case"scrollend":je=nE;break;case"wheel":je=y4;break;case"copy":case"cut":case"paste":je=Nf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":je=g1;break;case"toggle":case"beforetoggle":je=fE}var Zt=(f&4)!==0,pr=!Zt&&(s==="scroll"||s==="scrollend"),De=Zt?ze!==null?ze+"Capture":null:ze;Zt=[];for(var Te=ke,Ne;Te!==null;){var Fe=Te;if(Ne=Fe.stateNode,Fe=Fe.tag,Fe!==5&&Fe!==26&&Fe!==27||Ne===null||De===null||(Fe=sh(Te,De),Fe!=null&&Zt.push(pm(Te,Fe,Ne))),pr)break;Te=Te.return}0<Zt.length&&(ze=new je(ze,kt,null,m,He),Qe.push({event:ze,listeners:Zt}))}}if((f&7)===0){e:{if(ze=s==="mouseover"||s==="pointerover",je=s==="mouseout"||s==="pointerout",ze&&m!==tp&&(kt=m.relatedTarget||m.fromElement)&&(Tf(kt)||kt[wf]))break e;if((je||ze)&&(ze=He.window===He?He:(ze=He.ownerDocument)?ze.defaultView||ze.parentWindow:window,je?(kt=m.relatedTarget||m.toElement,je=ke,kt=kt?Tf(kt):null,kt!==null&&(pr=l(kt),Zt=kt.tag,kt!==pr||Zt!==5&&Zt!==27&&Zt!==6)&&(kt=null)):(je=null,kt=ke),je!==kt)){if(Zt=rE,Fe="onMouseLeave",De="onMouseEnter",Te="mouse",(s==="pointerout"||s==="pointerover")&&(Zt=g1,Fe="onPointerLeave",De="onPointerEnter",Te="pointer"),pr=je==null?ze:ih(je),Ne=kt==null?ze:ih(kt),ze=new Zt(Fe,Te+"leave",je,m,He),ze.target=pr,ze.relatedTarget=Ne,Fe=null,Tf(He)===ke&&(Zt=new Zt(De,Te+"enter",kt,m,He),Zt.target=Ne,Zt.relatedTarget=pr,Fe=Zt),pr=Fe,je&&kt)t:{for(Zt=KE,De=je,Te=kt,Ne=0,Fe=De;Fe;Fe=Zt(Fe))Ne++;Fe=0;for(var Ut=Te;Ut;Ut=Zt(Ut))Fe++;for(;0<Ne-Fe;)De=Zt(De),Ne--;for(;0<Fe-Ne;)Te=Zt(Te),Fe--;for(;Ne--;){if(De===Te||Te!==null&&De===Te.alternate){Zt=De;break t}De=Zt(De),Te=Zt(Te)}Zt=null}else Zt=null;je!==null&&jx(Qe,ze,je,Zt,!1),kt!==null&&pr!==null&&jx(Qe,pr,kt,Zt,!0)}}e:{if(ze=ke?ih(ke):window,je=ze.nodeName&&ze.nodeName.toLowerCase(),je==="select"||je==="input"&&ze.type==="file")var Yn=x1;else if(v1(ze))if(S4)Yn=Sc;else{Yn=pE;var It=w4}else je=ze.nodeName,!je||je.toLowerCase()!=="input"||ze.type!=="checkbox"&&ze.type!=="radio"?ke&&u4(ke.elementType)&&(Yn=x1):Yn=mE;if(Yn&&(Yn=Yn(s,ke))){ms(Qe,Yn,m,He);break e}It&&It(s,ze,ke),s==="focusout"&&ke&&ze.type==="number"&&ke.memoizedProps.value!=null&&oh(ze,"number",ze.value)}switch(It=ke?ih(ke):window,s){case"focusin":(v1(It)||It.contentEditable==="true")&&(vs=It,up=ke,wc=null);break;case"focusout":wc=up=vs=null;break;case"mousedown":bs=!0;break;case"contextmenu":case"mouseup":case"dragend":bs=!1,xs(Qe,m,He);break;case"selectionchange":if(C4)break;case"keydown":case"keyup":xs(Qe,m,He)}var yn;if(ch)e:{switch(s){case"compositionstart":var On="onCompositionStart";break e;case"compositionend":On="onCompositionEnd";break e;case"compositionupdate":On="onCompositionUpdate";break e}On=void 0}else zf?xc(s,m)&&(On="onCompositionEnd"):s==="keydown"&&m.keyCode===229&&(On="onCompositionStart");On&&(Wi&&m.locale!=="ko"&&(zf||On!=="onCompositionStart"?On==="onCompositionEnd"&&zf&&(yn=tE()):(xu=He,u1="value"in xu?xu.value:xu.textContent,zf=!0)),It=Ty(ke,On),0<It.length&&(On=new Zo(On,s,null,m,He),Qe.push({event:On,listeners:It}),yn?On.data=yn:(yn=y1(m),yn!==null&&(On.data=yn)))),(yn=b4?dE(s,m):hE(s,m))&&(On=Ty(ke,"onBeforeInput"),0<On.length&&(It=new Zo("onBeforeInput","beforeinput",null,m,He),Qe.push({event:It,listeners:On}),It.data=yn)),Ph(Qe,s,ke,m,He)}Bx(Qe,f)})}function pm(s,f,m){return{instance:s,listener:f,currentTarget:m}}function Ty(s,f){for(var m=f+"Capture",b=[];s!==null;){var C=s,O=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||O===null||(C=sh(s,m),C!=null&&b.unshift(pm(s,C,O)),C=sh(s,f),C!=null&&b.push(pm(s,C,O))),s.tag===3)return b;s=s.return}return[]}function KE(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function jx(s,f,m,b,C){for(var O=f._reactName,$=[];m!==null&&m!==b;){var ne=m,ve=ne.alternate,ke=ne.stateNode;if(ne=ne.tag,ve!==null&&ve===b)break;ne!==5&&ne!==26&&ne!==27||ke===null||(ve=ke,C?(ke=sh(m,O),ke!=null&&$.unshift(pm(m,ke,ve))):C||(ke=sh(m,O),ke!=null&&$.push(pm(m,ke,ve)))),m=m.return}$.length!==0&&s.push({event:f,listeners:$})}var $x=/\r\n?/g,QE=/\u0000|\uFFFD/g;function Ay(s){return(typeof s=="string"?s:""+s).replace($x,`
`).replace(QE,"")}function Ux(s,f){return f=Ay(f),Ay(s)===f}function lr(s,f,m,b,C,O){switch(m){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||Rf(s,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&Rf(s,""+b);break;case"className":ah(s,"class",b);break;case"tabIndex":ah(s,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":ah(s,m,b);break;case"style":eE(s,b,O);break;case"data":if(f!=="object"){ah(s,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||m!=="href")){s.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(m);break}b=vc(""+b),s.setAttribute(m,b);break;case"action":case"formAction":if(typeof b=="function"){s.setAttribute(m,"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 O=="function"&&(m==="formAction"?(f!=="input"&&lr(s,f,"name",C.name,C,null),lr(s,f,"formEncType",C.formEncType,C,null),lr(s,f,"formMethod",C.formMethod,C,null),lr(s,f,"formTarget",C.formTarget,C,null)):(lr(s,f,"encType",C.encType,C,null),lr(s,f,"method",C.method,C,null),lr(s,f,"target",C.target,C,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(m);break}b=vc(""+b),s.setAttribute(m,b);break;case"onClick":b!=null&&(s.onclick=Xi);break;case"onScroll":b!=null&&Nn("scroll",s);break;case"onScrollEnd":b!=null&&Nn("scrollend",s);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(m=b.__html,m!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=m}}break;case"multiple":s.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":s.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){s.removeAttribute("xlink:href");break}m=vc(""+b),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(m,""+b):s.removeAttribute(m);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":b&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(m,""):s.removeAttribute(m);break;case"capture":case"download":b===!0?s.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(m,b):s.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?s.setAttribute(m,b):s.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?s.removeAttribute(m):s.setAttribute(m,b);break;case"popover":Nn("beforetoggle",s),Nn("toggle",s),vu(s,"popover",b);break;case"xlinkActuate":bu(s,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":bu(s,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":bu(s,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":bu(s,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":bu(s,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":bu(s,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":bu(s,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":bu(s,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":bu(s,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":vu(s,"is",b);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=RA.get(m)||m,vu(s,m,b))}}function Hx(s,f,m,b,C,O){switch(m){case"style":eE(s,b,O);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(m=b.__html,m!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=m}}break;case"children":typeof b=="string"?Rf(s,b):(typeof b=="number"||typeof b=="bigint")&&Rf(s,""+b);break;case"onScroll":b!=null&&Nn("scroll",s);break;case"onScrollEnd":b!=null&&Nn("scrollend",s);break;case"onClick":b!=null&&(s.onclick=Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(C=m.endsWith("Capture"),f=m.slice(2,C?m.length-7:void 0),O=s[_r]||null,O=O!=null?O[m]:null,typeof O=="function"&&s.removeEventListener(f,O,C),typeof b=="function")){typeof O!="function"&&O!==null&&(m in s?s[m]=null:s.hasAttribute(m)&&s.removeAttribute(m)),s.addEventListener(f,b,C);break e}m in s?s[m]=b:b===!0?s.setAttribute(m,""):vu(s,m,b)}}}function ta(s,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nn("error",s),Nn("load",s);var b=!1,C=!1,O;for(O in m)if(m.hasOwnProperty(O)){var $=m[O];if($!=null)switch(O){case"src":b=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:lr(s,f,O,$,m,null)}}C&&lr(s,f,"srcSet",m.srcSet,m,null),b&&lr(s,f,"src",m.src,m,null);return;case"input":Nn("invalid",s);var ne=O=$=C=null,ve=null,ke=null;for(b in m)if(m.hasOwnProperty(b)){var He=m[b];if(He!=null)switch(b){case"name":C=He;break;case"type":$=He;break;case"checked":ve=He;break;case"defaultChecked":ke=He;break;case"value":O=He;break;case"defaultValue":ne=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,f));break;default:lr(s,f,b,He,m,null)}}l1(s,O,ne,ve,ke,$,C,!1);return;case"select":Nn("invalid",s),b=$=O=null;for(C in m)if(m.hasOwnProperty(C)&&(ne=m[C],ne!=null))switch(C){case"value":O=ne;break;case"defaultValue":$=ne;break;case"multiple":b=ne;default:lr(s,f,C,ne,m,null)}f=O,m=$,s.multiple=!!b,f!=null?us(s,!!b,f,!1):m!=null&&us(s,!!b,m,!0);return;case"textarea":Nn("invalid",s),O=C=b=null;for($ in m)if(m.hasOwnProperty($)&&(ne=m[$],ne!=null))switch($){case"value":b=ne;break;case"defaultValue":C=ne;break;case"children":O=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(91));break;default:lr(s,f,$,ne,m,null)}l4(s,b,C,O);return;case"option":for(ve in m)if(m.hasOwnProperty(ve)&&(b=m[ve],b!=null))switch(ve){case"selected":s.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:lr(s,f,ve,b,m,null)}return;case"dialog":Nn("beforetoggle",s),Nn("toggle",s),Nn("cancel",s),Nn("close",s);break;case"iframe":case"object":Nn("load",s);break;case"video":case"audio":for(b=0;b<fd.length;b++)Nn(fd[b],s);break;case"image":Nn("error",s),Nn("load",s);break;case"details":Nn("toggle",s);break;case"embed":case"source":case"link":Nn("error",s),Nn("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ke in m)if(m.hasOwnProperty(ke)&&(b=m[ke],b!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:lr(s,f,ke,b,m,null)}return;default:if(u4(f)){for(He in m)m.hasOwnProperty(He)&&(b=m[He],b!==void 0&&Hx(s,f,He,b,m,void 0));return}}for(ne in m)m.hasOwnProperty(ne)&&(b=m[ne],b!=null&&lr(s,f,ne,b,m,null))}function jA(s,f,m,b){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,O=null,$=null,ne=null,ve=null,ke=null,He=null;for(je in m){var Qe=m[je];if(m.hasOwnProperty(je)&&Qe!=null)switch(je){case"checked":break;case"value":break;case"defaultValue":ve=Qe;default:b.hasOwnProperty(je)||lr(s,f,je,null,b,Qe)}}for(var ze in b){var je=b[ze];if(Qe=m[ze],b.hasOwnProperty(ze)&&(je!=null||Qe!=null))switch(ze){case"type":O=je;break;case"name":C=je;break;case"checked":ke=je;break;case"defaultChecked":He=je;break;case"value":$=je;break;case"defaultValue":ne=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,f));break;default:je!==Qe&&lr(s,f,ze,je,b,Qe)}}o1(s,$,ne,ve,ke,He,O,C);return;case"select":je=$=ne=ze=null;for(O in m)if(ve=m[O],m.hasOwnProperty(O)&&ve!=null)switch(O){case"value":break;case"multiple":je=ve;default:b.hasOwnProperty(O)||lr(s,f,O,null,b,ve)}for(C in b)if(O=b[C],ve=m[C],b.hasOwnProperty(C)&&(O!=null||ve!=null))switch(C){case"value":ze=O;break;case"defaultValue":ne=O;break;case"multiple":$=O;default:O!==ve&&lr(s,f,C,O,b,ve)}f=ne,m=$,b=je,ze!=null?us(s,!!m,ze,!1):!!b!=!!m&&(f!=null?us(s,!!m,f,!0):us(s,!!m,m?[]:"",!1));return;case"textarea":je=ze=null;for(ne in m)if(C=m[ne],m.hasOwnProperty(ne)&&C!=null&&!b.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:lr(s,f,ne,null,b,C)}for($ in b)if(C=b[$],O=m[$],b.hasOwnProperty($)&&(C!=null||O!=null))switch($){case"value":ze=C;break;case"defaultValue":je=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==O&&lr(s,f,$,C,b,O)}J6(s,ze,je);return;case"option":for(var kt in m)if(ze=m[kt],m.hasOwnProperty(kt)&&ze!=null&&!b.hasOwnProperty(kt))switch(kt){case"selected":s.selected=!1;break;default:lr(s,f,kt,null,b,ze)}for(ve in b)if(ze=b[ve],je=m[ve],b.hasOwnProperty(ve)&&ze!==je&&(ze!=null||je!=null))switch(ve){case"selected":s.selected=ze&&typeof ze!="function"&&typeof ze!="symbol";break;default:lr(s,f,ve,ze,b,je)}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 Zt in m)ze=m[Zt],m.hasOwnProperty(Zt)&&ze!=null&&!b.hasOwnProperty(Zt)&&lr(s,f,Zt,null,b,ze);for(ke in b)if(ze=b[ke],je=m[ke],b.hasOwnProperty(ke)&&ze!==je&&(ze!=null||je!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(r(137,f));break;default:lr(s,f,ke,ze,b,je)}return;default:if(u4(f)){for(var pr in m)ze=m[pr],m.hasOwnProperty(pr)&&ze!==void 0&&!b.hasOwnProperty(pr)&&Hx(s,f,pr,void 0,b,ze);for(He in b)ze=b[He],je=m[He],!b.hasOwnProperty(He)||ze===je||ze===void 0&&je===void 0||Hx(s,f,He,ze,b,je);return}}for(var De in m)ze=m[De],m.hasOwnProperty(De)&&ze!=null&&!b.hasOwnProperty(De)&&lr(s,f,De,null,b,ze);for(Qe in b)ze=b[Qe],je=m[Qe],!b.hasOwnProperty(Qe)||ze===je||ze==null&&je==null||lr(s,f,Qe,ze,b,je)}function Cy(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qx(){if(typeof performance.getEntriesByType=="function"){for(var s=0,f=0,m=performance.getEntriesByType("resource"),b=0;b<m.length;b++){var C=m[b],O=C.transferSize,$=C.initiatorType,ne=C.duration;if(O&&ne&&Cy($)){for($=0,ne=C.responseEnd,b+=1;b<m.length;b++){var ve=m[b],ke=ve.startTime;if(ke>ne)break;var He=ve.transferSize,Qe=ve.initiatorType;He&&Cy(Qe)&&(ve=ve.responseEnd,$+=He*(ve<ne?1:(ne-ke)/(ve-ke)))}if(--b,f+=8*(O+$)/(C.duration/1e3),s++,10<s)break}}if(0<s)return f/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var mm=null,Oy=null;function gm(s){return s.nodeType===9?s:s.ownerDocument}function $h(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ZE(s,f){if(s===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&f==="foreignObject"?0:s}function My(s,f){return s==="textarea"||s==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Uh=null;function JE(){var s=window.event;return s&&s.type==="popstate"?s===Uh?!1:(Uh=s,!0):(Uh=null,!1)}var ew=typeof setTimeout=="function"?setTimeout:void 0,Ry=typeof clearTimeout=="function"?clearTimeout:void 0,Gx=typeof Promise=="function"?Promise:void 0,Hh=typeof queueMicrotask=="function"?queueMicrotask:typeof Gx<"u"?function(s){return Gx.resolve(null).then(s).catch(tw)}:ew;function tw(s){setTimeout(function(){throw s})}function qs(s){return s==="head"}function ym(s,f){var m=f,b=0;do{var C=m.nextSibling;if(s.removeChild(m),C&&C.nodeType===8)if(m=C.data,m==="/$"||m==="/&"){if(b===0){s.removeChild(C),Wh(f);return}b--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")b++;else if(m==="html")Bu(s.ownerDocument.documentElement);else if(m==="head"){m=s.ownerDocument.head,Bu(m);for(var O=m.firstChild;O;){var $=O.nextSibling,ne=O.nodeName;O[rh]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&O.rel.toLowerCase()==="stylesheet"||m.removeChild(O),O=$}}else m==="body"&&Bu(s.ownerDocument.body);m=C}while(m);Wh(f)}function Fx(s,f){var m=s;s=0;do{var b=m.nextSibling;if(m.nodeType===1?f?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(f?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),b&&b.nodeType===8)if(m=b.data,m==="/$"){if(s===0)break;s--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||s++;m=b}while(m)}function ei(s){var f=s.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var m=f;switch(f=f.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":ei(m),yc(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}s.removeChild(m)}}function Yx(s,f,m,b){for(;s.nodeType===1;){var C=m;if(s.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(b){if(!s[rh])switch(f){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(O=s.getAttribute("rel"),O==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(O!==C.rel||s.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||s.getAttribute("title")!==(C.title==null?null:C.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(O=s.getAttribute("src"),(O!==(C.src==null?null:C.src)||s.getAttribute("type")!==(C.type==null?null:C.type)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&O&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(f==="input"&&s.type==="hidden"){var O=C.name==null?null:""+C.name;if(C.type==="hidden"&&s.getAttribute("name")===O)return s}else return s;if(s=na(s.nextSibling),s===null)break}return null}function $A(s,f,m){if(f==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!m||(s=na(s.nextSibling),s===null))return null;return s}function bn(s,f){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!f||(s=na(s.nextSibling),s===null))return null;return s}function Xx(s){return s.data==="$?"||s.data==="$~"}function ul(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function qh(s,f){var m=s.ownerDocument;if(s.data==="$~")s._reactRetry=f;else if(s.data!=="$?"||m.readyState!=="loading")f();else{var b=function(){f(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),s._reactRetry=b}}function na(s){for(;s!=null;s=s.nextSibling){var f=s.nodeType;if(f===1||f===3)break;if(f===8){if(f=s.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return s}var Gh=null;function _y(s){s=s.nextSibling;for(var f=0;s;){if(s.nodeType===8){var m=s.data;if(m==="/$"||m==="/&"){if(f===0)return na(s.nextSibling);f--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||f++}s=s.nextSibling}return null}function Dy(s){s=s.previousSibling;for(var f=0;s;){if(s.nodeType===8){var m=s.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(f===0)return s;f--}else m!=="/$"&&m!=="/&"||f++}s=s.previousSibling}return null}function $l(s,f,m){switch(f=gm(m),s){case"html":if(s=f.documentElement,!s)throw Error(r(452));return s;case"head":if(s=f.head,!s)throw Error(r(453));return s;case"body":if(s=f.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Bu(s){for(var f=s.attributes;f.length;)s.removeAttributeNode(f[0]);yc(s)}var po=new Map,Ny=new Set;function dd(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var ci=oe.d;oe.d={f:Wx,r:UA,D:Ci,C:$e,L:Jn,m:HA,X:Qx,S:Kx,M:Pu};function Wx(){var s=ci.f(),f=am();return s||f}function UA(s){var f=Af(s);f!==null&&f.tag===5&&f.type==="form"?Oh(f):ci.r(s)}var hd=typeof document>"u"?null:document;function nw(s,f,m){var b=hd;if(b&&typeof f=="string"&&f){var C=Qo(f);C='link[rel="'+s+'"][href="'+C+'"]',typeof m=="string"&&(C+='[crossorigin="'+m+'"]'),Ny.has(C)||(Ny.add(C),s={rel:s,crossOrigin:m,href:f},b.querySelector(C)===null&&(f=b.createElement("link"),ta(f,"link",s),Ti(f),b.head.appendChild(f)))}}function Ci(s){ci.D(s),nw("dns-prefetch",s,null)}function $e(s,f){ci.C(s,f),nw("preconnect",s,f)}function Jn(s,f,m){ci.L(s,f,m);var b=hd;if(b&&s&&f){var C='link[rel="preload"][as="'+Qo(f)+'"]';f==="image"&&m&&m.imageSrcSet?(C+='[imagesrcset="'+Qo(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(C+='[imagesizes="'+Qo(m.imageSizes)+'"]')):C+='[href="'+Qo(s)+'"]';var O=C;switch(f){case"style":O=Gs(s);break;case"script":O=pd(s)}po.has(O)||(s=x({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:s,as:f},m),po.set(O,s),b.querySelector(C)!==null||f==="style"&&b.querySelector(cl(O))||f==="script"&&b.querySelector(Fh(O))||(f=b.createElement("link"),ta(f,"link",s),Ti(f),b.head.appendChild(f)))}}function HA(s,f){ci.m(s,f);var m=hd;if(m&&s){var b=f&&typeof f.as=="string"?f.as:"script",C='link[rel="modulepreload"][as="'+Qo(b)+'"][href="'+Qo(s)+'"]',O=C;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=pd(s)}if(!po.has(O)&&(s=x({rel:"modulepreload",href:s},f),po.set(O,s),m.querySelector(C)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Fh(O)))return}b=m.createElement("link"),ta(b,"link",s),Ti(b),m.head.appendChild(b)}}}function Kx(s,f,m){ci.S(s,f,m);var b=hd;if(b&&s){var C=Cf(b).hoistableStyles,O=Gs(s);f=f||"default";var $=C.get(O);if(!$){var ne={loading:0,preload:null};if($=b.querySelector(cl(O)))ne.loading=5;else{s=x({rel:"stylesheet",href:s,"data-precedence":f},m),(m=po.get(O))&&ky(s,m);var ve=$=b.createElement("link");Ti(ve),ta(ve,"link",s),ve._p=new Promise(function(ke,He){ve.onload=ke,ve.onerror=He}),ve.addEventListener("load",function(){ne.loading|=1}),ve.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,xm($,f,b)}$={type:"stylesheet",instance:$,count:1,state:ne},C.set(O,$)}}}function Qx(s,f){ci.X(s,f);var m=hd;if(m&&s){var b=Cf(m).hoistableScripts,C=pd(s),O=b.get(C);O||(O=m.querySelector(Fh(C)),O||(s=x({src:s,async:!0},f),(f=po.get(C))&&zy(s,f),O=m.createElement("script"),Ti(O),ta(O,"link",s),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(C,O))}}function Pu(s,f){ci.M(s,f);var m=hd;if(m&&s){var b=Cf(m).hoistableScripts,C=pd(s),O=b.get(C);O||(O=m.querySelector(Fh(C)),O||(s=x({src:s,async:!0,type:"module"},f),(f=po.get(C))&&zy(s,f),O=m.createElement("script"),Ti(O),ta(O,"link",s),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(C,O))}}function ju(s,f,m,b){var C=(C=_e.current)?dd(C):null;if(!C)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=Gs(m.href),m=Cf(C).hoistableStyles,b=m.get(f),b||(b={type:"style",instance:null,count:0,state:null},m.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=Gs(m.href);var O=Cf(C).hoistableStyles,$=O.get(s);if($||(C=C.ownerDocument||C,$={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(s,$),(O=C.querySelector(cl(s)))&&!O._p&&($.instance=O,$.state.loading=5),po.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},po.set(s,m),O||bm(C,s,m,$.state))),f&&b===null)throw Error(r(528,""));return $}if(f&&b!==null)throw Error(r(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=pd(m),m=Cf(C).hoistableScripts,b=m.get(f),b||(b={type:"script",instance:null,count:0,state:null},m.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Gs(s){return'href="'+Qo(s)+'"'}function cl(s){return'link[rel="stylesheet"]['+s+"]"}function vm(s){return x({},s,{"data-precedence":s.precedence,precedence:null})}function bm(s,f,m,b){s.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=s.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),ta(f,"link",m),Ti(f),s.head.appendChild(f))}function pd(s){return'[src="'+Qo(s)+'"]'}function Fh(s){return"script[async]"+s}function Zx(s,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var b=s.querySelector('style[data-href~="'+Qo(m.href)+'"]');if(b)return f.instance=b,Ti(b),b;var C=x({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement("style"),Ti(b),ta(b,"style",C),xm(b,m.precedence,s),f.instance=b;case"stylesheet":C=Gs(m.href);var O=s.querySelector(cl(C));if(O)return f.state.loading|=4,f.instance=O,Ti(O),O;b=vm(m),(C=po.get(C))&&ky(b,C),O=(s.ownerDocument||s).createElement("link"),Ti(O);var $=O;return $._p=new Promise(function(ne,ve){$.onload=ne,$.onerror=ve}),ta(O,"link",b),f.state.loading|=4,xm(O,m.precedence,s),f.instance=O;case"script":return O=pd(m.src),(C=s.querySelector(Fh(O)))?(f.instance=C,Ti(C),C):(b=m,(C=po.get(O))&&(b=x({},m),zy(b,C)),s=s.ownerDocument||s,C=s.createElement("script"),Ti(C),ta(C,"link",b),s.head.appendChild(C),f.instance=C);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,xm(b,m.precedence,s));return f.instance}function xm(s,f,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=b.length?b[b.length-1]:null,O=C,$=0;$<b.length;$++){var ne=b[$];if(ne.dataset.precedence===f)O=ne;else if(O!==C)break}O?O.parentNode.insertBefore(s,O.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(s,f.firstChild))}function ky(s,f){s.crossOrigin==null&&(s.crossOrigin=f.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=f.referrerPolicy),s.title==null&&(s.title=f.title)}function zy(s,f){s.crossOrigin==null&&(s.crossOrigin=f.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=f.referrerPolicy),s.integrity==null&&(s.integrity=f.integrity)}var Sm=null;function Iy(s,f,m){if(Sm===null){var b=new Map,C=Sm=new Map;C.set(m,b)}else C=Sm,b=C.get(m),b||(b=new Map,C.set(m,b));if(b.has(s))return b;for(b.set(s,null),m=m.getElementsByTagName(s),C=0;C<m.length;C++){var O=m[C];if(!(O[rh]||O[yi]||s==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var $=O.getAttribute(f)||"";$=s+$;var ne=b.get($);ne?ne.push(O):b.set($,[O])}}return b}function Jx(s,f,m){s=s.ownerDocument||s,s.head.insertBefore(m,f==="title"?s.querySelector("head > title"):null)}function eS(s,f,m){if(m===1||f.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return s=f.disabled,typeof f.precedence=="string"&&s==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function Ly(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function Io(s,f,m,b){if(m.type==="stylesheet"&&(typeof b.media!="string"||matchMedia(b.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var C=Gs(b.href),O=f.querySelector(cl(C));if(O){f=O._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(s.count++,s=Yh.bind(s),f.then(s,s)),m.state.loading|=4,m.instance=O,Ti(O);return}O=f.ownerDocument||f,b=vm(b),(C=po.get(C))&&ky(b,C),O=O.createElement("link"),Ti(O);var $=O;$._p=new Promise(function(ne,ve){$.onload=ne,$.onerror=ve}),ta(O,"link",b),m.instance=O}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(s.count++,m=Yh.bind(s),f.addEventListener("load",m),f.addEventListener("error",m))}}var fl=0;function Ul(s,f){return s.stylesheets&&s.count===0&&By(s,s.stylesheets),0<s.count||0<s.imgCount?function(m){var b=setTimeout(function(){if(s.stylesheets&&By(s,s.stylesheets),s.unsuspend){var O=s.unsuspend;s.unsuspend=null,O()}},6e4+f);0<s.imgBytes&&fl===0&&(fl=62500*qx());var C=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&By(s,s.stylesheets),s.unsuspend)){var O=s.unsuspend;s.unsuspend=null,O()}},(s.imgBytes>fl?50:800)+f);return s.unsuspend=m,function(){s.unsuspend=null,clearTimeout(b),clearTimeout(C)}}:null}function Yh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)By(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Vy=null;function By(s,f){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Vy=new Map,f.forEach(qA,s),Vy=null,Yh.call(s))}function qA(s,f){if(!(f.state.loading&4)){var m=Vy.get(s);if(m)var b=m.get(null);else{m=new Map,Vy.set(s,m);for(var C=s.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<C.length;O++){var $=C[O];($.nodeName==="LINK"||$.getAttribute("media")!=="not all")&&(m.set($.dataset.precedence,$),b=$)}b&&m.set(null,b)}C=f.instance,$=C.getAttribute("data-precedence"),O=m.get($)||b,O===b&&m.set(null,C),m.set($,C),this.count++,b=Yh.bind(this),C.addEventListener("load",b),C.addEventListener("error",b),O?O.parentNode.insertBefore(C,O.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(C,s.firstChild)),f.state.loading|=4}}var ti={$$typeof:V,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function GA(s,f,m,b,C,O,$,ne,ve){this.tag=1,this.containerInfo=s,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=Rn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rn(0),this.hiddenUpdates=Rn(null),this.identifierPrefix=b,this.onUncaughtError=C,this.onCaughtError=O,this.onRecoverableError=$,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function Py(s,f,m,b,C,O,$,ne,ve,ke,He,Qe){return s=new GA(s,f,m,$,ve,ke,He,Qe,ne),f=1,O===!0&&(f|=24),O=eo(3,null,null,f),s.current=O,O.stateNode=s,f=R1(),f.refCount++,s.pooledCache=f,f.refCount++,O.memoizedState={element:b,isDehydrated:m,cache:f},N1(O),s}function jy(s){return s?(s=Pf,s):Pf}function md(s,f,m,b,C,O){C=jy(C),b.context===null?b.context=C:b.pendingContext=C,b=Cu(f),b.payload={element:m},O=O===void 0?null:O,O!==null&&(b.callback=O),m=Ou(s,b,f),m!==null&&(ho(m,s,f),Ms(m,s,f))}function rw(s,f){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<f?m:f}}function Em(s,f){rw(s,f),(s=s.alternate)&&rw(s,f)}function iw(s){if(s.tag===13||s.tag===31){var f=ua(s,67108864);f!==null&&ho(f,s,67108864),Em(s,67108864)}}function aw(s){if(s.tag===13||s.tag===31){var f=Va();f=Wa(f);var m=ua(s,f);m!==null&&ho(m,s,f),Em(s,f)}}var $u=!0;function ga(s,f,m,b){var C=W.T;W.T=null;var O=oe.p;try{oe.p=2,dl(s,f,m,b)}finally{oe.p=O,W.T=C}}function Fs(s,f,m,b){var C=W.T;W.T=null;var O=oe.p;try{oe.p=8,dl(s,f,m,b)}finally{oe.p=O,W.T=C}}function dl(s,f,m,b){if($u){var C=ra(b);if(C===null)jh(s,f,b,$y,m),ya(s,b);else if(nS(C,s,f,m,b))b.stopPropagation();else if(ya(s,b),f&4&&-1<aa.indexOf(s)){for(;C!==null;){var O=Af(C);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var $=mt(O.pendingLanes);if($!==0){var ne=O;for(ne.pendingLanes|=2,ne.entangledLanes|=2;$;){var ve=1<<31-gn($);ne.entanglements[1]|=ve,$&=~ve}jl(O),(Fn&6)===0&&(im=tn()+500,um(0))}}break;case 31:case 13:ne=ua(O,2),ne!==null&&ho(ne,O,2),am(),Em(O,2)}if(O=ra(b),O===null&&jh(s,f,b,$y,m),O===C)break;C=O}C!==null&&b.stopPropagation()}else jh(s,f,b,null,m)}}function ra(s){return s=s1(s),tS(s)}var $y=null;function tS(s){if($y=null,s=Tf(s),s!==null){var f=l(s);if(f===null)s=null;else{var m=f.tag;if(m===13){if(s=u(f),s!==null)return s;s=null}else if(m===31){if(s=d(f),s!==null)return s;s=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;s=null}else f!==s&&(s=null)}}return $y=s,null}function wm(s){switch(s){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(et()){case xe:return 2;case Le:return 8;case at:case dt:return 32;case ht:return 268435456;default:return 32}default:return 32}}var Xh=!1,Hl=null,Oi=null,ia=null,Lo=new Map,qc=new Map,Ba=[],aa="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 ya(s,f){switch(s){case"focusin":case"focusout":Hl=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Lo.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":qc.delete(f.pointerId)}}function hl(s,f,m,b,C,O){return s===null||s.nativeEvent!==O?(s={blockedOn:f,domEventName:m,eventSystemFlags:b,nativeEvent:O,targetContainers:[C]},f!==null&&(f=Af(f),f!==null&&iw(f)),s):(s.eventSystemFlags|=b,f=s.targetContainers,C!==null&&f.indexOf(C)===-1&&f.push(C),s)}function nS(s,f,m,b,C){switch(f){case"focusin":return Hl=hl(Hl,s,f,m,b,C),!0;case"dragenter":return Oi=hl(Oi,s,f,m,b,C),!0;case"mouseover":return ia=hl(ia,s,f,m,b,C),!0;case"pointerover":var O=C.pointerId;return Lo.set(O,hl(Lo.get(O)||null,s,f,m,b,C)),!0;case"gotpointercapture":return O=C.pointerId,qc.set(O,hl(qc.get(O)||null,s,f,m,b,C)),!0}return!1}function ow(s){var f=Tf(s.target);if(f!==null){var m=l(f);if(m!==null){if(f=m.tag,f===13){if(f=u(m),f!==null){s.blockedOn=f,i1(s.priority,function(){aw(m)});return}}else if(f===31){if(f=d(m),f!==null){s.blockedOn=f,i1(s.priority,function(){aw(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Uy(s){if(s.blockedOn!==null)return!1;for(var f=s.targetContainers;0<f.length;){var m=ra(s.nativeEvent);if(m===null){m=s.nativeEvent;var b=new m.constructor(m.type,m);tp=b,m.target.dispatchEvent(b),tp=null}else return f=Af(m),f!==null&&iw(f),s.blockedOn=m,!1;f.shift()}return!0}function rS(s,f,m){Uy(s)&&m.delete(f)}function Tm(){Xh=!1,Hl!==null&&Uy(Hl)&&(Hl=null),Oi!==null&&Uy(Oi)&&(Oi=null),ia!==null&&Uy(ia)&&(ia=null),Lo.forEach(rS),qc.forEach(rS)}function Am(s,f){s.blockedOn===f&&(s.blockedOn=null,Xh||(Xh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Tm)))}var Ys=null;function Hy(s){Ys!==s&&(Ys=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ys===s&&(Ys=null);for(var f=0;f<s.length;f+=3){var m=s[f],b=s[f+1],C=s[f+2];if(typeof b!="function"){if(tS(b||m)===null)continue;break}var O=Af(m);O!==null&&(s.splice(f,3),f-=3,Z1(O,{pending:!0,data:C,method:m.method,action:b},b,C))}}))}function Wh(s){function f(ve){return Am(ve,s)}Hl!==null&&Am(Hl,s),Oi!==null&&Am(Oi,s),ia!==null&&Am(ia,s),Lo.forEach(f),qc.forEach(f);for(var m=0;m<Ba.length;m++){var b=Ba[m];b.blockedOn===s&&(b.blockedOn=null)}for(;0<Ba.length&&(m=Ba[0],m.blockedOn===null);)ow(m),m.blockedOn===null&&Ba.shift();if(m=(s.ownerDocument||s).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var C=m[b],O=m[b+1],$=C[_r]||null;if(typeof O=="function")$||Hy(m);else if($){var ne=null;if(O&&O.hasAttribute("formAction")){if(C=O,$=O[_r]||null)ne=$.formAction;else if(tS(C)!==null)continue}else ne=$.action;typeof ne=="function"?m[b+1]=ne:(m.splice(b,3),b-=3),Hy(m)}}}function lw(){function s(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function($){return C=$})},focusReset:"manual",scroll:"manual"})}function f(){C!==null&&(C(),C=null),b||setTimeout(m,20)}function m(){if(!b&&!navigation.transition){var O=navigation.currentEntry;O&&O.url!=null&&navigation.navigate(O.url,{state:O.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var b=!1,C=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(m,100),function(){b=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),C!==null&&(C(),C=null)}}}function qy(s){this._internalRoot=s}Cm.prototype.render=qy.prototype.render=function(s){var f=this._internalRoot;if(f===null)throw Error(r(409));var m=f.current,b=Va();md(m,b,s,f,null,null)},Cm.prototype.unmount=qy.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var f=s.containerInfo;md(s.current,2,null,s,null,null),am(),f[wf]=null}};function Cm(s){this._internalRoot=s}Cm.prototype.unstable_scheduleHydration=function(s){if(s){var f=K6();s={blockedOn:null,target:s,priority:f};for(var m=0;m<Ba.length&&f!==0&&f<Ba[m].priority;m++);Ba.splice(m,0,s),m===0&&ow(s)}};var sw=t.version;if(sw!=="19.2.6")throw Error(r(527,sw,"19.2.6"));oe.findDOMNode=function(s){var f=s._reactInternals;if(f===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=y(f),s=s!==null?v(s):null,s=s===null?null:s.stateNode,s};var uw={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Om=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Om.isDisabled&&Om.supportsFiber)try{Lt=Om.inject(uw),Ht=Om}catch{}}return Cv.createRoot=function(s,f){if(!a(s))throw Error(r(299));var m=!1,b="",C=ix,O=ey,$=ax;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(C=f.onUncaughtError),f.onCaughtError!==void 0&&(O=f.onCaughtError),f.onRecoverableError!==void 0&&($=f.onRecoverableError)),f=Py(s,1,!1,null,null,m,b,null,C,O,$,lw),s[wf]=f.current,Px(s),new qy(f)},Cv.hydrateRoot=function(s,f,m){if(!a(s))throw Error(r(299));var b=!1,C="",O=ix,$=ey,ne=ax,ve=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onUncaughtError!==void 0&&(O=m.onUncaughtError),m.onCaughtError!==void 0&&($=m.onCaughtError),m.onRecoverableError!==void 0&&(ne=m.onRecoverableError),m.formState!==void 0&&(ve=m.formState)),f=Py(s,1,!0,f,m??null,b,C,ve,O,$,ne,lw),f.context=jy(null),m=f.current,b=Va(),b=Wa(b),C=Cu(b),C.callback=null,Ou(m,C,b),m=b,f.current.lanes=m,si(f,m),jl(f),s[wf]=f.current,Px(s),new Cm(f)},Cv.version="19.2.6",Cv}var Ov={},gO;function YB(){if(gO)return Ov;gO=1;var e={};/**
 * @license React
 * react-dom-client.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){function t(i,o){for(i=i.memoizedState;i!==null&&0<o;)i=i.next,o--;return i}function n(i,o,c,g){if(c>=o.length)return g;var S=o[c],w=Ci(i)?i.slice():bn({},i);return w[S]=n(i[S],o,c+1,g),w}function r(i,o,c){if(o.length!==c.length)console.warn("copyWithRename() expects paths of the same length");else{for(var g=0;g<c.length-1;g++)if(o[g]!==c[g]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return a(i,o,c,0)}}function a(i,o,c,g){var S=o[g],w=Ci(i)?i.slice():bn({},i);return g+1===o.length?(w[c[g]]=w[S],Ci(w)?w.splice(S,1):delete w[S]):w[S]=a(i[S],o,c,g+1),w}function l(i,o,c){var g=o[c],S=Ci(i)?i.slice():bn({},i);return c+1===o.length?(Ci(S)?S.splice(g,1):delete S[g],S):(S[g]=l(i[g],o,c+1),S)}function u(){return!1}function d(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function v(){}function x(){}function T(i){var o=[];return i.forEach(function(c){o.push(c)}),o.sort().join(", ")}function E(i,o,c,g){return new IA(i,o,c,g)}function A(i,o){i.context===Jh&&($x(i.current,2,o,i,null,null),nd())}function R(i,o){if(Ks!==null){var c=o.staleFamilies;o=o.updatedFamilies,Bc(),hE(i.current,o,c),nd()}}function _(i){Ks=i}function D(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function z(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function V(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function P(i){if(i.tag===31){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function I(i){if(z(i)!==i)throw Error("Unable to find node on an unmounted component.")}function H(i){var o=i.alternate;if(!o){if(o=z(i),o===null)throw Error("Unable to find node on an unmounted component.");return o!==i?null:i}for(var c=i,g=o;;){var S=c.return;if(S===null)break;var w=S.alternate;if(w===null){if(g=S.return,g!==null){c=g;continue}break}if(S.child===w.child){for(w=S.child;w;){if(w===c)return I(S),i;if(w===g)return I(S),o;w=w.sibling}throw Error("Unable to find node on an unmounted component.")}if(c.return!==g.return)c=S,g=w;else{for(var M=!1,N=S.child;N;){if(N===c){M=!0,c=S,g=w;break}if(N===g){M=!0,g=S,c=w;break}N=N.sibling}if(!M){for(N=w.child;N;){if(N===c){M=!0,c=w,g=S;break}if(N===g){M=!0,g=w,c=S;break}N=N.sibling}if(!M)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==g)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==3)throw Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?i:o}function X(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=X(i),o!==null)return o;i=i.sibling}return null}function se(i){return i===null||typeof i!="object"?null:(i=hd&&i[hd]||i["@@iterator"],typeof i=="function"?i:null)}function ce(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===nw?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case na:return"Fragment";case _y:return"Profiler";case Gh:return"StrictMode";case po:return"Suspense";case Ny:return"SuspenseList";case Wx:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case qh:return"Portal";case $l:return i.displayName||"Context";case Dy:return(i._context.displayName||"Context")+".Consumer";case Bu:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case dd:return o=i.displayName||null,o!==null?o:ce(i.type)||"Memo";case ci:o=i._payload,i=i._init;try{return ce(i(o))}catch{}}return null}function ie(i){return typeof i.tag=="number"?ue(i):typeof i.name=="string"?i.name:null}function ue(i){var o=i.type;switch(i.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(o._context.displayName||"Context")+".Consumer";case 10:return o.displayName||"Context";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(o);case 8:return o===Gh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break;case 29:if(o=i._debugInfo,o!=null){for(var c=o.length-1;0<=c;c--)if(typeof o[c].name=="string")return o[c].name}if(i.return!==null)return ue(i.return)}return null}function U(i){return{current:i}}function le(i,o){0>Pu?console.error("Unexpected pop."):(o!==Qx[Pu]&&console.error("Unexpected Fiber popped."),i.current=Kx[Pu],Kx[Pu]=null,Qx[Pu]=null,Pu--)}function Q(i,o,c){Pu++,Kx[Pu]=i.current,Qx[Pu]=c,i.current=o}function ee(i){return i===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),i}function W(i,o){Q(cl,o,i),Q(Gs,i,i),Q(ju,null,i);var c=o.nodeType;switch(c){case 9:case 11:c=c===9?"#document":"#fragment",o=(o=o.documentElement)&&(o=o.namespaceURI)?Lu(o):Rd;break;default:if(c=o.tagName,o=o.namespaceURI)o=Lu(o),o=am(o,c);else switch(c){case"svg":o=Sv;break;case"math":o=Jw;break;default:o=Rd}}c=c.toLowerCase(),c=J0(null,c),c={context:o,ancestorInfo:c},le(ju,i),Q(ju,c,i)}function oe(i){le(ju,i),le(Gs,i),le(cl,i)}function he(){return ee(ju.current)}function be(i){i.memoizedState!==null&&Q(vm,i,i);var o=ee(ju.current),c=i.type,g=am(o.context,c);c=J0(o.ancestorInfo,c),g={context:g,ancestorInfo:c},o!==g&&(Q(Gs,i,i),Q(ju,g,i))}function re(i){Gs.current===i&&(le(ju,i),le(Gs,i)),vm.current===i&&(le(vm,i),FS._currentValue=Km)}function F(){}function te(){if(bm===0){pd=console.log,Fh=console.info,Zx=console.warn,xm=console.error,ky=console.group,zy=console.groupCollapsed,Sm=console.groupEnd;var i={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}bm++}function Y(){if(bm--,bm===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:bn({},i,{value:pd}),info:bn({},i,{value:Fh}),warn:bn({},i,{value:Zx}),error:bn({},i,{value:xm}),group:bn({},i,{value:ky}),groupCollapsed:bn({},i,{value:zy}),groupEnd:bn({},i,{value:Sm})})}0>bm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Me(i){var o=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,i=i.stack,Error.prepareStackTrace=o,i.startsWith(`Error: react-stack-top-frame
`)&&(i=i.slice(29)),o=i.indexOf(`
`),o!==-1&&(i=i.slice(o+1)),o=i.indexOf("react_stack_bottom_frame"),o!==-1&&(o=i.lastIndexOf(`
`,o)),o!==-1)i=i.slice(0,o);else return"";return i}function Ee(i){if(Iy===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);Iy=o&&o[1]||"",Jx=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Iy+i+Jx}function _e(i,o){if(!i||eS)return"";var c=Ly.get(i);if(c!==void 0)return c;eS=!0,c=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var g=null;g=$e.H,$e.H=null,te();try{var S={DetermineComponentFrameRoot:function(){try{if(o){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(xt){var Ie=xt}Reflect.construct(i,[],ge)}else{try{ge.call()}catch(xt){Ie=xt}i.call(ge.prototype)}}else{try{throw Error()}catch(xt){Ie=xt}(ge=i())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(xt){if(xt&&Ie&&typeof xt.stack=="string")return[xt.stack,Ie.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=S.DetermineComponentFrameRoot(),N=M[0],G=M[1];if(N&&G){var Z=N.split(`
`),we=G.split(`
`);for(M=w=0;w<Z.length&&!Z[w].includes("DetermineComponentFrameRoot");)w++;for(;M<we.length&&!we[M].includes("DetermineComponentFrameRoot");)M++;if(w===Z.length||M===we.length)for(w=Z.length-1,M=we.length-1;1<=w&&0<=M&&Z[w]!==we[M];)M--;for(;1<=w&&0<=M;w--,M--)if(Z[w]!==we[M]){if(w!==1||M!==1)do if(w--,M--,0>M||Z[w]!==we[M]){var Ae=`
`+Z[w].replace(" at new "," at ");return i.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",i.displayName)),typeof i=="function"&&Ly.set(i,Ae),Ae}while(1<=w&&0<=M);break}}}finally{eS=!1,$e.H=g,Y(),Error.prepareStackTrace=c}return Z=(Z=i?i.displayName||i.name:"")?Ee(Z):"",typeof i=="function"&&Ly.set(i,Z),Z}function Be(i,o){switch(i.tag){case 26:case 27:case 5:return Ee(i.type);case 16:return Ee("Lazy");case 13:return i.child!==o&&o!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return _e(i.type,!1);case 11:return _e(i.type.render,!1);case 1:return _e(i.type,!0);case 31:return Ee("Activity");default:return""}}function Ue(i){try{var o="",c=null;do{o+=Be(i,c);var g=i._debugInfo;if(g)for(var S=g.length-1;0<=S;S--){var w=g[S];if(typeof w.name=="string"){var M=o;e:{var N=w.name,G=w.env,Z=w.debugLocation;if(Z!=null){var we=Me(Z),Ae=we.lastIndexOf(`
`),ge=Ae===-1?we:we.slice(Ae+1);if(ge.indexOf(N)!==-1){var Ie=`
`+ge;break e}}Ie=Ee(N+(G?" ["+G+"]":""))}o=M+Ie}}c=i,i=i.return}while(i);return o}catch(xt){return`
Error generating stack: `+xt.message+`
`+xt.stack}}function Ye(i){return(i=i?i.displayName||i.name:"")?Ee(i):""}function Xe(){if(Io===null)return null;var i=Io._debugOwner;return i!=null?ie(i):null}function Je(){if(Io===null)return"";var i=Io;try{var o="";switch(i.tag===6&&(i=i.return),i.tag){case 26:case 27:case 5:o+=Ee(i.type);break;case 13:o+=Ee("Suspense");break;case 19:o+=Ee("SuspenseList");break;case 31:o+=Ee("Activity");break;case 30:case 0:case 15:case 1:i._debugOwner||o!==""||(o+=Ye(i.type));break;case 11:i._debugOwner||o!==""||(o+=Ye(i.type.render))}for(;i;)if(typeof i.tag=="number"){var c=i;i=c._debugOwner;var g=c._debugStack;if(i&&g){var S=Me(g);S!==""&&(o+=`
`+S)}}else if(i.debugStack!=null){var w=i.debugStack;(i=i.owner)&&w&&(o+=`
`+Me(w))}else break;var M=o}catch(N){M=`
Error generating stack: `+N.message+`
`+N.stack}return M}function Ve(i,o,c,g,S,w,M){var N=Io;Re(i);try{return i!==null&&i._debugTask?i._debugTask.run(o.bind(null,c,g,S,w,M)):o(c,g,S,w,M)}finally{Re(N)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Re(i){$e.getCurrentStack=i===null?null:Je,fl=!1,Io=i}function ut(i){return typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object"}function Vt(i){try{return Qt(i),!1}catch{return!0}}function Qt(i){return""+i}function St(i,o){if(Vt(i))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,ut(i)),Qt(i)}function $t(i,o){if(Vt(i))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,ut(i)),Qt(i)}function Cn(i){if(Vt(i))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ut(i)),Qt(i)}function vn(i){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{$u=o.inject(i),ga=o}catch(c){console.error("React instrumentation encountered an error: %o.",c)}return!!o.checkDCE}function it(i){if(typeof iw=="function"&&aw(i),ga&&typeof ga.setStrictMode=="function")try{ga.setStrictMode($u,i)}catch(o){Fs||(Fs=!0,console.error("React instrumentation encountered an error: %o",o))}}function Mt(i){return i>>>=0,i===0?32:31-($y(i)/tS|0)|0}function Dn(i){var o=i&42;if(o!==0)return o;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),i}}function tn(i,o,c){var g=i.pendingLanes;if(g===0)return 0;var S=0,w=i.suspendedLanes,M=i.pingedLanes;i=i.warmLanes;var N=g&134217727;return N!==0?(g=N&~w,g!==0?S=Dn(g):(M&=N,M!==0?S=Dn(M):c||(c=N&~i,c!==0&&(S=Dn(c))))):(N=g&~w,N!==0?S=Dn(N):M!==0?S=Dn(M):c||(c=g&~i,c!==0&&(S=Dn(c)))),S===0?0:o!==0&&o!==S&&(o&w)===0&&(w=S&-S,c=o&-o,w>=c||w===32&&(c&4194048)!==0)?o:S}function et(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function xe(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Le(){var i=Hl;return Hl<<=1,(Hl&62914560)===0&&(Hl=4194304),i}function at(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function dt(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ht(i,o,c,g,S,w){var M=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var N=i.entanglements,G=i.expirationTimes,Z=i.hiddenUpdates;for(c=M&~c;0<c;){var we=31-ra(c),Ae=1<<we;N[we]=0,G[we]=-1;var ge=Z[we];if(ge!==null)for(Z[we]=null,we=0;we<ge.length;we++){var Ie=ge[we];Ie!==null&&(Ie.lane&=-536870913)}c&=~Ae}g!==0&&wt(i,g,0),w!==0&&S===0&&i.tag!==0&&(i.suspendedLanes|=w&~(M&~o))}function wt(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var g=31-ra(o);i.entangledLanes|=o,i.entanglements[g]=i.entanglements[g]|1073741824|c&261930}function fn(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var g=31-ra(c),S=1<<g;S&o|i[g]&o&&(i[g]|=o),c&=~S}}function Lt(i,o){var c=o&-o;return c=(c&42)!==0?1:Ht(c),(c&(i.suspendedLanes|o))!==0?0:c}function Ht(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function jn(i,o,c){if(dl)for(i=i.pendingUpdatersLaneMap;0<c;){var g=31-ra(c),S=1<<g;i[g].add(o),c&=~S}}function gn(i,o){if(dl)for(var c=i.pendingUpdatersLaneMap,g=i.memoizedUpdaters;0<o;){var S=31-ra(o);i=1<<S,S=c[S],0<S.size&&(S.forEach(function(w){var M=w.alternate;M!==null&&g.has(M)||g.add(w)}),S.clear()),o&=~i}}function Pr(i){return i&=-i,Oi<i?ia<i?(i&134217727)!==0?Lo:qc:ia:Oi}function vr(){var i=Jn.p;return i!==0?i:(i=window.event,i===void 0?Lo:Oy(i.type))}function J(i,o){var c=Jn.p;try{return Jn.p=i,o()}finally{Jn.p=c}}function Oe(i){delete i[aa],delete i[ya],delete i[nS],delete i[ow],delete i[Uy]}function nt(i){var o=i[aa];if(o)return o;for(var c=i.parentNode;c;){if(o=c[hl]||c[aa]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=vy(i);i!==null;){if(c=i[aa])return c;i=vy(i)}return o}i=c,c=i.parentNode}return null}function Ze(i){if(i=i[aa]||i[hl]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function mt(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function tt(i){var o=i[rS];return o||(o=i[rS]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function ot(i){i[Tm]=!0}function zt(i,o){ct(i,o),ct(i+"Capture",o)}function ct(i,o){Ys[i]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",i),Ys[i]=o;var c=i.toLowerCase();for(Hy[c]=i,i==="onDoubleClick"&&(Hy.ondblclick=i),i=0;i<o.length;i++)Am.add(o[i])}function Rn(i,o){Wh[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||console.error(i==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function si(i){return Ul.call(Cm,i)?!0:Ul.call(qy,i)?!1:lw.test(i)?Cm[i]=!0:(qy[i]=!0,console.error("Invalid attribute name: `%s`",i),!1)}function n1(i,o,c){if(si(o)){if(!i.hasAttribute(o)){switch(typeof c){case"symbol":case"object":return c;case"function":return c;case"boolean":if(c===!1)return c}return c===void 0?void 0:null}return i=i.getAttribute(o),i===""&&c===!0?!0:(St(c,o),i===""+c?c:i)}}function Ef(i,o,c){if(si(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var g=o.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){i.removeAttribute(o);return}}St(c,o),i.setAttribute(o,""+c)}}function Y0(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}St(c,o),i.setAttribute(o,""+c)}}function ss(i,o,c,g){if(g===null)i.removeAttribute(c);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}St(g,c),i.setAttributeNS(o,c,""+g)}}function Wa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return Cn(i),i;default:return""}}function r1(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function K6(i,o,c){var g=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var S=g.get,w=g.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return S.call(this)},set:function(M){Cn(M),c=""+M,w.call(this,M)}}),Object.defineProperty(i,o,{enumerable:g.enumerable}),{getValue:function(){return c},setValue:function(M){Cn(M),c=""+M},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function i1(i){if(!i._valueTracker){var o=r1(i)?"checked":"value";i._valueTracker=K6(i,o,""+i[o])}}function yu(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),g="";return i&&(g=r1(i)?i.checked?"true":"false":i.value),i=g,i!==c?(o.setValue(i),!0):!1}function yi(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function _r(i){return i.replace(sw,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function wf(i,o){o.checked===void 0||o.defaultChecked===void 0||Om||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Xe()||"A component",o.type),Om=!0),o.value===void 0||o.defaultValue===void 0||uw||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Xe()||"A component",o.type),uw=!0)}function X0(i,o,c,g,S,w,M,N){i.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?(St(M,"type"),i.type=M):i.removeAttribute("type"),o!=null?M==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Wa(o)):i.value!==""+Wa(o)&&(i.value=""+Wa(o)):M!=="submit"&&M!=="reset"||i.removeAttribute("value"),o!=null?n4(i,M,Wa(o)):c!=null?n4(i,M,Wa(c)):g!=null&&i.removeAttribute("value"),S==null&&w!=null&&(i.defaultChecked=!!w),S!=null&&(i.checked=S&&typeof S!="function"&&typeof S!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?(St(N,"name"),i.name=""+Wa(N)):i.removeAttribute("name")}function Q6(i,o,c,g,S,w,M,N){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(St(w,"type"),i.type=w),o!=null||c!=null){if(!(w!=="submit"&&w!=="reset"||o!=null)){i1(i);return}c=c!=null?""+Wa(c):"",o=o!=null?""+Wa(o):c,N||o===i.value||(i.value=o),i.defaultValue=o}g=g??S,g=typeof g!="function"&&typeof g!="symbol"&&!!g,i.checked=N?i.checked:!!g,i.defaultChecked=!!g,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(St(M,"name"),i.name=M),i1(i)}function n4(i,o,c){o==="number"&&yi(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function r4(i,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?Yx.Children.forEach(o.children,function(c){c==null||typeof c=="string"||typeof c=="number"||typeof c=="bigint"||f||(f=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||m||(m=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||s||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),s=!0)}function rh(){var i=Xe();return i?`

Check the render method of \``+i+"`.":""}function yc(i,o,c,g){if(i=i.options,o){o={};for(var S=0;S<c.length;S++)o["$"+c[S]]=!0;for(c=0;c<i.length;c++)S=o.hasOwnProperty("$"+i[c].value),i[c].selected!==S&&(i[c].selected=S),S&&g&&(i[c].defaultSelected=!0)}else{for(c=""+Wa(c),o=null,S=0;S<i.length;S++){if(i[S].value===c){i[S].selected=!0,g&&(i[S].defaultSelected=!0);return}o!==null||i[S].disabled||(o=i[S])}o!==null&&(o.selected=!0)}}function Tf(i,o){for(i=0;i<C.length;i++){var c=C[i];if(o[c]!=null){var g=Ci(o[c]);o.multiple&&!g?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",c,rh()):!o.multiple&&g&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",c,rh())}}o.value===void 0||o.defaultValue===void 0||b||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),b=!0)}function Af(i,o){o.value===void 0||o.defaultValue===void 0||O||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Xe()||"A component"),O=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ih(i,o,c){if(o!=null&&(o=""+Wa(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Wa(c):""}function Cf(i,o,c,g){if(o==null){if(g!=null){if(c!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ci(g)){if(1<g.length)throw Error("<textarea> can only have at most one child.");g=g[0]}c=g}c==null&&(c=""),o=c}c=Wa(o),i.defaultValue=c,g=i.textContent,g===c&&g!==""&&g!==null&&(i.value=g),i1(i)}function Ti(i,o){return i.serverProps===void 0&&i.serverTail.length===0&&i.children.length===1&&3<i.distanceFromLeaf&&i.distanceFromLeaf>15-o?Ti(i.children[0],o):i}function Ka(i){return"  "+"  ".repeat(i)}function Of(i){return"+ "+"  ".repeat(i)}function To(i){return"- "+"  ".repeat(i)}function Mf(i){switch(i.tag){case 26:case 27:case 5:return i.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return i=i.type,i.displayName||i.name||null;case 11:return i=i.type.render,i.displayName||i.name||null;case 1:return i=i.type,i.displayName||i.name||null;default:return null}}function W0(i,o){return $.test(i)?(i=JSON.stringify(i),i.length>o-2?8>o?'{"..."}':"{"+i.slice(0,o-7)+'..."}':"{"+i+"}"):i.length>o?5>o?'{"..."}':i.slice(0,o-3)+"...":i}function K0(i,o,c){var g=120-2*c;if(o===null)return Of(c)+W0(i,g)+`
`;if(typeof o=="string"){for(var S=0;S<o.length&&S<i.length&&o.charCodeAt(S)===i.charCodeAt(S);S++);return S>g-8&&10<S&&(i="..."+i.slice(S-8),o="..."+o.slice(S-8)),Of(c)+W0(i,g)+`
`+To(c)+W0(o,g)+`
`}return Ka(c)+W0(i,g)+`
`}function a1(i){return Object.prototype.toString.call(i).replace(/^\[object (.*)\]$/,function(o,c){return c})}function Q0(i,o){switch(typeof i){case"string":return i=JSON.stringify(i),i.length>o?5>o?'"..."':i.slice(0,o-4)+'..."':i;case"object":if(i===null)return"null";if(Ci(i))return"[...]";if(i.$$typeof===ul)return(o=ce(i.type))?"<"+o+">":"<...>";var c=a1(i);if(c==="Object"){c="",o-=2;for(var g in i)if(i.hasOwnProperty(g)){var S=JSON.stringify(g);if(S!=='"'+g+'"'&&(g=S),o-=g.length-2,S=Q0(i[g],15>o?o:15),o-=S.length,0>o){c+=c===""?"...":", ...";break}c+=(c===""?"":",")+g+":"+S}return"{"+c+"}"}return c;case"function":return(o=i.displayName||i.name)?"function "+o:"function";default:return String(i)}}function vu(i,o){return typeof i!="string"||$.test(i)?"{"+Q0(i,o-2)+"}":i.length>o-2?5>o?'"..."':'"'+i.slice(0,o-5)+'..."':'"'+i+'"'}function ah(i,o,c){var g=120-c.length-i.length,S=[],w;for(w in o)if(o.hasOwnProperty(w)&&w!=="children"){var M=vu(o[w],120-c.length-w.length-1);g-=w.length+M.length+2,S.push(w+"="+M)}return S.length===0?c+"<"+i+`>
`:0<g?c+"<"+i+" "+S.join(" ")+`>
`:c+"<"+i+`
`+c+"  "+S.join(`
`+c+"  ")+`
`+c+`>
`}function bu(i,o,c){var g="",S=bn({},o),w;for(w in i)if(i.hasOwnProperty(w)){delete S[w];var M=120-2*c-w.length-2,N=Q0(i[w],M);o.hasOwnProperty(w)?(M=Q0(o[w],M),g+=Of(c)+w+": "+N+`
`,g+=To(c)+w+": "+M+`
`):g+=Of(c)+w+": "+N+`
`}for(var G in S)S.hasOwnProperty(G)&&(i=Q0(S[G],120-2*c-G.length-2),g+=To(c)+G+": "+i+`
`);return g}function Ko(i,o,c,g){var S="",w=new Map;for(Z in c)c.hasOwnProperty(Z)&&w.set(Z.toLowerCase(),Z);if(w.size===1&&w.has("children"))S+=ah(i,o,Ka(g));else{for(var M in o)if(o.hasOwnProperty(M)&&M!=="children"){var N=120-2*(g+1)-M.length-1,G=w.get(M.toLowerCase());if(G!==void 0){w.delete(M.toLowerCase());var Z=o[M];G=c[G];var we=vu(Z,N);N=vu(G,N),typeof Z=="object"&&Z!==null&&typeof G=="object"&&G!==null&&a1(Z)==="Object"&&a1(G)==="Object"&&(2<Object.keys(Z).length||2<Object.keys(G).length||-1<we.indexOf("...")||-1<N.indexOf("..."))?S+=Ka(g+1)+M+`={{
`+bu(Z,G,g+2)+Ka(g+1)+`}}
`:(S+=Of(g+1)+M+"="+we+`
`,S+=To(g+1)+M+"="+N+`
`)}else S+=Ka(g+1)+M+"="+vu(o[M],N)+`
`}w.forEach(function(Ae){if(Ae!=="children"){var ge=120-2*(g+1)-Ae.length-1;S+=To(g+1)+Ae+"="+vu(c[Ae],ge)+`
`}}),S=S===""?Ka(g)+"<"+i+`>
`:Ka(g)+"<"+i+`
`+S+Ka(g)+`>
`}return i=c.children,o=o.children,typeof i=="string"||typeof i=="number"||typeof i=="bigint"?(w="",(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(w=""+o),S+=K0(w,""+i,g+1)):(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(S=i==null?S+K0(""+o,null,g+1):S+K0(""+o,void 0,g+1)),S}function i4(i,o){var c=Mf(i);if(c===null){for(c="",i=i.child;i;)c+=i4(i,o),i=i.sibling;return c}return Ka(o)+"<"+c+`>
`}function a4(i,o){var c=Ti(i,o);if(c!==i&&(i.children.length!==1||i.children[0]!==c))return Ka(o)+`...
`+a4(c,o+1);c="";var g=i.fiber._debugInfo;if(g)for(var S=0;S<g.length;S++){var w=g[S].name;typeof w=="string"&&(c+=Ka(o)+"<"+w+`>
`,o++)}if(g="",S=i.fiber.pendingProps,i.fiber.tag===6)g=K0(S,i.serverProps,o),o++;else if(w=Mf(i.fiber),w!==null)if(i.serverProps===void 0){g=o;var M=120-2*g-w.length-2,N="";for(Z in S)if(S.hasOwnProperty(Z)&&Z!=="children"){var G=vu(S[Z],15);if(M-=Z.length+G.length+2,0>M){N+=" ...";break}N+=" "+Z+"="+G}g=Ka(g)+"<"+w+N+`>
`,o++}else i.serverProps===null?(g=ah(w,S,Of(o)),o++):typeof i.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(g=Ko(w,S,i.serverProps,o),o++);var Z="";for(S=i.fiber.child,w=0;S&&w<i.children.length;)M=i.children[w],M.fiber===S?(Z+=a4(M,o),w++):Z+=i4(S,o),S=S.sibling;for(S&&0<i.children.length&&(Z+=Ka(o)+`...
`),S=i.serverTail,i.serverProps===null&&o--,i=0;i<S.length;i++)w=S[i],Z=typeof w=="string"?Z+(To(o)+W0(w,120-2*o)+`
`):Z+ah(w.type,w.props,To(o));return c+g+Z}function Z0(i){try{return`

`+a4(i,0)}catch{return""}}function o4(i,o,c){for(var g=o,S=null,w=0;g;)g===i&&(w=0),S={fiber:g,children:S!==null?[S]:[],serverProps:g===o?c:g===i?null:void 0,serverTail:[],distanceFromLeaf:w},w++,g=g.return;return S!==null?Z0(S).replaceAll(/^[+-]/gm,">"):""}function J0(i,o){var c=bn({},i||Qe),g={tag:o};return ve.indexOf(o)!==-1&&(c.aTagInScope=null,c.buttonTagInScope=null,c.nobrTagInScope=null),ke.indexOf(o)!==-1&&(c.pTagInButtonScope=null),ne.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(c.listItemTagAutoclosing=null,c.dlItemTagAutoclosing=null),c.current=g,o==="form"&&(c.formTag=g),o==="a"&&(c.aTagInScope=g),o==="button"&&(c.buttonTagInScope=g),o==="nobr"&&(c.nobrTagInScope=g),o==="p"&&(c.pTagInButtonScope=g),o==="li"&&(c.listItemTagAutoclosing=g),(o==="dd"||o==="dt")&&(c.dlItemTagAutoclosing=g),o==="#document"||o==="html"?c.containerTagInScope=null:c.containerTagInScope||(c.containerTagInScope=g),i!==null||o!=="#document"&&o!=="html"&&o!=="body"?c.implicitRootScope===!0&&(c.implicitRootScope=!1):c.implicitRootScope=!0,c}function Z6(i,o,c){switch(o){case"select":return i==="hr"||i==="option"||i==="optgroup"||i==="script"||i==="template"||i==="#text";case"optgroup":return i==="option"||i==="#text";case"option":return i==="#text";case"tr":return i==="th"||i==="td"||i==="style"||i==="script"||i==="template";case"tbody":case"thead":case"tfoot":return i==="tr"||i==="style"||i==="script"||i==="template";case"colgroup":return i==="col"||i==="template";case"table":return i==="caption"||i==="colgroup"||i==="tbody"||i==="tfoot"||i==="thead"||i==="style"||i==="script"||i==="template";case"head":return i==="base"||i==="basefont"||i==="bgsound"||i==="link"||i==="meta"||i==="title"||i==="noscript"||i==="noframes"||i==="style"||i==="script"||i==="template";case"html":if(c)break;return i==="head"||i==="body"||i==="frameset";case"frameset":return i==="frame";case"#document":if(!c)return i==="html"}switch(i){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return He.indexOf(o)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null;case"head":return c||o===null;case"html":return c&&o==="#document"||o===null;case"body":return c&&(o==="#document"||o==="html")||o===null}return!0}function Qo(i,o){switch(i){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null}function o1(i,o){for(;i;){switch(i.tag){case 5:case 26:case 27:if(i.type===o)return i}i=i.return}return null}function l1(i,o){o=o||Qe;var c=o.current;if(o=(c=Z6(i,c&&c.tag,o.implicitRootScope)?null:c)?null:Qo(i,o),o=c||o,!o)return!0;var g=o.tag;if(o=String(!!c)+"|"+i+"|"+g,ze[o])return!1;ze[o]=!0;var S=(o=Io)?o1(o.return,g):null,w=o!==null&&S!==null?o4(S,o,null):"",M="<"+i+">";return c?(c="",g==="table"&&i==="tr"&&(c+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
This will cause a hydration error.%s`,M,g,c,w)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,M,g,w),o&&(i=o.return,S===null||i===null||S===i&&i._debugOwner===o._debugOwner||Ve(S,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,g,M)})),!1}function oh(i,o,c){if(c||Z6("#text",o,!1))return!0;if(c="#text|"+o,ze[c])return!1;ze[c]=!0;var g=(c=Io)?o1(c,o):null;return c=c!==null&&g!==null?o4(g,c,c.tag!==6?{children:null}:null):"",/\S/.test(i)?console.error(`In HTML, text nodes cannot be a child of <%s>.
This will cause a hydration error.%s`,o,c):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
This will cause a hydration error.%s`,o,c),!1}function us(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}function J6(i){return i.replace(Te,function(o,c){return c.toUpperCase()})}function l4(i,o,c){var g=o.indexOf("--")===0;g||(-1<o.indexOf("-")?Fe.hasOwnProperty(o)&&Fe[o]||(Fe[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,J6(o.replace(De,"ms-")))):pr.test(o)?Fe.hasOwnProperty(o)&&Fe[o]||(Fe[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!Ne.test(c)||Ut.hasOwnProperty(c)&&Ut[c]||(Ut[c]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,c.replace(Ne,""))),typeof c=="number"&&(isNaN(c)?Yn||(Yn=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(c)||It||(It=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),c==null||typeof c=="boolean"||c===""?g?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":g?i.setProperty(o,c):typeof c!="number"||c===0||yn.has(o)?o==="float"?i.cssFloat=c:($t(c,o),i[o]=(""+c).trim()):i[o]=c+"px"}function Rf(i,o,c){if(o!=null&&typeof o!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),i=i.style,c!=null){if(o){var g={};if(c){for(var S in c)if(c.hasOwnProperty(S)&&!o.hasOwnProperty(S))for(var w=je[S]||[S],M=0;M<w.length;M++)g[w[M]]=S}for(var N in o)if(o.hasOwnProperty(N)&&(!c||c[N]!==o[N]))for(S=je[N]||[N],w=0;w<S.length;w++)g[S[w]]=N;N={};for(var G in o)for(S=je[G]||[G],w=0;w<S.length;w++)N[S[w]]=G;G={};for(var Z in g)if(S=g[Z],(w=N[Z])&&S!==w&&(M=S+","+w,!G[M])){G[M]=!0,M=console;var we=o[S];M.error.call(M,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",we==null||typeof we=="boolean"||we===""?"Removing":"Updating",S,w)}}for(var Ae in c)!c.hasOwnProperty(Ae)||o!=null&&o.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?i.setProperty(Ae,""):Ae==="float"?i.cssFloat="":i[Ae]="");for(var ge in o)Z=o[ge],o.hasOwnProperty(ge)&&c[ge]!==Z&&l4(i,ge,Z)}else for(g in o)o.hasOwnProperty(g)&&l4(i,g,o[g])}function ep(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function s4(i){return Gc.get(i)||i}function eE(i,o){if(Ul.call(Fy,o)&&Fy[o])return!0;if(fhe.test(o)){if(i="aria-"+o.slice(4).toLowerCase(),i=CL.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Fy[o]=!0;if(o!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,i),Fy[o]=!0}if(che.test(o)){if(i=o.toLowerCase(),i=CL.hasOwnProperty(i)?i:null,i==null)return Fy[o]=!0,!1;o!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,i),Fy[o]=!0)}return!0}function u4(i,o){var c=[],g;for(g in o)eE(i,g)||c.push(g);o=c.map(function(S){return"`"+S+"`"}).join(", "),c.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i):1<c.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,i)}function RA(i,o,c,g){if(Ul.call(Vo,o)&&Vo[o])return!0;var S=o.toLowerCase();if(S==="onfocusin"||S==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Vo[o]=!0;if(typeof c=="function"&&(i==="form"&&o==="action"||i==="input"&&o==="formAction"||i==="button"&&o==="formAction"))return!0;if(g!=null){if(i=g.possibleRegistrationNames,g.registrationNameDependencies.hasOwnProperty(o))return!0;if(g=i.hasOwnProperty(S)?i[S]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,g),Vo[o]=!0;if(ML.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),Vo[o]=!0}else if(ML.test(o))return dhe.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),Vo[o]=!0;if(hhe.test(o)||phe.test(o))return!0;if(S==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Vo[o]=!0;if(S==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Vo[o]=!0;if(S==="is"&&c!==null&&c!==void 0&&typeof c!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),Vo[o]=!0;if(typeof c=="number"&&isNaN(c))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),Vo[o]=!0;if(Gy.hasOwnProperty(S)){if(S=Gy[S],S!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,S),Vo[o]=!0}else if(o!==S)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,S),Vo[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof c){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return S=o.toLowerCase().slice(0,5),S==="data-"||S==="aria-"?!0:(c?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,o,o,c,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,o,o,c,o,o,o),Vo[o]=!0)}case"function":case"symbol":return Vo[o]=!0,!1;case"string":if(c==="false"||c==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,o,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,c),Vo[o]=!0}}return!0}function _A(i,o,c){var g=[],S;for(S in o)RA(i,S,o[S],c)||g.push(S);o=g.map(function(w){return"`"+w+"`"}).join(", "),g.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i):1<g.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,i)}function vc(i){return mhe.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Xi(){}function tp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function s1(i){var o=Ze(i);if(o&&(i=o.stateNode)){var c=i[ya]||null;e:switch(i=o.stateNode,o.type){case"input":if(X0(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(St(o,"name"),c=c.querySelectorAll('input[name="'+_r(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var g=c[o];if(g!==i&&g.form===i.form){var S=g[ya]||null;if(!S)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");X0(g,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(o=0;o<c.length;o++)g=c[o],g.form===i.form&&yu(g)}break e;case"textarea":ih(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&yc(i,!!c.multiple,o,!1)}}}function _f(i,o,c){if(FA)return i(o,c);FA=!0;try{var g=i(o);return g}finally{if(FA=!1,(Yy!==null||Xy!==null)&&(nd(),Yy&&(o=Yy,i=Xy,Xy=Yy=null,s1(o),i)))for(o=0;o<i.length;o++)s1(i[o])}}function cs(i,o){var c=i.stateNode;if(c===null)return null;var g=c[ya]||null;if(g===null)return null;c=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof c+"` type.");return c}function c4(){if(cw)return cw;var i,o=XA,c=o.length,g,S="value"in Kh?Kh.value:Kh.textContent,w=S.length;for(i=0;i<c&&o[i]===S[i];i++);var M=c-i;for(g=1;g<=M&&o[c-g]===S[w-g];g++);return cw=S.slice(i,1<g?1-g:void 0)}function lh(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function np(){return!0}function sh(){return!1}function Wr(i){function o(c,g,S,w,M){this._reactName=c,this._targetInst=S,this.type=g,this.nativeEvent=w,this.target=M,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(c=i[N],this[N]=c?c(w):w[N]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?np:sh,this.isPropagationStopped=sh,this}return bn(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=np)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=np)},persist:function(){},isPersistent:np}),o}function f4(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=Mhe[i])?!!o[i]:!1}function Df(){return f4}function xu(i,o){switch(i){case"keyup":return jhe.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==NL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}function c1(i,o){switch(i){case"compositionend":return u1(o);case"keypress":return o.which!==zL?null:(LL=!0,IL);case"textInput":return i=o.data,i===IL&&LL?null:i;default:return null}}function tE(i,o){if(Wy)return i==="compositionend"||!ZA&&xu(i,o)?(i=c4(),cw=XA=Kh=null,Wy=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return kL&&o.locale!=="ko"?null:o.data;default:return null}}function rp(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!Uhe[i.type]:o==="textarea"}function f1(i){if(!Fc)return!1;i="on"+i;var o=i in document;return o||(o=document.createElement("div"),o.setAttribute(i,"return;"),o=typeof o[i]=="function"),o}function d4(i,o,c,g){Yy?Xy?Xy.push(g):Xy=[g]:Yy=g,o=Us(o,"onChange"),0<o.length&&(c=new fw("onChange","change",null,c,g),i.push({event:c,listeners:o}))}function Qa(i){so(i,0)}function fs(i){var o=mt(i);if(yu(o))return i}function ip(i,o){if(i==="change")return o}function uh(){uS&&(uS.detachEvent("onpropertychange",nE),cS=uS=null)}function nE(i){if(i.propertyName==="value"&&fs(cS)){var o=[];d4(o,cS,i,tp(i)),_f(Qa,o)}}function h4(i,o,c){i==="focusin"?(uh(),uS=o,cS=c,uS.attachEvent("onpropertychange",nE)):i==="focusout"&&uh()}function p4(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return fs(cS)}function ap(i,o){if(i==="click")return fs(o)}function d1(i,o){if(i==="input"||i==="change")return fs(o)}function rE(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}function op(i,o){if(Bo(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),g=Object.keys(o);if(c.length!==g.length)return!1;for(g=0;g<c.length;g++){var S=c[g];if(!Ul.call(o,S)||!Bo(i[S],o[S]))return!1}return!0}function iE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function aE(i,o){var c=iE(i);i=0;for(var g;c;){if(c.nodeType===3){if(g=i+c.textContent.length,i<=o&&g>=o)return{node:c,offset:o-i};i=g}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=iE(c)}}function h1(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?h1(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function oE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=yi(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=yi(i.document)}return o}function m4(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function lE(i,o,c){var g=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;eC||Ky==null||Ky!==yi(g)||(g=Ky,"selectionStart"in g&&m4(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),fS&&op(fS,g)||(fS=g,g=Us(JA,"onSelect"),0<g.length&&(o=new fw("onSelect","select",null,o,c),i.push({event:o,listeners:g}),o.target=Ky)))}function Nf(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}function kf(i){if(tC[i])return tC[i];if(!Qy[i])return i;var o=Qy[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in BL)return tC[i]=o[c];return i}function Zo(i,o){HL.set(i,o),zt(o,[i])}function DA(i){for(var o=hw,c=0;c<i.length;c++){var g=i[c];if(typeof g=="object"&&g!==null)if(Ci(g)&&g.length===2&&typeof g[0]=="string"){if(o!==hw&&o!==oC)return iC;o=oC}else return iC;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||o!==hw&&o!==aC)return iC;o=aC}}return o}function g4(i,o,c,g){for(var S in i)Ul.call(i,S)&&S[0]!=="_"&&ds(S,i[S],o,c,g)}function ds(i,o,c,g,S){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===ul){var w=ce(o.type)||"…",M=o.key;o=o.props;var N=Object.keys(o),G=N.length;if(M==null&&G===0){o="<"+w+" />";break}if(3>g||G===1&&N[0]==="children"&&M==null){o="<"+w+" … />";break}c.push([S+"  ".repeat(g)+i,"<"+w]),M!==null&&ds("key",M,c,g+1,S),i=!1;for(var Z in o)Z==="children"?o.children!=null&&(!Ci(o.children)||0<o.children.length)&&(i=!0):Ul.call(o,Z)&&Z[0]!=="_"&&ds(Z,o[Z],c,g+1,S);c.push(["",i?">…</"+w+">":"/>"]);return}if(w=Object.prototype.toString.call(o),w=w.slice(8,w.length-1),w==="Array"){if(Z=DA(o),Z===aC||Z===hw){o=JSON.stringify(o);break}else if(Z===oC){for(c.push([S+"  ".repeat(g)+i,""]),i=0;i<o.length;i++)w=o[i],ds(w[0],w[1],c,g+1,S);return}}if(w==="Promise"){if(o.status==="fulfilled"){if(w=c.length,ds(i,o.value,c,g,S),c.length>w){c=c[w],c[1]="Promise<"+(c[1]||"Object")+">";return}}else if(o.status==="rejected"&&(w=c.length,ds(i,o.reason,c,g,S),c.length>w)){c=c[w],c[1]="Rejected Promise<"+c[1]+">";return}c.push(["  ".repeat(g)+i,"Promise"]);return}w==="Object"&&(Z=Object.getPrototypeOf(o))&&typeof Z.constructor=="function"&&(w=Z.constructor.name),c.push([S+"  ".repeat(g)+i,w==="Object"?3>g?"":"…":w]),3>g&&g4(o,c,g+1,S);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===Whe?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}c.push([S+"  ".repeat(g)+i,o])}function sE(i,o,c,g){var S=!0;for(M in i)M in o||(c.push([pw+"  ".repeat(g)+M,"…"]),S=!1);for(var w in o)if(w in i){var M=i[w],N=o[w];if(M!==N){if(g===0&&w==="children")S="  ".repeat(g)+w,c.push([pw+S,"…"],[mw+S,"…"]);else{if(!(3<=g)){if(typeof M=="object"&&typeof N=="object"&&M!==null&&N!==null&&M.$$typeof===N.$$typeof)if(N.$$typeof===ul){if(M.type===N.type&&M.key===N.key){M=ce(N.type)||"…",S="  ".repeat(g)+w,M="<"+M+" … />",c.push([pw+S,M],[mw+S,M]),S=!1;continue}}else{var G=Object.prototype.toString.call(M),Z=Object.prototype.toString.call(N);if(G===Z&&(Z==="[object Object]"||Z==="[object Array]")){G=[FL+"  ".repeat(g)+w,Z==="[object Array]"?"Array":""],c.push(G),Z=c.length,sE(M,N,c,g+1)?Z===c.length&&(G[1]="Referentially unequal but deeply equal objects. Consider memoization."):S=!1;continue}}else if(typeof M=="function"&&typeof N=="function"&&M.name===N.name&&M.length===N.length&&(G=Function.prototype.toString.call(M),Z=Function.prototype.toString.call(N),G===Z)){M=N.name===""?"() => {}":N.name+"() {}",c.push([FL+"  ".repeat(g)+w,M+" Referentially unequal function closure. Consider memoization."]);continue}}ds(w,M,c,g,pw),ds(w,N,c,g,mw)}S=!1}}else c.push([mw+"  ".repeat(g)+w,"…"]),S=!1;return S}function Ao(i){qn=i&63?"Blocking":i&64?"Gesture":i&4194176?"Transition":i&62914560?"Suspense":i&2080374784?"Idle":"Other"}function hs(i,o,c,g){Lr&&(Zh.start=o,Zh.end=c,gd.color="warning",gd.tooltipText=g,gd.properties=null,(i=i._debugTask)?i.run(performance.measure.bind(performance,g,Zh)):performance.measure(g,Zh))}function p1(i,o,c){hs(i,o,c,"Reconnect")}function m1(i,o,c,g,S){var w=ue(i);if(w!==null&&Lr){var M=i.alternate,N=i.actualDuration;if(M===null||M.child!==i.child)for(var G=i.child;G!==null;G=G.sibling)N-=G.actualDuration;g=.5>N?g?"tertiary-light":"primary-light":10>N?g?"tertiary":"primary":100>N?g?"tertiary-dark":"primary-dark":"error";var Z=i.memoizedProps;N=i._debugTask,Z!==null&&M!==null&&M.memoizedProps!==Z?(G=[Khe],Z=sE(M.memoizedProps,Z,G,0),1<G.length&&(Z&&!Qh&&(M.lanes&S)===0&&100<i.actualDuration?(Qh=!0,G[0]=Qhe,gd.color="warning",gd.tooltipText=YL):(gd.color=g,gd.tooltipText=w),gd.properties=G,Zh.start=o,Zh.end=c,N!=null?N.run(performance.measure.bind(performance,"​"+w,Zh)):performance.measure("​"+w,Zh))):N!=null?N.run(console.timeStamp.bind(console,w,o,c,Xs,void 0,g)):console.timeStamp(w,o,c,Xs,void 0,g)}}function g1(i,o,c,g){if(Lr){var S=ue(i);if(S!==null){for(var w=null,M=[],N=0;N<g.length;N++){var G=g[N];w==null&&G.source!==null&&(w=G.source._debugTask),G=G.value,M.push(["Error",typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G)])}i.key!==null&&ds("key",i.key,M,0,""),i.memoizedProps!==null&&g4(i.memoizedProps,M,0,""),w==null&&(w=i._debugTask),i={start:o,end:c,detail:{devtools:{color:"error",track:Xs,tooltipText:i.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},w?w.run(performance.measure.bind(performance,"​"+S,i)):performance.measure("​"+S,i)}}}function ps(i,o,c,g,S){if(S!==null){if(Lr){var w=ue(i);if(w!==null){g=[];for(var M=0;M<S.length;M++){var N=S[M].value;g.push(["Error",typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N)])}i.key!==null&&ds("key",i.key,g,0,""),i.memoizedProps!==null&&g4(i.memoizedProps,g,0,""),o={start:o,end:c,detail:{devtools:{color:"error",track:Xs,tooltipText:"A lifecycle or effect errored",properties:g}}},(i=i._debugTask)?i.run(performance.measure.bind(performance,"​"+w,o)):performance.measure("​"+w,o)}}}else w=ue(i),w!==null&&Lr&&(S=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(i=i._debugTask)?i.run(console.timeStamp.bind(console,w,o,c,Xs,void 0,S)):console.timeStamp(w,o,c,Xs,void 0,S))}function NA(i,o,c,g){if(Lr&&!(o<=i)){var S=(c&738197653)===c?"tertiary-dark":"primary-dark";c=(c&536870912)===c?"Prepared":(c&201326741)===c?"Hydrated":"Render",g?g.run(console.timeStamp.bind(console,c,i,o,qn,Un,S)):console.timeStamp(c,i,o,qn,Un,S)}}function uE(i,o,c,g){!Lr||o<=i||(c=(c&738197653)===c?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",i,o,qn,Un,c)):console.timeStamp("Prewarm",i,o,qn,Un,c))}function cE(i,o,c,g){!Lr||o<=i||(c=(c&738197653)===c?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",i,o,qn,Un,c)):console.timeStamp("Suspended",i,o,qn,Un,c))}function kA(i,o,c,g,S,w){if(Lr&&!(o<=i)){c=[];for(var M=0;M<g.length;M++){var N=g[M].value;c.push(["Recoverable Error",typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N)])}i={start:i,end:o,detail:{devtools:{color:"primary-dark",track:qn,trackGroup:Un,tooltipText:S?"Hydration Failed":"Recovered after Error",properties:c}}},w?w.run(performance.measure.bind(performance,"Recovered",i)):performance.measure("Recovered",i)}}function y4(i,o,c,g){!Lr||o<=i||(g?g.run(console.timeStamp.bind(console,"Errored",i,o,qn,Un,"error")):console.timeStamp("Errored",i,o,qn,Un,"error"))}function zA(i,o,c,g){!Lr||o<=i||(g?g.run(console.timeStamp.bind(console,c,i,o,qn,Un,"secondary-light")):console.timeStamp(c,i,o,qn,Un,"secondary-light"))}function fE(i,o,c,g,S){if(Lr&&!(o<=i)){for(var w=[],M=0;M<c.length;M++){var N=c[M].value;w.push(["Error",typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N)])}i={start:i,end:o,detail:{devtools:{color:"error",track:qn,trackGroup:Un,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:w}}},S?S.run(performance.measure.bind(performance,"Errored",i)):performance.measure("Errored",i)}}function v4(i,o,c){!Lr||o<=i||console.timeStamp("Animating",i,o,qn,Un,"secondary-dark")}function ch(){for(var i=Zy,o=lC=Zy=0;o<i;){var c=Ws[o];Ws[o++]=null;var g=Ws[o];Ws[o++]=null;var S=Ws[o];Ws[o++]=null;var w=Ws[o];if(Ws[o++]=null,g!==null&&S!==null){var M=g.pending;M===null?S.next=S:(S.next=M.next,M.next=S),g.pending=S}w!==0&&x4(c,S,w)}}function bc(i,o,c,g){Ws[Zy++]=i,Ws[Zy++]=o,Ws[Zy++]=c,Ws[Zy++]=g,lC|=g,i.lanes|=g,i=i.alternate,i!==null&&(i.lanes|=g)}function b4(i,o,c,g){return bc(i,o,c,g),lp(i)}function Wi(i,o){return bc(i,null,null,o),lp(i)}function x4(i,o,c){i.lanes|=c;var g=i.alternate;g!==null&&(g.lanes|=c);for(var S=!1,w=i.return;w!==null;)w.childLanes|=c,g=w.alternate,g!==null&&(g.childLanes|=c),w.tag===22&&(i=w.stateNode,i===null||i._visibility&dS||(S=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,S&&o!==null&&(S=31-ra(c),i=w.hiddenUpdates,g=i[S],g===null?i[S]=[o]:g.push(o),o.lane=c|536870912),w):null}function lp(i){if(PS>h0e)throw qm=PS=0,jS=jC=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");qm>p0e&&(qm=0,jS=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&Ex(i);for(var o=i,c=o.return;c!==null;)o.alternate===null&&(o.flags&4098)!==0&&Ex(i),o=c,c=o.return;return o.tag===3?o.stateNode:null}function xc(i){if(Ks===null)return i;var o=Ks(i);return o===void 0?i:o.current}function y1(i){if(Ks===null)return i;var o=Ks(i);return o===void 0?i!=null&&typeof i.render=="function"&&(o=xc(i.render),i.render!==o)?(o={$$typeof:Bu,render:o},i.displayName!==void 0&&(o.displayName=i.displayName),o):i:o.current}function zf(i,o){if(Ks===null)return!1;var c=i.elementType;o=o.type;var g=!1,S=typeof o=="object"&&o!==null?o.$$typeof:null;switch(i.tag){case 1:typeof o=="function"&&(g=!0);break;case 0:(typeof o=="function"||S===ci)&&(g=!0);break;case 11:(S===Bu||S===ci)&&(g=!0);break;case 14:case 15:(S===dd||S===ci)&&(g=!0);break;default:return!1}return!!(g&&(i=Ks(c),i!==void 0&&i===Ks(o)))}function dE(i){Ks!==null&&typeof WeakSet=="function"&&(Jy===null&&(Jy=new WeakSet),Jy.add(i))}function hE(i,o,c){do{var g=i,S=g.alternate,w=g.child,M=g.sibling,N=g.tag;g=g.type;var G=null;switch(N){case 0:case 15:case 1:G=g;break;case 11:G=g.render}if(Ks===null)throw Error("Expected resolveFamily to be set during hot reload.");var Z=!1;if(g=!1,G!==null&&(G=Ks(G),G!==void 0&&(c.has(G)?g=!0:o.has(G)&&(N===1?g=!0:Z=!0))),Jy!==null&&(Jy.has(i)||S!==null&&Jy.has(S))&&(g=!0),g&&(i._debugNeedsRemount=!0),(g||Z)&&(S=Wi(i,2),S!==null&&Ur(S,i,2)),w===null||g||hE(w,o,c),M===null)break;i=M}while(!0)}function IA(i,o,c,g){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,XL||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function v1(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ms(i,o){var c=i.alternate;switch(c===null?(c=E(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c._debugOwner=i._debugOwner,c._debugStack=i._debugStack,c._debugTask=i._debugTask,c._debugHookTypes=i._debugHookTypes,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null,c.actualDuration=-0,c.actualStartTime=-1.1),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c.selfBaseDuration=i.selfBaseDuration,c.treeBaseDuration=i.treeBaseDuration,c._debugInfo=i._debugInfo,c._debugNeedsRemount=i._debugNeedsRemount,c.tag){case 0:case 15:c.type=xc(i.type);break;case 1:c.type=xc(i.type);break;case 11:c.type=y1(i.type)}return c}function fh(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},i.selfBaseDuration=c.selfBaseDuration,i.treeBaseDuration=c.treeBaseDuration),i}function If(i,o,c,g,S,w){var M=0,N=i;if(typeof i=="function")v1(i)&&(M=1),N=xc(N);else if(typeof i=="string")M=he(),M=Nn(i,c,M)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case Wx:return o=E(31,c,o,S),o.elementType=Wx,o.lanes=w,o;case na:return gs(c.children,S,w,o);case Gh:M=8,S|=mo,S|=Uu;break;case _y:return i=c,g=S,typeof i.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),o=E(12,i,o,g|Sn),o.elementType=_y,o.lanes=w,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case po:return o=E(13,c,o,S),o.elementType=po,o.lanes=w,o;case Ny:return o=E(19,c,o,S),o.elementType=Ny,o.lanes=w,o;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $l:M=10;break e;case Dy:M=9;break e;case Bu:M=11,N=y1(N);break e;case dd:M=14;break e;case ci:M=16,N=null;break e}N="",(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),i===null?c="null":Ci(i)?c="array":i!==void 0&&i.$$typeof===ul?(c="<"+(ce(i.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):c=typeof i,(M=g?ie(g):null)&&(N+=`

Check the render method of \``+M+"`."),M=29,c=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(c+"."+N)),N=null}return o=E(M,c,o,S),o.elementType=i,o.type=N,o.lanes=w,o._debugOwner=g,o}function b1(i,o,c){return o=If(i.type,i.key,i.props,i._owner,o,c),o._debugOwner=i._owner,o._debugStack=i._debugStack,o._debugTask=i._debugTask,o}function gs(i,o,c,g){return i=E(7,i,g,o),i.lanes=c,i}function x1(i,o,c){return i=E(6,i,null,o),i.lanes=c,i}function S4(i){var o=E(18,null,null,rn);return o.stateNode=i,o}function sp(i,o,c){return o=E(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function Ma(i,o){if(typeof i=="object"&&i!==null){var c=sC.get(i);return c!==void 0?c:(o={value:i,source:o,stack:Ue(o)},sC.set(i,o),o)}return{value:i,source:o,stack:Ue(o)}}function ys(i,o){Sc(),ev[tv++]=hS,ev[tv++]=gw,gw=i,hS=o}function E4(i,o,c){Sc(),Qs[Zs++]=vd,Qs[Zs++]=bd,Qs[Zs++]=Rm,Rm=i;var g=vd;i=bd;var S=32-ra(g)-1;g&=~(1<<S),c+=1;var w=32-ra(o)+S;if(30<w){var M=S-S%5;w=(g&(1<<M)-1).toString(32),g>>=M,S-=M,vd=1<<32-ra(o)+S|c<<S|g,bd=w+i}else vd=1<<w|c<<S|g,bd=i}function S1(i){Sc(),i.return!==null&&(ys(i,1),E4(i,1,0))}function w4(i){for(;i===gw;)gw=ev[--tv],ev[tv]=null,hS=ev[--tv],ev[tv]=null;for(;i===Rm;)Rm=Qs[--Zs],Qs[Zs]=null,bd=Qs[--Zs],Qs[Zs]=null,vd=Qs[--Zs],Qs[Zs]=null}function pE(){return Sc(),Rm!==null?{id:vd,overflow:bd}:null}function mE(i,o){Sc(),Qs[Zs++]=vd,Qs[Zs++]=bd,Qs[Zs++]=Rm,vd=o.id,bd=o.overflow,Rm=i}function Sc(){Vn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Lf(i,o){if(i.return===null){if(ql===null)ql={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(ql.fiber!==i)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ql.distanceFromLeaf>o&&(ql.distanceFromLeaf=o)}return ql}var c=Lf(i.return,o+1).children;return 0<c.length&&c[c.length-1].fiber===i?(c=c[c.length-1],c.distanceFromLeaf>o&&(c.distanceFromLeaf=o),c):(o={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},c.push(o),o)}function Za(){Vn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ec(i,o){Yc||(i=Lf(i,0),i.serverProps=null,o!==null&&(o=YE(o),i.serverTail.push(o)))}function Su(i){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,c="",g=ql;throw g!==null&&(ql=null,c=Z0(g)),vs(Ma(Error("Hydration failed because the server rendered "+(o?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

https://react.dev/link/hydration-mismatch`+c),i)),uC}function T4(i){var o=i.stateNode,c=i.type,g=i.memoizedProps;switch(o[aa]=i,o[ya]=g,jc(c,g),c){case"dialog":dn("cancel",o),dn("close",o);break;case"iframe":case"object":case"embed":dn("load",o);break;case"video":case"audio":for(c=0;c<$S.length;c++)dn($S[c],o);break;case"source":dn("error",o);break;case"img":case"image":case"link":dn("error",o),dn("load",o);break;case"details":dn("toggle",o);break;case"input":Rn("input",g),dn("invalid",o),wf(o,g),Q6(o,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"option":r4(o,g);break;case"select":Rn("select",g),dn("invalid",o),Tf(o,g);break;case"textarea":Rn("textarea",g),dn("invalid",o),Af(o,g),Cf(o,g.value,g.defaultValue,g.children)}c=g.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||g.suppressHydrationWarning===!0||im(o.textContent,c)?(g.popover!=null&&(dn("beforetoggle",o),dn("toggle",o)),g.onScroll!=null&&dn("scroll",o),g.onScrollEnd!=null&&dn("scrollend",o),g.onClick!=null&&(o.onclick=Xi),o=!0):o=!1,o||Su(i,!0)}function A4(i){for(Pa=i.return;Pa;)switch(Pa.tag){case 5:case 31:case 13:Js=!1;return;case 27:case 3:Js=!0;return;default:Pa=Pa.return}}function Vf(i){if(i!==Pa)return!1;if(!Vn)return A4(i),Vn=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||om(i.type,i.memoizedProps)),c=!c),c&&Vr){for(c=Vr;c;){var g=Lf(i,0),S=YE(c);g.serverTail.push(S),c=S.type==="Suspense"?Uc(c):zo(c.nextSibling)}Su(i)}if(A4(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vr=Uc(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vr=Uc(i)}else o===27?(o=Vr,Vu(i.type)?(i=ZC,ZC=null,Vr=i):Vr=o):Vr=Pa?zo(i.stateNode.nextSibling):null;return!0}function Eu(){Vr=Pa=null,Yc=Vn=!1}function C4(){var i=e0;return i!==null&&(Uo===null?Uo=i:Uo.push.apply(Uo,i),e0=null),i}function vs(i){e0===null?e0=[i]:e0.push(i)}function up(){var i=ql;if(i!==null){ql=null;for(var o=Z0(i);0<i.children.length;)i=i.children[0];Ve(i.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

%s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function wc(){nv=yw=null,rv=!1}function bs(i,o,c){Q(cC,o._currentValue,i),o._currentValue=c,Q(fC,o._currentRenderer,i),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==KL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=KL}function xs(i,o){i._currentValue=cC.current;var c=fC.current;le(fC,o),i._currentRenderer=c,le(cC,o)}function wu(i,o,c){for(;i!==null;){var g=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),i===c)break;i=i.return}i!==c&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Tc(i,o,c,g){var S=i.child;for(S!==null&&(S.return=i);S!==null;){var w=S.dependencies;if(w!==null){var M=S.child;w=w.firstContext;e:for(;w!==null;){var N=w;w=S;for(var G=0;G<o.length;G++)if(N.context===o[G]){w.lanes|=c,N=w.alternate,N!==null&&(N.lanes|=c),wu(w.return,c,i),g||(M=null);break e}w=N.next}}else if(S.tag===18){if(M=S.return,M===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");M.lanes|=c,w=M.alternate,w!==null&&(w.lanes|=c),wu(M,c,i),M=null}else M=S.child;if(M!==null)M.return=S;else for(M=S;M!==null;){if(M===i){M=null;break}if(S=M.sibling,S!==null){S.return=M.return,M=S;break}M=M.return}S=M}}function Ac(i,o,c,g){i=null;for(var S=o,w=!1;S!==null;){if(!w){if((S.flags&524288)!==0)w=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var M=S.alternate;if(M===null)throw Error("Should have a current fiber. This is a bug in React.");if(M=M.memoizedProps,M!==null){var N=S.type;Bo(S.pendingProps.value,M.value)||(i!==null?i.push(N):i=[N])}}else if(S===vm.current){if(M=S.alternate,M===null)throw Error("Should have a current fiber. This is a bug in React.");M.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(i!==null?i.push(FS):i=[FS])}S=S.return}i!==null&&Tc(o,i,c,g),o.flags|=262144}function cp(i){for(i=i.firstContext;i!==null;){if(!Bo(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Co(i){yw=i,nv=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Er(i){return rv&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),O4(yw,i)}function fp(i,o){return yw===null&&Co(i),O4(i,o)}function O4(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},nv===null){if(i===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");nv=o,i.dependencies={lanes:0,firstContext:o,_debugThenableState:null},i.flags|=524288}else nv=nv.next=o;return c}function M4(){return{controller:new e0e,data:new Map,refCount:0}}function Bf(i){i.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),i.refCount++}function dp(i){i.refCount--,0>i.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),i.refCount===0&&t0e(n0e,function(){i.controller.abort()})}function _l(i,o,c){(i&127)!==0?0>Xc&&(Xc=Pi(),mS=vw(o),dC=o,c!=null&&(hC=ue(c)),(Xn&(la|Yl))!==xa&&(fi=!0,n0=pS),i=Lh(),o=Ih(),i!==iv||o!==gS?iv=-1.1:o!==null&&(n0=pS),Nm=i,gS=o):(i&4194048)!==0&&0>eu&&(eu=Pi(),yS=vw(o),QL=o,c!=null&&(ZL=ue(c)),0>wd)&&(i=Lh(),o=Ih(),(i!==i0||o!==km)&&(i0=-1.1),r0=i,km=o)}function gE(i){if(0>Xc){Xc=Pi(),mS=i._debugTask!=null?i._debugTask:null,(Xn&(la|Yl))!==xa&&(n0=pS);var o=Lh(),c=Ih();o!==iv||c!==gS?iv=-1.1:c!==null&&(n0=pS),Nm=o,gS=c}0>eu&&(eu=Pi(),yS=i._debugTask!=null?i._debugTask:null,0>wd)&&(i=Lh(),o=Ih(),(i!==i0||o!==km)&&(i0=-1.1),r0=i,km=o)}function Dl(){var i=_m;return _m=0,i}function Ja(i){var o=_m;return _m=i,o}function Cc(i){var o=_m;return _m+=i,o}function Ra(){nn=Xt=-1.1}function Li(){var i=Xt;return Xt=-1.1,i}function _a(i){0<=i&&(Xt=i)}function Oo(){var i=ni;return ni=-0,i}function Mo(i){0<=i&&(ni=i)}function Jo(){var i=Hr;return Hr=null,i}function ua(){var i=fi;return fi=!1,i}function E1(i){Po=Pi(),0>i.actualStartTime&&(i.actualStartTime=Po)}function dh(i){if(0<=Po){var o=Pi()-Po;i.actualDuration+=o,i.selfBaseDuration=o,Po=-1}}function Pf(i){if(0<=Po){var o=Pi()-Po;i.actualDuration+=o,Po=-1}}function Ss(){if(0<=Po){var i=Pi(),o=i-Po;Po=-1,_m+=o,ni+=o,nn=i}}function eo(i){Hr===null&&(Hr=[]),Hr.push(i),Sd===null&&(Sd=[]),Sd.push(i)}function el(){Po=Pi(),0>Xt&&(Xt=Po)}function Ro(i){for(var o=i.child;o;)i.actualDuration+=o.actualDuration,o=o.sibling}function yE(i,o){if(bS===null){var c=bS=[];mC=0,zm=Fn(),av={status:"pending",value:void 0,then:function(g){c.push(g)}}}return mC++,o.then(hp,hp),o}function hp(){if(--mC===0&&(-1<eu||(wd=-1.1),bS!==null)){av!==null&&(av.status="fulfilled");var i=bS;bS=null,zm=0,av=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function jf(i,o){var c=[],g={status:"pending",value:null,reason:null,then:function(S){c.push(S)}};return i.then(function(){g.status="fulfilled",g.value=o;for(var S=0;S<c.length;S++)(0,c[S])(o)},function(S){for(g.status="rejected",g.reason=S,S=0;S<c.length;S++)(0,c[S])(void 0)}),g}function pp(){var i=Im.current;return i!==null?i:Cr.pooledCache}function mp(i,o){o===null?Q(Im,Im.current,i):Q(Im,o.pool,i)}function w1(){var i=pp();return i===null?null:{parent:Bi._currentValue,pool:i}}function R4(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function _o(i){return i=i.status,i==="fulfilled"||i==="rejected"}function $f(i,o,c){$e.actQueue!==null&&($e.didUsePromise=!0);var g=i.thenables;if(c=g[c],c===void 0?g.push(o):c!==o&&(i.didWarnAboutUncachedPromise||(i.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(Xi,Xi),o=c),o._debugInfo===void 0){i=performance.now(),g=o.displayName;var S={name:typeof g=="string"?g:"Promise",start:i,end:i,value:o};o._debugInfo=[{awaited:S}],o.status!=="fulfilled"&&o.status!=="rejected"&&(i=function(){S.end=performance.now()},o.then(i,i))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,hh(i),i;default:if(typeof o.status=="string")o.then(Xi,Xi);else{if(i=Cr,i!==null&&100<i.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");i=o,i.status="pending",i.then(function(w){if(o.status==="pending"){var M=o;M.status="fulfilled",M.value=w}},function(w){if(o.status==="pending"){var M=o;M.status="rejected",M.reason=w}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,hh(i),i}throw Vm=o,CS=!0,ov}}function Do(i){try{return l0e(i)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Vm=o,CS=!0,ov):o}}function gp(){if(Vm===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var i=Vm;return Vm=null,CS=!1,i}function hh(i){if(i===ov||i===Cw)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function dr(i){var o=En;return i!=null&&(En=o===null?i:o.concat(i)),o}function to(){var i=En;if(i!=null){for(var o=i.length-1;0<=o;o--)if(i[o].name!=null){var c=i[o].debugTask;if(c!=null)return c}}return null}function Nl(i,o,c){for(var g=Object.keys(i.props),S=0;S<g.length;S++){var w=g[S];if(w!=="children"&&w!=="key"){o===null&&(o=b1(i,c.mode,0),o._debugInfo=En,o.return=c),Ve(o,function(M){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M)},w);break}}}function No(i){var o=OS;return OS+=1,lv===null&&(lv=R4()),$f(lv,i,o)}function no(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Es(i,o){throw o.$$typeof===Xx?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`):(i=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead."))}function yp(i,o){var c=to();c!==null?c.run(Es.bind(null,i,o)):Es(i,o)}function T1(i,o){var c=ue(i)||"Component";vV[c]||(vV[c]=!0,o=o.displayName||o.name||"Component",i.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  root.render(%s)`,o,o,o):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  <%s>{%s}</%s>`,o,o,c,o,c))}function ph(i,o){var c=to();c!==null?c.run(T1.bind(null,i,o)):T1(i,o)}function _4(i,o){var c=ue(i)||"Component";bV[c]||(bV[c]=!0,o=String(o),i.tag===3?console.error(`Symbols are not valid as a React child.
  root.render(%s)`,o):console.error(`Symbols are not valid as a React child.
  <%s>%s</%s>`,c,o,c))}function vi(i,o){var c=to();c!==null?c.run(_4.bind(null,i,o)):_4(i,o)}function wr(i){function o(pe,ye){if(i){var Se=pe.deletions;Se===null?(pe.deletions=[ye],pe.flags|=16):Se.push(ye)}}function c(pe,ye){if(!i)return null;for(;ye!==null;)o(pe,ye),ye=ye.sibling;return null}function g(pe){for(var ye=new Map;pe!==null;)pe.key!==null?ye.set(pe.key,pe):ye.set(pe.index,pe),pe=pe.sibling;return ye}function S(pe,ye){return pe=ms(pe,ye),pe.index=0,pe.sibling=null,pe}function w(pe,ye,Se){return pe.index=Se,i?(Se=pe.alternate,Se!==null?(Se=Se.index,Se<ye?(pe.flags|=67108866,ye):Se):(pe.flags|=67108866,ye)):(pe.flags|=1048576,ye)}function M(pe){return i&&pe.alternate===null&&(pe.flags|=67108866),pe}function N(pe,ye,Se,qe){return ye===null||ye.tag!==6?(ye=x1(Se,pe.mode,qe),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=En,ye):(ye=S(ye,Se),ye.return=pe,ye._debugInfo=En,ye)}function G(pe,ye,Se,qe){var Ct=Se.type;return Ct===na?(ye=we(pe,ye,Se.props.children,qe,Se.key),Nl(Se,ye,pe),ye):ye!==null&&(ye.elementType===Ct||zf(ye,Se)||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===ci&&Do(Ct)===ye.type)?(ye=S(ye,Se.props),no(ye,Se),ye.return=pe,ye._debugOwner=Se._owner,ye._debugInfo=En,ye):(ye=b1(Se,pe.mode,qe),no(ye,Se),ye.return=pe,ye._debugInfo=En,ye)}function Z(pe,ye,Se,qe){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Se.containerInfo||ye.stateNode.implementation!==Se.implementation?(ye=sp(Se,pe.mode,qe),ye.return=pe,ye._debugInfo=En,ye):(ye=S(ye,Se.children||[]),ye.return=pe,ye._debugInfo=En,ye)}function we(pe,ye,Se,qe,Ct){return ye===null||ye.tag!==7?(ye=gs(Se,pe.mode,qe,Ct),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=En,ye):(ye=S(ye,Se),ye.return=pe,ye._debugInfo=En,ye)}function Ae(pe,ye,Se){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=x1(""+ye,pe.mode,Se),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=En,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ul:return Se=b1(ye,pe.mode,Se),no(Se,ye),Se.return=pe,pe=dr(ye._debugInfo),Se._debugInfo=En,En=pe,Se;case qh:return ye=sp(ye,pe.mode,Se),ye.return=pe,ye._debugInfo=En,ye;case ci:var qe=dr(ye._debugInfo);return ye=Do(ye),pe=Ae(pe,ye,Se),En=qe,pe}if(Ci(ye)||se(ye))return Se=gs(ye,pe.mode,Se,null),Se.return=pe,Se._debugOwner=pe,Se._debugTask=pe._debugTask,pe=dr(ye._debugInfo),Se._debugInfo=En,En=pe,Se;if(typeof ye.then=="function")return qe=dr(ye._debugInfo),pe=Ae(pe,No(ye),Se),En=qe,pe;if(ye.$$typeof===$l)return Ae(pe,fp(pe,ye),Se);yp(pe,ye)}return typeof ye=="function"&&ph(pe,ye),typeof ye=="symbol"&&vi(pe,ye),null}function ge(pe,ye,Se,qe){var Ct=ye!==null?ye.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return Ct!==null?null:N(pe,ye,""+Se,qe);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ul:return Se.key===Ct?(Ct=dr(Se._debugInfo),pe=G(pe,ye,Se,qe),En=Ct,pe):null;case qh:return Se.key===Ct?Z(pe,ye,Se,qe):null;case ci:return Ct=dr(Se._debugInfo),Se=Do(Se),pe=ge(pe,ye,Se,qe),En=Ct,pe}if(Ci(Se)||se(Se))return Ct!==null?null:(Ct=dr(Se._debugInfo),pe=we(pe,ye,Se,qe,null),En=Ct,pe);if(typeof Se.then=="function")return Ct=dr(Se._debugInfo),pe=ge(pe,ye,No(Se),qe),En=Ct,pe;if(Se.$$typeof===$l)return ge(pe,ye,fp(pe,Se),qe);yp(pe,Se)}return typeof Se=="function"&&ph(pe,Se),typeof Se=="symbol"&&vi(pe,Se),null}function Ie(pe,ye,Se,qe,Ct){if(typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint")return pe=pe.get(Se)||null,N(ye,pe,""+qe,Ct);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case ul:return Se=pe.get(qe.key===null?Se:qe.key)||null,pe=dr(qe._debugInfo),ye=G(ye,Se,qe,Ct),En=pe,ye;case qh:return pe=pe.get(qe.key===null?Se:qe.key)||null,Z(ye,pe,qe,Ct);case ci:var cn=dr(qe._debugInfo);return qe=Do(qe),ye=Ie(pe,ye,Se,qe,Ct),En=cn,ye}if(Ci(qe)||se(qe))return Se=pe.get(Se)||null,pe=dr(qe._debugInfo),ye=we(ye,Se,qe,Ct,null),En=pe,ye;if(typeof qe.then=="function")return cn=dr(qe._debugInfo),ye=Ie(pe,ye,Se,No(qe),Ct),En=cn,ye;if(qe.$$typeof===$l)return Ie(pe,ye,Se,fp(ye,qe),Ct);yp(ye,qe)}return typeof qe=="function"&&ph(ye,qe),typeof qe=="symbol"&&vi(ye,qe),null}function xt(pe,ye,Se,qe){if(typeof Se!="object"||Se===null)return qe;switch(Se.$$typeof){case ul:case qh:x(pe,ye,Se);var Ct=Se.key;if(typeof Ct!="string")break;if(qe===null){qe=new Set,qe.add(Ct);break}if(!qe.has(Ct)){qe.add(Ct);break}Ve(ye,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ct)});break;case ci:Se=Do(Se),xt(pe,ye,Se,qe)}return qe}function Ot(pe,ye,Se,qe){for(var Ct=null,cn=null,Gt=null,Bt=ye,xn=ye=0,Br=null;Bt!==null&&xn<Se.length;xn++){Bt.index>xn?(Br=Bt,Bt=null):Br=Bt.sibling;var Ri=ge(pe,Bt,Se[xn],qe);if(Ri===null){Bt===null&&(Bt=Br);break}Ct=xt(pe,Ri,Se[xn],Ct),i&&Bt&&Ri.alternate===null&&o(pe,Bt),ye=w(Ri,ye,xn),Gt===null?cn=Ri:Gt.sibling=Ri,Gt=Ri,Bt=Br}if(xn===Se.length)return c(pe,Bt),Vn&&ys(pe,xn),cn;if(Bt===null){for(;xn<Se.length;xn++)Bt=Ae(pe,Se[xn],qe),Bt!==null&&(Ct=xt(pe,Bt,Se[xn],Ct),ye=w(Bt,ye,xn),Gt===null?cn=Bt:Gt.sibling=Bt,Gt=Bt);return Vn&&ys(pe,xn),cn}for(Bt=g(Bt);xn<Se.length;xn++)Br=Ie(Bt,pe,xn,Se[xn],qe),Br!==null&&(Ct=xt(pe,Br,Se[xn],Ct),i&&Br.alternate!==null&&Bt.delete(Br.key===null?xn:Br.key),ye=w(Br,ye,xn),Gt===null?cn=Br:Gt.sibling=Br,Gt=Br);return i&&Bt.forEach(function(Dd){return o(pe,Dd)}),Vn&&ys(pe,xn),cn}function Nr(pe,ye,Se,qe){if(Se==null)throw Error("An iterable object provided no iterator.");for(var Ct=null,cn=null,Gt=ye,Bt=ye=0,xn=null,Br=null,Ri=Se.next();Gt!==null&&!Ri.done;Bt++,Ri=Se.next()){Gt.index>Bt?(xn=Gt,Gt=null):xn=Gt.sibling;var Dd=ge(pe,Gt,Ri.value,qe);if(Dd===null){Gt===null&&(Gt=xn);break}Br=xt(pe,Dd,Ri.value,Br),i&&Gt&&Dd.alternate===null&&o(pe,Gt),ye=w(Dd,ye,Bt),cn===null?Ct=Dd:cn.sibling=Dd,cn=Dd,Gt=xn}if(Ri.done)return c(pe,Gt),Vn&&ys(pe,Bt),Ct;if(Gt===null){for(;!Ri.done;Bt++,Ri=Se.next())Gt=Ae(pe,Ri.value,qe),Gt!==null&&(Br=xt(pe,Gt,Ri.value,Br),ye=w(Gt,ye,Bt),cn===null?Ct=Gt:cn.sibling=Gt,cn=Gt);return Vn&&ys(pe,Bt),Ct}for(Gt=g(Gt);!Ri.done;Bt++,Ri=Se.next())xn=Ie(Gt,pe,Bt,Ri.value,qe),xn!==null&&(Br=xt(pe,xn,Ri.value,Br),i&&xn.alternate!==null&&Gt.delete(xn.key===null?Bt:xn.key),ye=w(xn,ye,Bt),cn===null?Ct=xn:cn.sibling=xn,cn=xn);return i&&Gt.forEach(function(D0e){return o(pe,D0e)}),Vn&&ys(pe,Bt),Ct}function Hn(pe,ye,Se,qe){if(typeof Se=="object"&&Se!==null&&Se.type===na&&Se.key===null&&(Nl(Se,null,pe),Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ul:var Ct=dr(Se._debugInfo);e:{for(var cn=Se.key;ye!==null;){if(ye.key===cn){if(cn=Se.type,cn===na){if(ye.tag===7){c(pe,ye.sibling),qe=S(ye,Se.props.children),qe.return=pe,qe._debugOwner=Se._owner,qe._debugInfo=En,Nl(Se,qe,pe),pe=qe;break e}}else if(ye.elementType===cn||zf(ye,Se)||typeof cn=="object"&&cn!==null&&cn.$$typeof===ci&&Do(cn)===ye.type){c(pe,ye.sibling),qe=S(ye,Se.props),no(qe,Se),qe.return=pe,qe._debugOwner=Se._owner,qe._debugInfo=En,pe=qe;break e}c(pe,ye);break}else o(pe,ye);ye=ye.sibling}Se.type===na?(qe=gs(Se.props.children,pe.mode,qe,Se.key),qe.return=pe,qe._debugOwner=pe,qe._debugTask=pe._debugTask,qe._debugInfo=En,Nl(Se,qe,pe),pe=qe):(qe=b1(Se,pe.mode,qe),no(qe,Se),qe.return=pe,qe._debugInfo=En,pe=qe)}return pe=M(pe),En=Ct,pe;case qh:e:{for(Ct=Se,Se=Ct.key;ye!==null;){if(ye.key===Se)if(ye.tag===4&&ye.stateNode.containerInfo===Ct.containerInfo&&ye.stateNode.implementation===Ct.implementation){c(pe,ye.sibling),qe=S(ye,Ct.children||[]),qe.return=pe,pe=qe;break e}else{c(pe,ye);break}else o(pe,ye);ye=ye.sibling}qe=sp(Ct,pe.mode,qe),qe.return=pe,pe=qe}return M(pe);case ci:return Ct=dr(Se._debugInfo),Se=Do(Se),pe=Hn(pe,ye,Se,qe),En=Ct,pe}if(Ci(Se))return Ct=dr(Se._debugInfo),pe=Ot(pe,ye,Se,qe),En=Ct,pe;if(se(Se)){if(Ct=dr(Se._debugInfo),cn=se(Se),typeof cn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Gt=cn.call(Se);return Gt===Se?(pe.tag!==0||Object.prototype.toString.call(pe.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Gt)!=="[object Generator]")&&(gV||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),gV=!0):Se.entries!==cn||bC||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bC=!0),pe=Nr(pe,ye,Gt,qe),En=Ct,pe}if(typeof Se.then=="function")return Ct=dr(Se._debugInfo),pe=Hn(pe,ye,No(Se),qe),En=Ct,pe;if(Se.$$typeof===$l)return Hn(pe,ye,fp(pe,Se),qe);yp(pe,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint"?(Ct=""+Se,ye!==null&&ye.tag===6?(c(pe,ye.sibling),qe=S(ye,Ct),qe.return=pe,pe=qe):(c(pe,ye),qe=x1(Ct,pe.mode,qe),qe.return=pe,qe._debugOwner=pe,qe._debugTask=pe._debugTask,qe._debugInfo=En,pe=qe),M(pe)):(typeof Se=="function"&&ph(pe,Se),typeof Se=="symbol"&&vi(pe,Se),c(pe,ye))}return function(pe,ye,Se,qe){var Ct=En;En=null;try{OS=0;var cn=Hn(pe,ye,Se,qe);return lv=null,cn}catch(Br){if(Br===ov||Br===Cw)throw Br;var Gt=E(29,Br,null,pe.mode);Gt.lanes=qe,Gt.return=pe;var Bt=Gt._debugInfo=En;if(Gt._debugOwner=pe._debugOwner,Gt._debugTask=pe._debugTask,Bt!=null){for(var xn=Bt.length-1;0<=xn;xn--)if(typeof Bt[xn].stack=="string"){Gt._debugOwner=Bt[xn],Gt._debugTask=Bt[xn].debugTask;break}}return Gt}finally{En=Ct}}}function In(i,o){var c=Ci(i);return i=!c&&typeof se(i)=="function",c||i?(c=c?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",c,o,c),!1):!0}function ws(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ro(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ts(i){return{lane:i,tag:SV,payload:null,callback:null,next:null}}function Da(i,o,c){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,SC===g&&!TV){var S=ue(i);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.

Please update the following component: %s`,S),TV=!0}return(Xn&la)!==xa?(S=g.pending,S===null?o.next=o:(o.next=S.next,S.next=o),g.pending=o,o=lp(i),x4(i,null,c),o):(bc(i,g,o,c),lp(i))}function mh(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var g=o.lanes;g&=i.pendingLanes,c|=g,o.lanes=c,fn(i,c)}}function vp(i,o){var c=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,c===g)){var S=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var M={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};w===null?S=w=M:w=w.next=M,c=c.next}while(c!==null);w===null?S=w=o:w=w.next=o}else S=w=o;c={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:w,shared:g.shared,callbacks:g.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}function As(){if(EC){var i=av;if(i!==null)throw i}}function kl(i,o,c,g){EC=!1;var S=i.updateQueue;a0=!1,SC=S.shared;var w=S.firstBaseUpdate,M=S.lastBaseUpdate,N=S.shared.pending;if(N!==null){S.shared.pending=null;var G=N,Z=G.next;G.next=null,M===null?w=Z:M.next=Z,M=G;var we=i.alternate;we!==null&&(we=we.updateQueue,N=we.lastBaseUpdate,N!==M&&(N===null?we.firstBaseUpdate=Z:N.next=Z,we.lastBaseUpdate=G))}if(w!==null){var Ae=S.baseState;M=0,we=Z=G=null,N=w;do{var ge=N.lane&-536870913,Ie=ge!==N.lane;if(Ie?(wn&ge)===ge:(g&ge)===ge){ge!==0&&ge===zm&&(EC=!0),we!==null&&(we=we.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{ge=i;var xt=N,Ot=o,Nr=c;switch(xt.tag){case EV:if(xt=xt.payload,typeof xt=="function"){rv=!0;var Hn=xt.call(Nr,Ae,Ot);if(ge.mode&mo){it(!0);try{xt.call(Nr,Ae,Ot)}finally{it(!1)}}rv=!1,Ae=Hn;break e}Ae=xt;break e;case xC:ge.flags=ge.flags&-65537|128;case SV:if(Hn=xt.payload,typeof Hn=="function"){if(rv=!0,xt=Hn.call(Nr,Ae,Ot),ge.mode&mo){it(!0);try{Hn.call(Nr,Ae,Ot)}finally{it(!1)}}rv=!1}else xt=Hn;if(xt==null)break e;Ae=bn({},Ae,xt);break e;case wV:a0=!0}}ge=N.callback,ge!==null&&(i.flags|=64,Ie&&(i.flags|=8192),Ie=S.callbacks,Ie===null?S.callbacks=[ge]:Ie.push(ge))}else Ie={lane:ge,tag:N.tag,payload:N.payload,callback:N.callback,next:null},we===null?(Z=we=Ie,G=Ae):we=we.next=Ie,M|=ge;if(N=N.next,N===null){if(N=S.shared.pending,N===null)break;Ie=N,N=Ie.next,Ie.next=null,S.lastBaseUpdate=Ie,S.shared.pending=null}}while(!0);we===null&&(G=Ae),S.baseState=G,S.firstBaseUpdate=Z,S.lastBaseUpdate=we,w===null&&(S.shared.lanes=0),s0|=M,i.lanes=M,i.memoizedState=Ae}SC=null}function A1(i,o){if(typeof i!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+i);i.call(o)}function bp(i,o){var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)A1(c[i],o)}function C1(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)A1(c[i],o)}function Oc(i,o){var c=Kc;Q(Mw,c,i),Q(sv,o,i),Kc=c|o.baseLanes}function zl(i){Q(Mw,Kc,i),Q(sv,sv.current,i)}function Cs(i){Kc=Mw.current,le(sv,i),le(Mw,i)}function ca(i){var o=i.alternate;Q(Mi,Mi.current&uv,i),Q(Gl,i,i),tu===null&&(o===null||sv.current!==null||o.memoizedState!==null)&&(tu=i)}function xp(i){Q(Mi,Mi.current,i),Q(Gl,i,i),tu===null&&(tu=i)}function O1(i){i.tag===22?(Q(Mi,Mi.current,i),Q(Gl,i,i),tu===null&&(tu=i)):ko(i)}function ko(i){Q(Mi,Mi.current,i),Q(Gl,Gl.current,i)}function fa(i){le(Gl,i),tu===i&&(tu=null),le(Mi,i)}function Os(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||Nx(c)||yy(c)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function qt(){var i=Pe;ru===null?ru=[i]:ru.push(i)}function lt(){var i=Pe;if(ru!==null&&(Cd++,ru[Cd]!==i)){var o=ue(un);if(!AV.has(o)&&(AV.add(o),ru!==null)){for(var c="",g=0;g<=Cd;g++){var S=ru[g],w=g===Cd?i:S;for(S=g+1+". "+S;30>S.length;)S+=" ";S+=w+`
`,c+=S}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks

   Previous render            Next render
   ------------------------------------------------------
%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,o,c)}}}function Uf(i){i==null||Ci(i)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Pe,typeof i)}function M1(){var i=ue(un);OV.has(i)||(OV.add(i),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",i))}function Kr(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function D4(i,o){if(_S)return!1;if(o===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Pe),!1;i.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.

Previous: %s
Incoming: %s`,Pe,"["+o.join(", ")+"]","["+i.join(", ")+"]");for(var c=0;c<o.length&&c<i.length;c++)if(!Bo(i[c],o[c]))return!1;return!0}function Qr(i,o,c,g,S,w){Td=w,un=o,ru=i!==null?i._debugHookTypes:null,Cd=-1,_S=i!==null&&i.type!==o.type,(Object.prototype.toString.call(c)==="[object AsyncFunction]"||Object.prototype.toString.call(c)==="[object AsyncGeneratorFunction]")&&(w=ue(un),wC.has(w)||(wC.add(w),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",w===null?"An unknown Component":"<"+w+">"))),o.memoizedState=null,o.updateQueue=null,o.lanes=0,$e.H=i!==null&&i.memoizedState!==null?AC:ru!==null?MV:TC,Pm=w=(o.mode&mo)!==rn;var M=gC(c,g,S);if(Pm=!1,fv&&(M=Hf(o,c,g,S)),w){it(!0);try{M=Hf(o,c,g,S)}finally{it(!1)}}return R1(i,o),M}function R1(i,o){o._debugHookTypes=ru,o.dependencies===null?Ad!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:Ad}):o.dependencies._debugThenableState=Ad,$e.H=DS;var c=Ar!==null&&Ar.next!==null;if(Td=0,ru=Pe=ji=Ar=un=null,Cd=-1,i!==null&&(i.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),_w=!1,RS=0,Ad=null,c)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");i===null||$i||(i=i.dependencies,i!==null&&cp(i)&&($i=!0)),CS?(CS=!1,i=!0):i=!1,i&&(o=ue(o)||"Unknown",CV.has(o)||wC.has(o)||(CV.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Hf(i,o,c,g){un=i;var S=0;do{if(fv&&(Ad=null),RS=0,fv=!1,S>=u0e)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(S+=1,_S=!1,ji=Ar=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}Cd=-1,$e.H=RV,w=gC(o,c,g)}while(fv);return w}function Sp(){var i=$e.H,o=i.useState()[0];return o=typeof o.then=="function"?gh(o):o,i=i.useState()[0],(Ar!==null?Ar.memoizedState:null)!==i&&(un.flags|=1024),o}function Ep(){var i=Dw!==0;return Dw=0,i}function Mc(i,o,c){o.updateQueue=i.updateQueue,o.flags=(o.mode&Uu)!==rn?o.flags&-402655237:o.flags&-2053,i.lanes&=~c}function Rc(i){if(_w){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}_w=!1}Td=0,ru=ji=Ar=un=null,Cd=-1,Pe=null,fv=!1,RS=Dw=0,Ad=null}function Na(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ji===null?un.memoizedState=ji=i:ji=ji.next=i,ji}function Qn(){if(Ar===null){var i=un.alternate;i=i!==null?i.memoizedState:null}else i=Ar.next;var o=ji===null?un.memoizedState:ji.next;if(o!==null)ji=o,Ar=i;else{if(i===null)throw un.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ar=i,i={memoizedState:Ar.memoizedState,baseState:Ar.baseState,baseQueue:Ar.baseQueue,queue:Ar.queue,next:null},ji===null?un.memoizedState=ji=i:ji=ji.next=i}return ji}function _1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gh(i){var o=RS;return RS+=1,Ad===null&&(Ad=R4()),i=$f(Ad,i,o),o=un,(ji===null?o.memoizedState:ji.next)===null&&(o=o.alternate,$e.H=o!==null&&o.memoizedState!==null?AC:TC),i}function io(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return gh(i);if(i.$$typeof===$l)return Er(i)}throw Error("An unsupported type was passed to use(): "+String(i))}function Tu(i){var o=null,c=un.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var g=un.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(o={data:g.data.map(function(S){return S.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=_1(),un.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0||_S)for(c=o.data[o.index]=Array(i),g=0;g<i;g++)c[g]=UA;else c.length!==i&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",c.length,i);return o.index++,c}function ao(i,o){return typeof o=="function"?o(i):o}function D1(i,o,c){var g=Na();if(c!==void 0){var S=c(o);if(Pm){it(!0);try{c(o)}finally{it(!1)}}}else S=o;return g.memoizedState=g.baseState=S,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:S},g.queue=i,i=i.dispatch=P4.bind(null,un,i),[g.memoizedState,i]}function Il(i){var o=Qn();return wp(o,Ar,i)}function wp(i,o,c){var g=i.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=c;var S=i.baseQueue,w=g.pending;if(w!==null){if(S!==null){var M=S.next;S.next=w.next,w.next=M}o.baseQueue!==S&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=S=w,g.pending=null}if(w=i.baseState,S===null)i.memoizedState=w;else{o=S.next;var N=M=null,G=null,Z=o,we=!1;do{var Ae=Z.lane&-536870913;if(Ae!==Z.lane?(wn&Ae)===Ae:(Td&Ae)===Ae){var ge=Z.revertLane;if(ge===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),Ae===zm&&(we=!0);else if((Td&ge)===ge){Z=Z.next,ge===zm&&(we=!0);continue}else Ae={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},G===null?(N=G=Ae,M=w):G=G.next=Ae,un.lanes|=ge,s0|=ge;Ae=Z.action,Pm&&c(w,Ae),w=Z.hasEagerState?Z.eagerState:c(w,Ae)}else ge={lane:Ae,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},G===null?(N=G=ge,M=w):G=G.next=ge,un.lanes|=Ae,s0|=Ae;Z=Z.next}while(Z!==null&&Z!==o);if(G===null?M=w:G.next=N,!Bo(w,i.memoizedState)&&($i=!0,we&&(c=av,c!==null)))throw c;i.memoizedState=w,i.baseState=M,i.baseQueue=G,g.lastRenderedState=w}return S===null&&(g.lanes=0),[i.memoizedState,g.dispatch]}function _c(i){var o=Qn(),c=o.queue;if(c===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");c.lastRenderedReducer=i;var g=c.dispatch,S=c.pending,w=o.memoizedState;if(S!==null){c.pending=null;var M=S=S.next;do w=i(w,M.action),M=M.next;while(M!==S);Bo(w,o.memoizedState)||($i=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),c.lastRenderedState=w}return[w,g]}function yh(i,o,c){var g=un,S=Na();if(Vn){if(c===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var w=c();cv||w===c()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),cv=!0)}else{if(w=o(),cv||(c=o(),Bo(w,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cv=!0)),Cr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(wn&127)!==0||N4(g,o,w)}return S.memoizedState=w,c={value:w,getSnapshot:o},S.queue=c,Mp(Nc.bind(null,g,c,i),[i]),g.flags|=2048,Ff(nu|$o,{destroy:void 0},Dc.bind(null,g,c,w,o),null),w}function Tp(i,o,c){var g=un,S=Qn(),w=Vn;if(w){if(c===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");c=c()}else if(c=o(),!cv){var M=o();Bo(c,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cv=!0)}(M=!Bo((Ar||S).memoizedState,c))&&(S.memoizedState=c,$i=!0),S=S.queue;var N=Nc.bind(null,g,S,i);if(Ki(2048,$o,N,[i]),S.getSnapshot!==o||M||ji!==null&&ji.memoizedState.tag&nu){if(g.flags|=2048,Ff(nu|$o,{destroy:void 0},Dc.bind(null,g,S,c,o),null),Cr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w||(Td&127)!==0||N4(g,o,c)}return c}function N4(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=un.updateQueue,o===null?(o=_1(),un.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function Dc(i,o,c,g){o.value=c,o.getSnapshot=g,k4(o)&&z4(i)}function Nc(i,o,c){return c(function(){k4(o)&&(_l(2,"updateSyncExternalStore()",i),z4(i))})}function k4(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Bo(i,c)}catch{return!0}}function z4(i){var o=Wi(i,2);o!==null&&Ur(o,i,2)}function kc(i){var o=Na();if(typeof i=="function"){var c=i;if(i=c(),Pm){it(!0);try{c()}finally{it(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:i},o}function qf(i){i=kc(i);var o=i.queue,c=B1.bind(null,un,o);return o.dispatch=c,[i.memoizedState,c]}function vh(i){var o=Na();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Qi.bind(null,un,!0,c),c.dispatch=o,[i,o]}function bh(i,o){var c=Qn();return Ap(c,Ar,i,o)}function Ap(i,o,c,g){return i.baseState=c,wp(i,Ar,typeof g=="function"?g:ao)}function I4(i,o){var c=Qn();return Ar!==null?Ap(c,Ar,i,o):(c.baseState=i,[i,c.queue.dispatch])}function Gf(i,o,c,g,S){if(zr(i))throw Error("Cannot update form state while rendering.");if(i=o.action,i!==null){var w={payload:S,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){w.listeners.push(M)}};$e.T!==null?c(!0):w.isTransition=!1,g(w),c=o.pending,c===null?(w.next=o.pending=w,L4(o,w)):(w.next=c.next,o.pending=c.next=w)}}function L4(i,o){var c=o.action,g=o.payload,S=i.state;if(o.isTransition){var w=$e.T,M={};M._updatedFibers=new Set,$e.T=M;try{var N=c(S,g),G=$e.S;G!==null&&G(M,N),Au(i,o,N)}catch(Z){Cp(i,o,Z)}finally{w!==null&&M.types!==null&&(w.types!==null&&w.types!==M.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),w.types=M.types),$e.T=w,w===null&&M._updatedFibers&&(i=M._updatedFibers.size,M._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{M=c(S,g),Au(i,o,M)}catch(Z){Cp(i,o,Z)}}function Au(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?($e.asyncTransitions++,c.then(Ru,Ru),c.then(function(g){N1(i,o,g)},function(g){return Cp(i,o,g)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):N1(i,o,c)}function N1(i,o,c){o.status="fulfilled",o.value=c,Cu(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,L4(i,c)))}function Cp(i,o,c){var g=i.pending;if(i.pending=null,g!==null){g=g.next;do o.status="rejected",o.reason=c,Cu(o),o=o.next;while(o!==g)}i.action=null}function Cu(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function Ou(i,o){return o}function Ms(i,o){if(Vn){var c=Cr.formState;if(c!==null){e:{var g=un;if(Vn){if(Vr){t:{for(var S=Vr,w=Js;S.nodeType!==8;){if(!w){S=null;break t}if(S=zo(S.nextSibling),S===null){S=null;break t}}w=S.data,S=w===XC||w===pB?S:null}if(S){Vr=zo(S.nextSibling),g=S.data===XC;break e}}Su(g)}g=!1}g&&(o=c[0])}}return c=Na(),c.memoizedState=c.baseState=o,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ou,lastRenderedState:o},c.queue=g,c=B1.bind(null,un,g),g.dispatch=c,g=kc(!1),w=Qi.bind(null,un,!1,g.queue),g=Na(),S={state:o,dispatch:null,action:i,pending:null},g.queue=S,c=Gf.bind(null,un,S,w,c),S.dispatch=c,g.memoizedState=i,[o,c,!1]}function xh(i){var o=Qn();return k1(o,Ar,i)}function k1(i,o,c){if(o=wp(i,o,Ou)[0],i=Il(ao)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var g=gh(o)}catch(M){throw M===ov?Cw:M}else g=o;o=Qn();var S=o.queue,w=S.dispatch;return c!==o.memoizedState&&(un.flags|=2048,Ff(nu|$o,{destroy:void 0},Op.bind(null,S,c),null)),[g,w,i]}function Op(i,o){i.action=o}function zc(i){var o=Qn(),c=Ar;if(c!==null)return k1(o,c,i);Qn(),o=o.memoizedState,c=Qn();var g=c.queue.dispatch;return c.memoizedState=i,[o,g,!1]}function Ff(i,o,c,g){return i={tag:i,create:c,deps:g,inst:o,next:null},o=un.updateQueue,o===null&&(o=_1(),un.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(g=c.next,c.next=i,i.next=g,o.lastEffect=i),i}function z1(i){var o=Na();return i={current:i},o.memoizedState=i}function tl(i,o,c,g){var S=Na();un.flags|=i,S.memoizedState=Ff(nu|o,{destroy:void 0},c,g===void 0?null:g)}function Ki(i,o,c,g){var S=Qn();g=g===void 0?null:g;var w=S.memoizedState.inst;Ar!==null&&g!==null&&D4(g,Ar.memoizedState.deps)?S.memoizedState=Ff(o,w,c,g):(un.flags|=i,S.memoizedState=Ff(nu|o,w,c,g))}function Mp(i,o){(un.mode&Uu)!==rn?tl(276826112,$o,i,o):tl(8390656,$o,i,o)}function V4(i){un.flags|=4;var o=un.updateQueue;if(o===null)o=_1(),un.updateQueue=o,o.events=[i];else{var c=o.events;c===null?o.events=[i]:c.push(i)}}function Rp(i){var o=Na(),c={impl:i};return o.memoizedState=c,function(){if((Xn&la)!==xa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return c.impl.apply(void 0,arguments)}}function da(i){var o=Qn().memoizedState;return V4({ref:o,nextImpl:i}),function(){if((Xn&la)!==xa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function oo(i,o){var c=4194308;return(un.mode&Uu)!==rn&&(c|=134217728),tl(c,Fl,i,o)}function Mu(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),i=i(),o.current=i,function(){o.current=null}}function _p(i,o,c){typeof o!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),c=c!=null?c.concat([i]):null;var g=4194308;(un.mode&Uu)!==rn&&(g|=134217728),tl(g,Fl,Mu.bind(null,o,i),c)}function Dp(i,o,c){typeof o!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),c=c!=null?c.concat([i]):null,Ki(4,Fl,Mu.bind(null,o,i),c)}function Rs(i,o){return Na().memoizedState=[i,o===void 0?null:o],i}function ha(i,o){var c=Qn();o=o===void 0?null:o;var g=c.memoizedState;return o!==null&&D4(o,g[1])?g[0]:(c.memoizedState=[i,o],i)}function jr(i,o){var c=Na();o=o===void 0?null:o;var g=i();if(Pm){it(!0);try{i()}finally{it(!1)}}return c.memoizedState=[g,o],g}function Yf(i,o){var c=Qn();o=o===void 0?null:o;var g=c.memoizedState;if(o!==null&&D4(o,g[1]))return g[0];if(g=i(),Pm){it(!0);try{i()}finally{it(!1)}}return c.memoizedState=[g,o],g}function Ll(i,o){var c=Na();return Zr(c,i,o)}function pn(i,o){var c=Qn();return Np(c,Ar.memoizedState,i,o)}function ir(i,o){var c=Qn();return Ar===null?Zr(c,i,o):Np(c,Ar.memoizedState,i,o)}function Zr(i,o,c){return c===void 0||(Td&1073741824)!==0&&(wn&261930)===0?i.memoizedState=o:(i.memoizedState=c,i=Tr(),un.lanes|=i,s0|=i,c)}function Np(i,o,c,g){return Bo(c,o)?c:sv.current!==null?(i=Zr(i,c,g),Bo(i,o)||($i=!0),i):(Td&42)===0||(Td&1073741824)!==0&&(wn&261930)===0?($i=!0,i.memoizedState=c):(i=Tr(),un.lanes|=i,s0|=i,o)}function Ru(){$e.asyncTransitions--}function Ic(i,o,c,g,S){var w=Jn.p;Jn.p=w!==0&&w<ia?w:ia;var M=$e.T,N={};N._updatedFibers=new Set,$e.T=N,Qi(i,!1,o,c);try{var G=S(),Z=$e.S;if(Z!==null&&Z(N,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){$e.asyncTransitions++,G.then(Ru,Ru);var we=jf(G,g);Wf(i,o,we,ea(i))}else Wf(i,o,g,ea(i))}catch(Ae){Wf(i,o,{then:function(){},status:"rejected",reason:Ae},ea(i))}finally{Jn.p=w,M!==null&&N.types!==null&&(M.types!==null&&M.types!==N.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=N.types),$e.T=M,M===null&&N._updatedFibers&&(i=N._updatedFibers.size,N._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Sh(i,o,c,g){if(i.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var S=Eh(i).queue;gE(i),Ic(i,S,o,Km,c===null?v:function(){return Xf(i),c(g)})}function Eh(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:Km,baseState:Km,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:Km},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function Xf(i){$e.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=Eh(i);o.next===null&&(o=i.alternate.memoizedState),Wf(i,o.next.queue,{},ea(i))}function B4(){var i=kc(!1);return i=Ic.bind(null,un,i.queue,!0,!1),Na().memoizedState=i,[!1,i]}function $r(){var i=Il(ao)[0],o=Qn().memoizedState;return[typeof i=="boolean"?i:gh(i),o]}function I1(){var i=_c(ao)[0],o=Qn().memoizedState;return[typeof i=="boolean"?i:gh(i),o]}function _u(){return Er(FS)}function L1(){var i=Na(),o=Cr.identifierPrefix;if(Vn){var c=bd,g=vd;c=(g&~(1<<32-ra(g)-1)).toString(32)+c,o="_"+o+"R_"+c,c=Dw++,0<c&&(o+="H"+c.toString(32)),o+="_"}else c=s0e++,o="_"+o+"r_"+c.toString(32)+"_";return i.memoizedState=o}function V1(){return Na().memoizedState=LA.bind(null,un)}function LA(i,o){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var g=ea(c),S=Ts(g),w=Da(c,S,g);w!==null&&(_l(g,"refresh()",i),Ur(w,c,g),mh(w,c,g)),i=M4(),o!=null&&w!==null&&console.error("The seed argument is not enabled outside experimental channels."),S.payload={cache:i};return}c=c.return}}function P4(i,o,c){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=ea(i);var S={lane:g,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};zr(i)?kp(o,S):(S=b4(i,o,S,g),S!==null&&(_l(g,"dispatch()",i),Ur(S,i,g),wh(S,o,g)))}function B1(i,o,c){var g=arguments;typeof g[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),g=ea(i),Wf(i,o,c,g)&&_l(g,"setState()",i)}function Wf(i,o,c,g){var S={lane:g,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(zr(i))kp(o,S);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null)){var M=$e.H;$e.H=qu;try{var N=o.lastRenderedState,G=w(N,c);if(S.hasEagerState=!0,S.eagerState=G,Bo(G,N))return bc(i,o,S,0),Cr===null&&ch(),!1}catch{}finally{$e.H=M}}if(c=b4(i,o,S,g),c!==null)return Ur(c,i,g),wh(c,o,g),!0}return!1}function Qi(i,o,c,g){if($e.T===null&&zm===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),g={lane:2,revertLane:Fn(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},zr(i)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=b4(i,c,g,2),o!==null&&(_l(2,"setOptimistic()",i),Ur(o,i,2))}function zr(i){var o=i.alternate;return i===un||o!==null&&o===un}function kp(i,o){fv=_w=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function wh(i,o,c){if((c&4194048)!==0){var g=o.lanes;g&=i.pendingLanes,c|=g,o.lanes=c,fn(i,c)}}function Th(i){if(i!==null&&typeof i!="function"){var o=String(i);jV.has(o)||(jV.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i))}}function zp(i,o,c,g){var S=i.memoizedState,w=c(g,S);if(i.mode&mo){it(!0);try{w=c(g,S)}finally{it(!1)}}w===void 0&&(o=ce(o)||"Component",LV.has(o)||(LV.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),S=w==null?S:bn({},S,w),i.memoizedState=S,i.lanes===0&&(i.updateQueue.baseState=S)}function _s(i,o,c,g,S,w,M){var N=i.stateNode;if(typeof N.shouldComponentUpdate=="function"){if(c=N.shouldComponentUpdate(g,w,M),i.mode&mo){it(!0);try{c=N.shouldComponentUpdate(g,w,M)}finally{it(!1)}}return c===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(o)||"Component"),c}return o.prototype&&o.prototype.isPureReactComponent?!op(c,g)||!op(S,w):!0}function Ip(i,o,c,g){var S=o.state;typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,g),o.state!==S&&(i=ue(i)||"Component",DV.has(i)||(DV.add(i),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),CC.enqueueReplaceState(o,o.state,null))}function Du(i,o){var c=o;if("ref"in o){c={};for(var g in o)g!=="ref"&&(c[g]=o[g])}if(i=i.defaultProps){c===o&&(c=bn({},c));for(var S in i)c[S]===void 0&&(c[S]=i[S])}return c}function P1(i){rC(i),console.warn(`%s

%s
`,dv?"An error occurred in the <"+dv+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function j4(i){var o=dv?"The above error occurred in the <"+dv+"> component.":"The above error occurred in one of your React components.",c="React will try to recreate this component tree from scratch using the error boundary you provided, "+((OC||"Anonymous")+".");if(typeof i=="object"&&i!==null&&typeof i.environmentName=="string"){var g=i.environmentName;i=[`%o

%s

%s
`,i,o,c].slice(0),typeof i[0]=="string"?i.splice(0,1,EB+" "+i[0],wB,nT+g+nT,TB):i.splice(0,0,EB,wB,nT+g+nT,TB),i.unshift(console),g=R0e.apply(console.error,i),g()}else console.error(`%o

%s

%s
`,i,o,c)}function $4(i){rC(i)}function Lp(i,o){try{dv=o.source?ue(o.source):null,OC=null;var c=o.value;if($e.actQueue!==null)$e.thrownErrors.push(c);else{var g=i.onUncaughtError;g(c,{componentStack:o.stack})}}catch(S){setTimeout(function(){throw S})}}function U4(i,o,c){try{dv=c.source?ue(c.source):null,OC=ue(o);var g=i.onCaughtError;g(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function j1(i,o,c){return c=Ts(c),c.tag=xC,c.payload={element:null},c.callback=function(){Ve(o.source,Lp,i,o)},c}function $1(i){return i=Ts(i),i.tag=xC,i}function Vp(i,o,c,g){var S=c.type.getDerivedStateFromError;if(typeof S=="function"){var w=g.value;i.payload=function(){return S(w)},i.callback=function(){dE(c),Ve(g.source,U4,o,c,g)}}var M=c.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(i.callback=function(){dE(c),Ve(g.source,U4,o,c,g),typeof S!="function"&&(c0===null?c0=new Set([this]):c0.add(this)),i0e(this,g),typeof S=="function"||(c.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ue(c)||"Unknown")})}function vE(i,o,c,g,S){if(c.flags|=32768,dl&&js(i,S),g!==null&&typeof g=="object"&&typeof g.then=="function"){if(o=c.alternate,o!==null&&Ac(o,c,S,!0),Vn&&(Yc=!0),c=Gl.current,c!==null){switch(c.tag){case 31:case 13:return tu===null?rd():c.alternate===null&&ri===Md&&(ri=zw),c.flags&=-257,c.flags|=65536,c.lanes=S,g===Ow?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([g]):o.add(g),ma(i,g,S)),!1;case 22:return c.flags|=65536,g===Ow?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([g])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([g]):c.add(g)),ma(i,g,S)),!1}throw Error("Unexpected Suspense handler tag ("+c.tag+"). This is a bug in React.")}return ma(i,g,S),rd(),!1}if(Vn)return Yc=!0,o=Gl.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=S,g!==uC&&vs(Ma(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:g}),c))):(g!==uC&&vs(Ma(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:g}),c)),i=i.current.alternate,i.flags|=65536,S&=-S,i.lanes|=S,g=Ma(g,c),S=j1(i.stateNode,g,S),vp(i,S),ri!==o0&&(ri=jm)),!1;var w=Ma(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:g}),c);if(VS===null?VS=[w]:VS.push(w),ri!==o0&&(ri=jm),o===null)return!0;g=Ma(g,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=S&-S,c.lanes|=i,i=j1(c.stateNode,g,i),vp(c,i),!1;case 1:if(o=c.type,w=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(c0===null||!c0.has(w))))return c.flags|=65536,S&=-S,c.lanes|=S,S=$1(S),Vp(S,i,c,g),vp(c,S),!1}c=c.return}while(c!==null);return!1}function Zi(i,o,c,g){o.child=i===null?xV(o,null,c,g):Bm(o,i.child,c,g)}function H4(i,o,c,g,S){c=c.render;var w=o.ref;if("ref"in g){var M={};for(var N in g)N!=="ref"&&(M[N]=g[N])}else M=g;return Co(o),g=Qr(i,o,c,M,w,S),N=Ep(),i!==null&&!$i?(Mc(i,o,S),Ds(i,o,S)):(Vn&&N&&S1(o),o.flags|=1,Zi(i,o,g,S),o.child)}function q4(i,o,c,g,S){if(i===null){var w=c.type;return typeof w=="function"&&!v1(w)&&w.defaultProps===void 0&&c.compare===null?(c=xc(w),o.tag=15,o.type=c,Ch(o,w),G4(i,o,c,g,S)):(i=If(c.type,null,g,o,o.mode,S),i.ref=o.ref,i.return=o,o.child=i)}if(w=i.child,!K1(i,S)){var M=w.memoizedProps;if(c=c.compare,c=c!==null?c:op,c(M,g)&&i.ref===o.ref)return Ds(i,o,S)}return o.flags|=1,i=ms(w,g),i.ref=o.ref,i.return=o,o.child=i}function G4(i,o,c,g,S){if(i!==null){var w=i.memoizedProps;if(op(w,g)&&i.ref===o.ref&&o.type===i.type)if($i=!1,o.pendingProps=g=w,K1(i,S))(i.flags&131072)!==0&&($i=!0);else return o.lanes=i.lanes,Ds(i,o,S)}return q1(i,o,c,g,S)}function U1(i,o,c,g){var S=g.children,w=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:dS,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((o.flags&128)!==0){if(w=w!==null?w.baseLanes|c:c,i!==null){for(g=o.child=i.child,S=0;g!==null;)S=S|g.lanes|g.childLanes,g=g.sibling;g=S&~w}else g=0,o.child=null;return F4(i,o,w,c,g)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&mp(o,w!==null?w.cachePool:null),w!==null?Oc(o,w):zl(o),O1(o);else return g=o.lanes=536870912,F4(i,o,w!==null?w.baseLanes|c:c,c,g)}else w!==null?(mp(o,w.cachePool),Oc(o,w),ko(o),o.memoizedState=null):(i!==null&&mp(o,null),zl(o),ko(o));return Zi(i,o,S,c),o.child}function Ah(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:dS,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function F4(i,o,c,g,S){var w=pp();return w=w===null?null:{parent:Bi._currentValue,pool:w},o.memoizedState={baseLanes:c,cachePool:w},i!==null&&mp(o,null),zl(o),O1(o),i!==null&&Ac(i,o,g,!0),o.childLanes=S,null}function Bp(i,o){var c=o.hidden;return c!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,c===!0?"hidden":c===!1?"hidden={false}":"hidden={...}",c?'mode="hidden"':'mode="visible"'),o=$p({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function Y4(i,o,c){return Bm(o,i.child,null,c),i=Bp(o,o.pendingProps),i.flags|=2,fa(o),o.memoizedState=null,i}function bE(i,o,c){var g=o.pendingProps,S=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(Vn){if(g.mode==="hidden")return i=Bp(o,g),o.lanes=536870912,Ah(null,i);if(xp(o),(i=Vr)?(c=gy(i,Js),c=c!==null&&c.data===Fm?c:null,c!==null&&(g={dehydrated:c,treeContext:pE(),retryLane:536870912,hydrationErrors:null},o.memoizedState=g,g=S4(c),g.return=o,o.child=g,Pa=o,Vr=null)):c=null,c===null)throw Ec(o,i),Su(o);return o.lanes=536870912,null}return Bp(o,g)}var w=i.memoizedState;if(w!==null){var M=w.dehydrated;if(xp(o),S)if(o.flags&256)o.flags&=-257,o=Y4(i,o,c);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Za(),(c&536870912)!==0&&Nh(o),$i||Ac(i,o,c,!1),S=(c&i.childLanes)!==0,$i||S){if(g=Cr,g!==null&&(M=Lt(g,c),M!==0&&M!==w.retryLane))throw w.retryLane=M,Wi(i,M),Ur(g,i,M),MC;rd(),o=Y4(i,o,c)}else i=w.treeContext,Vr=zo(M.nextSibling),Pa=o,Vn=!0,e0=null,Yc=!1,ql=null,Js=!1,i!==null&&mE(o,i),o=Bp(o,g),o.flags|=4096;return o}return w=i.child,g={mode:g.mode,children:g.children},(c&536870912)!==0&&(c&i.lanes)!==0&&Nh(o),i=ms(w,g),i.ref=o.ref,o.child=i,i.return=o,i}function H1(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(i===null||i.ref!==c)&&(o.flags|=4194816)}}function q1(i,o,c,g,S){if(c.prototype&&typeof c.prototype.render=="function"){var w=ce(c)||"Unknown";$V[w]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",w,w),$V[w]=!0)}return o.mode&mo&&Hu.recordLegacyContextWarning(o,null),i===null&&(Ch(o,o.type),c.contextTypes&&(w=ce(c)||"Unknown",HV[w]||(HV[w]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",w)))),Co(o),c=Qr(i,o,c,g,void 0,S),g=Ep(),i!==null&&!$i?(Mc(i,o,S),Ds(i,o,S)):(Vn&&g&&S1(o),o.flags|=1,Zi(i,o,c,S),o.child)}function Kf(i,o,c,g,S,w){return Co(o),Cd=-1,_S=i!==null&&i.type!==o.type,o.updateQueue=null,c=Hf(o,g,c,S),R1(i,o),g=Ep(),i!==null&&!$i?(Mc(i,o,w),Ds(i,o,w)):(Vn&&g&&S1(o),o.flags|=1,Zi(i,o,c,w),o.child)}function X4(i,o,c,g,S){switch(d(o)){case!1:var w=o.stateNode,M=new o.type(o.memoizedProps,w.context).state;w.updater.enqueueSetState(w,M,null);break;case!0:o.flags|=128,o.flags|=65536,w=Error("Simulated error coming from DevTools");var N=S&-S;if(o.lanes|=N,M=Cr,M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");N=$1(N),Vp(N,M,o,Ma(w,o)),vp(o,N)}if(Co(o),o.stateNode===null){if(M=Jh,w=c.contextType,"contextType"in c&&w!==null&&(w===void 0||w.$$typeof!==$l)&&!PV.has(c)&&(PV.add(c),N=w===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof w!="object"?" However, it is set to a "+typeof w+".":w.$$typeof===Dy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ce(c)||"Component",N)),typeof w=="object"&&w!==null&&(M=Er(w)),w=new c(g,M),o.mode&mo){it(!0);try{w=new c(g,M)}finally{it(!1)}}if(M=o.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=CC,o.stateNode=w,w._reactInternals=o,w._reactInternalInstance=_V,typeof c.getDerivedStateFromProps=="function"&&M===null&&(M=ce(c)||"Component",NV.has(M)||(NV.add(M),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,w.state===null?"null":"undefined",M))),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"){var G=N=M=null;if(typeof w.componentWillMount=="function"&&w.componentWillMount.__suppressDeprecationWarning!==!0?M="componentWillMount":typeof w.UNSAFE_componentWillMount=="function"&&(M="UNSAFE_componentWillMount"),typeof w.componentWillReceiveProps=="function"&&w.componentWillReceiveProps.__suppressDeprecationWarning!==!0?N="componentWillReceiveProps":typeof w.UNSAFE_componentWillReceiveProps=="function"&&(N="UNSAFE_componentWillReceiveProps"),typeof w.componentWillUpdate=="function"&&w.componentWillUpdate.__suppressDeprecationWarning!==!0?G="componentWillUpdate":typeof w.UNSAFE_componentWillUpdate=="function"&&(G="UNSAFE_componentWillUpdate"),M!==null||N!==null||G!==null){w=ce(c)||"Component";var Z=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";zV.has(w)||(zV.add(w),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

%s uses %s but also contains the following legacy lifecycles:%s%s%s

The above lifecycles should be removed. Learn more about this warning here:
https://react.dev/link/unsafe-component-lifecycles`,w,Z,M!==null?`
  `+M:"",N!==null?`
  `+N:"",G!==null?`
  `+G:""))}}w=o.stateNode,M=ce(c)||"Component",w.render||(c.prototype&&typeof c.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",M):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",M)),!w.getInitialState||w.getInitialState.isReactClassApproved||w.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",M),w.getDefaultProps&&!w.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",M),w.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),c.childContextTypes&&!BV.has(c)&&(BV.add(c),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",M)),c.contextTypes&&!VV.has(c)&&(VV.add(c),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",M)),typeof w.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",M),c.prototype&&c.prototype.isPureReactComponent&&typeof w.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ce(c)||"A pure component"),typeof w.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof w.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",M),typeof w.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof w.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M),N=w.props!==g,w.props!==void 0&&N&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M),w.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",M,M),typeof w.getSnapshotBeforeUpdate!="function"||typeof w.componentDidUpdate=="function"||kV.has(c)||(kV.add(c),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(c))),typeof w.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof w.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof c.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M),(N=w.state)&&(typeof N!="object"||Ci(N))&&console.error("%s.state: must be set to an object or null",M),typeof w.getChildContext=="function"&&typeof c.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),w=o.stateNode,w.props=g,w.state=o.memoizedState,w.refs={},ws(o),M=c.contextType,w.context=typeof M=="object"&&M!==null?Er(M):Jh,w.state===g&&(M=ce(c)||"Component",IV.has(M)||(IV.add(M),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",M))),o.mode&mo&&Hu.recordLegacyContextWarning(o,w),Hu.recordUnsafeLifecycleWarnings(o,w),w.state=o.memoizedState,M=c.getDerivedStateFromProps,typeof M=="function"&&(zp(o,c,M,g),w.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(M=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),M!==w.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ue(o)||"Component"),CC.enqueueReplaceState(w,w.state,null)),kl(o,g,w,S),As(),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308),(o.mode&Uu)!==rn&&(o.flags|=134217728),w=!0}else if(i===null){w=o.stateNode;var we=o.memoizedProps;N=Du(c,we),w.props=N;var Ae=w.context;G=c.contextType,M=Jh,typeof G=="object"&&G!==null&&(M=Er(G)),Z=c.getDerivedStateFromProps,G=typeof Z=="function"||typeof w.getSnapshotBeforeUpdate=="function",we=o.pendingProps!==we,G||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(we||Ae!==M)&&Ip(o,w,g,M),a0=!1;var ge=o.memoizedState;w.state=ge,kl(o,g,w,S),As(),Ae=o.memoizedState,we||ge!==Ae||a0?(typeof Z=="function"&&(zp(o,c,Z,g),Ae=o.memoizedState),(N=a0||_s(o,c,N,g,ge,Ae,M))?(G||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308),(o.mode&Uu)!==rn&&(o.flags|=134217728)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),(o.mode&Uu)!==rn&&(o.flags|=134217728),o.memoizedProps=g,o.memoizedState=Ae),w.props=g,w.state=Ae,w.context=M,w=N):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),(o.mode&Uu)!==rn&&(o.flags|=134217728),w=!1)}else{w=o.stateNode,ro(i,o),M=o.memoizedProps,G=Du(c,M),w.props=G,Z=o.pendingProps,ge=w.context,Ae=c.contextType,N=Jh,typeof Ae=="object"&&Ae!==null&&(N=Er(Ae)),we=c.getDerivedStateFromProps,(Ae=typeof we=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==Z||ge!==N)&&Ip(o,w,g,N),a0=!1,ge=o.memoizedState,w.state=ge,kl(o,g,w,S),As();var Ie=o.memoizedState;M!==Z||ge!==Ie||a0||i!==null&&i.dependencies!==null&&cp(i.dependencies)?(typeof we=="function"&&(zp(o,c,we,g),Ie=o.memoizedState),(G=a0||_s(o,c,G,g,ge,Ie,N)||i!==null&&i.dependencies!==null&&cp(i.dependencies))?(Ae||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(g,Ie,N),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(g,Ie,N)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===i.memoizedProps&&ge===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&ge===i.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=Ie),w.props=g,w.state=Ie,w.context=N,w=G):(typeof w.componentDidUpdate!="function"||M===i.memoizedProps&&ge===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&ge===i.memoizedState||(o.flags|=1024),w=!1)}if(N=w,H1(i,o),M=(o.flags&128)!==0,N||M){if(N=o.stateNode,Re(o),M&&typeof c.getDerivedStateFromError!="function")c=null,Po=-1;else if(c=oV(N),o.mode&mo){it(!0);try{oV(N)}finally{it(!1)}}o.flags|=1,i!==null&&M?(o.child=Bm(o,i.child,null,S),o.child=Bm(o,null,c,S)):Zi(i,o,c,S),o.memoizedState=N.state,i=o.child}else i=Ds(i,o,S);return S=o.stateNode,w&&S.props!==g&&(hv||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ue(o)||"a component"),hv=!0),i}function Pp(i,o,c,g){return Eu(),o.flags|=256,Zi(i,o,c,g),o.child}function Ch(i,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
  %s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps=="function"&&(i=ce(o)||"Unknown",qV[i]||(console.error("%s: Function components do not support getDerivedStateFromProps.",i),qV[i]=!0)),typeof o.contextType=="object"&&o.contextType!==null&&(o=ce(o)||"Unknown",UV[o]||(console.error("%s: Function components do not support contextType.",o),UV[o]=!0))}function G1(i){return{baseLanes:i,cachePool:w1()}}function jp(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=gl),i}function xE(i,o,c){var g,S=o.pendingProps;u(o)&&(o.flags|=128);var w=!1,M=(o.flags&128)!==0;if((g=M)||(g=i!==null&&i.memoizedState===null?!1:(Mi.current&MS)!==0),g&&(w=!0,o.flags&=-129),g=(o.flags&32)!==0,o.flags&=-33,i===null){if(Vn){if(w?ca(o):ko(o),(i=Vr)?(c=gy(i,Js),c=c!==null&&c.data!==Fm?c:null,c!==null&&(g={dehydrated:c,treeContext:pE(),retryLane:536870912,hydrationErrors:null},o.memoizedState=g,g=S4(c),g.return=o,o.child=g,Pa=o,Vr=null)):c=null,c===null)throw Ec(o,i),Su(o);return yy(c)?o.lanes=32:o.lanes=536870912,null}var N=S.children;if(S=S.fallback,w){ko(o);var G=o.mode;return N=$p({mode:"hidden",children:N},G),S=gs(S,G,c,null),N.return=o,S.return=o,N.sibling=S,o.child=N,S=o.child,S.memoizedState=G1(c),S.childLanes=jp(i,g,c),o.memoizedState=RC,Ah(null,S)}return ca(o),F1(o,N)}var Z=i.memoizedState;if(Z!==null){var we=Z.dehydrated;if(we!==null){if(M)o.flags&256?(ca(o),o.flags&=-257,o=Y1(i,o,c)):o.memoizedState!==null?(ko(o),o.child=i.child,o.flags|=128,o=null):(ko(o),N=S.fallback,G=o.mode,S=$p({mode:"visible",children:S.children},G),N=gs(N,G,c,null),N.flags|=2,S.return=o,N.return=o,S.sibling=N,o.child=S,Bm(o,i.child,null,c),S=o.child,S.memoizedState=G1(c),S.childLanes=jp(i,g,c),o.memoizedState=RC,o=Ah(null,S));else if(ca(o),Za(),(c&536870912)!==0&&Nh(o),yy(we)){if(g=we.nextSibling&&we.nextSibling.dataset,g){N=g.dgst;var Ae=g.msg;G=g.stck;var ge=g.cstck}w=Ae,g=N,S=G,we=ge,N=w,G=we,N=Error(N||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),N.stack=S||"",N.digest=g,g=G===void 0?null:G,S={value:N,source:null,stack:g},typeof g=="string"&&sC.set(N,S),vs(S),o=Y1(i,o,c)}else if($i||Ac(i,o,c,!1),g=(c&i.childLanes)!==0,$i||g){if(g=Cr,g!==null&&(S=Lt(g,c),S!==0&&S!==Z.retryLane))throw Z.retryLane=S,Wi(i,S),Ur(g,i,S),MC;Nx(we)||rd(),o=Y1(i,o,c)}else Nx(we)?(o.flags|=192,o.child=i.child,o=null):(i=Z.treeContext,Vr=zo(we.nextSibling),Pa=o,Vn=!0,e0=null,Yc=!1,ql=null,Js=!1,i!==null&&mE(o,i),o=F1(o,S.children),o.flags|=4096);return o}}return w?(ko(o),N=S.fallback,G=o.mode,ge=i.child,we=ge.sibling,S=ms(ge,{mode:"hidden",children:S.children}),S.subtreeFlags=ge.subtreeFlags&65011712,we!==null?N=ms(we,N):(N=gs(N,G,c,null),N.flags|=2),N.return=o,S.return=o,S.sibling=N,o.child=S,Ah(null,S),S=o.child,N=i.child.memoizedState,N===null?N=G1(c):(G=N.cachePool,G!==null?(ge=Bi._currentValue,G=G.parent!==ge?{parent:ge,pool:ge}:G):G=w1(),N={baseLanes:N.baseLanes|c,cachePool:G}),S.memoizedState=N,S.childLanes=jp(i,g,c),o.memoizedState=RC,Ah(i.child,S)):(Z!==null&&(c&62914560)===c&&(c&i.lanes)!==0&&Nh(o),ca(o),c=i.child,i=c.sibling,c=ms(c,{mode:"visible",children:S.children}),c.return=o,c.sibling=null,i!==null&&(g=o.deletions,g===null?(o.deletions=[i],o.flags|=16):g.push(i)),o.child=c,o.memoizedState=null,c)}function F1(i,o){return o=$p({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function $p(i,o){return i=E(22,i,null,o),i.lanes=0,i}function Y1(i,o,c){return Bm(o,i.child,null,c),i=F1(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function W4(i,o,c){i.lanes|=o;var g=i.alternate;g!==null&&(g.lanes|=o),wu(i.return,o,c)}function X1(i,o,c,g,S,w){var M=i.memoizedState;M===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:c,tailMode:S,treeForkCount:w}:(M.isBackwards=o,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=c,M.tailMode=S,M.treeForkCount=w)}function W1(i,o,c){var g=o.pendingProps,S=g.revealOrder,w=g.tail,M=g.children,N=Mi.current;if((g=(N&MS)!==0)?(N=N&uv|MS,o.flags|=128):N&=uv,Q(Mi,N,o),N=S??"null",S!=="forwards"&&S!=="unstable_legacy-backwards"&&S!=="together"&&S!=="independent"&&!GV[N])if(GV[N]=!0,S==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(S==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof S=="string")switch(S.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',S,S.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',S,S.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',S)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',S);N=w??"null",kw[N]||(w==null?(S==="forwards"||S==="backwards"||S==="unstable_legacy-backwards")&&(kw[N]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):w!=="visible"&&w!=="collapsed"&&w!=="hidden"?(kw[N]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',w)):S!=="forwards"&&S!=="backwards"&&S!=="unstable_legacy-backwards"&&(kw[N]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',w)));e:if((S==="forwards"||S==="backwards"||S==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(Ci(M)){for(N=0;N<M.length;N++)if(!In(M[N],N))break e}else if(N=se(M),typeof N=="function"){if(N=N.call(M))for(var G=N.next(),Z=0;!G.done;G=N.next()){if(!In(G.value,Z))break e;Z++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',S);if(Zi(i,o,M,c),Vn?(Sc(),M=hS):M=0,!g&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&W4(i,c,o);else if(i.tag===19)W4(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(S){case"forwards":for(c=o.child,S=null;c!==null;)i=c.alternate,i!==null&&Os(i)===null&&(S=c),c=c.sibling;c=S,c===null?(S=o.child,o.child=null):(S=c.sibling,c.sibling=null),X1(o,!1,S,c,w,M);break;case"backwards":case"unstable_legacy-backwards":for(c=null,S=o.child,o.child=null;S!==null;){if(i=S.alternate,i!==null&&Os(i)===null){o.child=S;break}i=S.sibling,S.sibling=c,c=S,S=i}X1(o,!0,c,null,w,M);break;case"together":X1(o,!1,null,null,void 0,M);break;default:o.memoizedState=null}return o.child}function Ds(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Po=-1,s0|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(Ac(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){for(i=o.child,c=ms(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=ms(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function K1(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&cp(i)))}function K4(i,o,c){switch(o.tag){case 3:W(o,o.stateNode.containerInfo),bs(o,Bi,i.memoizedState.cache),Eu();break;case 27:case 5:be(o);break;case 4:W(o,o.stateNode.containerInfo);break;case 10:bs(o,o.type,o.memoizedProps.value);break;case 12:(c&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var g=o.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,xp(o),null;break;case 13:if(g=o.memoizedState,g!==null)return g.dehydrated!==null?(ca(o),o.flags|=128,null):(c&o.child.childLanes)!==0?xE(i,o,c):(ca(o),i=Ds(i,o,c),i!==null?i.sibling:null);ca(o);break;case 19:var S=(i.flags&128)!==0;if(g=(c&o.childLanes)!==0,g||(Ac(i,o,c,!1),g=(c&o.childLanes)!==0),S){if(g)return W1(i,o,c);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),Q(Mi,Mi.current,o),g)break;return null;case 22:return o.lanes=0,U1(i,o,c,o.pendingProps);case 24:bs(o,Bi,i.memoizedState.cache)}return Ds(i,o,c)}function Q1(i,o,c){if(o._debugNeedsRemount&&i!==null){c=If(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),c._debugStack=o._debugStack,c._debugTask=o._debugTask;var g=o.return;if(g===null)throw Error("Cannot swap the root fiber.");if(i.alternate=null,o.alternate=null,c.index=o.index,c.sibling=o.sibling,c.return=o.return,c.ref=o.ref,c._debugInfo=o._debugInfo,o===g.child)g.child=c;else{var S=g.child;if(S===null)throw Error("Expected parent to have a child.");for(;S.sibling!==o;)if(S=S.sibling,S===null)throw Error("Expected to find the previous sibling.");S.sibling=c}return o=g.deletions,o===null?(g.deletions=[i],g.flags|=16):o.push(i),c.flags|=2,c}if(i!==null)if(i.memoizedProps!==o.pendingProps||o.type!==i.type)$i=!0;else{if(!K1(i,c)&&(o.flags&128)===0)return $i=!1,K4(i,o,c);$i=(i.flags&131072)!==0}else $i=!1,(g=Vn)&&(Sc(),g=(o.flags&1048576)!==0),g&&(g=o.index,Sc(),E4(o,hS,g));switch(o.lanes=0,o.tag){case 16:e:if(g=o.pendingProps,i=Do(o.elementType),o.type=i,typeof i=="function")v1(i)?(g=Du(i,g),o.tag=1,o.type=i=xc(i),o=X4(null,o,i,g,c)):(o.tag=0,Ch(o,i),o.type=i=xc(i),o=q1(null,o,i,g,c));else{if(i!=null){if(S=i.$$typeof,S===Bu){o.tag=11,o.type=i=y1(i),o=H4(null,o,i,g,c);break e}else if(S===dd){o.tag=14,o=q4(null,o,i,g,c);break e}}throw o="",i!==null&&typeof i=="object"&&i.$$typeof===ci&&(o=" Did you wrap a component in React.lazy() more than once?"),c=ce(i)||i,Error("Element type is invalid. Received a promise that resolves to: "+c+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return q1(i,o,o.type,o.pendingProps,c);case 1:return g=o.type,S=Du(g,o.pendingProps),X4(i,o,g,S,c);case 3:e:{if(W(o,o.stateNode.containerInfo),i===null)throw Error("Should have a current fiber. This is a bug in React.");g=o.pendingProps;var w=o.memoizedState;S=w.element,ro(i,o),kl(o,g,null,c);var M=o.memoizedState;if(g=M.cache,bs(o,Bi,g),g!==w.cache&&Tc(o,[Bi],c,!0),As(),g=M.element,w.isDehydrated)if(w={element:g,isDehydrated:!1,cache:M.cache},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){o=Pp(i,o,g,c);break e}else if(g!==S){S=Ma(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),vs(S),o=Pp(i,o,g,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Vr=zo(i.firstChild),Pa=o,Vn=!0,e0=null,Yc=!1,ql=null,Js=!0,c=xV(o,null,g,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Eu(),g===S){o=Ds(i,o,c);break e}Zi(i,o,g,c)}o=o.child}return o;case 26:return H1(i,o),i===null?(c=Ix(o.type,null,o.pendingProps,null))?o.memoizedState=c:Vn||(c=o.type,i=o.pendingProps,g=ee(cl.current),g=dy(g).createElement(c),g[aa]=o,g[ya]=i,$n(g,c,i),ot(g),o.stateNode=g):o.memoizedState=Ix(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return be(o),i===null&&Vn&&(g=ee(cl.current),S=he(),g=o.stateNode=jl(o.type,o.pendingProps,g,S,!1),Yc||(S=Mx(g,o.type,o.pendingProps,S),S!==null&&(Lf(o,0).serverProps=S)),Pa=o,Js=!0,S=Vr,Vu(o.type)?(ZC=S,Vr=zo(g.firstChild)):Vr=S),Zi(i,o,o.pendingProps.children,c),H1(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Vn&&(w=he(),g=l1(o.type,w.ancestorInfo),S=Vr,(M=!S)||(M=FE(S,o.type,o.pendingProps,Js),M!==null?(o.stateNode=M,Yc||(w=Mx(M,o.type,o.pendingProps,w),w!==null&&(Lf(o,0).serverProps=w)),Pa=o,Vr=zo(M.firstChild),Js=!1,w=!0):w=!1,M=!w),M&&(g&&Ec(o,S),Su(o))),be(o),S=o.type,w=o.pendingProps,M=i!==null?i.memoizedProps:null,g=w.children,om(S,w)?g=null:M!==null&&om(S,M)&&(o.flags|=32),o.memoizedState!==null&&(S=Qr(i,o,Sp,null,null,c),FS._currentValue=S),H1(i,o),Zi(i,o,g,c),o.child;case 6:return i===null&&Vn&&(c=o.pendingProps,i=he(),g=i.ancestorInfo.current,c=g!=null?oh(c,g.tag,i.ancestorInfo.implicitRootScope):!0,i=Vr,(g=!i)||(g=or(i,o.pendingProps,Js),g!==null?(o.stateNode=g,Pa=o,Vr=null,g=!0):g=!1,g=!g),g&&(c&&Ec(o,i),Su(o))),null;case 13:return xE(i,o,c);case 4:return W(o,o.stateNode.containerInfo),g=o.pendingProps,i===null?o.child=Bm(o,null,g,c):Zi(i,o,g,c),o.child;case 11:return H4(i,o,o.type,o.pendingProps,c);case 7:return Zi(i,o,o.pendingProps,c),o.child;case 8:return Zi(i,o,o.pendingProps.children,c),o.child;case 12:return o.flags|=4,o.flags|=2048,g=o.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,Zi(i,o,o.pendingProps.children,c),o.child;case 10:return g=o.type,S=o.pendingProps,w=S.value,"value"in S||FV||(FV=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),bs(o,g,w),Zi(i,o,S.children,c),o.child;case 9:return S=o.type._context,g=o.pendingProps.children,typeof g!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Co(o),S=Er(S),g=gC(g,S,void 0),o.flags|=1,Zi(i,o,g,c),o.child;case 14:return q4(i,o,o.type,o.pendingProps,c);case 15:return G4(i,o,o.type,o.pendingProps,c);case 19:return W1(i,o,c);case 31:return bE(i,o,c);case 22:return U1(i,o,c,o.pendingProps);case 24:return Co(o),g=Er(Bi),i===null?(S=pp(),S===null&&(S=Cr,w=M4(),S.pooledCache=w,Bf(w),w!==null&&(S.pooledCacheLanes|=c),S=w),o.memoizedState={parent:g,cache:S},ws(o),bs(o,Bi,S)):((i.lanes&c)!==0&&(ro(i,o),kl(o,null,null,c),As()),S=i.memoizedState,w=o.memoizedState,S.parent!==g?(S={parent:g,cache:g},o.memoizedState=S,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=S),bs(o,Bi,g)):(g=w.cache,bs(o,Bi,g),g!==S.cache&&Tc(o,[Bi],c,!0))),Zi(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ns(i){i.flags|=4}function Q4(i,o,c,g,S){if((o=(i.mode&Jhe)!==rn)&&(o=!1),o){if(i.flags|=16777216,(S&335544128)===S)if(i.stateNode.complete)i.flags|=8192;else if(oy())i.flags|=8192;else throw Vm=Ow,vC}else i.flags&=-16777217}function Z1(i,o){if(o.type!=="stylesheet"||(o.state.loading&iu)!==Wm)i.flags&=-16777217;else if(i.flags|=16777216,!Ey(o))if(oy())i.flags|=8192;else throw Vm=Ow,vC}function Up(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Le():536870912,i.lanes|=o,Hm|=o)}function Oh(i,o){if(!Vn)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var g=null;c!==null;)c.alternate!==null&&(g=c),c=c.sibling;g===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function ar(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,g=0;if(o)if((i.mode&Sn)!==rn){for(var S=i.selfBaseDuration,w=i.child;w!==null;)c|=w.lanes|w.childLanes,g|=w.subtreeFlags&65011712,g|=w.flags&65011712,S+=w.treeBaseDuration,w=w.sibling;i.treeBaseDuration=S}else for(S=i.child;S!==null;)c|=S.lanes|S.childLanes,g|=S.subtreeFlags&65011712,g|=S.flags&65011712,S.return=i,S=S.sibling;else if((i.mode&Sn)!==rn){S=i.actualDuration,w=i.selfBaseDuration;for(var M=i.child;M!==null;)c|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,S+=M.actualDuration,w+=M.treeBaseDuration,M=M.sibling;i.actualDuration=S,i.treeBaseDuration=w}else for(S=i.child;S!==null;)c|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=i,S=S.sibling;return i.subtreeFlags|=g,i.childLanes=c,o}function SE(i,o,c){var g=o.pendingProps;switch(w4(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(o),null;case 1:return ar(o),null;case 3:return c=o.stateNode,g=null,i!==null&&(g=i.memoizedState.cache),o.memoizedState.cache!==g&&(o.flags|=2048),xs(Bi,o),oe(o),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(Vf(o)?(up(),Ns(o)):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,C4())),ar(o),null;case 26:var S=o.type,w=o.memoizedState;return i===null?(Ns(o),w!==null?(ar(o),Z1(o,w)):(ar(o),Q4(o,S,null,g,c))):w?w!==i.memoizedState?(Ns(o),ar(o),Z1(o,w)):(ar(o),o.flags&=-16777217):(i=i.memoizedProps,i!==g&&Ns(o),ar(o),Q4(o,S,i,g,c)),null;case 27:if(re(o),c=ee(cl.current),S=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==g&&Ns(o);else{if(!g){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ar(o),null}i=he(),Vf(o)?T4(o):(i=jl(S,g,c,i,!0),o.stateNode=i,Ns(o))}return ar(o),null;case 5:if(re(o),S=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==g&&Ns(o);else{if(!g){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ar(o),null}var M=he();if(Vf(o))T4(o);else{switch(w=ee(cl.current),l1(S,M.ancestorInfo),M=M.context,w=dy(w),M){case Sv:w=w.createElementNS(kn,S);break;case Jw:w=w.createElementNS(On,S);break;default:switch(S){case"svg":w=w.createElementNS(kn,S);break;case"math":w=w.createElementNS(On,S);break;case"script":w=w.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof g.is=="string"?w.createElement("select",{is:g.is}):w.createElement("select"),g.multiple?w.multiple=!0:g.size&&(w.size=g.size);break;default:w=typeof g.is=="string"?w.createElement(S,{is:g.is}):w.createElement(S),S.indexOf("-")===-1&&(S!==S.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",S),Object.prototype.toString.call(w)!=="[object HTMLUnknownElement]"||Ul.call(gB,S)||(gB[S]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",S)))}}w[aa]=o,w[ya]=g;e:for(M=o.child;M!==null;){if(M.tag===5||M.tag===6)w.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===o)break e;for(;M.sibling===null;){if(M.return===null||M.return===o)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}o.stateNode=w;e:switch($n(w,S,g),S){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Ns(o)}}return ar(o),Q4(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,c),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==g&&Ns(o);else{if(typeof g!="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(i=ee(cl.current),c=he(),Vf(o)){if(i=o.stateNode,c=o.memoizedProps,S=!Yc,g=null,w=Pa,w!==null)switch(w.tag){case 3:S&&(S=sm(i,c,g),S!==null&&(Lf(o,0).serverProps=S));break;case 27:case 5:g=w.memoizedProps,S&&(S=sm(i,c,g),S!==null&&(Lf(o,0).serverProps=S))}i[aa]=o,i=!!(i.nodeValue===c||g!==null&&g.suppressHydrationWarning===!0||im(i.nodeValue,c)),i||Su(o,!0)}else S=c.ancestorInfo.current,S!=null&&oh(g,S.tag,c.ancestorInfo.implicitRootScope),i=dy(i).createTextNode(g),i[aa]=o,o.stateNode=i}return ar(o),null;case 31:if(c=o.memoizedState,i===null||i.memoizedState!==null){if(g=Vf(o),c!==null){if(i===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");i[aa]=o,ar(o),(o.mode&Sn)!==rn&&c!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration))}else up(),Eu(),(o.flags&128)===0&&(c=o.memoizedState=null),o.flags|=4,ar(o),(o.mode&Sn)!==rn&&c!==null&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration));i=!1}else c=C4(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=c),i=!0;if(!i)return o.flags&256?(fa(o),o):(fa(o),null);if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ar(o),null;case 13:if(g=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(S=g,w=Vf(o),S!==null&&S.dehydrated!==null){if(i===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w[aa]=o,ar(o),(o.mode&Sn)!==rn&&S!==null&&(S=o.child,S!==null&&(o.treeBaseDuration-=S.treeBaseDuration))}else up(),Eu(),(o.flags&128)===0&&(S=o.memoizedState=null),o.flags|=4,ar(o),(o.mode&Sn)!==rn&&S!==null&&(S=o.child,S!==null&&(o.treeBaseDuration-=S.treeBaseDuration));S=!1}else S=C4(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=S),S=!0;if(!S)return o.flags&256?(fa(o),o):(fa(o),null)}return fa(o),(o.flags&128)!==0?(o.lanes=c,(o.mode&Sn)!==rn&&Ro(o),o):(c=g!==null,i=i!==null&&i.memoizedState!==null,c&&(g=o.child,S=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(S=g.alternate.memoizedState.cachePool.pool),w=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(w=g.memoizedState.cachePool.pool),w!==S&&(g.flags|=2048)),c!==i&&c&&(o.child.flags|=8192),Up(o,o.updateQueue),ar(o),(o.mode&Sn)!==rn&&c&&(i=o.child,i!==null&&(o.treeBaseDuration-=i.treeBaseDuration)),null);case 4:return oe(o),i===null&&nm(o.stateNode.containerInfo),ar(o),null;case 10:return xs(o.type,o),ar(o),null;case 19:if(le(Mi,o),g=o.memoizedState,g===null)return ar(o),null;if(S=(o.flags&128)!==0,w=g.rendering,w===null)if(S)Oh(g,!1);else{if(ri!==Md||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(w=Os(i),w!==null){for(o.flags|=128,Oh(g,!1),i=w.updateQueue,o.updateQueue=i,Up(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)fh(c,i),c=c.sibling;return Q(Mi,Mi.current&uv|MS,o),Vn&&ys(o,g.treeForkCount),o.child}i=i.sibling}g.tail!==null&&ti()>jw&&(o.flags|=128,S=!0,Oh(g,!1),o.lanes=4194304)}else{if(!S)if(i=Os(w),i!==null){if(o.flags|=128,S=!0,i=i.updateQueue,o.updateQueue=i,Up(o,i),Oh(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!Vn)return ar(o),null}else 2*ti()-g.renderingStartTime>jw&&c!==536870912&&(o.flags|=128,S=!0,Oh(g,!1),o.lanes=4194304);g.isBackwards?(w.sibling=o.child,o.child=w):(i=g.last,i!==null?i.sibling=w:o.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=ti(),i.sibling=null,c=Mi.current,c=S?c&uv|MS:c&uv,Q(Mi,c,o),Vn&&ys(o,g.treeForkCount),i):(ar(o),null);case 22:case 23:return fa(o),Cs(o),g=o.memoizedState!==null,i!==null?i.memoizedState!==null!==g&&(o.flags|=8192):g&&(o.flags|=8192),g?(c&536870912)!==0&&(o.flags&128)===0&&(ar(o),o.subtreeFlags&6&&(o.flags|=8192)):ar(o),c=o.updateQueue,c!==null&&Up(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),g=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==c&&(o.flags|=2048),i!==null&&le(Im,o),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),xs(Bi,o),ar(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function EE(i,o){switch(w4(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&Sn)!==rn&&Ro(o),o):null;case 3:return xs(Bi,o),oe(o),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return re(o),null;case 31:if(o.memoizedState!==null){if(fa(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Eu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&Sn)!==rn&&Ro(o),o):null;case 13:if(fa(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Eu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&Sn)!==rn&&Ro(o),o):null;case 19:return le(Mi,o),null;case 4:return oe(o),null;case 10:return xs(o.type,o),null;case 22:case 23:return fa(o),Cs(o),i!==null&&le(Im,o),i=o.flags,i&65536?(o.flags=i&-65537|128,(o.mode&Sn)!==rn&&Ro(o),o):null;case 24:return xs(Bi,o),null;case 25:return null;default:return null}}function wE(i,o){switch(w4(o),o.tag){case 3:xs(Bi,o),oe(o);break;case 26:case 27:case 5:re(o);break;case 4:oe(o);break;case 31:o.memoizedState!==null&&fa(o);break;case 13:fa(o);break;case 19:le(Mi,o);break;case 10:xs(o.type,o);break;case 22:case 23:fa(o),Cs(o),i!==null&&le(Im,o);break;case 24:xs(Bi,o)}}function ks(i){return(i.mode&Sn)!==rn}function Z4(i,o){ks(i)?(el(),Zf(o,i),Ss()):Zf(o,i)}function Qf(i,o,c){ks(i)?(el(),Nu(c,i,o),Ss()):Nu(c,i,o)}function Zf(i,o){try{var c=o.updateQueue,g=c!==null?c.lastEffect:null;if(g!==null){var S=g.next;c=S;do{if((c.tag&i)===i&&(g=void 0,(i&jo)!==Rw&&(vv=!0),g=Ve(o,a0e,c),(i&jo)!==Rw&&(vv=!1),g!==void 0&&typeof g!="function")){var w=void 0;w=(c.tag&Fl)!==0?"useLayoutEffect":(c.tag&jo)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=g===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof g.then=="function"?`

It looks like you wrote `+w+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:

`+w+`(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+g,Ve(o,function(N,G){console.error("%s must not return anything besides a function, which is used for clean-up.%s",N,G)},w,M)}c=c.next}while(c!==S)}}catch(N){Wn(o,o.return,N)}}function Nu(i,o,c){try{var g=o.updateQueue,S=g!==null?g.lastEffect:null;if(S!==null){var w=S.next;g=w;do{if((g.tag&i)===i){var M=g.inst,N=M.destroy;N!==void 0&&(M.destroy=void 0,(i&jo)!==Rw&&(vv=!0),S=o,Ve(S,o0e,S,c,N),(i&jo)!==Rw&&(vv=!1))}g=g.next}while(g!==w)}}catch(G){Wn(o,o.return,G)}}function J4(i,o){ks(i)?(el(),Zf(o,i),Ss()):Zf(o,i)}function J1(i,o,c){ks(i)?(el(),Nu(c,i,o),Ss()):Nu(c,i,o)}function Mh(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;i.type.defaultProps||"ref"in i.memoizedProps||hv||(c.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(i)||"instance"),c.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(i)||"instance"));try{Ve(i,C1,o,c)}catch(g){Wn(i,i.return,g)}}}function TE(i,o,c){return i.getSnapshotBeforeUpdate(o,c)}function ex(i,o){var c=o.memoizedProps,g=o.memoizedState;o=i.stateNode,i.type.defaultProps||"ref"in i.memoizedProps||hv||(o.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(i)||"instance"),o.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(i)||"instance"));try{var S=Du(i.type,c),w=Ve(i,TE,o,S,g);c=YV,w!==void 0||c.has(i.type)||(c.add(i.type),Ve(i,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(i))})),o.__reactInternalSnapshotBeforeUpdate=w}catch(M){Wn(i,i.return,M)}}function tx(i,o,c){c.props=Du(i.type,i.memoizedProps),c.state=i.memoizedState,ks(i)?(el(),Ve(i,dV,i,o,c),Ss()):Ve(i,dV,i,o,c)}function nx(i){var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var c=i.stateNode;break;case 30:c=i.stateNode;break;default:c=i.stateNode}if(typeof o=="function")if(ks(i))try{el(),i.refCleanup=o(c)}finally{Ss()}else i.refCleanup=o(c);else typeof o=="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(i)),o.current=c}}function Jf(i,o){try{Ve(i,nx,i)}catch(c){Wn(i,o,c)}}function Vl(i,o){var c=i.ref,g=i.refCleanup;if(c!==null)if(typeof g=="function")try{if(ks(i))try{el(),Ve(i,g)}finally{Ss(i)}else Ve(i,g)}catch(S){Wn(i,o,S)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{if(ks(i))try{el(),Ve(i,c,null)}finally{Ss(i)}else Ve(i,c,null)}catch(S){Wn(i,o,S)}else c.current=null}function rx(i,o,c,g){var S=i.memoizedProps,w=S.id,M=S.onCommit;S=S.onRender,o=o===null?"mount":"update",ww&&(o="nested-update"),typeof S=="function"&&S(w,o,i.actualDuration,i.treeBaseDuration,i.actualStartTime,c),typeof M=="function"&&M(w,o,g,c)}function ed(i,o,c,g){var S=i.memoizedProps;i=S.id,S=S.onPostCommit,o=o===null?"mount":"update",ww&&(o="nested-update"),typeof S=="function"&&S(i,o,g,c)}function ix(i){var o=i.type,c=i.memoizedProps,g=i.stateNode;try{Ve(i,VE,g,o,c,i)}catch(S){Wn(i,i.return,S)}}function ey(i,o,c){try{Ve(i,_x,i.stateNode,i.type,c,o,i)}catch(g){Wn(i,i.return,g)}}function ax(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Vu(i.type)||i.tag===4}function Rh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||ax(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Vu(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function ty(i,o,c){var g=i.tag;if(g===5||g===6)i=i.stateNode,o?(PE(c),(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o)):(PE(c),o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=Xi));else if(g!==4&&(g===27&&Vu(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(ty(i,o,c),i=i.sibling;i!==null;)ty(i,o,c),i=i.sibling}function _h(i,o,c){var g=i.tag;if(g===5||g===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(g!==4&&(g===27&&Vu(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(_h(i,o,c),i=i.sibling;i!==null;)_h(i,o,c),i=i.sibling}function AE(i){for(var o,c=i.return;c!==null;){if(ax(c)){o=c;break}c=c.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,c=Rh(i),_h(i,c,o);break;case 5:c=o.stateNode,o.flags&32&&(BE(c),o.flags&=-33),o=Rh(i),_h(i,o,c);break;case 3:case 4:o=o.stateNode.containerInfo,c=Rh(i),ty(i,c,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ox(i){var o=i.stateNode,c=i.memoizedProps;try{Ve(i,um,i.type,c,o,i)}catch(g){Wn(i,i.return,g)}}function CE(i,o){return o.tag===31?(o=o.memoizedState,i.memoizedState!==null&&o===null):o.tag===13?(i=i.memoizedState,o=o.memoizedState,i!==null&&i.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?i.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function lx(i,o){if(i=i.containerInfo,WC=rT,i=oE(i),m4(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var g=c.getSelection&&c.getSelection();if(g&&g.rangeCount!==0){c=g.anchorNode;var S=g.anchorOffset,w=g.focusNode;g=g.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var M=0,N=-1,G=-1,Z=0,we=0,Ae=i,ge=null;t:for(;;){for(var Ie;Ae!==c||S!==0&&Ae.nodeType!==3||(N=M+S),Ae!==w||g!==0&&Ae.nodeType!==3||(G=M+g),Ae.nodeType===3&&(M+=Ae.nodeValue.length),(Ie=Ae.firstChild)!==null;)ge=Ae,Ae=Ie;for(;;){if(Ae===i)break t;if(ge===c&&++Z===S&&(N=M),ge===w&&++we===g&&(G=M),(Ie=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Ie}c=N===-1||G===-1?null:{start:N,end:G}}else c=null}c=c||{start:0,end:0}}else c=null;for(KC={focusedElem:i,selectionRange:c},rT=!1,ba=o;ba!==null;)if(o=ba,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ba=i;else for(;ba!==null;){switch(i=o=ba,c=i.alternate,S=i.flags,i.tag){case 0:if((S&4)!==0&&(i=i.updateQueue,i=i!==null?i.events:null,i!==null))for(c=0;c<i.length;c++)S=i[c],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:(S&1024)!==0&&c!==null&&ex(i,c);break;case 3:if((S&1024)!==0){if(i=i.stateNode.containerInfo,c=i.nodeType,c===9)my(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":my(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((S&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(i=o.sibling,i!==null){i.return=o.return,ba=i;break}ba=o.return}}function ui(i,o,c){var g=Li(),S=Oo(),w=Jo(),M=ua(),N=c.flags;switch(c.tag){case 0:case 11:case 15:nl(i,c),N&4&&Z4(c,Fl|nu);break;case 1:if(nl(i,c),N&4)if(i=c.stateNode,o===null)c.type.defaultProps||"ref"in c.memoizedProps||hv||(i.props!==c.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(c)||"instance"),i.state!==c.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(c)||"instance")),ks(c)?(el(),Ve(c,yC,c,i),Ss()):Ve(c,yC,c,i);else{var G=Du(c.type,o.memoizedProps);o=o.memoizedState,c.type.defaultProps||"ref"in c.memoizedProps||hv||(i.props!==c.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(c)||"instance"),i.state!==c.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(c)||"instance")),ks(c)?(el(),Ve(c,uV,c,i,G,o,i.__reactInternalSnapshotBeforeUpdate),Ss()):Ve(c,uV,c,i,G,o,i.__reactInternalSnapshotBeforeUpdate)}N&64&&Mh(c),N&512&&Jf(c,c.return);break;case 3:if(o=Dl(),nl(i,c),N&64&&(N=c.updateQueue,N!==null)){if(G=null,c.child!==null)switch(c.child.tag){case 27:case 5:G=c.child.stateNode;break;case 1:G=c.child.stateNode}try{Ve(c,C1,N,G)}catch(we){Wn(c,c.return,we)}}i.effectDuration+=Ja(o);break;case 27:o===null&&N&4&&ox(c);case 26:case 5:if(nl(i,c),o===null){if(N&4)ix(c);else if(N&64){i=c.type,o=c.memoizedProps,G=c.stateNode;try{Ve(c,hy,G,i,o,c)}catch(we){Wn(c,c.return,we)}}}N&512&&Jf(c,c.return);break;case 12:if(N&4){N=Dl(),nl(i,c),i=c.stateNode,i.effectDuration+=Cc(N);try{Ve(c,rx,c,o,t0,i.effectDuration)}catch(we){Wn(c,c.return,we)}}else nl(i,c);break;case 31:nl(i,c),N&4&&ux(i,c);break;case 13:nl(i,c),N&4&&cx(i,c),N&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(N=ad.bind(null,c),PA(i,N))));break;case 22:if(N=c.memoizedState!==null||Od,!N){o=o!==null&&o.memoizedState!==null||Ui,G=Od;var Z=Ui;Od=N,(Ui=o)&&!Z?(rl(i,c,(c.subtreeFlags&8772)!==0),(c.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&p1(c,Xt,nn)):nl(i,c),Od=G,Ui=Z}break;case 30:break;default:nl(i,c)}(c.mode&Sn)!==rn&&0<=Xt&&0<=nn&&((fi||.05<ni)&&ps(c,Xt,nn,ni,Hr),c.alternate===null&&c.return!==null&&c.return.alternate!==null&&.05<nn-Xt&&(CE(c.return.alternate,c.return)||hs(c,Xt,nn,"Mount"))),_a(g),Mo(S),Hr=w,fi=M}function Vi(i){var o=i.alternate;o!==null&&(i.alternate=null,Vi(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&Oe(o)),i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function zs(i,o,c){for(c=c.child;c!==null;)sx(i,o,c),c=c.sibling}function sx(i,o,c){if(ga&&typeof ga.onCommitFiberUnmount=="function")try{ga.onCommitFiberUnmount($u,c)}catch(Z){Fs||(Fs=!0,console.error("React instrumentation encountered an error: %o",Z))}var g=Li(),S=Oo(),w=Jo(),M=ua();switch(c.tag){case 26:Ui||Vl(c,o),zs(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(i=c.stateNode,i.parentNode.removeChild(i));break;case 27:Ui||Vl(c,o);var N=Hi,G=pl;Vu(c.type)&&(Hi=c.stateNode,pl=!1),zs(i,o,c),Ve(c,cm,c.stateNode),Hi=N,pl=G;break;case 5:Ui||Vl(c,o);case 6:if(N=Hi,G=pl,Hi=null,zs(i,o,c),Hi=N,pl=G,Hi!==null)if(pl)try{Ve(c,Vh,Hi,c.stateNode)}catch(Z){Wn(c,o,Z)}else try{Ve(c,jE,Hi,c.stateNode)}catch(Z){Wn(c,o,Z)}break;case 18:Hi!==null&&(pl?(i=Hi,lm(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Hh(i)):lm(Hi,c.stateNode));break;case 4:N=Hi,G=pl,Hi=c.stateNode.containerInfo,pl=!0,zs(i,o,c),Hi=N,pl=G;break;case 0:case 11:case 14:case 15:Nu(jo,c,o),Ui||Qf(c,o,Fl),zs(i,o,c);break;case 1:Ui||(Vl(c,o),N=c.stateNode,typeof N.componentWillUnmount=="function"&&tx(c,o,N)),zs(i,o,c);break;case 21:zs(i,o,c);break;case 22:Ui=(N=Ui)||c.memoizedState!==null,zs(i,o,c),Ui=N;break;default:zs(i,o,c)}(c.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(c,Xt,nn,ni,Hr),_a(g),Mo(S),Hr=w,fi=M}function ux(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Ve(o,kx,i)}catch(c){Wn(o,o.return,c)}}}function cx(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ve(o,Hc,i)}catch(c){Wn(o,o.return,c)}}function Hp(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new XV),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new XV),o;default:throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}}function qp(i,o){var c=Hp(i);o.forEach(function(g){if(!c.has(g)){if(c.add(g),dl)if(pv!==null&&mv!==null)js(mv,pv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var S=zu.bind(null,i,g);g.then(S,S)}})}function Ji(i,o){var c=o.deletions;if(c!==null)for(var g=0;g<c.length;g++){var S=i,w=o,M=c[g],N=Li(),G=w;e:for(;G!==null;){switch(G.tag){case 27:if(Vu(G.type)){Hi=G.stateNode,pl=!1;break e}break;case 5:Hi=G.stateNode,pl=!1;break e;case 3:case 4:Hi=G.stateNode.containerInfo,pl=!0;break e}G=G.return}if(Hi===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sx(S,w,M),Hi=null,pl=!1,(M.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&hs(M,Xt,nn,"Unmount"),_a(N),S=M,w=S.alternate,w!==null&&(w.return=null),S.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)fx(o,i),o=o.sibling}function fx(i,o){var c=Li(),g=Oo(),S=Jo(),w=ua(),M=i.alternate,N=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ji(o,i),lo(i),N&4&&(Nu(jo|nu,i,i.return),Zf(jo|nu,i),Qf(i,i.return,Fl|nu));break;case 1:if(Ji(o,i),lo(i),N&512&&(Ui||M===null||Vl(M,M.return)),N&64&&Od&&(N=i.updateQueue,N!==null&&(M=N.callbacks,M!==null))){var G=N.shared.hiddenCallbacks;N.shared.hiddenCallbacks=G===null?M:G.concat(M)}break;case 26:if(G=Gu,Ji(o,i),lo(i),N&512&&(Ui||M===null||Vl(M,M.return)),N&4){var Z=M!==null?M.memoizedState:null;if(N=i.memoizedState,M===null)if(N===null)if(i.stateNode===null){e:{N=i.type,M=i.memoizedProps,G=G.ownerDocument||G;t:switch(N){case"title":Z=G.getElementsByTagName("title")[0],(!Z||Z[Tm]||Z[aa]||Z.namespaceURI===kn||Z.hasAttribute("itemprop"))&&(Z=G.createElement(N),G.head.insertBefore(Z,G.querySelector("head > title"))),$n(Z,N,M),Z[aa]=i,ot(Z),N=Z;break e;case"link":var we=WE("link","href",G).get(N+(M.href||""));if(we){for(var Ae=0;Ae<we.length;Ae++)if(Z=we[Ae],Z.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&Z.getAttribute("rel")===(M.rel==null?null:M.rel)&&Z.getAttribute("title")===(M.title==null?null:M.title)&&Z.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){we.splice(Ae,1);break t}}Z=G.createElement(N),$n(Z,N,M),G.head.appendChild(Z);break;case"meta":if(we=WE("meta","content",G).get(N+(M.content||""))){for(Ae=0;Ae<we.length;Ae++)if(Z=we[Ae],St(M.content,"content"),Z.getAttribute("content")===(M.content==null?null:""+M.content)&&Z.getAttribute("name")===(M.name==null?null:M.name)&&Z.getAttribute("property")===(M.property==null?null:M.property)&&Z.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&Z.getAttribute("charset")===(M.charSet==null?null:M.charSet)){we.splice(Ae,1);break t}}Z=G.createElement(N),$n(Z,N,M),G.head.appendChild(Z);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+N+'". This is a bug in React.')}Z[aa]=i,ot(Z),N=Z}i.stateNode=N}else Bx(G,i.type,i.stateNode);else i.stateNode=xy(G,N,i.memoizedProps);else Z!==N?(Z===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):Z.count--,N===null?Bx(G,i.type,i.stateNode):xy(G,N,i.memoizedProps)):N===null&&i.stateNode!==null&&ey(i,i.memoizedProps,M.memoizedProps)}break;case 27:Ji(o,i),lo(i),N&512&&(Ui||M===null||Vl(M,M.return)),M!==null&&N&4&&ey(i,i.memoizedProps,M.memoizedProps);break;case 5:if(Ji(o,i),lo(i),N&512&&(Ui||M===null||Vl(M,M.return)),i.flags&32){G=i.stateNode;try{Ve(i,BE,G)}catch(Ot){Wn(i,i.return,Ot)}}N&4&&i.stateNode!=null&&(G=i.memoizedProps,ey(i,G,M!==null?M.memoizedProps:G)),N&1024&&(_C=!0,i.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ji(o,i),lo(i),N&4){if(i.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");N=i.memoizedProps,M=M!==null?M.memoizedProps:N,G=i.stateNode;try{Ve(i,BA,G,M,N)}catch(Ot){Wn(i,i.return,Ot)}}break;case 3:if(G=Dl(),eT=null,Z=Gu,Gu=fm(o.containerInfo),Ji(o,i),Gu=Z,lo(i),N&4&&M!==null&&M.memoizedState.isDehydrated)try{Ve(i,by,o.containerInfo)}catch(Ot){Wn(i,i.return,Ot)}_C&&(_C=!1,Gp(i)),o.effectDuration+=Ja(G);break;case 4:N=Gu,Gu=fm(i.stateNode.containerInfo),Ji(o,i),lo(i),Gu=N;break;case 12:N=Dl(),Ji(o,i),lo(i),i.stateNode.effectDuration+=Cc(N);break;case 31:Ji(o,i),lo(i),N&4&&(N=i.updateQueue,N!==null&&(i.updateQueue=null,qp(i,N)));break;case 13:Ji(o,i),lo(i),i.child.flags&8192&&i.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(Pw=ti()),N&4&&(N=i.updateQueue,N!==null&&(i.updateQueue=null,qp(i,N)));break;case 22:G=i.memoizedState!==null;var ge=M!==null&&M.memoizedState!==null,Ie=Od,xt=Ui;if(Od=Ie||G,Ui=xt||ge,Ji(o,i),Ui=xt,Od=Ie,ge&&!G&&!Ie&&!xt&&(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&p1(i,Xt,nn),lo(i),N&8192)e:for(o=i.stateNode,o._visibility=G?o._visibility&~dS:o._visibility|dS,!G||M===null||ge||Od||Ui||(Lc(i),(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&hs(i,Xt,nn,"Disconnect")),M=null,o=i;;){if(o.tag===5||o.tag===26){if(M===null){ge=M=o;try{Z=ge.stateNode,G?Ve(ge,UE,Z):Ve(ge,GE,ge.stateNode,ge.memoizedProps)}catch(Ot){Wn(ge,ge.return,Ot)}}}else if(o.tag===6){if(M===null){ge=o;try{we=ge.stateNode,G?Ve(ge,HE,we):Ve(ge,py,we,ge.memoizedProps)}catch(Ot){Wn(ge,ge.return,Ot)}}}else if(o.tag===18){if(M===null){ge=o;try{Ae=ge.stateNode,G?Ve(ge,$E,Ae):Ve(ge,qE,ge.stateNode)}catch(Ot){Wn(ge,ge.return,Ot)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;M===o&&(M=null),o=o.return}M===o&&(M=null),o.sibling.return=o.return,o=o.sibling}N&4&&(N=i.updateQueue,N!==null&&(M=N.retryQueue,M!==null&&(N.retryQueue=null,qp(i,M))));break;case 19:Ji(o,i),lo(i),N&4&&(N=i.updateQueue,N!==null&&(i.updateQueue=null,qp(i,N)));break;case 30:break;case 21:break;default:Ji(o,i),lo(i)}(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&((fi||.05<ni)&&ps(i,Xt,nn,ni,Hr),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<nn-Xt&&(CE(i.return.alternate,i.return)||hs(i,Xt,nn,"Mount"))),_a(c),Mo(g),Hr=S,fi=w}function lo(i){var o=i.flags;if(o&2){try{Ve(i,AE,i)}catch(c){Wn(i,i.return,c)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function Gp(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;Gp(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function nl(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)ui(i,o.alternate,o),o=o.sibling}function dx(i){var o=Li(),c=Oo(),g=Jo(),S=ua();switch(i.tag){case 0:case 11:case 14:case 15:Qf(i,i.return,Fl),Lc(i);break;case 1:Vl(i,i.return);var w=i.stateNode;typeof w.componentWillUnmount=="function"&&tx(i,i.return,w),Lc(i);break;case 27:Ve(i,cm,i.stateNode);case 26:case 5:Vl(i,i.return),Lc(i);break;case 22:i.memoizedState===null&&Lc(i);break;case 30:Lc(i);break;default:Lc(i)}(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(i,Xt,nn,ni,Hr),_a(o),Mo(c),Hr=g,fi=S}function Lc(i){for(i=i.child;i!==null;)dx(i),i=i.sibling}function hx(i,o,c,g){var S=Li(),w=Oo(),M=Jo(),N=ua(),G=c.flags;switch(c.tag){case 0:case 11:case 15:rl(i,c,g),Z4(c,Fl);break;case 1:if(rl(i,c,g),o=c.stateNode,typeof o.componentDidMount=="function"&&Ve(c,yC,c,o),o=c.updateQueue,o!==null){i=c.stateNode;try{Ve(c,bp,o,i)}catch(Z){Wn(c,c.return,Z)}}g&&G&64&&Mh(c),Jf(c,c.return);break;case 27:ox(c);case 26:case 5:rl(i,c,g),g&&o===null&&G&4&&ix(c),Jf(c,c.return);break;case 12:if(g&&G&4){G=Dl(),rl(i,c,g),g=c.stateNode,g.effectDuration+=Cc(G);try{Ve(c,rx,c,o,t0,g.effectDuration)}catch(Z){Wn(c,c.return,Z)}}else rl(i,c,g);break;case 31:rl(i,c,g),g&&G&4&&ux(i,c);break;case 13:rl(i,c,g),g&&G&4&&cx(i,c);break;case 22:c.memoizedState===null&&rl(i,c,g),Jf(c,c.return);break;case 30:break;default:rl(i,c,g)}(c.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(c,Xt,nn,ni,Hr),_a(S),Mo(w),Hr=M,fi=N}function rl(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;)hx(i,o.alternate,o,c),o=o.sibling}function Fp(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&Bf(i),c!=null&&dp(c))}function Yp(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(Bf(o),i!=null&&dp(i))}function il(i,o,c,g,S){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var w=o.sibling;ny(i,o,c,g,w!==null?w.actualStartTime:S),o=w}}function ny(i,o,c,g,S){var w=Li(),M=Oo(),N=Jo(),G=ua(),Z=Qh,we=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&Sn)!==rn&&0<o.actualStartTime&&(o.flags&1)!==0&&m1(o,o.actualStartTime,S,oa,c),il(i,o,c,g,S),we&2048&&J4(o,$o|nu);break;case 1:(o.mode&Sn)!==rn&&0<o.actualStartTime&&((o.flags&128)!==0?g1(o,o.actualStartTime,S,[]):(o.flags&1)!==0&&m1(o,o.actualStartTime,S,oa,c)),il(i,o,c,g,S);break;case 3:var Ae=Dl(),ge=oa;oa=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,il(i,o,c,g,S),oa=ge,we&2048&&(c=null,o.alternate!==null&&(c=o.alternate.memoizedState.cache),g=o.memoizedState.cache,g!==c&&(Bf(g),c!=null&&dp(c))),i.passiveEffectDuration+=Ja(Ae);break;case 12:if(we&2048){we=Dl(),il(i,o,c,g,S),i=o.stateNode,i.passiveEffectDuration+=Cc(we);try{Ve(o,ed,o,o.alternate,t0,i.passiveEffectDuration)}catch(Ie){Wn(o,o.return,Ie)}}else il(i,o,c,g,S);break;case 31:we=oa,Ae=o.alternate!==null?o.alternate.memoizedState:null,ge=o.memoizedState,Ae!==null&&ge===null?(ge=o.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(oa=!1,Ae=Ae.hydrationErrors,Ae!==null&&g1(o,o.actualStartTime,S,Ae)):oa=!0):oa=!1,il(i,o,c,g,S),oa=we;break;case 13:we=oa,Ae=o.alternate!==null?o.alternate.memoizedState:null,ge=o.memoizedState,Ae===null||Ae.dehydrated===null||ge!==null&&ge.dehydrated!==null?oa=!1:(ge=o.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(oa=!1,Ae=Ae.hydrationErrors,Ae!==null&&g1(o,o.actualStartTime,S,Ae)):oa=!0),il(i,o,c,g,S),oa=we;break;case 23:break;case 22:ge=o.stateNode,Ae=o.alternate,o.memoizedState!==null?ge._visibility&yd?il(i,o,c,g,S):Dh(i,o,c,g,S):ge._visibility&yd?il(i,o,c,g,S):(ge._visibility|=yd,ku(i,o,c,g,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),S),(o.mode&Sn)===rn||oa||(i=o.actualStartTime,0<=i&&.05<S-i&&p1(o,i,S),0<=Xt&&0<=nn&&.05<nn-Xt&&p1(o,Xt,nn))),we&2048&&Fp(Ae,o);break;case 24:il(i,o,c,g,S),we&2048&&Yp(o.alternate,o);break;default:il(i,o,c,g,S)}(o.mode&Sn)!==rn&&((i=!oa&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)&&(c=o.actualStartTime,0<=c&&.05<S-c&&hs(o,c,S,"Mount")),0<=Xt&&0<=nn&&((fi||.05<ni)&&ps(o,Xt,nn,ni,Hr),i&&.05<nn-Xt&&hs(o,Xt,nn,"Mount"))),_a(w),Mo(M),Hr=N,fi=G,Qh=Z}function ku(i,o,c,g,S,w){for(S=S&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child)),o=o.child;o!==null;){var M=o.sibling;ry(i,o,c,g,S,M!==null?M.actualStartTime:w),o=M}}function ry(i,o,c,g,S,w){var M=Li(),N=Oo(),G=Jo(),Z=ua(),we=Qh;S&&(o.mode&Sn)!==rn&&0<o.actualStartTime&&(o.flags&1)!==0&&m1(o,o.actualStartTime,w,oa,c);var Ae=o.flags;switch(o.tag){case 0:case 11:case 15:ku(i,o,c,g,S,w),J4(o,$o);break;case 23:break;case 22:var ge=o.stateNode;o.memoizedState!==null?ge._visibility&yd?ku(i,o,c,g,S,w):Dh(i,o,c,g,w):(ge._visibility|=yd,ku(i,o,c,g,S,w)),S&&Ae&2048&&Fp(o.alternate,o);break;case 24:ku(i,o,c,g,S,w),S&&Ae&2048&&Yp(o.alternate,o);break;default:ku(i,o,c,g,S,w)}(o.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(o,Xt,nn,ni,Hr),_a(M),Mo(N),Hr=G,fi=Z,Qh=we}function Dh(i,o,c,g,S){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var w=o.child;w!==null;){o=w.sibling;var M=i,N=c,G=g,Z=o!==null?o.actualStartTime:S,we=Qh;(w.mode&Sn)!==rn&&0<w.actualStartTime&&(w.flags&1)!==0&&m1(w,w.actualStartTime,Z,oa,N);var Ae=w.flags;switch(w.tag){case 22:Dh(M,w,N,G,Z),Ae&2048&&Fp(w.alternate,w);break;case 24:Dh(M,w,N,G,Z),Ae&2048&&Yp(w.alternate,w);break;default:Dh(M,w,N,G,Z)}Qh=we,w=o}}function Vc(i,o,c){if(i.subtreeFlags&NS)for(i=i.child;i!==null;)px(i,o,c),i=i.sibling}function px(i,o,c){switch(i.tag){case 26:Vc(i,o,c),i.flags&NS&&i.memoizedState!==null&&wy(c,Gu,i.memoizedState,i.memoizedProps);break;case 5:Vc(i,o,c);break;case 3:case 4:var g=Gu;Gu=fm(i.stateNode.containerInfo),Vc(i,o,c),Gu=g;break;case 22:i.memoizedState===null&&(g=i.alternate,g!==null&&g.memoizedState!==null?(g=NS,NS=16777216,Vc(i,o,c),NS=g):Vc(i,o,c));break;default:Vc(i,o,c)}}function Is(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function td(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var g=o[c],S=Li();ba=g,iy(g,i),(g.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&hs(g,Xt,nn,"Unmount"),_a(S)}Is(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)OE(i),i=i.sibling}function OE(i){var o=Li(),c=Oo(),g=Jo(),S=ua();switch(i.tag){case 0:case 11:case 15:td(i),i.flags&2048&&J1(i,i.return,$o|nu);break;case 3:var w=Dl();td(i),i.stateNode.passiveEffectDuration+=Ja(w);break;case 12:w=Dl(),td(i),i.stateNode.passiveEffectDuration+=Cc(w);break;case 22:w=i.stateNode,i.memoizedState!==null&&w._visibility&yd&&(i.return===null||i.return.tag!==13)?(w._visibility&=~yd,Xp(i),(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&hs(i,Xt,nn,"Disconnect")):td(i);break;default:td(i)}(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(i,Xt,nn,ni,Hr),_a(o),Mo(c),fi=S,Hr=g}function Xp(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var g=o[c],S=Li();ba=g,iy(g,i),(g.mode&Sn)!==rn&&0<=Xt&&0<=nn&&.05<nn-Xt&&hs(g,Xt,nn,"Unmount"),_a(S)}Is(i)}for(i=i.child;i!==null;)Ls(i),i=i.sibling}function Ls(i){var o=Li(),c=Oo(),g=Jo(),S=ua();switch(i.tag){case 0:case 11:case 15:J1(i,i.return,$o),Xp(i);break;case 22:var w=i.stateNode;w._visibility&yd&&(w._visibility&=~yd,Xp(i));break;default:Xp(i)}(i.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(i,Xt,nn,ni,Hr),_a(o),Mo(c),fi=S,Hr=g}function iy(i,o){for(;ba!==null;){var c=ba,g=c,S=o,w=Li(),M=Oo(),N=Jo(),G=ua();switch(g.tag){case 0:case 11:case 15:J1(g,S,$o);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(S=g.memoizedState.cachePool.pool,S!=null&&Bf(S));break;case 24:dp(g.memoizedState.cache)}if((g.mode&Sn)!==rn&&0<=Xt&&0<=nn&&(fi||.05<ni)&&ps(g,Xt,nn,ni,Hr),_a(w),Mo(M),fi=G,Hr=N,g=c.child,g!==null)g.return=c,ba=g;else e:for(c=i;ba!==null;){if(g=ba,w=g.sibling,M=g.return,Vi(g),g===c){ba=null;break e}if(w!==null){w.return=M,ba=w;break e}ba=M}}}function ME(){f0e.forEach(function(i){return i()})}function Wp(){var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return i||$e.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),i}function ea(i){if((Xn&la)!==xa&&wn!==0)return wn&-wn;var o=$e.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(i),Fn()):vr()}function Tr(){if(gl===0)if((wn&536870912)===0||Vn){var i=Xh;Xh<<=1,(Xh&3932160)===0&&(Xh=262144),gl=i}else gl=536870912;return i=Gl.current,i!==null&&(i.flags|=32),gl}function Ur(i,o,c){if(vv&&console.error("useInsertionEffect must not schedule updates."),$C&&(Hw=!0),(i===Cr&&(mr===$m||mr===Um)||i.cancelPendingCommit!==null)&&(za(i,0),ka(i,wn,gl,!1)),dt(i,c),(Xn&la)!==xa&&i===Cr){if(fl)switch(o.tag){case 0:case 11:case 15:i=Mn&&ue(Mn)||"Unknown",uB.has(i)||(uB.add(i),o=ue(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,i,i));break;case 1:sB||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sB=!0)}}else dl&&jn(i,o,c),em(o),i===Cr&&((Xn&la)===xa&&(u0|=c),ri===o0&&ka(i,wn,gl,!1)),La(i)}function RE(i,o,c){if((Xn&(la|Yl))!==xa)throw Error("Should not already be working.");if(wn!==0&&Mn!==null){var g=Mn,S=ti();switch(tV){case IS:case $m:var w=vS;Lr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",w,S,Xs,void 0,"primary-light")):console.timeStamp("Suspended",w,S,Xs,void 0,"primary-light"));break;case Um:w=vS,Lr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",w,S,Xs,void 0,"primary-light")):console.timeStamp("Action",w,S,Xs,void 0,"primary-light"));break;default:Lr&&(g=S-vS,3>g||console.timeStamp("Blocked",vS,S,Xs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}w=(c=!c&&(o&127)===0&&(o&i.expiredLanes)===0||et(i,o))?bi(i,o):sy(i,o,!0);var M=c;do{if(w===Md){gv&&!c&&ka(i,o,0,!1),o=mr,vS=Pi(),tV=o;break}else{if(g=ti(),S=i.current.alternate,M&&!Kp(S)){Ao(o),S=va,w=g,!Lr||w<=S||(xi?xi.run(console.timeStamp.bind(console,"Teared Render",S,w,qn,Un,"error")):console.timeStamp("Teared Render",S,w,qn,Un,"error")),Bl(o,g),w=sy(i,o,!1),M=!1;continue}if(w===jm){if(M=o,i.errorRecoveryDisabledLanes&M)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){Ao(o),y4(va,g,o,xi),Bl(o,g),o=N;e:{g=i,w=M,M=VS;var G=g.current.memoizedState.isDehydrated;if(G&&(za(g,N).flags|=256),N=sy(g,N,!1),N!==jm){if(kC&&!G){g.errorRecoveryDisabledLanes|=w,u0|=w,w=o0;break e}g=Uo,Uo=M,g!==null&&(Uo===null?Uo=g:Uo.push.apply(Uo,g))}w=N}if(M=!1,w!==jm)continue;g=ti()}}if(w===zS){Ao(o),y4(va,g,o,xi),Bl(o,g),za(i,0),ka(i,o,0,!0);break}e:{switch(c=i,w){case Md:case zS:throw Error("Root did not complete. This is a bug in React.");case o0:if((o&4194048)!==o)break;case Iw:Ao(o),uE(va,g,o,xi),Bl(o,g),S=o,(S&127)!==0?xw=g:(S&4194048)!==0&&(Sw=g),ka(c,o,gl,!l0);break e;case jm:Uo=null;break;case zw:case WV:break;default:throw Error("Unknown root exit status.")}if($e.actQueue!==null)pa(c,S,o,Uo,BS,Bw,gl,u0,Hm,w,null,null,va,g);else{if((o&62914560)===o&&(M=Pw+ZV-ti(),10<M)){if(ka(c,o,gl,!l0),tn(c,0,!0)!==0)break e;Fu=o,c.timeoutHandle=yB(mx.bind(null,c,S,Uo,BS,Bw,o,gl,u0,Hm,l0,w,"Throttled",va,g),M);break e}mx(c,S,Uo,BS,Bw,o,gl,u0,Hm,l0,w,null,va,g)}}}break}while(!0);La(i)}function mx(i,o,c,g,S,w,M,N,G,Z,we,Ae,ge,Ie){i.timeoutHandle=Xm;var xt=o.subtreeFlags,Ot=null;if((xt&8192||(xt&16785408)===16785408)&&(Ot={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xi},px(o,w,Ot),xt=(w&62914560)===w?Pw-ti():(w&4194048)===w?QV-ti():0,xt=Px(Ot,xt),xt!==null)){Fu=w,i.cancelPendingCommit=xt(pa.bind(null,i,o,w,c,g,S,M,N,G,we,Ot,Ot.waitingForViewTransition?"Waiting for the previous Animation":0<Ot.count?0<Ot.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ot.imgCount===1?"Suspended on an Image":0<Ot.imgCount?"Suspended on Images":null,ge,Ie)),ka(i,w,M,!Z);return}pa(i,o,w,c,g,S,M,N,G,we,Ot,Ae,ge,Ie)}function Kp(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var g=0;g<c.length;g++){var S=c[g],w=S.getSnapshot;S=S.value;try{if(!Bo(w(),S))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ka(i,o,c,g){o&=~zC,o&=~u0,i.suspendedLanes|=o,i.pingedLanes&=~o,g&&(i.warmLanes|=o),g=i.expirationTimes;for(var S=o;0<S;){var w=31-ra(S),M=1<<w;g[w]=-1,S&=~M}c!==0&&wt(i,c,o)}function nd(){return(Xn&(la|Yl))===xa?(kh(0),!1):!0}function ay(){if(Mn!==null){if(mr===ml)var i=Mn.return;else i=Mn,wc(),Rc(i),lv=null,OS=0,i=Mn;for(;i!==null;)wE(i.alternate,i),i=i.return;Mn=null}}function Bl(i,o){(i&127)!==0&&(Dm=o),(i&4194048)!==0&&(Ed=o),(i&62914560)!==0&&(JL=o),(i&2080374784)!==0&&(eV=o)}function za(i,o){Lr&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Un,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Un,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Un,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Un,"primary-light"));var c=va;if(va=Pi(),wn!==0&&0<c){if(Ao(wn),ri===zw||ri===o0)uE(c,va,o,xi);else{var g=va,S=xi;if(Lr&&!(g<=c)){var w=(o&738197653)===o?"tertiary-dark":"primary-dark",M=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";S?S.run(console.timeStamp.bind(console,M,c,g,qn,Un,w)):console.timeStamp(M,c,g,qn,Un,w)}}Bl(wn,va)}if(c=xi,xi=null,(o&127)!==0){xi=mS,S=0<=Xc&&Xc<Dm?Dm:Xc,g=0<=Nm&&Nm<Dm?Dm:Nm,w=0<=g?g:0<=S?S:va,0<=xw?(Ao(2),cE(xw,w,o,c)):Ew&127,c=S;var N=g,G=gS,Z=0<iv,we=n0===pS,Ae=n0===bw;if(S=va,g=mS,w=dC,M=hC,Lr){if(qn="Blocking",0<c?c>S&&(c=S):c=S,0<N?N>c&&(N=c):N=c,G!==null&&c>N){var ge=Z?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,Z?"Consecutive":"Event: "+G,N,c,qn,Un,ge)):console.timeStamp(Z?"Consecutive":"Event: "+G,N,c,qn,Un,ge)}S>c&&(N=we?"error":(o&738197653)===o?"tertiary-light":"primary-light",we=Ae?"Promise Resolved":we?"Cascading Update":5<S-c?"Update Blocked":"Update",Ae=[],M!=null&&Ae.push(["Component name",M]),w!=null&&Ae.push(["Method name",w]),c={start:c,end:S,detail:{devtools:{properties:Ae,track:qn,trackGroup:Un,color:N}}},g?g.run(performance.measure.bind(performance,we,c)):performance.measure(we,c))}Xc=-1.1,n0=0,hC=dC=null,xw=-1.1,iv=Nm,Nm=-1.1,Dm=Pi()}if((o&4194048)!==0&&(xi=yS,S=0<=wd&&wd<Ed?Ed:wd,c=0<=eu&&eu<Ed?Ed:eu,g=0<=r0&&r0<Ed?Ed:r0,w=0<=g?g:0<=c?c:va,0<=Sw?(Ao(256),cE(Sw,w,o,xi)):Ew&4194048,Ae=g,N=km,G=0<i0,Z=pC===bw,w=va,g=yS,M=QL,we=ZL,Lr&&(qn="Transition",0<c?c>w&&(c=w):c=w,0<S?S>c&&(S=c):S=c,0<Ae?Ae>S&&(Ae=S):Ae=S,S>Ae&&N!==null&&(ge=G?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,G?"Consecutive":"Event: "+N,Ae,S,qn,Un,ge)):console.timeStamp(G?"Consecutive":"Event: "+N,Ae,S,qn,Un,ge)),c>S&&(g?g.run(console.timeStamp.bind(console,"Action",S,c,qn,Un,"primary-dark")):console.timeStamp("Action",S,c,qn,Un,"primary-dark")),w>c&&(S=Z?"Promise Resolved":5<w-c?"Update Blocked":"Update",Ae=[],we!=null&&Ae.push(["Component name",we]),M!=null&&Ae.push(["Method name",M]),c={start:c,end:w,detail:{devtools:{properties:Ae,track:qn,trackGroup:Un,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,S,c)):performance.measure(S,c))),eu=wd=-1.1,pC=0,Sw=-1.1,i0=r0,r0=-1.1,Ed=Pi()),(o&62914560)!==0&&(Ew&62914560)!==0&&(Ao(4194304),v4(JL,va)),(o&2080374784)!==0&&(Ew&2080374784)!==0&&(Ao(268435456),v4(eV,va)),c=i.timeoutHandle,c!==Xm&&(i.timeoutHandle=Xm,T0e(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Fu=0,ay(),Cr=i,Mn=c=ms(i.current,null),wn=o,mr=ml,Xl=null,l0=!1,gv=et(i,o),kC=!1,ri=Md,Hm=gl=zC=u0=s0=0,Uo=VS=null,Bw=!1,(o&8)!==0&&(o|=o&32),g=i.entangledLanes,g!==0)for(i=i.entanglements,g&=o;0<g;)S=31-ra(g),w=1<<S,o|=i[S],g&=~w;return Kc=o,ch(),i=GL(),1e3<i-qL&&($e.recentlyCreatedOwnerStacks=0,qL=i),Hu.discardPendingWarnings(),c}function gx(i,o){un=null,$e.H=DS,$e.getCurrentStack=null,fl=!1,Io=null,o===ov||o===Cw?(o=gp(),mr=IS):o===vC?(o=gp(),mr=KV):mr=o===MC?NC:o!==null&&typeof o=="object"&&typeof o.then=="function"?LS:Lw,Xl=o;var c=Mn;c===null?(ri=zS,Lp(i,Ma(o,i.current))):c.mode&Sn&&dh(c)}function oy(){var i=Gl.current;return i===null?!0:(wn&4194048)===wn?tu===null:(wn&62914560)===wn||(wn&536870912)!==0?i===tu:!1}function yx(){var i=$e.H;return $e.H=DS,i===null?DS:i}function ly(){var i=$e.A;return $e.A=c0e,i}function Nh(i){xi===null&&(xi=i._debugTask==null?null:i._debugTask)}function rd(){ri=o0,l0||(wn&4194048)!==wn&&Gl.current!==null||(gv=!0),(s0&134217727)===0&&(u0&134217727)===0||Cr===null||ka(Cr,wn,gl,!1)}function sy(i,o,c){var g=Xn;Xn|=la;var S=yx(),w=ly();if(Cr!==i||wn!==o){if(dl){var M=i.memoizedUpdaters;0<M.size&&(js(i,wn),M.clear()),gn(i,o)}BS=null,za(i,o)}o=!1,M=ri;e:do try{if(mr!==ml&&Mn!==null){var N=Mn,G=Xl;switch(mr){case NC:ay(),M=Iw;break e;case IS:case $m:case Um:case LS:Gl.current===null&&(o=!0);var Z=mr;if(mr=ml,Xl=null,id(i,N,G,Z),c&&gv){M=Md;break e}break;default:Z=mr,mr=ml,Xl=null,id(i,N,G,Z)}}Vs(),M=ri;break}catch(we){gx(i,we)}while(!0);return o&&i.shellSuspendCounter++,wc(),Xn=g,$e.H=S,$e.A=w,Mn===null&&(Cr=null,wn=0,ch()),M}function Vs(){for(;Mn!==null;)bx(Mn)}function bi(i,o){var c=Xn;Xn|=la;var g=yx(),S=ly();if(Cr!==i||wn!==o){if(dl){var w=i.memoizedUpdaters;0<w.size&&(js(i,wn),w.clear()),gn(i,o)}BS=null,jw=ti()+JV,za(i,o)}else gv=et(i,o);e:do try{if(mr!==ml&&Mn!==null)t:switch(o=Mn,w=Xl,mr){case Lw:mr=ml,Xl=null,id(i,o,w,Lw);break;case $m:case Um:if(_o(w)){mr=ml,Xl=null,Ai(o);break}o=function(){mr!==$m&&mr!==Um||Cr!==i||(mr=Vw),La(i)},w.then(o,o);break e;case IS:mr=Vw;break e;case KV:mr=DC;break e;case Vw:_o(w)?(mr=ml,Xl=null,Ai(o)):(mr=ml,Xl=null,id(i,o,w,Vw));break;case DC:var M=null;switch(Mn.tag){case 26:M=Mn.memoizedState;case 5:case 27:var N=Mn;if(M?Ey(M):N.stateNode.complete){mr=ml,Xl=null;var G=N.sibling;if(G!==null)Mn=G;else{var Z=N.return;Z!==null?(Mn=Z,Qp(Z)):Mn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}mr=ml,Xl=null,id(i,o,w,DC);break;case LS:mr=ml,Xl=null,id(i,o,w,LS);break;case NC:ay(),ri=Iw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$e.actQueue!==null?Vs():vx();break}catch(we){gx(i,we)}while(!0);return wc(),$e.H=g,$e.A=S,Xn=c,Mn!==null?Md:(Cr=null,wn=0,ch(),ri)}function vx(){for(;Mn!==null&&!By();)bx(Mn)}function bx(i){var o=i.alternate;(i.mode&Sn)!==rn?(E1(i),o=Ve(i,Q1,o,i,Kc),dh(i)):o=Ve(i,Q1,o,i,Kc),i.memoizedProps=i.pendingProps,o===null?Qp(i):Mn=o}function Ai(i){var o=Ve(i,VA,i);i.memoizedProps=i.pendingProps,o===null?Qp(i):Mn=o}function VA(i){var o=i.alternate,c=(i.mode&Sn)!==rn;switch(c&&E1(i),i.tag){case 15:case 0:o=Kf(o,i,i.pendingProps,i.type,void 0,wn);break;case 11:o=Kf(o,i,i.pendingProps,i.type.render,i.ref,wn);break;case 5:Rc(i);default:wE(o,i),i=Mn=fh(i,Kc),o=Q1(o,i,Kc)}return c&&dh(i),o}function id(i,o,c,g){wc(),Rc(o),lv=null,OS=0;var S=o.return;try{if(vE(i,S,o,c,wn)){ri=zS,Lp(i,Ma(c,i.current)),Mn=null;return}}catch(w){if(S!==null)throw Mn=S,w;ri=zS,Lp(i,Ma(c,i.current)),Mn=null;return}o.flags&32768?(Vn||g===Lw?i=!0:gv||(wn&536870912)!==0?i=!1:(l0=i=!0,(g===$m||g===Um||g===IS||g===LS)&&(g=Gl.current,g!==null&&g.tag===13&&(g.flags|=16384))),Dr(o,i)):Qp(o)}function Qp(i){var o=i;do{if((o.flags&32768)!==0){Dr(o,l0);return}var c=o.alternate;if(i=o.return,E1(o),c=Ve(o,SE,c,o,Kc),(o.mode&Sn)!==rn&&Pf(o),c!==null){Mn=c;return}if(o=o.sibling,o!==null){Mn=o;return}Mn=o=i}while(o!==null);ri===Md&&(ri=WV)}function Dr(i,o){do{var c=EE(i.alternate,i);if(c!==null){c.flags&=32767,Mn=c;return}if((i.mode&Sn)!==rn){Pf(i),c=i.actualDuration;for(var g=i.child;g!==null;)c+=g.actualDuration,g=g.sibling;i.actualDuration=c}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){Mn=i;return}Mn=i=c}while(i!==null);ri=Iw,Mn=null}function pa(i,o,c,g,S,w,M,N,G,Z,we,Ae,ge,Ie){i.cancelPendingCommit=null;do Bc();while(qi!==f0);if(Hu.flushLegacyContextWarning(),Hu.flushPendingUnsafeLifecycleWarnings(),(Xn&(la|Yl))!==xa)throw Error("Should not already be working.");if(Ao(c),Z===jm?y4(ge,Ie,c,xi):g!==null?kA(ge,Ie,c,g,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,xi):NA(ge,Ie,c,xi),o!==null){if(c===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===i.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(w=o.lanes|o.childLanes,w|=lC,ht(i,c,w,M,N,G),i===Cr&&(Mn=Cr=null,wn=0),yv=o,d0=i,Fu=c,VC=w,PC=S,aB=g,BC=Ie,oB=Ae,Yu=$w,lB=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Jp(md,function(){return qS=window.event,Yu===$w&&(Yu=LC),Ia(),null})):(i.callbackNode=null,i.callbackPriority=0),Sd=null,t0=Pi(),Ae!==null&&zA(Ie,t0,Ae,xi),g=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null,S=Jn.p,Jn.p=Oi,M=Xn,Xn|=Yl;try{lx(i,o,c)}finally{Xn=M,Jn.p=S,$e.T=g}}qi=tB,Bs(),xx(),Sx()}}function Bs(){if(qi===tB){qi=f0;var i=d0,o=yv,c=Fu,g=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null;var S=Jn.p;Jn.p=Oi;var w=Xn;Xn|=Yl;try{pv=c,mv=i,Ra(),fx(o,i),mv=pv=null,c=KC;var M=oE(i.containerInfo),N=c.focusedElem,G=c.selectionRange;if(M!==N&&N&&N.ownerDocument&&h1(N.ownerDocument.documentElement,N)){if(G!==null&&m4(N)){var Z=G.start,we=G.end;if(we===void 0&&(we=Z),"selectionStart"in N)N.selectionStart=Z,N.selectionEnd=Math.min(we,N.value.length);else{var Ae=N.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Ie=ge.getSelection(),xt=N.textContent.length,Ot=Math.min(G.start,xt),Nr=G.end===void 0?Ot:Math.min(G.end,xt);!Ie.extend&&Ot>Nr&&(M=Nr,Nr=Ot,Ot=M);var Hn=aE(N,Ot),pe=aE(N,Nr);if(Hn&&pe&&(Ie.rangeCount!==1||Ie.anchorNode!==Hn.node||Ie.anchorOffset!==Hn.offset||Ie.focusNode!==pe.node||Ie.focusOffset!==pe.offset)){var ye=Ae.createRange();ye.setStart(Hn.node,Hn.offset),Ie.removeAllRanges(),Ot>Nr?(Ie.addRange(ye),Ie.extend(pe.node,pe.offset)):(ye.setEnd(pe.node,pe.offset),Ie.addRange(ye))}}}}for(Ae=[],Ie=N;Ie=Ie.parentNode;)Ie.nodeType===1&&Ae.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<Ae.length;N++){var Se=Ae[N];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}rT=!!WC,KC=WC=null}finally{Xn=w,Jn.p=S,$e.T=g}}i.current=o,qi=nB}}function xx(){if(qi===nB){qi=f0;var i=lB;if(i!==null){t0=Pi();var o=xd,c=t0;!Lr||c<=o||console.timeStamp(i,o,c,qn,Un,"secondary-light")}i=d0,o=yv,c=Fu;var g=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||g){g=$e.T,$e.T=null;var S=Jn.p;Jn.p=Oi;var w=Xn;Xn|=Yl;try{pv=c,mv=i,Ra(),ui(i,o.alternate,o),mv=pv=null}finally{Xn=w,Jn.p=S,$e.T=g}}i=BC,o=oB,xd=Pi(),i=o===null?i:t0,o=xd,c=Yu===IC,g=xi,Sd!==null?fE(i,o,Sd,!1,g):!Lr||o<=i||(g?g.run(console.timeStamp.bind(console,c?"Commit Interrupted View Transition":"Commit",i,o,qn,Un,c?"error":"secondary-dark")):console.timeStamp(c?"Commit Interrupted View Transition":"Commit",i,o,qn,Un,c?"error":"secondary-dark")),qi=rB}}function Sx(){if(qi===iB||qi===rB){if(qi===iB){var i=xd;xd=Pi();var o=xd,c=Yu===IC;!Lr||o<=i||console.timeStamp(c?"Interrupted View Transition":"Starting Animation",i,o,qn,Un,c?" error":"secondary-light"),Yu!==IC&&(Yu=eB)}qi=f0,qA(),i=d0;var g=yv;o=Fu,c=aB;var S=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;S?qi=Uw:(qi=f0,yv=d0=null,DE(i,i.pendingLanes),qm=0,jS=null);var w=i.pendingLanes;if(w===0&&(c0=null),S||ol(i),w=Pr(o),g=g.stateNode,ga&&typeof ga.onCommitFiberRoot=="function")try{var M=(g.current.flags&128)===128;switch(w){case Oi:var N=Py;break;case ia:N=jy;break;case Lo:N=md;break;case qc:N=Em;break;default:N=md}ga.onCommitFiberRoot($u,g,N,M)}catch(Ae){Fs||(Fs=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(dl&&i.memoizedUpdaters.clear(),ME(),c!==null){M=$e.T,N=Jn.p,Jn.p=Oi,$e.T=null;try{var G=i.onRecoverableError;for(g=0;g<c.length;g++){var Z=c[g],we=_E(Z.stack);Ve(Z.source,G,Z.value,we)}}finally{$e.T=M,Jn.p=N}}(Fu&3)!==0&&Bc(),La(i),w=i.pendingLanes,(o&261930)!==0&&(w&42)!==0?(Tw=!0,i===jC?PS++:(PS=0,jC=i)):PS=0,S||Bl(o,xd),kh(0)}}function _E(i){return i={componentStack:i},Object.defineProperty(i,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),i}function DE(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,dp(o)))}function Bc(){return Bs(),xx(),Sx(),Ia()}function Ia(){if(qi!==Uw)return!1;var i=d0,o=VC;VC=0;var c=Pr(Fu),g=Lo>c?Lo:c;c=$e.T;var S=Jn.p;try{Jn.p=g,$e.T=null;var w=PC;PC=null,g=d0;var M=Fu;if(qi=f0,yv=d0=null,Fu=0,(Xn&(la|Yl))!==xa)throw Error("Cannot flush passive effects while already rendering.");Ao(M),$C=!0,Hw=!1;var N=0;if(Sd=null,N=ti(),Yu===eB)v4(xd,N,r0e);else{var G=xd,Z=N,we=Yu===LC;!Lr||Z<=G||(xi?xi.run(console.timeStamp.bind(console,we?"Waiting for Paint":"Waiting",G,Z,qn,Un,"secondary-light")):console.timeStamp(we?"Waiting for Paint":"Waiting",G,Z,qn,Un,"secondary-light"))}G=Xn,Xn|=Yl;var Ae=g.current;Ra(),OE(Ae);var ge=g.current;Ae=BC,Ra(),ny(g,ge,M,w,Ae),ol(g),Xn=G;var Ie=ti();if(ge=N,Ae=xi,Sd!==null?fE(ge,Ie,Sd,!0,Ae):!Lr||Ie<=ge||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",ge,Ie,qn,Un,"secondary-dark")):console.timeStamp("Remaining Effects",ge,Ie,qn,Un,"secondary-dark")),Bl(M,Ie),kh(0,!1),Hw?g===jS?qm++:(qm=0,jS=g):qm=0,Hw=$C=!1,ga&&typeof ga.onPostCommitFiberRoot=="function")try{ga.onPostCommitFiberRoot($u,g)}catch(Ot){Fs||(Fs=!0,console.error("React instrumentation encountered an error: %o",Ot))}var xt=g.current.stateNode;return xt.effectDuration=0,xt.passiveEffectDuration=0,!0}finally{Jn.p=S,$e.T=c,DE(i,o)}}function al(i,o,c){o=Ma(c,o),eo(o),o=j1(i.stateNode,o,2),i=Da(i,o,2),i!==null&&(dt(i,2),La(i))}function Wn(i,o,c){if(vv=!1,i.tag===3)al(i,i,c);else{for(;o!==null;){if(o.tag===3){al(o,i,c);return}if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(c0===null||!c0.has(g))){i=Ma(c,i),eo(i),c=$1(2),g=Da(o,c,2),g!==null&&(Vp(c,g,o,i),dt(g,2),La(g));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.

Error message:

%s`,c)}}function ma(i,o,c){var g=i.pingCache;if(g===null){g=i.pingCache=new d0e;var S=new Set;g.set(o,S)}else S=g.get(o),S===void 0&&(S=new Set,g.set(o,S));S.has(c)||(kC=!0,S.add(c),g=NE.bind(null,i,o,c),dl&&js(i,c),o.then(g,g))}function NE(i,o,c){var g=i.pingCache;g!==null&&g.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,(c&127)!==0?0>Xc&&(Dm=Xc=Pi(),mS=vw("Promise Resolved"),n0=bw):(c&4194048)!==0&&0>eu&&(Ed=eu=Pi(),yS=vw("Promise Resolved"),pC=bw),Wp()&&$e.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).

When testing, code that resolves suspended data should be wrapped into act(...):

act(() => {
  /* finish loading suspended data */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Cr===i&&(wn&c)===c&&(ri===o0||ri===zw&&(wn&62914560)===wn&&ti()-Pw<ZV?(Xn&la)===xa&&za(i,0):zC|=c,Hm===wn&&(Hm=0)),La(i)}function Ps(i,o){o===0&&(o=Le()),i=Wi(i,o),i!==null&&(dt(i,o),La(i))}function ad(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),Ps(i,c)}function zu(i,o){var c=0;switch(i.tag){case 31:case 13:var g=i.stateNode,S=i.memoizedState;S!==null&&(c=S.retryLane);break;case 19:g=i.stateNode;break;case 22:g=i.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}g!==null&&g.delete(o),Ps(i,c)}function Zp(i,o,c){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var g=i,S=o,w=S.type===Gh;w=c||w,S.tag!==22?S.flags&67108864?w&&Ve(S,uy,g,S):Zp(g,S,w):S.memoizedState===null&&(w&&S.flags&8192?Ve(S,uy,g,S):S.subtreeFlags&67108864&&Ve(S,Zp,g,S,w)),o=o.sibling}}function uy(i,o){it(!0);try{dx(o),Ls(o),hx(i,o.alternate,o,!1),ry(i,o,0,null,!1,0)}finally{it(!1)}}function ol(i){var o=!0;i.current.mode&(mo|Uu)||(o=!1),Zp(i,i.current,o)}function Ex(i){if((Xn&la)===xa){var o=i.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=ue(i)||"ReactComponent",qw!==null){if(qw.has(o))return;qw.add(o)}else qw=new Set([o]);Ve(i,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function js(i,o){dl&&i.memoizedUpdaters.forEach(function(c){jn(i,c,o)})}function Jp(i,o){var c=$e.actQueue;return c!==null?(c.push(o),m0e):Yh(i,o)}function em(i){Wp()&&$e.actQueue===null&&Ve(i,function(){console.error(`An update to %s inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ue(i))})}function La(i){i!==bv&&i.next===null&&(bv===null?Gw=bv=i:bv=bv.next=i),Fw=!0,$e.actQueue!==null?HC||(HC=!0,zE()):UC||(UC=!0,zE())}function kh(i,o){if(!qC&&Fw){qC=!0;do for(var c=!1,g=Gw;g!==null;){if(i!==0){var S=g.pendingLanes;if(S===0)var w=0;else{var M=g.suspendedLanes,N=g.pingedLanes;w=(1<<31-ra(42|i)+1)-1,w&=S&~(M&~N),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(c=!0,Tx(g,w))}else w=wn,w=tn(g,g===Cr?w:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Xm),(w&3)===0||et(g,w)||(c=!0,Tx(g,w));g=g.next}while(c);qC=!1}}function kE(){qS=window.event,od()}function od(){Fw=HC=UC=!1;var i=0;h0!==0&&zh()&&(i=h0);for(var o=ti(),c=null,g=Gw;g!==null;){var S=g.next,w=wx(g,o);w===0?(g.next=null,c===null?Gw=S:c.next=S,S===null&&(bv=c)):(c=g,(i!==0||(w&3)!==0)&&(Fw=!0)),g=S}qi!==f0&&qi!==Uw||kh(i),h0!==0&&(h0=0)}function wx(i,o){for(var c=i.suspendedLanes,g=i.pingedLanes,S=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var M=31-ra(w),N=1<<M,G=S[M];G===-1?((N&c)===0||(N&g)!==0)&&(S[M]=xe(N,o)):G<=o&&(i.expiredLanes|=N),w&=~N}if(o=Cr,c=wn,c=tn(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Xm),g=i.callbackNode,c===0||i===o&&(mr===$m||mr===Um)||i.cancelPendingCommit!==null)return g!==null&&Ax(g),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||et(i,c)){if(o=c&-c,o!==i.callbackPriority||$e.actQueue!==null&&g!==GC)Ax(g);else return o;switch(Pr(c)){case Oi:case ia:c=jy;break;case Lo:c=md;break;case qc:c=Em;break;default:c=md}return g=tm.bind(null,i),$e.actQueue!==null?($e.actQueue.push(g),c=GC):c=Yh(c,g),i.callbackPriority=o,i.callbackNode=c,o}return g!==null&&Ax(g),i.callbackPriority=2,i.callbackNode=null,2}function tm(i,o){if(Tw=ww=!1,qS=window.event,qi!==f0&&qi!==Uw)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(Yu===$w&&(Yu=LC),Bc()&&i.callbackNode!==c)return null;var g=wn;return g=tn(i,i===Cr?g:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Xm),g===0?null:(RE(i,g,o),wx(i,ti()),i.callbackNode!=null&&i.callbackNode===c?tm.bind(null,i):null)}function Tx(i,o){if(Bc())return null;ww=Tw,Tw=!1,RE(i,o,!0)}function Ax(i){i!==GC&&i!==null&&Vy(i)}function zE(){$e.actQueue!==null&&$e.actQueue.push(function(){return od(),null}),A0e(function(){(Xn&(la|Yl))!==xa?Yh(Py,kE):od()})}function Fn(){if(h0===0){var i=zm;i===0&&(i=wm,wm<<=1,(wm&261888)===0&&(wm=256)),h0=i}return h0}function hr(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:(St(i,"action"),vc(""+i))}function _n(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function Ln(i,o,c,g,S){if(o==="submit"&&c&&c.stateNode===S){var w=hr((S[ya]||null).action),M=g.submitter;M&&(o=(o=M[ya]||null)?hr(o.formAction):M.getAttribute("formAction"),o!==null&&(w=o,M=null));var N=new fw("action","action",null,g,S);i.push({event:N,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(h0!==0){var G=M?_n(S,M):new FormData(S),Z={pending:!0,data:G,method:S.method,action:w};Object.freeze(Z),Sh(c,Z,null,G)}}else typeof w=="function"&&(N.preventDefault(),G=M?_n(S,M):new FormData(S),Z={pending:!0,data:G,method:S.method,action:w},Object.freeze(Z),Sh(c,Z,w,G))},currentTarget:S}]})}}function Kn(i,o,c){i.currentTarget=c;try{o(i)}catch(g){rC(g)}i.currentTarget=null}function so(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var g=i[c];e:{var S=void 0,w=g.event;if(g=g.listeners,o)for(var M=g.length-1;0<=M;M--){var N=g[M],G=N.instance,Z=N.currentTarget;if(N=N.listener,G!==S&&w.isPropagationStopped())break e;G!==null?Ve(G,Kn,w,N,Z):Kn(w,N,Z),S=G}else for(M=0;M<g.length;M++){if(N=g[M],G=N.instance,Z=N.currentTarget,N=N.listener,G!==S&&w.isPropagationStopped())break e;G!==null?Ve(G,Kn,w,N,Z):Kn(w,N,Z),S=G}}}}function dn(i,o){FC.has(i)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var c=o[nS];c===void 0&&(c=o[nS]=new Set);var g=i+"__bubble";c.has(g)||($s(o,i,2,!1),c.add(g))}function Pc(i,o,c){FC.has(i)&&!o&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var g=0;o&&(g|=4),$s(c,i,g,o)}function nm(i){if(!i[Yw]){i[Yw]=!0,Am.forEach(function(c){c!=="selectionchange"&&(FC.has(c)||Pc(c,!1,i),Pc(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Yw]||(o[Yw]=!0,Pc("selectionchange",!1,o))}}function $s(i,o,c,g){switch(Oy(o)){case Oi:var S=ta;break;case ia:S=jA;break;default:S=Cy}c=S.bind(null,o,c,i),S=void 0,!YA||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),g?S!==void 0?i.addEventListener(o,c,{capture:!0,passive:S}):i.addEventListener(o,c,!0):S!==void 0?i.addEventListener(o,c,{passive:S}):i.addEventListener(o,c,!1)}function Ir(i,o,c,g,S){var w=g;if((o&1)===0&&(o&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var N=g.stateNode.containerInfo;if(N===S)break;if(M===4)for(M=g.return;M!==null;){var G=M.tag;if((G===3||G===4)&&M.stateNode.containerInfo===S)return;M=M.return}for(;N!==null;){if(M=nt(N),M===null)return;if(G=M.tag,G===5||G===6||G===26||G===27){g=w=M;continue e}N=N.parentNode}}g=g.return}_f(function(){var Z=w,we=tp(c),Ae=[];e:{var ge=HL.get(i);if(ge!==void 0){var Ie=fw,xt=i;switch(i){case"keypress":if(lh(c)===0)break e;case"keydown":case"keyup":Ie=_he;break;case"focusin":xt="focus",Ie=QA;break;case"focusout":xt="blur",Ie=QA;break;case"beforeblur":case"afterblur":Ie=QA;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ie=RL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ie=vhe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ie=khe;break;case PL:case jL:case $L:Ie=She;break;case UL:Ie=Ihe;break;case"scroll":case"scrollend":Ie=ghe;break;case"wheel":Ie=Vhe;break;case"copy":case"cut":case"paste":Ie=whe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ie=DL;break;case"toggle":case"beforetoggle":Ie=Phe}var Ot=(o&4)!==0,Nr=!Ot&&(i==="scroll"||i==="scrollend"),Hn=Ot?ge!==null?ge+"Capture":null:ge;Ot=[];for(var pe=Z,ye;pe!==null;){var Se=pe;if(ye=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||ye===null||Hn===null||(Se=cs(pe,Hn),Se!=null&&Ot.push(ll(pe,Se,ye))),Nr)break;pe=pe.return}0<Ot.length&&(ge=new Ie(ge,xt,null,c,we),Ae.push({event:ge,listeners:Ot}))}}if((o&7)===0){e:{if(ge=i==="mouseover"||i==="pointerover",Ie=i==="mouseout"||i==="pointerout",ge&&c!==iS&&(xt=c.relatedTarget||c.fromElement)&&(nt(xt)||xt[hl]))break e;if((Ie||ge)&&(ge=we.window===we?we:(ge=we.ownerDocument)?ge.defaultView||ge.parentWindow:window,Ie?(xt=c.relatedTarget||c.toElement,Ie=Z,xt=xt?nt(xt):null,xt!==null&&(Nr=z(xt),Ot=xt.tag,xt!==Nr||Ot!==5&&Ot!==27&&Ot!==6)&&(xt=null)):(Ie=null,xt=Z),Ie!==xt)){if(Ot=RL,Se="onMouseLeave",Hn="onMouseEnter",pe="mouse",(i==="pointerout"||i==="pointerover")&&(Ot=DL,Se="onPointerLeave",Hn="onPointerEnter",pe="pointer"),Nr=Ie==null?ge:mt(Ie),ye=xt==null?ge:mt(xt),ge=new Ot(Se,pe+"leave",Ie,c,we),ge.target=Nr,ge.relatedTarget=ye,Se=null,nt(we)===Z&&(Ot=new Ot(Hn,pe+"enter",xt,c,we),Ot.target=ye,Ot.relatedTarget=Nr,Se=Ot),Nr=Se,Ie&&xt)t:{for(Ot=Cx,Hn=Ie,pe=xt,ye=0,Se=Hn;Se;Se=Ot(Se))ye++;Se=0;for(var qe=pe;qe;qe=Ot(qe))Se++;for(;0<ye-Se;)Hn=Ot(Hn),ye--;for(;0<Se-ye;)pe=Ot(pe),Se--;for(;ye--;){if(Hn===pe||pe!==null&&Hn===pe.alternate){Ot=Hn;break t}Hn=Ot(Hn),pe=Ot(pe)}Ot=null}else Ot=null;Ie!==null&&uo(Ae,ge,Ie,Ot,!1),xt!==null&&Nr!==null&&uo(Ae,Nr,xt,Ot,!0)}}e:{if(ge=Z?mt(Z):window,Ie=ge.nodeName&&ge.nodeName.toLowerCase(),Ie==="select"||Ie==="input"&&ge.type==="file")var Ct=ip;else if(rp(ge))if(VL)Ct=d1;else{Ct=p4;var cn=h4}else Ie=ge.nodeName,!Ie||Ie.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?Z&&ep(Z.elementType)&&(Ct=ip):Ct=ap;if(Ct&&(Ct=Ct(i,Z))){d4(Ae,Ct,c,we);break e}cn&&cn(i,ge,Z),i==="focusout"&&Z&&ge.type==="number"&&Z.memoizedProps.value!=null&&n4(ge,"number",ge.value)}switch(cn=Z?mt(Z):window,i){case"focusin":(rp(cn)||cn.contentEditable==="true")&&(Ky=cn,JA=Z,fS=null);break;case"focusout":fS=JA=Ky=null;break;case"mousedown":eC=!0;break;case"contextmenu":case"mouseup":case"dragend":eC=!1,lE(Ae,c,we);break;case"selectionchange":if(Hhe)break;case"keydown":case"keyup":lE(Ae,c,we)}var Gt;if(ZA)e:{switch(i){case"compositionstart":var Bt="onCompositionStart";break e;case"compositionend":Bt="onCompositionEnd";break e;case"compositionupdate":Bt="onCompositionUpdate";break e}Bt=void 0}else Wy?xu(i,c)&&(Bt="onCompositionEnd"):i==="keydown"&&c.keyCode===NL&&(Bt="onCompositionStart");Bt&&(kL&&c.locale!=="ko"&&(Wy||Bt!=="onCompositionStart"?Bt==="onCompositionEnd"&&Wy&&(Gt=c4()):(Kh=we,XA="value"in Kh?Kh.value:Kh.textContent,Wy=!0)),cn=Us(Z,Bt),0<cn.length&&(Bt=new _L(Bt,i,null,c,we),Ae.push({event:Bt,listeners:cn}),Gt?Bt.data=Gt:(Gt=u1(c),Gt!==null&&(Bt.data=Gt)))),(Gt=$he?c1(i,c):tE(i,c))&&(Bt=Us(Z,"onBeforeInput"),0<Bt.length&&(cn=new Ahe("onBeforeInput","beforeinput",null,c,we),Ae.push({event:cn,listeners:Bt}),cn.data=Gt)),Ln(Ae,i,Z,c,we)}so(Ae,o)})}function ll(i,o,c){return{instance:i,listener:o,currentTarget:c}}function Us(i,o){for(var c=o+"Capture",g=[];i!==null;){var S=i,w=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||w===null||(S=cs(i,c),S!=null&&g.unshift(ll(i,S,w)),S=cs(i,o),S!=null&&g.push(ll(i,S,w))),i.tag===3)return g;i=i.return}return[]}function Cx(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function uo(i,o,c,g,S){for(var w=o._reactName,M=[];c!==null&&c!==g;){var N=c,G=N.alternate,Z=N.stateNode;if(N=N.tag,G!==null&&G===g)break;N!==5&&N!==26&&N!==27||Z===null||(G=Z,S?(Z=cs(c,w),Z!=null&&M.unshift(ll(c,Z,G))):S||(Z=cs(c,w),Z!=null&&M.push(ll(c,Z,G)))),c=c.return}M.length!==0&&i.push({event:o,listeners:M})}function jc(i,o){u4(i,o),i!=="input"&&i!=="textarea"&&i!=="select"||o==null||o.value!==null||OL||(OL=!0,i==="select"&&o.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i));var c={registrationNameDependencies:Ys,possibleRegistrationNames:Hy};ep(i)||typeof o.is=="string"||_A(i,o,c),o.contentEditable&&!o.suppressContentEditableWarning&&o.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Jr(i,o,c,g){o!==c&&(c=Iu(c),Iu(o)!==c&&(g[i]=o))}function co(i,o,c){o.forEach(function(g){c[ld(g)]=g==="style"?Pl(i):i.getAttribute(g)})}function sl(i,o){o===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof o)}function rm(i,o){return i=i.namespaceURI===On||i.namespaceURI===kn?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=o,i.innerHTML}function Iu(i){return Vt(i)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ut(i)),Qt(i)),(typeof i=="string"?i:""+i).replace(g0e,`
`).replace(y0e,"")}function im(i,o){return o=Iu(o),Iu(i)===o}function Zn(i,o,c,g,S,w){switch(c){case"children":typeof g=="string"?(oh(g,o,!1),o==="body"||o==="textarea"&&g===""||us(i,g)):(typeof g=="number"||typeof g=="bigint")&&(oh(""+g,o,!1),o!=="body"&&us(i,""+g));break;case"className":Y0(i,"class",g);break;case"tabIndex":Y0(i,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Y0(i,c,g);break;case"style":Rf(i,g,w);break;case"data":if(o!=="object"){Y0(i,"data",g);break}case"src":case"href":if(g===""&&(o!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(c);break}St(g,c),g=vc(""+g),i.setAttribute(c,g);break;case"action":case"formAction":if(g!=null&&(o==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof g=="function"&&(S.encType==null&&S.method==null||Kw||(Kw=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),S.target==null||Ww||(Ww=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):o==="input"||o==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):o!=="input"||S.type==="submit"||S.type==="image"||Xw?o!=="button"||S.type==null||S.type==="submit"||Xw?typeof g=="function"&&(S.name==null||dB||(dB=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),S.formEncType==null&&S.formMethod==null||Kw||(Kw=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),S.formTarget==null||Ww||(Ww=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Xw=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Xw=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof g=="function"){i.setAttribute(c,"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 w=="function"&&(c==="formAction"?(o!=="input"&&Zn(i,o,"name",S.name,S,null),Zn(i,o,"formEncType",S.formEncType,S,null),Zn(i,o,"formMethod",S.formMethod,S,null),Zn(i,o,"formTarget",S.formTarget,S,null)):(Zn(i,o,"encType",S.encType,S,null),Zn(i,o,"method",S.method,S,null),Zn(i,o,"target",S.target,S,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){i.removeAttribute(c);break}St(g,c),g=vc(""+g),i.setAttribute(c,g);break;case"onClick":g!=null&&(typeof g!="function"&&sl(c,g),i.onclick=Xi);break;case"onScroll":g!=null&&(typeof g!="function"&&sl(c,g),dn("scroll",i));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&sl(c,g),dn("scrollend",i));break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=g.__html,c!=null){if(S.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":i.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){i.removeAttribute("xlink:href");break}St(g,c),c=vc(""+g),i.setAttributeNS(Gm,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?(St(g,c),i.setAttribute(c,""+g)):i.removeAttribute(c);break;case"inert":g!==""||Qw[c]||(Qw[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));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":g&&typeof g!="function"&&typeof g!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":g===!0?i.setAttribute(c,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?(St(g,c),i.setAttribute(c,g)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?(St(g,c),i.setAttribute(c,g)):i.removeAttribute(c);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?i.removeAttribute(c):(St(g,c),i.setAttribute(c,g));break;case"popover":dn("beforetoggle",i),dn("toggle",i),Ef(i,"popover",g);break;case"xlinkActuate":ss(i,Gm,"xlink:actuate",g);break;case"xlinkArcrole":ss(i,Gm,"xlink:arcrole",g);break;case"xlinkRole":ss(i,Gm,"xlink:role",g);break;case"xlinkShow":ss(i,Gm,"xlink:show",g);break;case"xlinkTitle":ss(i,Gm,"xlink:title",g);break;case"xlinkType":ss(i,Gm,"xlink:type",g);break;case"xmlBase":ss(i,YC,"xml:base",g);break;case"xmlLang":ss(i,YC,"xml:lang",g);break;case"xmlSpace":ss(i,YC,"xml:space",g);break;case"is":w!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ef(i,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":hB||g==null||typeof g!="object"||(hB=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",g));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=s4(c),Ef(i,c,g)):Ys.hasOwnProperty(c)&&g!=null&&typeof g!="function"&&sl(c,g)}}function Hs(i,o,c,g,S,w){switch(c){case"style":Rf(i,g,w);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=g.__html,c!=null){if(S.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof g=="string"?us(i,g):(typeof g=="number"||typeof g=="bigint")&&us(i,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&sl(c,g),dn("scroll",i));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&sl(c,g),dn("scrollend",i));break;case"onClick":g!=null&&(typeof g!="function"&&sl(c,g),i.onclick=Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ys.hasOwnProperty(c))g!=null&&typeof g!="function"&&sl(c,g);else e:{if(c[0]==="o"&&c[1]==="n"&&(S=c.endsWith("Capture"),o=c.slice(2,S?c.length-7:void 0),w=i[ya]||null,w=w!=null?w[c]:null,typeof w=="function"&&i.removeEventListener(o,w,S),typeof g=="function")){typeof w!="function"&&w!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,g,S);break e}c in i?i[c]=g:g===!0?i.setAttribute(c,""):Ef(i,c,g)}}}function $n(i,o,c){switch(jc(o,c),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dn("error",i),dn("load",i);var g=!1,S=!1,w;for(w in c)if(c.hasOwnProperty(w)){var M=c[w];if(M!=null)switch(w){case"src":g=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Zn(i,o,w,M,c,null)}}S&&Zn(i,o,"srcSet",c.srcSet,c,null),g&&Zn(i,o,"src",c.src,c,null);return;case"input":Rn("input",c),dn("invalid",i);var N=w=M=S=null,G=null,Z=null;for(g in c)if(c.hasOwnProperty(g)){var we=c[g];if(we!=null)switch(g){case"name":S=we;break;case"type":M=we;break;case"checked":G=we;break;case"defaultChecked":Z=we;break;case"value":w=we;break;case"defaultValue":N=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Zn(i,o,g,we,c,null)}}wf(i,c),Q6(i,w,N,G,Z,M,S,!1);return;case"select":Rn("select",c),dn("invalid",i),g=M=w=null;for(S in c)if(c.hasOwnProperty(S)&&(N=c[S],N!=null))switch(S){case"value":w=N;break;case"defaultValue":M=N;break;case"multiple":g=N;default:Zn(i,o,S,N,c,null)}Tf(i,c),o=w,c=M,i.multiple=!!g,o!=null?yc(i,!!g,o,!1):c!=null&&yc(i,!!g,c,!0);return;case"textarea":Rn("textarea",c),dn("invalid",i),w=S=g=null;for(M in c)if(c.hasOwnProperty(M)&&(N=c[M],N!=null))switch(M){case"value":g=N;break;case"defaultValue":S=N;break;case"children":w=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Zn(i,o,M,N,c,null)}Af(i,c),Cf(i,g,S,w);return;case"option":r4(i,c);for(G in c)if(c.hasOwnProperty(G)&&(g=c[G],g!=null))switch(G){case"selected":i.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Zn(i,o,G,g,c,null)}return;case"dialog":dn("beforetoggle",i),dn("toggle",i),dn("cancel",i),dn("close",i);break;case"iframe":case"object":dn("load",i);break;case"video":case"audio":for(g=0;g<$S.length;g++)dn($S[g],i);break;case"image":dn("error",i),dn("load",i);break;case"details":dn("toggle",i);break;case"embed":case"source":case"link":dn("error",i),dn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in c)if(c.hasOwnProperty(Z)&&(g=c[Z],g!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Zn(i,o,Z,g,c,null)}return;default:if(ep(o)){for(we in c)c.hasOwnProperty(we)&&(g=c[we],g!==void 0&&Hs(i,o,we,g,c,void 0));return}}for(N in c)c.hasOwnProperty(N)&&(g=c[N],g!=null&&Zn(i,o,N,g,c,null))}function $c(i,o,c,g){switch(jc(o,g),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,w=null,M=null,N=null,G=null,Z=null,we=null;for(Ie in c){var Ae=c[Ie];if(c.hasOwnProperty(Ie)&&Ae!=null)switch(Ie){case"checked":break;case"value":break;case"defaultValue":G=Ae;default:g.hasOwnProperty(Ie)||Zn(i,o,Ie,null,g,Ae)}}for(var ge in g){var Ie=g[ge];if(Ae=c[ge],g.hasOwnProperty(ge)&&(Ie!=null||Ae!=null))switch(ge){case"type":w=Ie;break;case"name":S=Ie;break;case"checked":Z=Ie;break;case"defaultChecked":we=Ie;break;case"value":M=Ie;break;case"defaultValue":N=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ie!==Ae&&Zn(i,o,ge,Ie,g,Ae)}}o=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,g=g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null,o||!g||fB||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),fB=!0),!o||g||cB||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),cB=!0),X0(i,M,N,G,Z,we,w,S);return;case"select":Ie=M=N=ge=null;for(w in c)if(G=c[w],c.hasOwnProperty(w)&&G!=null)switch(w){case"value":break;case"multiple":Ie=G;default:g.hasOwnProperty(w)||Zn(i,o,w,null,g,G)}for(S in g)if(w=g[S],G=c[S],g.hasOwnProperty(S)&&(w!=null||G!=null))switch(S){case"value":ge=w;break;case"defaultValue":N=w;break;case"multiple":M=w;default:w!==G&&Zn(i,o,S,w,g,G)}g=N,o=M,c=Ie,ge!=null?yc(i,!!o,ge,!1):!!c!=!!o&&(g!=null?yc(i,!!o,g,!0):yc(i,!!o,o?[]:"",!1));return;case"textarea":Ie=ge=null;for(N in c)if(S=c[N],c.hasOwnProperty(N)&&S!=null&&!g.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Zn(i,o,N,null,g,S)}for(M in g)if(S=g[M],w=c[M],g.hasOwnProperty(M)&&(S!=null||w!=null))switch(M){case"value":ge=S;break;case"defaultValue":Ie=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:S!==w&&Zn(i,o,M,S,g,w)}ih(i,ge,Ie);return;case"option":for(var xt in c)if(ge=c[xt],c.hasOwnProperty(xt)&&ge!=null&&!g.hasOwnProperty(xt))switch(xt){case"selected":i.selected=!1;break;default:Zn(i,o,xt,null,g,ge)}for(G in g)if(ge=g[G],Ie=c[G],g.hasOwnProperty(G)&&ge!==Ie&&(ge!=null||Ie!=null))switch(G){case"selected":i.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Zn(i,o,G,ge,g,Ie)}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 Ot in c)ge=c[Ot],c.hasOwnProperty(Ot)&&ge!=null&&!g.hasOwnProperty(Ot)&&Zn(i,o,Ot,null,g,ge);for(Z in g)if(ge=g[Z],Ie=c[Z],g.hasOwnProperty(Z)&&ge!==Ie&&(ge!=null||Ie!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Zn(i,o,Z,ge,g,Ie)}return;default:if(ep(o)){for(var Nr in c)ge=c[Nr],c.hasOwnProperty(Nr)&&ge!==void 0&&!g.hasOwnProperty(Nr)&&Hs(i,o,Nr,void 0,g,ge);for(we in g)ge=g[we],Ie=c[we],!g.hasOwnProperty(we)||ge===Ie||ge===void 0&&Ie===void 0||Hs(i,o,we,ge,g,Ie);return}}for(var Hn in c)ge=c[Hn],c.hasOwnProperty(Hn)&&ge!=null&&!g.hasOwnProperty(Hn)&&Zn(i,o,Hn,null,g,ge);for(Ae in g)ge=g[Ae],Ie=c[Ae],!g.hasOwnProperty(Ae)||ge===Ie||ge==null&&Ie==null||Zn(i,o,Ae,ge,g,Ie)}function ld(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function Pl(i){var o={};i=i.style;for(var c=0;c<i.length;c++){var g=i[c];o[g]=i.getPropertyValue(g)}return o}function cy(i,o,c){if(o!=null&&typeof o!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var g,S=g="",w;for(w in o)if(o.hasOwnProperty(w)){var M=o[w];M!=null&&typeof M!="boolean"&&M!==""&&(w.indexOf("--")===0?($t(M,w),g+=S+w+":"+(""+M).trim()):typeof M!="number"||M===0||yn.has(w)?($t(M,w),g+=S+w.replace(kt,"-$1").toLowerCase().replace(Zt,"-ms-")+":"+(""+M).trim()):g+=S+w.replace(kt,"-$1").toLowerCase().replace(Zt,"-ms-")+":"+M+"px",S=";")}g=g||null,o=i.getAttribute("style"),o!==g&&(g=Iu(g),Iu(o)!==g&&(c.style=Pl(i)))}}function fo(i,o,c,g,S,w){if(S.delete(c),i=i.getAttribute(c),i===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(St(g,o),i===""+g)return}Jr(o,i,g,w)}function Ox(i,o,c,g,S,w){if(S.delete(c),i=i.getAttribute(c),i===null){switch(typeof g){case"function":case"symbol":return}if(!g)return}else switch(typeof g){case"function":case"symbol":break;default:if(g)return}Jr(o,i,g,w)}function sd(i,o,c,g,S,w){if(S.delete(c),i=i.getAttribute(c),i===null)switch(typeof g){case"undefined":case"function":case"symbol":return}else if(g!=null)switch(typeof g){case"function":case"symbol":break;default:if(St(g,c),i===""+g)return}Jr(o,i,g,w)}function fy(i,o,c,g,S,w){if(S.delete(c),i=i.getAttribute(c),i===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(g))return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!isNaN(g)&&(St(g,o),i===""+g))return}Jr(o,i,g,w)}function Va(i,o,c,g,S,w){if(S.delete(c),i=i.getAttribute(c),i===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":return}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(St(g,o),c=vc(""+g),i===c)return}Jr(o,i,g,w)}function Mx(i,o,c,g){for(var S={},w=new Set,M=i.attributes,N=0;N<M.length;N++)switch(M[N].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:w.add(M[N].name)}if(ep(o)){for(var G in c)if(c.hasOwnProperty(G)){var Z=c[G];if(Z!=null){if(Ys.hasOwnProperty(G))typeof Z!="function"&&sl(G,Z);else if(c.suppressHydrationWarning!==!0)switch(G){case"children":typeof Z!="string"&&typeof Z!="number"||Jr("children",i.textContent,Z,S);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=i.innerHTML,Z=Z?Z.__html:void 0,Z!=null&&(Z=rm(i,Z),Jr(G,M,Z,S));continue;case"style":w.delete(G),cy(i,Z,S);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":w.delete(G.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",G);continue;case"className":w.delete("class"),M=n1(i,"class",Z),Jr("className",M,Z,S);continue;default:g.context===Rd&&o!=="svg"&&o!=="math"?w.delete(G.toLowerCase()):w.delete(G),M=n1(i,G,Z),Jr(G,M,Z,S)}}}}else for(Z in c)if(c.hasOwnProperty(Z)&&(G=c[Z],G!=null)){if(Ys.hasOwnProperty(Z))typeof G!="function"&&sl(Z,G);else if(c.suppressHydrationWarning!==!0)switch(Z){case"children":typeof G!="string"&&typeof G!="number"||Jr("children",i.textContent,G,S);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=i.innerHTML,G=G?G.__html:void 0,G!=null&&(G=rm(i,G),M!==G&&(S[Z]={__html:M}));continue;case"className":fo(i,Z,"class",G,w,S);continue;case"tabIndex":fo(i,Z,"tabindex",G,w,S);continue;case"style":w.delete(Z),cy(i,G,S);continue;case"multiple":w.delete(Z),Jr(Z,i.multiple,G,S);continue;case"muted":w.delete(Z),Jr(Z,i.muted,G,S);continue;case"autoFocus":w.delete("autofocus"),Jr(Z,i.autofocus,G,S);continue;case"data":if(o!=="object"){w.delete(Z),M=i.getAttribute("data"),Jr(Z,M,G,S);continue}case"src":case"href":if(!(G!==""||o==="a"&&Z==="href"||o==="object"&&Z==="data")){console.error(Z==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Z,Z);continue}Va(i,Z,Z,G,w,S);continue;case"action":case"formAction":if(M=i.getAttribute(Z),typeof G=="function"){w.delete(Z.toLowerCase()),Z==="formAction"?(w.delete("name"),w.delete("formenctype"),w.delete("formmethod"),w.delete("formtarget")):(w.delete("enctype"),w.delete("method"),w.delete("target"));continue}else if(M===v0e){w.delete(Z.toLowerCase()),Jr(Z,"function",G,S);continue}Va(i,Z,Z.toLowerCase(),G,w,S);continue;case"xlinkHref":Va(i,Z,"xlink:href",G,w,S);continue;case"contentEditable":sd(i,Z,"contenteditable",G,w,S);continue;case"spellCheck":sd(i,Z,"spellcheck",G,w,S);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":sd(i,Z,Z,G,w,S);continue;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":Ox(i,Z,Z.toLowerCase(),G,w,S);continue;case"capture":case"download":e:{N=i;var we=M=Z,Ae=S;if(w.delete(we),N=N.getAttribute(we),N===null)switch(typeof G){case"undefined":case"function":case"symbol":break e;default:if(G===!1)break e}else if(G!=null)switch(typeof G){case"function":case"symbol":break;case"boolean":if(G===!0&&N==="")break e;break;default:if(St(G,M),N===""+G)break e}Jr(M,N,G,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(N=i,we=M=Z,Ae=S,w.delete(we),N=N.getAttribute(we),N===null)switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(G)||1>G)break e}else if(G!=null)switch(typeof G){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(G)||1>G)&&(St(G,M),N===""+G))break e}Jr(M,N,G,Ae)}continue;case"rowSpan":fy(i,Z,"rowspan",G,w,S);continue;case"start":fy(i,Z,Z,G,w,S);continue;case"xHeight":fo(i,Z,"x-height",G,w,S);continue;case"xlinkActuate":fo(i,Z,"xlink:actuate",G,w,S);continue;case"xlinkArcrole":fo(i,Z,"xlink:arcrole",G,w,S);continue;case"xlinkRole":fo(i,Z,"xlink:role",G,w,S);continue;case"xlinkShow":fo(i,Z,"xlink:show",G,w,S);continue;case"xlinkTitle":fo(i,Z,"xlink:title",G,w,S);continue;case"xlinkType":fo(i,Z,"xlink:type",G,w,S);continue;case"xmlBase":fo(i,Z,"xml:base",G,w,S);continue;case"xmlLang":fo(i,Z,"xml:lang",G,w,S);continue;case"xmlSpace":fo(i,Z,"xml:space",G,w,S);continue;case"inert":G!==""||Qw[Z]||(Qw[Z]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Z)),Ox(i,Z,Z,G,w,S);continue;default:if(!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"){N=s4(Z),M=!1,g.context===Rd&&o!=="svg"&&o!=="math"?w.delete(N.toLowerCase()):(we=Z.toLowerCase(),we=Gy.hasOwnProperty(we)&&Gy[we]||null,we!==null&&we!==Z&&(M=!0,w.delete(we)),w.delete(N));e:if(we=i,Ae=N,N=G,si(Ae))if(we.hasAttribute(Ae))we=we.getAttribute(Ae),St(N,Ae),N=we===""+N?N:we;else{switch(typeof N){case"function":case"symbol":break e;case"boolean":if(we=Ae.toLowerCase().slice(0,5),we!=="data-"&&we!=="aria-")break e}N=N===void 0?void 0:null}else N=void 0;M||Jr(Z,N,G,S)}}}return 0<w.size&&c.suppressHydrationWarning!==!0&&co(i,w,S),Object.keys(S).length===0?null:S}function ho(i,o){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+o+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+o+" "+i[i.length-1]}}function Rx(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function IE(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,c=performance.getEntriesByType("resource"),g=0;g<c.length;g++){var S=c[g],w=S.transferSize,M=S.initiatorType,N=S.duration;if(w&&N&&Rx(M)){for(M=0,N=S.responseEnd,g+=1;g<c.length;g++){var G=c[g],Z=G.startTime;if(Z>N)break;var we=G.transferSize,Ae=G.initiatorType;we&&Rx(Ae)&&(G=G.responseEnd,M+=we*(G<N?1:(N-Z)/(G-Z)))}if(--g,o+=8*(w+M)/(S.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}function dy(i){return i.nodeType===9?i:i.ownerDocument}function Lu(i){switch(i){case kn:return Sv;case On:return Jw;default:return Rd}}function am(i,o){if(i===Rd)switch(o){case"svg":return Sv;case"math":return Jw;default:return Rd}return i===Sv&&o==="foreignObject"?Rd:i}function om(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function zh(){var i=window.event;return i&&i.type==="popstate"?i===QC?!1:(QC=i,!0):(QC=null,!1)}function Ih(){var i=window.event;return i&&i!==qS?i.type:null}function Lh(){var i=window.event;return i&&i!==qS?i.timeStamp:-1.1}function LE(i){setTimeout(function(){throw i})}function VE(i,o,c){switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function hy(){}function _x(i,o,c,g){$c(i,o,c,g),i[ya]=g}function BE(i){us(i,"")}function BA(i,o,c){i.nodeValue=c}function PE(i){if(!i.__reactWarnedAboutChildrenConflict){var o=i[ya]||null;if(o!==null){var c=Ze(i);c!==null&&(typeof o.children=="string"||typeof o.children=="number"?(i.__reactWarnedAboutChildrenConflict=!0,Ve(c,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):o.dangerouslySetInnerHTML!=null&&(i.__reactWarnedAboutChildrenConflict=!0,Ve(c,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Vu(i){return i==="head"}function jE(i,o){i.removeChild(o)}function Vh(i,o){(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).removeChild(o)}function lm(i,o){var c=o,g=0;do{var S=c.nextSibling;if(i.removeChild(c),S&&S.nodeType===8)if(c=S.data,c===HS||c===Zw){if(g===0){i.removeChild(S),Hh(o);return}g--}else if(c===US||c===p0||c===Ym||c===xv||c===Fm)g++;else if(c===x0e)cm(i.ownerDocument.documentElement);else if(c===E0e){c=i.ownerDocument.head,cm(c);for(var w=c.firstChild;w;){var M=w.nextSibling,N=w.nodeName;w[Tm]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&w.rel.toLowerCase()==="stylesheet"||c.removeChild(w),w=M}}else c===S0e&&cm(i.ownerDocument.body);c=S}while(c);Hh(o)}function Dx(i,o){var c=i;i=0;do{var g=c.nextSibling;if(c.nodeType===1?o?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(o?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),g&&g.nodeType===8)if(c=g.data,c===HS){if(i===0)break;i--}else c!==US&&c!==p0&&c!==Ym&&c!==xv||i++;c=g}while(c)}function $E(i){Dx(i,!0)}function UE(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function HE(i){i.nodeValue=""}function qE(i){Dx(i,!1)}function GE(i,o){o=o[w0e],o=o!=null&&o.hasOwnProperty("display")?o.display:null,i.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}function py(i,o){i.nodeValue=o}function my(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":my(c),Oe(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function FE(i,o,c,g){for(;i.nodeType===1;){var S=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!g&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(g){if(!i[Tm])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==S.rel||i.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||i.getAttribute("title")!==(S.title==null?null:S.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(S.src==null?null:S.src)||i.getAttribute("type")!==(S.type==null?null:S.type)||i.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){St(S.name,"name");var w=S.name==null?null:""+S.name;if(S.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=zo(i.nextSibling),i===null)break}return null}function or(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=zo(i.nextSibling),i===null))return null;return i}function gy(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=zo(i.nextSibling),i===null))return null;return i}function Nx(i){return i.data===p0||i.data===Ym}function yy(i){return i.data===xv||i.data===p0&&i.ownerDocument.readyState!==mB}function PA(i,o){var c=i.ownerDocument;if(i.data===Ym)i._reactRetry=o;else if(i.data!==p0||c.readyState!==mB)o();else{var g=function(){o(),c.removeEventListener("DOMContentLoaded",g)};c.addEventListener("DOMContentLoaded",g),i._reactRetry=g}}function zo(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o===US||o===xv||o===p0||o===Ym||o===Fm||o===XC||o===pB)break;if(o===HS||o===Zw)return null}}return i}function YE(i){if(i.nodeType===1){for(var o=i.nodeName.toLowerCase(),c={},g=i.attributes,S=0;S<g.length;S++){var w=g[S];c[ld(w.name)]=w.name.toLowerCase()==="style"?Pl(i):w.value}return{type:o,props:c}}return i.nodeType===8?i.data===Fm?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:i.nodeValue}function sm(i,o,c){return c===null||c[b0e]!==!0?(i.nodeValue===o?i=null:(o=Iu(o),i=Iu(i.nodeValue)===o?null:i.nodeValue),i):null}function Uc(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c===HS||c===Zw){if(o===0)return zo(i.nextSibling);o--}else c!==US&&c!==xv&&c!==p0&&c!==Ym&&c!==Fm||o++}i=i.nextSibling}return null}function vy(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c===US||c===xv||c===p0||c===Ym||c===Fm){if(o===0)return i;o--}else c!==HS&&c!==Zw||o++}i=i.previousSibling}return null}function by(i){Hh(i)}function kx(i){Hh(i)}function Hc(i){Hh(i)}function jl(i,o,c,g,S){switch(S&&l1(i,g.ancestorInfo),o=dy(c),i){case"html":if(i=o.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=o.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=o.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function um(i,o,c,g){if(!c[hl]&&Ze(c)){var S=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",S,S,S)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(S=c.attributes;S.length;)c.removeAttributeNode(S[0]);$n(c,i,o),c[aa]=g,c[ya]=o}function cm(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);Oe(i)}function fm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function zx(i,o,c){var g=Ev;if(g&&typeof o=="string"&&o){var S=_r(o);S='link[rel="'+i+'"][href="'+S+'"]',typeof c=="string"&&(S+='[crossorigin="'+c+'"]'),SB.has(S)||(SB.add(S),i={rel:i,crossOrigin:c,href:o},g.querySelector(S)===null&&(o=g.createElement("link"),$n(o,"link",i),ot(o),g.head.appendChild(o)))}}function Ix(i,o,c,g){var S=(S=cl.current)?fm(S):null;if(!S)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=Bh(c.href),o=tt(S).hoistableStyles,g=o.get(c),g||(g={type:"style",instance:null,count:0,state:null},o.set(c,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Bh(c.href);var w=tt(S).hoistableStyles,M=w.get(i);if(!M&&(S=S.ownerDocument||S,M={type:"stylesheet",instance:null,count:0,state:{loading:Wm,preload:null}},w.set(i,M),(w=S.querySelector(ud(i)))&&!w._p&&(M.instance=w,M.state.loading=GS|iu),!au.has(i))){var N={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};au.set(i,N),w||XE(S,i,N,M.state)}if(o&&g===null)throw c=`

  - `+dm(o)+`
  + `+dm(c),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return M}if(o&&g!==null)throw c=`

  - `+dm(o)+`
  + `+dm(c),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(c=Ph(c),o=tt(S).hoistableScripts,g=o.get(c),g||(g={type:"script",instance:null,count:0,state:null},o.set(c,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+i+'". this is a bug in React.')}}function dm(i){var o=0,c="<link";return typeof i.rel=="string"?(o++,c+=' rel="'+i.rel+'"'):Ul.call(i,"rel")&&(o++,c+=' rel="'+(i.rel===null?"null":"invalid type "+typeof i.rel)+'"'),typeof i.href=="string"?(o++,c+=' href="'+i.href+'"'):Ul.call(i,"href")&&(o++,c+=' href="'+(i.href===null?"null":"invalid type "+typeof i.href)+'"'),typeof i.precedence=="string"?(o++,c+=' precedence="'+i.precedence+'"'):Ul.call(i,"precedence")&&(o++,c+=" precedence={"+(i.precedence===null?"null":"invalid type "+typeof i.precedence)+"}"),Object.getOwnPropertyNames(i).length>o&&(c+=" ..."),c+" />"}function Bh(i){return'href="'+_r(i)+'"'}function ud(i){return'link[rel="stylesheet"]['+i+"]"}function Lx(i){return bn({},i,{"data-precedence":i.precedence,precedence:null})}function XE(i,o,c,g){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?g.loading=GS:(o=i.createElement("link"),g.preload=o,o.addEventListener("load",function(){return g.loading|=GS}),o.addEventListener("error",function(){return g.loading|=bB}),$n(o,"link",c),ot(o),i.head.appendChild(o))}function Ph(i){return'[src="'+_r(i)+'"]'}function cd(i){return"script[async]"+i}function xy(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var g=i.querySelector('style[data-href~="'+_r(c.href)+'"]');if(g)return o.instance=g,ot(g),g;var S=bn({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return g=(i.ownerDocument||i).createElement("style"),ot(g),$n(g,"style",S),Sy(g,c.precedence,i),o.instance=g;case"stylesheet":S=Bh(c.href);var w=i.querySelector(ud(S));if(w)return o.state.loading|=iu,o.instance=w,ot(w),w;g=Lx(c),(S=au.get(S))&&Vx(g,S),w=(i.ownerDocument||i).createElement("link"),ot(w);var M=w;return M._p=new Promise(function(N,G){M.onload=N,M.onerror=G}),$n(w,"link",g),o.state.loading|=iu,Sy(w,c.precedence,i),o.instance=w;case"script":return w=Ph(c.src),(S=i.querySelector(cd(w)))?(o.instance=S,ot(S),S):(g=c,(S=au.get(w))&&(g=bn({},c),fd(g,S)),i=i.ownerDocument||i,S=i.createElement("script"),ot(S),$n(S,"link",g),i.head.appendChild(S),o.instance=S);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&iu)===Wm&&(g=o.instance,o.state.loading|=iu,Sy(g,c.precedence,i));return o.instance}function Sy(i,o,c){for(var g=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=g.length?g[g.length-1]:null,w=S,M=0;M<g.length;M++){var N=g[M];if(N.dataset.precedence===o)w=N;else if(w!==S)break}w?w.parentNode.insertBefore(i,w.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Vx(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function fd(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}function WE(i,o,c){if(eT===null){var g=new Map,S=eT=new Map;S.set(c,g)}else S=eT,g=S.get(c),g||(g=new Map,S.set(c,g));if(g.has(i))return g;for(g.set(i,null),c=c.getElementsByTagName(i),S=0;S<c.length;S++){var w=c[S];if(!(w[Tm]||w[aa]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!==kn){var M=w.getAttribute(o)||"";M=i+M;var N=g.get(M);N?N.push(w):g.set(M,[w])}}return g}function Bx(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function Nn(i,o,c){var g=!c.ancestorInfo.containerTagInScope;if(c.context===Sv||o.itemProp!=null)return!g||o.itemProp==null||i!=="meta"&&i!=="title"&&i!=="style"&&i!=="link"&&i!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",i,i),!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href===""){g&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence=="string"){i=o.href;var S=o.onError,w=o.disabled;c=[],o.onLoad&&c.push("`onLoad`"),S&&c.push("`onError`"),w!=null&&c.push("`disabled`"),S=ho(c,"and"),S+=c.length===1?" prop":" props",w=c.length===1?"an "+S:"the "+S,c.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',i,w,S)}g&&(typeof o.rel!="string"||typeof o.href!="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return i=o.precedence,o=o.disabled,typeof i!="string"&&g&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof i=="string"&&o==null;default:return!0}case"script":if(i=o.async&&typeof o.async!="function"&&typeof o.async!="symbol",!i||o.onLoad||o.onError||!o.src||typeof o.src!="string"){g&&(i?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":g&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",i)}return!1}function Ey(i){return!(i.type==="stylesheet"&&(i.state.loading&xB)===Wm)}function wy(i,o,c,g){if(c.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(c.state.loading&iu)===Wm){if(c.instance===null){var S=Bh(g.href),w=o.querySelector(ud(S));if(w){o=w._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=hm.bind(i),o.then(i,i)),c.state.loading|=iu,c.instance=w,ot(w);return}w=o.ownerDocument||o,g=Lx(g),(S=au.get(S))&&Vx(g,S),w=w.createElement("link"),ot(w);var M=w;M._p=new Promise(function(N,G){M.onload=N,M.onerror=G}),$n(w,"link",g),c.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&xB)===Wm&&(i.count++,c=hm.bind(i),o.addEventListener("load",c),o.addEventListener("error",c))}}function Px(i,o){return i.stylesheets&&i.count===0&&jh(i,i.stylesheets),0<i.count||0<i.imgCount?function(c){var g=setTimeout(function(){if(i.stylesheets&&jh(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},C0e+o);0<i.imgBytes&&JC===0&&(JC=125*IE()*M0e);var S=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&jh(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>JC?50:O0e)+o);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(g),clearTimeout(S)}}:null}function hm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}function jh(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,tT=new Map,o.forEach(pm,i),tT=null,hm.call(i))}function pm(i,o){if(!(o.state.loading&iu)){var c=tT.get(i);if(c)var g=c.get(eO);else{c=new Map,tT.set(i,c);for(var S=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<S.length;w++){var M=S[w];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(c.set(M.dataset.precedence,M),g=M)}g&&c.set(eO,g)}S=o.instance,M=S.getAttribute("data-precedence"),w=c.get(M)||g,w===g&&c.set(eO,S),c.set(M,S),this.count++,g=hm.bind(this),S.addEventListener("load",g),S.addEventListener("error",g),w?w.parentNode.insertBefore(S,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(S,i.firstChild)),o.state.loading|=iu}}function Ty(i,o,c,g,S,w,M,N,G){for(this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Xm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=g,this.onUncaughtError=S,this.onCaughtError=w,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,i=this.pendingUpdatersLaneMap=[],o=0;31>o;o++)i.push(new Set);this._debugRootType=c?"hydrateRoot()":"createRoot()"}function KE(i,o,c,g,S,w,M,N,G,Z,we,Ae){return i=new Ty(i,o,c,M,G,Z,we,Ae,N),o=Zhe,w===!0&&(o|=mo|Uu),o|=Sn,w=E(3,null,null,o),i.current=w,w.stateNode=i,o=M4(),Bf(o),i.pooledCache=o,Bf(o),w.memoizedState={element:g,isDehydrated:c,cache:o},ws(w),i}function jx(i){return i?(i=Jh,i):Jh}function $x(i,o,c,g,S,w){if(ga&&typeof ga.onScheduleFiberRoot=="function")try{ga.onScheduleFiberRoot($u,g,c)}catch(M){Fs||(Fs=!0,console.error("React instrumentation encountered an error: %o",M))}S=jx(S),g.context===null?g.context=S:g.pendingContext=S,fl&&Io!==null&&!AB&&(AB=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.

Check the render method of %s.`,ue(Io)||"Unknown")),g=Ts(o),g.payload={element:c},w=w===void 0?null:w,w!==null&&(typeof w!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w),g.callback=w),c=Da(i,g,o),c!==null&&(_l(o,"root.render()",null),Ur(c,i,o),mh(c,i,o))}function QE(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Ay(i,o){QE(i,o),(i=i.alternate)&&QE(i,o)}function Ux(i){if(i.tag===13||i.tag===31){var o=Wi(i,67108864);o!==null&&Ur(o,i,67108864),Ay(i,67108864)}}function lr(i){if(i.tag===13||i.tag===31){var o=ea(i);o=Ht(o);var c=Wi(i,o);c!==null&&Ur(c,i,o),Ay(i,o)}}function Hx(){return Io}function ta(i,o,c,g){var S=$e.T;$e.T=null;var w=Jn.p;try{Jn.p=Oi,Cy(i,o,c,g)}finally{Jn.p=w,$e.T=S}}function jA(i,o,c,g){var S=$e.T;$e.T=null;var w=Jn.p;try{Jn.p=ia,Cy(i,o,c,g)}finally{Jn.p=w,$e.T=S}}function Cy(i,o,c,g){if(rT){var S=qx(g);if(S===null)Ir(i,o,g,iT,c),gm(i,g);else if(ZE(S,i,o,c,g))g.stopPropagation();else if(gm(i,g),o&4&&-1<_0e.indexOf(i)){for(;S!==null;){var w=Ze(S);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var M=Dn(w.pendingLanes);if(M!==0){var N=w;for(N.pendingLanes|=2,N.entangledLanes|=2;M;){var G=1<<31-ra(M);N.entanglements[1]|=G,M&=~G}La(w),(Xn&(la|Yl))===xa&&(jw=ti()+JV,kh(0))}}break;case 31:case 13:N=Wi(w,2),N!==null&&Ur(N,w,2),nd(),Ay(w,2)}if(w=qx(g),w===null&&Ir(i,o,g,iT,c),w===S)break;S=w}S!==null&&g.stopPropagation()}else Ir(i,o,g,null,c)}}function qx(i){return i=tp(i),mm(i)}function mm(i){if(iT=null,i=nt(i),i!==null){var o=z(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=V(o),i!==null)return i;i=null}else if(c===31){if(i=P(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return iT=i,null}function Oy(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Oi;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 ia;case"message":switch(GA()){case Py:return Oi;case jy:return ia;case md:case rw:return Lo;case Em:return qc;default:return Lo}default:return Lo}}function gm(i,o){switch(i){case"focusin":case"focusout":m0=null;break;case"dragenter":case"dragleave":g0=null;break;case"mouseover":case"mouseout":y0=null;break;case"pointerover":case"pointerout":YS.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":XS.delete(o.pointerId)}}function $h(i,o,c,g,S,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:c,eventSystemFlags:g,nativeEvent:w,targetContainers:[S]},o!==null&&(o=Ze(o),o!==null&&Ux(o)),i):(i.eventSystemFlags|=g,o=i.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),i)}function ZE(i,o,c,g,S){switch(o){case"focusin":return m0=$h(m0,i,o,c,g,S),!0;case"dragenter":return g0=$h(g0,i,o,c,g,S),!0;case"mouseover":return y0=$h(y0,i,o,c,g,S),!0;case"pointerover":var w=S.pointerId;return YS.set(w,$h(YS.get(w)||null,i,o,c,g,S)),!0;case"gotpointercapture":return w=S.pointerId,XS.set(w,$h(XS.get(w)||null,i,o,c,g,S)),!0}return!1}function My(i){var o=nt(i.target);if(o!==null){var c=z(o);if(c!==null){if(o=c.tag,o===13){if(o=V(c),o!==null){i.blockedOn=o,J(i.priority,function(){lr(c)});return}}else if(o===31){if(o=P(c),o!==null){i.blockedOn=o,J(i.priority,function(){lr(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Uh(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=qx(i.nativeEvent);if(c===null){c=i.nativeEvent;var g=new c.constructor(c.type,c),S=g;iS!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),iS=S,c.target.dispatchEvent(g),iS===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),iS=null}else return o=Ze(c),o!==null&&Ux(o),i.blockedOn=c,!1;o.shift()}return!0}function JE(i,o,c){Uh(i)&&c.delete(o)}function ew(){tO=!1,m0!==null&&Uh(m0)&&(m0=null),g0!==null&&Uh(g0)&&(g0=null),y0!==null&&Uh(y0)&&(y0=null),YS.forEach(JE),XS.forEach(JE)}function Ry(i,o){i.blockedOn===o&&(i.blockedOn=null,tO||(tO=!0,ei.unstable_scheduleCallback(ei.unstable_NormalPriority,ew)))}function Gx(i){aT!==i&&(aT=i,ei.unstable_scheduleCallback(ei.unstable_NormalPriority,function(){aT===i&&(aT=null);for(var o=0;o<i.length;o+=3){var c=i[o],g=i[o+1],S=i[o+2];if(typeof g!="function"){if(mm(g||c)===null)continue;break}var w=Ze(c);w!==null&&(i.splice(o,3),o-=3,c={pending:!0,data:S,method:c.method,action:g},Object.freeze(c),Sh(w,c,g,S))}}))}function Hh(i){function o(G){return Ry(G,i)}m0!==null&&Ry(m0,i),g0!==null&&Ry(g0,i),y0!==null&&Ry(y0,i),YS.forEach(o),XS.forEach(o);for(var c=0;c<v0.length;c++){var g=v0[c];g.blockedOn===i&&(g.blockedOn=null)}for(;0<v0.length&&(c=v0[0],c.blockedOn===null);)My(c),c.blockedOn===null&&v0.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(g=0;g<c.length;g+=3){var S=c[g],w=c[g+1],M=S[ya]||null;if(typeof w=="function")M||Gx(c);else if(M){var N=null;if(w&&w.hasAttribute("formAction")){if(S=w,M=w[ya]||null)N=M.formAction;else if(mm(S)!==null)continue}else N=M.action;typeof N=="function"?c[g+1]=N:(c.splice(g,3),g-=3),Gx(c)}}}function tw(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(M){return S=M})},focusReset:"manual",scroll:"manual"})}function o(){S!==null&&(S(),S=null),g||setTimeout(c,20)}function c(){if(!g&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,S=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(c,100),function(){g=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),S!==null&&(S(),S=null)}}}function qs(i){this._internalRoot=i}function ym(i){this._internalRoot=i}function Fx(i){i[hl]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ei=fO(),Yx=Nd(),$A=uT(),bn=Object.assign,Xx=Symbol.for("react.element"),ul=Symbol.for("react.transitional.element"),qh=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),Gh=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),Dy=Symbol.for("react.consumer"),$l=Symbol.for("react.context"),Bu=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),Ny=Symbol.for("react.suspense_list"),dd=Symbol.for("react.memo"),ci=Symbol.for("react.lazy"),Wx=Symbol.for("react.activity"),UA=Symbol.for("react.memo_cache_sentinel"),hd=Symbol.iterator,nw=Symbol.for("react.client.reference"),Ci=Array.isArray,$e=Yx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jn=$A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,HA=Object.freeze({pending:!1,data:null,method:null,action:null}),Kx=[],Qx=[],Pu=-1,ju=U(null),Gs=U(null),cl=U(null),vm=U(null),bm=0,pd,Fh,Zx,xm,ky,zy,Sm;F.__reactDisabledLog=!0;var Iy,Jx,eS=!1,Ly=new(typeof WeakMap=="function"?WeakMap:Map),Io=null,fl=!1,Ul=Object.prototype.hasOwnProperty,Yh=ei.unstable_scheduleCallback,Vy=ei.unstable_cancelCallback,By=ei.unstable_shouldYield,qA=ei.unstable_requestPaint,ti=ei.unstable_now,GA=ei.unstable_getCurrentPriorityLevel,Py=ei.unstable_ImmediatePriority,jy=ei.unstable_UserBlockingPriority,md=ei.unstable_NormalPriority,rw=ei.unstable_LowPriority,Em=ei.unstable_IdlePriority,iw=ei.log,aw=ei.unstable_setDisableYieldValue,$u=null,ga=null,Fs=!1,dl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ra=Math.clz32?Math.clz32:Mt,$y=Math.log,tS=Math.LN2,wm=256,Xh=262144,Hl=4194304,Oi=2,ia=8,Lo=32,qc=268435456,Ba=Math.random().toString(36).slice(2),aa="__reactFiber$"+Ba,ya="__reactProps$"+Ba,hl="__reactContainer$"+Ba,nS="__reactEvents$"+Ba,ow="__reactListeners$"+Ba,Uy="__reactHandles$"+Ba,rS="__reactResources$"+Ba,Tm="__reactMarker$"+Ba,Am=new Set,Ys={},Hy={},Wh={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lw=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]*$"),qy={},Cm={},sw=/[\n"\\]/g,uw=!1,Om=!1,s=!1,f=!1,m=!1,b=!1,C=["value","defaultValue"],O=!1,$=/["'&<>\n\t]|^\s|\s$/,ne="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ve="applet caption html table td th marquee object template foreignObject desc title".split(" "),ke=ve.concat(["button"]),He="dd dt li option optgroup p rp rt".split(" "),Qe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ze={},je={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},kt=/([A-Z])/g,Zt=/^ms-/,pr=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Te=/-(.)/g,Ne=/;\s*$/,Fe={},Ut={},Yn=!1,It=!1,yn=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(" ")),On="http://www.w3.org/1998/Math/MathML",kn="http://www.w3.org/2000/svg",Gc=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"]]),Gy={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},CL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Fy={},che=RegExp("^(aria)-[: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]*$"),fhe=RegExp("^(aria)[A-Z][: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]*$"),OL=!1,Vo={},ML=/^on./,dhe=/^on[^A-Z]/,hhe=RegExp("^(aria)-[: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]*$"),phe=RegExp("^(aria)[A-Z][: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]*$"),mhe=/^[\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,iS=null,Yy=null,Xy=null,FA=!1,Fc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),YA=!1;if(Fc)try{var aS={};Object.defineProperty(aS,"passive",{get:function(){YA=!0}}),window.addEventListener("test",aS,aS),window.removeEventListener("test",aS,aS)}catch{YA=!1}var Kh=null,XA=null,cw=null,Mm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fw=Wr(Mm),oS=bn({},Mm,{view:0,detail:0}),ghe=Wr(oS),WA,KA,lS,dw=bn({},oS,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Df,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==lS&&(lS&&i.type==="mousemove"?(WA=i.screenX-lS.screenX,KA=i.screenY-lS.screenY):KA=WA=0,lS=i),WA)},movementY:function(i){return"movementY"in i?i.movementY:KA}}),RL=Wr(dw),yhe=bn({},dw,{dataTransfer:0}),vhe=Wr(yhe),bhe=bn({},oS,{relatedTarget:0}),QA=Wr(bhe),xhe=bn({},Mm,{animationName:0,elapsedTime:0,pseudoElement:0}),She=Wr(xhe),Ehe=bn({},Mm,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),whe=Wr(Ehe),The=bn({},Mm,{data:0}),_L=Wr(The),Ahe=_L,Che={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ohe={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"},Mhe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Rhe=bn({},oS,{key:function(i){if(i.key){var o=Che[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=lh(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Ohe[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Df,charCode:function(i){return i.type==="keypress"?lh(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?lh(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),_he=Wr(Rhe),Dhe=bn({},dw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),DL=Wr(Dhe),Nhe=bn({},oS,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Df}),khe=Wr(Nhe),zhe=bn({},Mm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ihe=Wr(zhe),Lhe=bn({},dw,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Vhe=Wr(Lhe),Bhe=bn({},Mm,{newState:0,oldState:0}),Phe=Wr(Bhe),jhe=[9,13,27,32],NL=229,ZA=Fc&&"CompositionEvent"in window,sS=null;Fc&&"documentMode"in document&&(sS=document.documentMode);var $he=Fc&&"TextEvent"in window&&!sS,kL=Fc&&(!ZA||sS&&8<sS&&11>=sS),zL=32,IL=String.fromCharCode(zL),LL=!1,Wy=!1,Uhe={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},uS=null,cS=null,VL=!1;Fc&&(VL=f1("input")&&(!document.documentMode||9<document.documentMode));var Bo=typeof Object.is=="function"?Object.is:rE,Hhe=Fc&&"documentMode"in document&&11>=document.documentMode,Ky=null,JA=null,fS=null,eC=!1,Qy={animationend:Nf("Animation","AnimationEnd"),animationiteration:Nf("Animation","AnimationIteration"),animationstart:Nf("Animation","AnimationStart"),transitionrun:Nf("Transition","TransitionRun"),transitionstart:Nf("Transition","TransitionStart"),transitioncancel:Nf("Transition","TransitionCancel"),transitionend:Nf("Transition","TransitionEnd")},tC={},BL={};Fc&&(BL=document.createElement("div").style,"AnimationEvent"in window||(delete Qy.animationend.animation,delete Qy.animationiteration.animation,delete Qy.animationstart.animation),"TransitionEvent"in window||delete Qy.transitionend.transition);var PL=kf("animationend"),jL=kf("animationiteration"),$L=kf("animationstart"),qhe=kf("transitionrun"),Ghe=kf("transitionstart"),Fhe=kf("transitioncancel"),UL=kf("transitionend"),HL=new Map,nC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nC.push("scrollEnd");var qL=0;if(typeof performance=="object"&&typeof performance.now=="function")var Yhe=performance,GL=function(){return Yhe.now()};else{var Xhe=Date;GL=function(){return Xhe.now()}}var rC=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Whe="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",hw=0,iC=1,aC=2,oC=3,pw="– ",mw="+ ",FL="  ",Lr=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Xs="Components ⚛",Un="Scheduler ⚛",qn="Blocking",Qh=!1,gd={color:"primary",properties:null,tooltipText:"",track:Xs},Zh={start:-0,end:-0,detail:{devtools:gd}},Khe=["Changed Props",""],YL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Qhe=["Changed Props",YL],dS=1,yd=2,Ws=[],Zy=0,lC=0,Jh={};Object.freeze(Jh);var Ks=null,Jy=null,rn=0,Zhe=1,Sn=2,mo=8,Uu=16,Jhe=32,XL=!1;try{var WL=Object.preventExtensions({})}catch{XL=!0}var sC=new WeakMap,ev=[],tv=0,gw=null,hS=0,Qs=[],Zs=0,Rm=null,vd=1,bd="",Pa=null,Vr=null,Vn=!1,Yc=!1,ql=null,e0=null,Js=!1,uC=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),cC=U(null),fC=U(null),KL={},yw=null,nv=null,rv=!1,e0e=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,g){i.push(g)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},t0e=ei.unstable_scheduleCallback,n0e=ei.unstable_NormalPriority,Bi={$$typeof:$l,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Pi=ei.unstable_now,vw=console.createTask?console.createTask:function(){return null},pS=1,bw=2,va=-0,t0=-0,xd=-0,Sd=null,Po=-1.1,_m=-0,ni=-0,Xt=-1.1,nn=-1.1,Hr=null,fi=!1,Dm=-0,Xc=-1.1,mS=null,n0=0,dC=null,hC=null,Nm=-1.1,gS=null,iv=-1.1,xw=-1.1,Ed=-0,wd=-1.1,eu=-1.1,pC=0,yS=null,QL=null,ZL=null,r0=-1.1,km=null,i0=-1.1,Sw=-1.1,JL=-0,eV=-0,Ew=0,r0e=null,tV=0,vS=-1.1,ww=!1,Tw=!1,bS=null,mC=0,zm=0,av=null,nV=$e.S;$e.S=function(i,o){if(QV=ti(),typeof o=="object"&&o!==null&&typeof o.then=="function"){if(0>wd&&0>eu){wd=Pi();var c=Lh(),g=Ih();(c!==i0||g!==km)&&(i0=-1.1),r0=c,km=g}yE(i,o)}nV!==null&&nV(i,o)};var Im=U(null),Hu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},xS=[],SS=[],ES=[],wS=[],TS=[],AS=[],Lm=new Set;Hu.recordUnsafeLifecycleWarnings=function(i,o){Lm.has(i.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&xS.push(i),i.mode&mo&&typeof o.UNSAFE_componentWillMount=="function"&&SS.push(i),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ES.push(i),i.mode&mo&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&wS.push(i),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&TS.push(i),i.mode&mo&&typeof o.UNSAFE_componentWillUpdate=="function"&&AS.push(i))},Hu.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<xS.length&&(xS.forEach(function(N){i.add(ue(N)||"Component"),Lm.add(N.type)}),xS=[]);var o=new Set;0<SS.length&&(SS.forEach(function(N){o.add(ue(N)||"Component"),Lm.add(N.type)}),SS=[]);var c=new Set;0<ES.length&&(ES.forEach(function(N){c.add(ue(N)||"Component"),Lm.add(N.type)}),ES=[]);var g=new Set;0<wS.length&&(wS.forEach(function(N){g.add(ue(N)||"Component"),Lm.add(N.type)}),wS=[]);var S=new Set;0<TS.length&&(TS.forEach(function(N){S.add(ue(N)||"Component"),Lm.add(N.type)}),TS=[]);var w=new Set;if(0<AS.length&&(AS.forEach(function(N){w.add(ue(N)||"Component"),Lm.add(N.type)}),AS=[]),0<o.size){var M=T(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: %s`,M)}0<g.size&&(M=T(g),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state

Please update the following components: %s`,M)),0<w.size&&(M=T(w),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.

Please update the following components: %s`,M)),0<i.size&&(M=T(i),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,M)),0<c.size&&(M=T(c),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,M)),0<S.size&&(M=T(S),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,M))};var Aw=new Map,rV=new Set;Hu.recordLegacyContextWarning=function(i,o){for(var c=null,g=i;g!==null;)g.mode&mo&&(c=g),g=g.return;c===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!rV.has(i.type)&&(g=Aw.get(c),i.type.contextTypes!=null||i.type.childContextTypes!=null||o!==null&&typeof o.getChildContext=="function")&&(g===void 0&&(g=[],Aw.set(c,g)),g.push(i))},Hu.flushLegacyContextWarning=function(){Aw.forEach(function(i){if(i.length!==0){var o=i[0],c=new Set;i.forEach(function(S){c.add(ue(S)||"Component"),rV.add(S.type)});var g=T(c);Ve(o,function(){console.error(`Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: %s

Learn more about this warning here: https://react.dev/link/legacy-context`,g)})}})},Hu.discardPendingWarnings=function(){xS=[],SS=[],ES=[],wS=[],TS=[],AS=[],Aw=new Map};var iV={react_stack_bottom_frame:function(i,o,c){var g=fl;fl=!0;try{return i(o,c)}finally{fl=g}}},gC=iV.react_stack_bottom_frame.bind(iV),aV={react_stack_bottom_frame:function(i){var o=fl;fl=!0;try{return i.render()}finally{fl=o}}},oV=aV.react_stack_bottom_frame.bind(aV),lV={react_stack_bottom_frame:function(i,o){try{o.componentDidMount()}catch(c){Wn(i,i.return,c)}}},yC=lV.react_stack_bottom_frame.bind(lV),sV={react_stack_bottom_frame:function(i,o,c,g,S){try{o.componentDidUpdate(c,g,S)}catch(w){Wn(i,i.return,w)}}},uV=sV.react_stack_bottom_frame.bind(sV),cV={react_stack_bottom_frame:function(i,o){var c=o.stack;i.componentDidCatch(o.value,{componentStack:c!==null?c:""})}},i0e=cV.react_stack_bottom_frame.bind(cV),fV={react_stack_bottom_frame:function(i,o,c){try{c.componentWillUnmount()}catch(g){Wn(i,o,g)}}},dV=fV.react_stack_bottom_frame.bind(fV),hV={react_stack_bottom_frame:function(i){var o=i.create;return i=i.inst,o=o(),i.destroy=o}},a0e=hV.react_stack_bottom_frame.bind(hV),pV={react_stack_bottom_frame:function(i,o,c){try{c()}catch(g){Wn(i,o,g)}}},o0e=pV.react_stack_bottom_frame.bind(pV),mV={react_stack_bottom_frame:function(i){var o=i._init;return o(i._payload)}},l0e=mV.react_stack_bottom_frame.bind(mV),ov=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),vC=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Cw=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Ow={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Vm=null,CS=!1,lv=null,OS=0,En=null,bC,gV=bC=!1,yV={},vV={},bV={};x=function(i,o,c){if(c!==null&&typeof c=="object"&&c._store&&(!c._store.validated&&c.key==null||c._store.validated===2)){if(typeof c._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");c._store.validated=1;var g=ue(i),S=g||"null";if(!yV[S]){yV[S]=!0,c=c._owner,i=i._debugOwner;var w="";i&&typeof i.tag=="number"&&(S=ue(i))&&(w=`

Check the render method of \``+S+"`."),w||g&&(w=`

Check the top-level render call using <`+g+">.");var M="";c!=null&&i!==c&&(g=null,typeof c.tag=="number"?g=ue(c):typeof c.name=="string"&&(g=c.name),g&&(M=" It was passed a child from "+g+".")),Ve(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',w,M)})}}};var Bm=wr(!0),xV=wr(!1),SV=0,EV=1,wV=2,xC=3,a0=!1,TV=!1,SC=null,EC=!1,sv=U(null),Mw=U(0),Gl=U(null),tu=null,uv=1,MS=2,Mi=U(0),Rw=0,nu=1,jo=2,Fl=4,$o=8,cv,AV=new Set,CV=new Set,wC=new Set,OV=new Set,Td=0,un=null,Ar=null,ji=null,_w=!1,fv=!1,Pm=!1,Dw=0,RS=0,Ad=null,s0e=0,u0e=25,Pe=null,ru=null,Cd=-1,_S=!1,DS={readContext:Er,use:io,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useLayoutEffect:Kr,useInsertionEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useSyncExternalStore:Kr,useId:Kr,useHostTransitionStatus:Kr,useFormState:Kr,useActionState:Kr,useOptimistic:Kr,useMemoCache:Kr,useCacheRefresh:Kr};DS.useEffectEvent=Kr;var TC=null,MV=null,AC=null,RV=null,Wc=null,qu=null,Nw=null;TC={readContext:function(i){return Er(i)},use:io,useCallback:function(i,o){return Pe="useCallback",qt(),Uf(o),Rs(i,o)},useContext:function(i){return Pe="useContext",qt(),Er(i)},useEffect:function(i,o){return Pe="useEffect",qt(),Uf(o),Mp(i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",qt(),Uf(c),_p(i,o,c)},useInsertionEffect:function(i,o){Pe="useInsertionEffect",qt(),Uf(o),tl(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",qt(),Uf(o),oo(i,o)},useMemo:function(i,o){Pe="useMemo",qt(),Uf(o);var c=$e.H;$e.H=Wc;try{return jr(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",qt();var g=$e.H;$e.H=Wc;try{return D1(i,o,c)}finally{$e.H=g}},useRef:function(i){return Pe="useRef",qt(),z1(i)},useState:function(i){Pe="useState",qt();var o=$e.H;$e.H=Wc;try{return qf(i)}finally{$e.H=o}},useDebugValue:function(){Pe="useDebugValue",qt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",qt(),Ll(i,o)},useTransition:function(){return Pe="useTransition",qt(),B4()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",qt(),yh(i,o,c)},useId:function(){return Pe="useId",qt(),L1()},useFormState:function(i,o){return Pe="useFormState",qt(),M1(),Ms(i,o)},useActionState:function(i,o){return Pe="useActionState",qt(),Ms(i,o)},useOptimistic:function(i){return Pe="useOptimistic",qt(),vh(i)},useHostTransitionStatus:_u,useMemoCache:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",qt(),V1()},useEffectEvent:function(i){return Pe="useEffectEvent",qt(),Rp(i)}},MV={readContext:function(i){return Er(i)},use:io,useCallback:function(i,o){return Pe="useCallback",lt(),Rs(i,o)},useContext:function(i){return Pe="useContext",lt(),Er(i)},useEffect:function(i,o){return Pe="useEffect",lt(),Mp(i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",lt(),_p(i,o,c)},useInsertionEffect:function(i,o){Pe="useInsertionEffect",lt(),tl(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",lt(),oo(i,o)},useMemo:function(i,o){Pe="useMemo",lt();var c=$e.H;$e.H=Wc;try{return jr(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",lt();var g=$e.H;$e.H=Wc;try{return D1(i,o,c)}finally{$e.H=g}},useRef:function(i){return Pe="useRef",lt(),z1(i)},useState:function(i){Pe="useState",lt();var o=$e.H;$e.H=Wc;try{return qf(i)}finally{$e.H=o}},useDebugValue:function(){Pe="useDebugValue",lt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",lt(),Ll(i,o)},useTransition:function(){return Pe="useTransition",lt(),B4()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",lt(),yh(i,o,c)},useId:function(){return Pe="useId",lt(),L1()},useActionState:function(i,o){return Pe="useActionState",lt(),Ms(i,o)},useFormState:function(i,o){return Pe="useFormState",lt(),M1(),Ms(i,o)},useOptimistic:function(i){return Pe="useOptimistic",lt(),vh(i)},useHostTransitionStatus:_u,useMemoCache:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",lt(),V1()},useEffectEvent:function(i){return Pe="useEffectEvent",lt(),Rp(i)}},AC={readContext:function(i){return Er(i)},use:io,useCallback:function(i,o){return Pe="useCallback",lt(),ha(i,o)},useContext:function(i){return Pe="useContext",lt(),Er(i)},useEffect:function(i,o){Pe="useEffect",lt(),Ki(2048,$o,i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",lt(),Dp(i,o,c)},useInsertionEffect:function(i,o){return Pe="useInsertionEffect",lt(),Ki(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",lt(),Ki(4,Fl,i,o)},useMemo:function(i,o){Pe="useMemo",lt();var c=$e.H;$e.H=qu;try{return Yf(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",lt();var g=$e.H;$e.H=qu;try{return Il(i,o,c)}finally{$e.H=g}},useRef:function(){return Pe="useRef",lt(),Qn().memoizedState},useState:function(){Pe="useState",lt();var i=$e.H;$e.H=qu;try{return Il(ao)}finally{$e.H=i}},useDebugValue:function(){Pe="useDebugValue",lt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",lt(),pn(i,o)},useTransition:function(){return Pe="useTransition",lt(),$r()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",lt(),Tp(i,o,c)},useId:function(){return Pe="useId",lt(),Qn().memoizedState},useFormState:function(i){return Pe="useFormState",lt(),M1(),xh(i)},useActionState:function(i){return Pe="useActionState",lt(),xh(i)},useOptimistic:function(i,o){return Pe="useOptimistic",lt(),bh(i,o)},useHostTransitionStatus:_u,useMemoCache:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",lt(),Qn().memoizedState},useEffectEvent:function(i){return Pe="useEffectEvent",lt(),da(i)}},RV={readContext:function(i){return Er(i)},use:io,useCallback:function(i,o){return Pe="useCallback",lt(),ha(i,o)},useContext:function(i){return Pe="useContext",lt(),Er(i)},useEffect:function(i,o){Pe="useEffect",lt(),Ki(2048,$o,i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",lt(),Dp(i,o,c)},useInsertionEffect:function(i,o){return Pe="useInsertionEffect",lt(),Ki(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",lt(),Ki(4,Fl,i,o)},useMemo:function(i,o){Pe="useMemo",lt();var c=$e.H;$e.H=Nw;try{return Yf(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",lt();var g=$e.H;$e.H=Nw;try{return _c(i,o,c)}finally{$e.H=g}},useRef:function(){return Pe="useRef",lt(),Qn().memoizedState},useState:function(){Pe="useState",lt();var i=$e.H;$e.H=Nw;try{return _c(ao)}finally{$e.H=i}},useDebugValue:function(){Pe="useDebugValue",lt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",lt(),ir(i,o)},useTransition:function(){return Pe="useTransition",lt(),I1()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",lt(),Tp(i,o,c)},useId:function(){return Pe="useId",lt(),Qn().memoizedState},useFormState:function(i){return Pe="useFormState",lt(),M1(),zc(i)},useActionState:function(i){return Pe="useActionState",lt(),zc(i)},useOptimistic:function(i,o){return Pe="useOptimistic",lt(),I4(i,o)},useHostTransitionStatus:_u,useMemoCache:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",lt(),Qn().memoizedState},useEffectEvent:function(i){return Pe="useEffectEvent",lt(),da(i)}},Wc={readContext:function(i){return y(),Er(i)},use:function(i){return h(),io(i)},useCallback:function(i,o){return Pe="useCallback",h(),qt(),Rs(i,o)},useContext:function(i){return Pe="useContext",h(),qt(),Er(i)},useEffect:function(i,o){return Pe="useEffect",h(),qt(),Mp(i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",h(),qt(),_p(i,o,c)},useInsertionEffect:function(i,o){Pe="useInsertionEffect",h(),qt(),tl(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",h(),qt(),oo(i,o)},useMemo:function(i,o){Pe="useMemo",h(),qt();var c=$e.H;$e.H=Wc;try{return jr(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",h(),qt();var g=$e.H;$e.H=Wc;try{return D1(i,o,c)}finally{$e.H=g}},useRef:function(i){return Pe="useRef",h(),qt(),z1(i)},useState:function(i){Pe="useState",h(),qt();var o=$e.H;$e.H=Wc;try{return qf(i)}finally{$e.H=o}},useDebugValue:function(){Pe="useDebugValue",h(),qt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",h(),qt(),Ll(i,o)},useTransition:function(){return Pe="useTransition",h(),qt(),B4()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",h(),qt(),yh(i,o,c)},useId:function(){return Pe="useId",h(),qt(),L1()},useFormState:function(i,o){return Pe="useFormState",h(),qt(),Ms(i,o)},useActionState:function(i,o){return Pe="useActionState",h(),qt(),Ms(i,o)},useOptimistic:function(i){return Pe="useOptimistic",h(),qt(),vh(i)},useMemoCache:function(i){return h(),Tu(i)},useHostTransitionStatus:_u,useCacheRefresh:function(){return Pe="useCacheRefresh",qt(),V1()},useEffectEvent:function(i){return Pe="useEffectEvent",h(),qt(),Rp(i)}},qu={readContext:function(i){return y(),Er(i)},use:function(i){return h(),io(i)},useCallback:function(i,o){return Pe="useCallback",h(),lt(),ha(i,o)},useContext:function(i){return Pe="useContext",h(),lt(),Er(i)},useEffect:function(i,o){Pe="useEffect",h(),lt(),Ki(2048,$o,i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",h(),lt(),Dp(i,o,c)},useInsertionEffect:function(i,o){return Pe="useInsertionEffect",h(),lt(),Ki(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",h(),lt(),Ki(4,Fl,i,o)},useMemo:function(i,o){Pe="useMemo",h(),lt();var c=$e.H;$e.H=qu;try{return Yf(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",h(),lt();var g=$e.H;$e.H=qu;try{return Il(i,o,c)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),lt(),Qn().memoizedState},useState:function(){Pe="useState",h(),lt();var i=$e.H;$e.H=qu;try{return Il(ao)}finally{$e.H=i}},useDebugValue:function(){Pe="useDebugValue",h(),lt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",h(),lt(),pn(i,o)},useTransition:function(){return Pe="useTransition",h(),lt(),$r()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",h(),lt(),Tp(i,o,c)},useId:function(){return Pe="useId",h(),lt(),Qn().memoizedState},useFormState:function(i){return Pe="useFormState",h(),lt(),xh(i)},useActionState:function(i){return Pe="useActionState",h(),lt(),xh(i)},useOptimistic:function(i,o){return Pe="useOptimistic",h(),lt(),bh(i,o)},useMemoCache:function(i){return h(),Tu(i)},useHostTransitionStatus:_u,useCacheRefresh:function(){return Pe="useCacheRefresh",lt(),Qn().memoizedState},useEffectEvent:function(i){return Pe="useEffectEvent",h(),lt(),da(i)}},Nw={readContext:function(i){return y(),Er(i)},use:function(i){return h(),io(i)},useCallback:function(i,o){return Pe="useCallback",h(),lt(),ha(i,o)},useContext:function(i){return Pe="useContext",h(),lt(),Er(i)},useEffect:function(i,o){Pe="useEffect",h(),lt(),Ki(2048,$o,i,o)},useImperativeHandle:function(i,o,c){return Pe="useImperativeHandle",h(),lt(),Dp(i,o,c)},useInsertionEffect:function(i,o){return Pe="useInsertionEffect",h(),lt(),Ki(4,jo,i,o)},useLayoutEffect:function(i,o){return Pe="useLayoutEffect",h(),lt(),Ki(4,Fl,i,o)},useMemo:function(i,o){Pe="useMemo",h(),lt();var c=$e.H;$e.H=qu;try{return Yf(i,o)}finally{$e.H=c}},useReducer:function(i,o,c){Pe="useReducer",h(),lt();var g=$e.H;$e.H=qu;try{return _c(i,o,c)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),lt(),Qn().memoizedState},useState:function(){Pe="useState",h(),lt();var i=$e.H;$e.H=qu;try{return _c(ao)}finally{$e.H=i}},useDebugValue:function(){Pe="useDebugValue",h(),lt()},useDeferredValue:function(i,o){return Pe="useDeferredValue",h(),lt(),ir(i,o)},useTransition:function(){return Pe="useTransition",h(),lt(),I1()},useSyncExternalStore:function(i,o,c){return Pe="useSyncExternalStore",h(),lt(),Tp(i,o,c)},useId:function(){return Pe="useId",h(),lt(),Qn().memoizedState},useFormState:function(i){return Pe="useFormState",h(),lt(),zc(i)},useActionState:function(i){return Pe="useActionState",h(),lt(),zc(i)},useOptimistic:function(i,o){return Pe="useOptimistic",h(),lt(),I4(i,o)},useMemoCache:function(i){return h(),Tu(i)},useHostTransitionStatus:_u,useCacheRefresh:function(){return Pe="useCacheRefresh",lt(),Qn().memoizedState},useEffectEvent:function(i){return Pe="useEffectEvent",h(),lt(),da(i)}};var _V={},DV=new Set,NV=new Set,kV=new Set,zV=new Set,IV=new Set,LV=new Set,VV=new Set,BV=new Set,PV=new Set,jV=new Set;Object.freeze(_V);var CC={enqueueSetState:function(i,o,c){i=i._reactInternals;var g=ea(i),S=Ts(g);S.payload=o,c!=null&&(Th(c),S.callback=c),o=Da(i,S,g),o!==null&&(_l(g,"this.setState()",i),Ur(o,i,g),mh(o,i,g))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var g=ea(i),S=Ts(g);S.tag=EV,S.payload=o,c!=null&&(Th(c),S.callback=c),o=Da(i,S,g),o!==null&&(_l(g,"this.replaceState()",i),Ur(o,i,g),mh(o,i,g))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=ea(i),g=Ts(c);g.tag=wV,o!=null&&(Th(o),g.callback=o),o=Da(i,g,c),o!==null&&(_l(c,"this.forceUpdate()",i),Ur(o,i,c),mh(o,i,c))}},dv=null,OC=null,MC=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),$i=!1,$V={},UV={},HV={},qV={},hv=!1,GV={},kw={},RC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},FV=!1,YV=null;YV=new Set;var Od=!1,Ui=!1,_C=!1,XV=typeof WeakSet=="function"?WeakSet:Set,ba=null,pv=null,mv=null,Hi=null,pl=!1,Gu=null,oa=!1,NS=8192,c0e={getCacheForType:function(i){var o=Er(Bi),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c},cacheSignal:function(){return Er(Bi).controller.signal},getOwner:function(){return Io}};if(typeof Symbol=="function"&&Symbol.for){var kS=Symbol.for;kS("selector.component"),kS("selector.has_pseudo_class"),kS("selector.role"),kS("selector.test_id"),kS("selector.text")}var f0e=[],d0e=typeof WeakMap=="function"?WeakMap:Map,xa=0,la=2,Yl=4,Md=0,zS=1,jm=2,zw=3,o0=4,Iw=6,WV=5,Xn=xa,Cr=null,Mn=null,wn=0,ml=0,Lw=1,$m=2,IS=3,KV=4,DC=5,LS=6,Vw=7,NC=8,Um=9,mr=ml,Xl=null,l0=!1,gv=!1,kC=!1,Kc=0,ri=Md,s0=0,u0=0,zC=0,gl=0,Hm=0,VS=null,Uo=null,Bw=!1,Pw=0,QV=0,ZV=300,jw=1/0,JV=500,BS=null,xi=null,c0=null,$w=0,IC=1,LC=2,eB=3,f0=0,tB=1,nB=2,rB=3,iB=4,Uw=5,qi=0,d0=null,yv=null,Fu=0,VC=0,BC=-0,PC=null,aB=null,oB=null,Yu=$w,lB=null,h0e=50,PS=0,jC=null,$C=!1,Hw=!1,p0e=50,qm=0,jS=null,vv=!1,qw=null,sB=!1,uB=new Set,m0e={},Gw=null,bv=null,UC=!1,HC=!1,Fw=!1,qC=!1,h0=0,GC={};(function(){for(var i=0;i<nC.length;i++){var o=nC[i],c=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),Zo(c,"on"+o)}Zo(PL,"onAnimationEnd"),Zo(jL,"onAnimationIteration"),Zo($L,"onAnimationStart"),Zo("dblclick","onDoubleClick"),Zo("focusin","onFocus"),Zo("focusout","onBlur"),Zo(qhe,"onTransitionRun"),Zo(Ghe,"onTransitionStart"),Zo(Fhe,"onTransitionCancel"),Zo(UL,"onTransitionEnd")})(),ct("onMouseEnter",["mouseout","mouseover"]),ct("onMouseLeave",["mouseout","mouseover"]),ct("onPointerEnter",["pointerout","pointerover"]),ct("onPointerLeave",["pointerout","pointerover"]),zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $S="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(" "),FC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($S)),Yw="_reactListening"+Math.random().toString(36).slice(2),cB=!1,fB=!1,Xw=!1,dB=!1,Ww=!1,Kw=!1,hB=!1,Qw={},g0e=/\r\n?/g,y0e=/\u0000|\uFFFD/g,Gm="http://www.w3.org/1999/xlink",YC="http://www.w3.org/XML/1998/namespace",v0e="javascript:throw new Error('React form unexpectedly submitted.')",b0e="suppressHydrationWarning",Fm="&",Zw="/&",US="$",HS="/$",p0="$?",Ym="$~",xv="$!",x0e="html",S0e="body",E0e="head",XC="F!",pB="F",mB="loading",w0e="style",Rd=0,Sv=1,Jw=2,WC=null,KC=null,gB={dialog:!0,webview:!0},QC=null,qS=void 0,yB=typeof setTimeout=="function"?setTimeout:void 0,T0e=typeof clearTimeout=="function"?clearTimeout:void 0,Xm=-1,vB=typeof Promise=="function"?Promise:void 0,A0e=typeof queueMicrotask=="function"?queueMicrotask:typeof vB<"u"?function(i){return vB.resolve(null).then(i).catch(LE)}:yB,ZC=null,Wm=0,GS=1,bB=2,xB=3,iu=4,au=new Map,SB=new Set,_d=Jn.d;Jn.d={f:function(){var i=_d.f(),o=nd();return i||o},r:function(i){var o=Ze(i);o!==null&&o.tag===5&&o.type==="form"?Xf(o):_d.r(i)},D:function(i){_d.D(i),zx("dns-prefetch",i,null)},C:function(i,o){_d.C(i,o),zx("preconnect",i,o)},L:function(i,o,c){_d.L(i,o,c);var g=Ev;if(g&&i&&o){var S='link[rel="preload"][as="'+_r(o)+'"]';o==="image"&&c&&c.imageSrcSet?(S+='[imagesrcset="'+_r(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(S+='[imagesizes="'+_r(c.imageSizes)+'"]')):S+='[href="'+_r(i)+'"]';var w=S;switch(o){case"style":w=Bh(i);break;case"script":w=Ph(i)}au.has(w)||(i=bn({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),au.set(w,i),g.querySelector(S)!==null||o==="style"&&g.querySelector(ud(w))||o==="script"&&g.querySelector(cd(w))||(o=g.createElement("link"),$n(o,"link",i),ot(o),g.head.appendChild(o)))}},m:function(i,o){_d.m(i,o);var c=Ev;if(c&&i){var g=o&&typeof o.as=="string"?o.as:"script",S='link[rel="modulepreload"][as="'+_r(g)+'"][href="'+_r(i)+'"]',w=S;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Ph(i)}if(!au.has(w)&&(i=bn({rel:"modulepreload",href:i},o),au.set(w,i),c.querySelector(S)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(cd(w)))return}g=c.createElement("link"),$n(g,"link",i),ot(g),c.head.appendChild(g)}}},X:function(i,o){_d.X(i,o);var c=Ev;if(c&&i){var g=tt(c).hoistableScripts,S=Ph(i),w=g.get(S);w||(w=c.querySelector(cd(S)),w||(i=bn({src:i,async:!0},o),(o=au.get(S))&&fd(i,o),w=c.createElement("script"),ot(w),$n(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(S,w))}},S:function(i,o,c){_d.S(i,o,c);var g=Ev;if(g&&i){var S=tt(g).hoistableStyles,w=Bh(i);o=o||"default";var M=S.get(w);if(!M){var N={loading:Wm,preload:null};if(M=g.querySelector(ud(w)))N.loading=GS|iu;else{i=bn({rel:"stylesheet",href:i,"data-precedence":o},c),(c=au.get(w))&&Vx(i,c);var G=M=g.createElement("link");ot(G),$n(G,"link",i),G._p=new Promise(function(Z,we){G.onload=Z,G.onerror=we}),G.addEventListener("load",function(){N.loading|=GS}),G.addEventListener("error",function(){N.loading|=bB}),N.loading|=iu,Sy(M,o,g)}M={type:"stylesheet",instance:M,count:1,state:N},S.set(w,M)}}},M:function(i,o){_d.M(i,o);var c=Ev;if(c&&i){var g=tt(c).hoistableScripts,S=Ph(i),w=g.get(S);w||(w=c.querySelector(cd(S)),w||(i=bn({src:i,async:!0,type:"module"},o),(o=au.get(S))&&fd(i,o),w=c.createElement("script"),ot(w),$n(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(S,w))}}};var Ev=typeof document>"u"?null:document,eT=null,C0e=6e4,O0e=800,M0e=500,JC=0,eO=null,tT=null,Km=HA,FS={$$typeof:$l,Provider:null,Consumer:null,_currentValue:Km,_currentValue2:Km,_threadCount:0},EB="%c%s%c",wB="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",TB="",nT=" ",R0e=Function.prototype.bind,AB=!1,CB=null,OB=null,MB=null,RB=null,_B=null,DB=null,NB=null,kB=null,zB=null,IB=null;CB=function(i,o,c,g){o=t(i,o),o!==null&&(c=n(o.memoizedState,c,0,g),o.memoizedState=c,o.baseState=c,i.memoizedProps=bn({},i.memoizedProps),c=Wi(i,2),c!==null&&Ur(c,i,2))},OB=function(i,o,c){o=t(i,o),o!==null&&(c=l(o.memoizedState,c,0),o.memoizedState=c,o.baseState=c,i.memoizedProps=bn({},i.memoizedProps),c=Wi(i,2),c!==null&&Ur(c,i,2))},MB=function(i,o,c,g){o=t(i,o),o!==null&&(c=r(o.memoizedState,c,g),o.memoizedState=c,o.baseState=c,i.memoizedProps=bn({},i.memoizedProps),c=Wi(i,2),c!==null&&Ur(c,i,2))},RB=function(i,o,c){i.pendingProps=n(i.memoizedProps,o,0,c),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Wi(i,2),o!==null&&Ur(o,i,2)},_B=function(i,o){i.pendingProps=l(i.memoizedProps,o,0),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Wi(i,2),o!==null&&Ur(o,i,2)},DB=function(i,o,c){i.pendingProps=r(i.memoizedProps,o,c),i.alternate&&(i.alternate.pendingProps=i.pendingProps),o=Wi(i,2),o!==null&&Ur(o,i,2)},NB=function(i){var o=Wi(i,2);o!==null&&Ur(o,i,2)},kB=function(i){var o=Le(),c=Wi(i,o);c!==null&&Ur(c,i,o)},zB=function(i){d=i},IB=function(i){u=i};var rT=!0,iT=null,tO=!1,m0=null,g0=null,y0=null,YS=new Map,XS=new Map,v0=[],_0e="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(" "),aT=null;if(ym.prototype.render=qs.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var c=arguments;typeof c[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):D(c[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof c[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),c=i;var g=o.current,S=ea(g);$x(g,S,c,o,null,null)},ym.prototype.unmount=qs.prototype.unmount=function(){var i=arguments;if(typeof i[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),i=this._internalRoot,i!==null){this._internalRoot=null;var o=i.containerInfo;(Xn&(la|Yl))!==xa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),$x(i.current,2,null,i,null,null),nd(),o[hl]=null}},ym.prototype.unstable_scheduleHydration=function(i){if(i){var o=vr();i={blockedOn:null,target:i,priority:o};for(var c=0;c<v0.length&&o!==0&&o<v0[c].priority;c++);v0.splice(c,0,i),c===0&&My(i)}},(function(){var i=Yx.version;if(i!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
  - react:      `+(i+`
  - react-dom:  19.2.6
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Jn.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error("Unable to find node on an unmounted component."):(i=Object.keys(i).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+i));return i=H(o),i=i!==null?X(i):null,i=i===null?null:i.stateNode,i},!(function(){var i={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:$e,reconcilerVersion:"19.2.6"};return i.overrideHookState=CB,i.overrideHookStateDeletePath=OB,i.overrideHookStateRenamePath=MB,i.overrideProps=RB,i.overridePropsDeletePath=_B,i.overridePropsRenamePath=DB,i.scheduleUpdate=NB,i.scheduleRetry=kB,i.setErrorHandler=zB,i.setSuspenseHandler=IB,i.scheduleRefresh=R,i.scheduleRoot=A,i.setRefreshHandler=_,i.getCurrentFiber=Hx,vn(i)})()&&Fc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var LB=window.location.protocol;/^(https?|file):$/.test(LB)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(LB==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ov.createRoot=function(i,o){if(!D(i))throw Error("Target container is not a DOM element.");Fx(i);var c=!1,g="",S=P1,w=j4,M=$4;return o!=null&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===ul&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:

  let root = createRoot(domContainer);
  root.render(<App />);`),o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(S=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(M=o.onRecoverableError)),o=KE(i,1,!1,null,null,c,g,null,S,w,M,tw),i[hl]=o.current,nm(i),new qs(o)},Ov.hydrateRoot=function(i,o,c){if(!D(i))throw Error("Target container is not a DOM element.");Fx(i),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,S="",w=P1,M=j4,N=$4,G=null;return c!=null&&(c.unstable_strictMode===!0&&(g=!0),c.identifierPrefix!==void 0&&(S=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(M=c.onCaughtError),c.onRecoverableError!==void 0&&(N=c.onRecoverableError),c.formState!==void 0&&(G=c.formState)),o=KE(i,1,!0,o,c??null,g,S,G,w,M,N,tw),o.context=jx(null),c=o.current,g=ea(c),g=Ht(g),S=Ts(g),S.callback=null,Da(c,S,g),_l(g,"hydrateRoot()",null),c=g,o.current.lanes=c,dt(o,c),La(o),i[hl]=o.current,nm(i),new ym(o)},Ov.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ov}var yO;function XB(){if(yO)return QS.exports;yO=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return e.NODE_ENV==="production"?(t(),QS.exports=FB()):QS.exports=YB(),QS.exports}var WB=XB(),_t=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(_t||{}),pt=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e.VIOLIN_BOX="violin_box",e.VIOLIN_KDE="violin_kde",e))(pt||{});function cT(e,t,n){var u;const a=(u=n._fullData)==null?void 0:u[t],l=vO(a==null?void 0:a.xaxis,a==null?void 0:a.yaxis);switch(e){case pt.SCATTER:return`${l}.trace.scatter .point`;case pt.BAR:case pt.HISTOGRAM:case pt.DODGED:case pt.STACKED:case pt.NORMALIZED:return`${l}.trace.bars .point > path`;case pt.LINE:return KB(l,a==null?void 0:a.mode);case pt.BOX:return`${l}.trace.boxes .point > path`;case pt.HEATMAP:return`${l}.heatmaplayer image`;case pt.CANDLESTICK:return`${l}.trace.boxes .box`;default:return}}function vO(e,t){return`.subplot.${e??"x"}${t??"y"} `}function KB(e,t){if(t!=null&&t.includes("markers"))return`${e}.trace.scatter .point`}let QB=0;function ZB(e){const t=JB(e);if(!t)return null;const n=t._fullData??t.data,r=t._fullLayout??t.layout;if(!n||!r)return console.warn("[maidr] Plotly graph div found but no data/layout available."),null;const a=t.id||`plotly-maidr-${++QB}`,l=eP(r),u=nP(n,t.calcdata),d=rP(u,r,t);return d.length===0?(console.warn("[maidr] No supported traces found in plotly chart."),null):{id:a,title:l,subplots:d}}function JB(e){const t=e.closest(".js-plotly-plot");return t&&t._fullData?t:e._fullData?e:null}function fT(e){if(e)return typeof e=="string"?e:e.text??void 0}function eP(e){return fT(e.title)}function bO(e){return fT(e==null?void 0:e.title)}function dT(e,t){return t==="x"?e.xaxis:t==="y"?e.yaxis:e[`${t.charAt(0)}axis${t.slice(1)}`]}function xO(e,t){const n=dT(e,t);if(!n)return null;const r=n.range;if(!r||r.length<2)return null;const a=Number(r[0]),l=Number(r[1]);if(Number.isNaN(a)||Number.isNaN(l))return null;let u=null;if(typeof n.dtick=="number")u=n.dtick;else if(typeof n.dtick=="string"){const y=Number.parseFloat(n.dtick);Number.isNaN(y)||(u=y)}if(u===null&&n.tickmode==="array"&&n.tickvals&&n.tickvals.length>=2){const y=[...n.tickvals].sort((x,T)=>x-T),v=[];for(let x=1;x<y.length;x++)v.push(y[x]-y[x-1]);v.length>0&&(v.sort((x,T)=>x-T),u=v[Math.floor(v.length/2)])}if(u===null||u<=0)return null;const d=Math.min(a,l),h=Math.max(a,l);return{min:d,max:h,tickStep:u}}function SO(e){const t=e.type??"scatter";switch(t){case"scatter":case"scattergl":return tP(e.mode);case"bar":return pt.BAR;case"box":return pt.BOX;case"heatmap":case"heatmapgl":return pt.HEATMAP;case"histogram":return pt.HISTOGRAM;case"candlestick":return pt.CANDLESTICK;default:return console.warn(`[maidr] Unsupported plotly trace type: "${t}". Skipping.`),null}}function tP(e){return e?e.includes("lines")?pt.LINE:(e.includes("markers"),pt.SCATTER):pt.SCATTER}function nP(e,t){const n=new Map;for(let r=0;r<e.length;r++){const a=e[r];if(a.visible===!1||a.visible==="legendonly")continue;const l=a.xaxis??"x",u=a.yaxis??"y",d=`${l}${u}`;n.has(d)||n.set(d,{xAxisId:l,yAxisId:u,traces:[],calcdata:[],traceIndices:[]});const h=n.get(d);h.traces.push(a),h.traceIndices.push(r),t&&t[r]&&h.calcdata.push(t[r])}return n}function rP(e,t,n){const r=[];for(const[,a]of e){const l=dT(t,a.xAxisId),u=dT(t,a.yAxisId),d=bO(l),h=bO(u),y=[],v=[],x=[],T=[],E=[];for(let A=0;A<a.traces.length;A++){const R=a.traces[A],_=SO(R);_===pt.LINE?v.push({trace:R,calcIdx:A,globalIdx:a.traceIndices[A]}):_===pt.BOX?x.push({trace:R,calcIdx:A,globalIdx:a.traceIndices[A]}):_===pt.BAR?T.push({trace:R,calcIdx:A,globalIdx:a.traceIndices[A]}):E.push({trace:R,calcIdx:A,globalIdx:a.traceIndices[A]})}if(v.length>0){const A=lP(v,d,h,n);A&&y.push(A)}if(x.length>0){const A=sP(x,a,d,h,n);A&&y.push(A)}if(T.length>1){const A=t.barmode??"group",R=t.barnorm??"";if(A==="group"){const _=EO(T,pt.DODGED,d,h,n);_&&y.push(_)}else if(A==="stack"||A==="relative"){const _=R==="percent"||R==="fraction"?pt.NORMALIZED:pt.STACKED,D=EO(T,_,d,h,n);D&&y.push(D)}else for(const _ of T)E.push(_)}else T.length===1&&E.push(T[0]);for(const{trace:A,calcIdx:R,globalIdx:_}of E){const D=SO(A);if(!D)continue;const z=a.calcdata[R]??[],V=iP(A,D,z,_,d,h,n);V&&y.push(V)}y.length>0&&r.push({layers:y})}return r.length===0?[]:[r]}function iP(e,t,n,r,a,l,u){const d=String(r),h=e.name,y=cT(t,r,u),v={};switch(a&&(v.x={label:a}),l&&(v.y={label:l}),t){case pt.SCATTER:return aP(e,d,h,y,v,u);case pt.BAR:return oP(e,d,h,y,v);case pt.HEATMAP:return cP(e,d,h,y,v);case pt.HISTOGRAM:return dP(e,n,d,h,y,v,r,u);case pt.CANDLESTICK:return hP(e,d,h,y,v);default:return null}}function aP(e,t,n,r,a,l){var T,E;const u=e.x,d=e.y;if(!u||!d)return null;const h=Math.min(u.length,d.length),y=[];for(let A=0;A<h;A++){const R=Number(u[A]),_=Number(d[A]);Number.isNaN(R)||Number.isNaN(_)||y.push({x:R,y:_})}if(y.length===0)return null;const v=l._fullLayout;let x=a;if(v){const A=e.xaxis??"x",R=e.yaxis??"y",_=xO(v,A),D=xO(v,R);if(_&&D){const z=(T=a==null?void 0:a.x)==null?void 0:T.label,V=(E=a==null?void 0:a.y)==null?void 0:E.label;x={x:z?{label:z,..._}:_,y:V?{label:V,...D}:D}}}return{id:t,type:pt.SCATTER,title:n,selectors:r,axes:x,data:y}}function oP(e,t,n,r,a){const l=e.x,u=e.y;if(!l||!u)return null;const d=e.orientation==="h",h=Math.min(l.length,u.length),y=[];for(let x=0;x<h;x++)d?y.push({x:u[x],y:l[x]}):y.push({x:l[x],y:u[x]});if(y.length===0)return null;const v=d?{...a,x:a==null?void 0:a.y,y:a==null?void 0:a.x}:a;return{id:t,type:pt.BAR,title:n,selectors:r,axes:v,...d?{orientation:_t.HORIZONTAL}:{},data:y}}function lP(e,t,n,r){const a=[],l=[];for(const{trace:h}of e){const y=h.x,v=h.y;if(!y||!v)continue;const x=Math.min(y.length,v.length),T=[],E=h.name??`Series ${a.length+1}`;for(let A=0;A<x;A++)T.push({x:y[A],y:Number(v[A]),z:E});a.push(T),l.push(E)}if(a.length===0)return null;const u={};t&&(u.x={label:t}),n&&(u.y={label:n});const d=cT(pt.LINE,e[0].globalIdx,r);return{id:String(e[0].globalIdx),type:pt.LINE,title:l.length===1?l[0]:void 0,selectors:d,axes:u,data:a}}function sP(e,t,n,r,a){var v;const l=[],u=[],d=(v=a._fullData)==null?void 0:v[e[0].globalIdx],h=vO(d==null?void 0:d.xaxis,d==null?void 0:d.yaxis);for(let x=0;x<e.length;x++){const{trace:T,calcIdx:E}=e[x],A=t.calcdata[E]??[],R=x+1,_=uP(T,A.length>0?A[0]:void 0);if(!_)continue;l.push(_);const D=`${h}.boxlayer > g:nth-child(${R}) > path.box`,z=`${h}.boxlayer > g:nth-child(${R}) .points`,V=_.lowerOutliers.length,P=_.upperOutliers.length,I=[];for(let X=1;X<=V;X++)I.push(`${z} > path.point:nth-child(${X})`);const H=[];for(let X=V+1;X<=V+P;X++)H.push(`${z} > path.point:nth-child(${X})`);u.push({lowerOutliers:I,min:D,iq:D,q2:D,max:D,q1:D,q3:D,upperOutliers:H})}if(l.length===0)return null;const y={};return n&&(y.x={label:n}),r&&(y.y={label:r}),{id:String(e[0].globalIdx),type:pt.BOX,selectors:u,axes:y,data:l}}function uP(e,t){var r,a,l;const n=e.name??"";if(t){const u=[],d=[];if(t.pts2){const h=t.lf??t.min??-1/0,y=t.uf??t.max??1/0;for(const v of t.pts2){const x=v.v??v.y??0;x<h?u.push(x):x>y&&d.push(x)}u.sort((v,x)=>v-x),d.sort((v,x)=>v-x)}return{z:n,lowerOutliers:u,min:t.min??t.lf??0,q1:t.q1??0,q2:t.med??0,q3:t.q3??0,max:t.max??t.uf??0,upperOutliers:d,mean:t.mean}}return e.q1&&e.median&&e.q3?{z:n,lowerOutliers:[],min:((r=e.lowerfence)==null?void 0:r[0])??e.q1[0],q1:e.q1[0],q2:e.median[0],q3:e.q3[0],max:((a=e.upperfence)==null?void 0:a[0])??e.q3[0],upperOutliers:[],mean:(l=e.mean)==null?void 0:l[0]}:null}function cP(e,t,n,r,a){var T;if(!e.z||e.z.length===0)return null;const l=((T=e.z[0])==null?void 0:T.length)??0,u=e.z.length;if(l===0)return null;const d=e.x?e.x.slice(0,l).map(String):e.z[0].map((E,A)=>String(A)),h=e.y?e.y.slice(0,u).map(String):e.z.map((E,A)=>String(A)),y={x:d,y:h,points:e.z},v=fP(e)??"Value",x={...a,z:{label:v}};return{id:t,type:pt.HEATMAP,title:n,selectors:r,axes:x,data:y}}function fP(e){var n;const t=fT((n=e.colorbar)==null?void 0:n.title);if(!(t&&t.toLowerCase().includes("click to enter")))return t}function dP(e,t,n,r,a,l,u,d){var h,y,v;if(t.length>0&&t[0]!=null&&"p"in t[0]){const x=[],T=(h=d._fullData)==null?void 0:h[u],E=((y=T==null?void 0:T.xbins)==null?void 0:y.size)??((v=e.xbins)==null?void 0:v.size);for(let A=0;A<t.length;A++){const R=t[A],_=Number(R.p??0),D=Number(R.s??0);let z,V;if(E!=null){const P=Number(E)/2;z=_-P,V=_+P}else{const P=A>0?Number(t[A-1].p??0):null,I=A<t.length-1?Number(t[A+1].p??0):null,H=I!=null?I-_:P!=null?_-P:1;z=_-H/2,V=_+H/2}x.push({x:_,y:D,xMin:z,xMax:V,yMin:0,yMax:D})}return{id:n,type:pt.HISTOGRAM,title:r,selectors:a,axes:l,data:x}}return console.warn("[maidr] Histogram: calcdata unavailable, skipping trace."),null}function hP(e,t,n,r,a){const{open:l,high:u,low:d,close:h,x:y}=e;if(!l||!u||!d||!h)return null;const v=Math.min(l.length,u.length,d.length,h.length),x=[];for(let T=0;T<v;T++){const E=Number(l[T]),A=Number(h[T]),R=Number(u[T]),_=Number(d[T]),D=A>E?"Bull":A<E?"Bear":"Neutral";Number.isNaN(E)||Number.isNaN(A)||Number.isNaN(R)||Number.isNaN(_)||x.push({value:String(y?y[T]:T),open:E,high:R,low:_,close:A,volume:void 0,trend:D,volatility:R-_})}return x.length===0?null:{id:t,type:pt.CANDLESTICK,title:n,selectors:r,axes:a,data:x}}function EO(e,t,n,r,a){var y;const l=[],u=((y=e[0])==null?void 0:y.trace.orientation)==="h";for(const{trace:v}of e){const x=v.x,T=v.y;if(!x||!T)continue;const E=v.orientation==="h",A=v.name??`Series ${l.length+1}`,R=Math.min(x.length,T.length),_=[];for(let D=0;D<R;D++)E?_.push({x:T[D],y:x[D],z:A}):_.push({x:x[D],y:T[D],z:A});l.push(_)}if(l.length===0)return null;const d={};u?(r&&(d.x={label:r}),n&&(d.y={label:n})):(n&&(d.x={label:n}),r&&(d.y={label:r}));const h=cT(t,e[0].globalIdx,a);return{id:String(e[0].globalIdx),type:t,selectors:h,axes:d,...u?{orientation:_t.HORIZONTAL}:{},data:l}}function wO(e){return e.classList.contains("main-svg")||e.closest(".js-plotly-plot")!==null}function TO(e,t){const n=e.closest(".js-plotly-plot");pP(e,t),gP(),yP(e,n),vP(n),bP(n)}function pP(e,t){const n=e.querySelector(".bglayer");if(!n||n.hasAttribute("data-maidr"))return;n.setAttribute("data-maidr","1");const r=Array.from(n.querySelectorAll(":scope > rect")),a=new Set,l=[];for(const v of r){const x=`${v.getAttribute("x")},${v.getAttribute("y")}`;a.has(x)||(a.add(x),l.push(v))}l.sort((v,x)=>{const T=Number.parseFloat(v.getAttribute("y")??"0"),E=Number.parseFloat(x.getAttribute("y")??"0");return Math.abs(T-E)>1?T-E:Number.parseFloat(v.getAttribute("x")??"0")-Number.parseFloat(x.getAttribute("x")??"0")});const u=[],d=t.subplots??[];for(const v of d)for(const x of v){const T=x.selector;if(T){const E=T.match(/id="([^"]+)"/);E&&u.push(E[1])}}const h="http://www.w3.org/2000/svg",y=Math.min(l.length,u.length);for(let v=0;v<y;v++){const x=l[v],T=document.createElementNS(h,"g");T.setAttribute("id",u[v]),x.parentNode.insertBefore(T,x),T.appendChild(x)}mP(n)}function mP(e){const t=new MutationObserver(n=>{for(const r of n){if(r.type!=="attributes")continue;const a=r.target,l=a.closest('g[id^="axes_"][visibility="hidden"]');if(!l)continue;const u=e.querySelector(`g[id="${l.id}"]:not([visibility])`);if(!u)continue;const d=u.querySelector("rect");if(!d)continue;const h=a.getAttribute("stroke");h?(d.setAttribute("stroke",h),d.setAttribute("stroke-width",a.getAttribute("stroke-width")??"4")):(d.removeAttribute("stroke"),d.removeAttribute("stroke-width"))}});t.observe(e,{attributes:!0,attributeFilter:["stroke","stroke-width"],subtree:!0}),AO(e,t)}function gP(){if(document.querySelector("style[data-maidr-plotly]"))return;const e=document.createElement("style");e.setAttribute("data-maidr-plotly","1"),e.textContent=`
    .js-plotly-plot[data-maidr-auto] .svg-container { overflow: visible !important; }
    .js-plotly-plot .svg-container article[id^="maidr-article"] {
      position: relative !important;
      width: 100% !important;
    }
    .js-plotly-plot .svg-container article[id^="maidr-article"] > figure {
      position: relative !important;
      width: 100% !important;
    }
    .js-plotly-plot[data-maidr-auto] { overflow: visible !important; }
    .js-plotly-plot .svg-container:focus-within {
      outline: 2px solid #4A90D9;
      outline-offset: 2px;
    }
    figure[id^="maidr-figure"] > div[tabindex="0"]:focus {
      outline: none !important;
    }
  `,document.head.appendChild(e)}function yP(e,t){const n=t??document;function r(){const l=n.querySelector('div[id^="react-container-"]');if(l&&e){const u=e.getAttribute("height")??String(e.getBoundingClientRect().height);u&&(l.style.paddingTop=`${Number.parseFloat(u)}px`,requestAnimationFrame(()=>{try{window.dispatchEvent(new Event("resize"))}catch{}}))}}function a(){const l=n.querySelector('article[id^="maidr-article"]');if(!l){requestAnimationFrame(a);return}const u=new MutationObserver(()=>r());u.observe(l,{childList:!0,subtree:!0}),AO(l,u)}requestAnimationFrame(a)}function vP(e){const n=(e??document).querySelector(".modebar-container");if(!n)return;n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1");const r=n.querySelectorAll("a, button, input, [tabindex]");for(const a of r)a.setAttribute("tabindex","-1")}function bP(e){const t=e??document.querySelector(".js-plotly-plot")??document.querySelector(".svg-container");t&&t.addEventListener("click",()=>{const n=t.querySelector('figure[id^="maidr-figure"] > div[tabindex="0"]');n&&n.focus()},!0)}const Qm=new WeakMap,e5=new Set;function AO(e,t){const n=Qm.get(e)??[];n.push(t),Qm.set(e,n),e5.add(e)}function xP(e){const t=Qm.get(e);if(t){for(const n of t)n.disconnect();Qm.delete(e),e5.delete(e)}for(const n of e5)if(e.contains(n)){const r=Qm.get(n);if(r){for(const a of r)a.disconnect();Qm.delete(n)}e5.delete(n)}}function kd(e){return e!==null&&typeof e=="object"&&"supportsGridMode"in e&&typeof e.supportsGridMode=="function"}function SP(e){return e!==null&&typeof e=="object"&&"x"in e}function EP(e){return typeof e=="string"||typeof e=="number"}function wP(e){return e!==null&&typeof e=="object"&&"x"in e}class hT{stepTraceInSubplot(t,n){const r=t.activeTrace;if(!r)return null;const a=r.getCurrentXValue();t.moveOnce(n);const l=t.activeTrace;if(!l)return null;if(l.getId()===r.getId())return l.notifyOutOfBounds(),t.notifyOutOfBounds(),l;let u=!1;if(typeof r.getCurrentYValue=="function"&&typeof l.moveToXAndYValue=="function"){const d=r.getCurrentYValue();d!==null&&a!==null&&(u=l.moveToXAndYValue(a,d))}return u||l.moveToXValue(a),this.notifyLayerSwitch(t,l),l}computeIndexAndSegment(t,n,r,a){return r===_t.HORIZONTAL?{pointIndex:t,segmentType:a[n]}:{pointIndex:n,segmentType:a[t]}}computeVisualCoordinates(t,n,r){return r===_t.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,r){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const a=t[0][r];return this.extractXFromPoint(a)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][r]){const a=t[n][r];return this.extractXFromPoint(a)}return null}extractXValueFromValues(t,n,r){if(this.isValidPosition(t,n,r)){const a=t[n][r];return this.extractXFromValue(a)}return null}moveToXValueInPoints(t,n,r){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const h=this.findPointIndexByX(t[0],n);if(h!==-1)return r(0,h),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const v=Wu(t[0][y]);if(typeof n=="number"&&typeof v=="number")return r(0,y),!0;if(typeof n=="string"&&typeof v=="string")return r(0,y),!0}}}let a=-1,l=-1,u=Number.POSITIVE_INFINITY,d=null;if(Array.isArray(t))for(let h=0;h<t.length;h++){const y=t[h];if(Array.isArray(y)){const v=this.findPointIndexByX(y,n);if(v!==-1)return r(h,v),!0;const x=this.findNearestPointIndexByX(y,n);if(x!==-1){const T=Wu(y[x]);let E=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof T=="number"?(E=Math.abs(T-n),E<u&&(u=E,a=h,l=x,d="numeric")):typeof n=="string"&&typeof T=="string"?a===-1&&(a=h,l=x,d="categorical"):a===-1&&(a=h,l=x,d="generic")}}}if(a!==-1&&l!==-1){const h=t[a];if(Array.isArray(h)&&Wu(h[l]),d!==null)return r(a,l),!0}return!1}moveToXValueInValues(t,n,r){let a=-1,l=-1,u=Number.POSITIVE_INFINITY,d=null;for(let h=0;h<t.length;h++)for(let y=0;y<t[h].length;y++){const v=t[h][y],x=this.extractXFromValue(v);if(x===n)return r(h,y),!0;if(typeof n=="number"&&typeof x=="number"){const T=Math.abs(x-n);T<u&&(u=T,a=h,l=y,d="numeric")}else typeof n=="string"&&typeof x=="string"?a===-1&&(a=h,l=y,d="categorical"):a===-1&&(a=h,l=y,d="generic")}return a!==-1&&l!==-1?(this.extractXFromValue(t[a][l]),r(a,l),!0):!1}extractXFromPoint(t){return wP(t)?t.x:null}extractXFromValue(t){return SP(t)?t.x:EP(t)?t:null}findPointIndexByX(t,n){return t.findIndex(r=>r.x===n)}isValidPosition(t,n,r){return n>=0&&n<t.length&&r>=0&&r<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let r=-1,a=Number.POSITIVE_INFINITY;for(let l=0;l<t.length;l++){const u=Wu(t[l]);if(typeof u=="number"){const d=Math.abs(u-n);d<a&&(a=d,r=l)}else if(typeof u=="string"){const d=Number(u);if(!Number.isNaN(d)){const h=Math.abs(d-n);h<a&&(a=h,r=l)}}}if(r!==-1)return Wu(t[r]),r}else if(typeof n=="string"){for(let a=0;a<t.length;a++)if(Wu(t[a])===n)return a;const r=Number(n);if(!Number.isNaN(r)){let a=-1,l=Number.POSITIVE_INFINITY;for(let u=0;u<t.length;u++){const d=Wu(t[u]);if(typeof d=="number"){const h=Math.abs(d-r);h<l&&(l=h,a=u)}else if(typeof d=="string"){const h=Number(d);if(!Number.isNaN(h)){const y=Math.abs(h-r);y<l&&(l=y,a=u)}}}if(a!==-1)return Wu(t[a]),a}for(let a=0;a<t.length;a++)if(typeof Wu(t[a])=="string")return a}return t.length>0?(Wu(t[0]),0):-1}dispose(){}notifyLayerSwitch(t,n){if(n.state.empty)n.notifyStateUpdate();else{const r=t.getRow()+1,a=t.getSize(),l={...n.state,isLayerSwitch:!0,index:r,size:a};n.notifyObserversWithState(l)}}}function TP(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function AP(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function CP(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function OP(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function MP(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function RP(e){return e&&typeof e=="object"&&"value"in e}function Wu(e){return e?TP(e)||AP(e)||OP(e)||MP(e)||CP(e)?e.x:RP(e)?e.value:null:null}var Ku=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.MOUSE_ENTER="mouseenter",e.MOUSE_LEAVE="mouseleave",e.MOUSE_MOVE="mousemove",e.SELECTION_CHANGE="selectionchange",e.VISIBILITY_CHANGE="visibilitychange",e))(Ku||{}),Pt=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.COMMAND_PALETTE="COMMAND_PALETTE",e.DESCRIPTION="DESCRIPTION",e.GO_TO_EXTREMA="GO_TO_EXTREMA",e.GRID_CELL="GRID_CELL",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(Pt||{});class Zc{constructor(){j(this,"listeners");j(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const n of this.listeners)n(t)}}class fe{constructor(){}}j(fe,"ARTICLE","article"),j(fe,"DIV","div"),j(fe,"FIGURE","figure"),j(fe,"IMAGE","img"),j(fe,"INPUT","input"),j(fe,"STYLE","style"),j(fe,"TEXT_AREA","textarea"),j(fe,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),j(fe,"MAIDR_ARTICLE","maidr-article"),j(fe,"MAIDR_FIGURE","maidr-figure"),j(fe,"MAIDR_HIGHLIGHT","maidr-highlight"),j(fe,"REACT_CONTAINER","maidr-react-container"),j(fe,"REVIEW_INPUT","maidr-review-input"),j(fe,"TEXT_CONTAINER","maidr-text-container"),j(fe,"MAIDR_INSTRUCTION","maidr-instruction"),j(fe,"ROTOR_AREA","maidr-rotor-area"),j(fe,"SR_ONLY_CLASS","maidr-sr-only"),j(fe,"ARIA_LABEL","aria-label"),j(fe,"CIRCLE_X","cx"),j(fe,"CIRCLE_Y","cy"),j(fe,"D","d"),j(fe,"FILL","fill"),j(fe,"MARGIN","margin"),j(fe,"POINTS","points"),j(fe,"RADIUS","r"),j(fe,"ROLE","role"),j(fe,"STROKE","stroke"),j(fe,"STROKE_WIDTH","stroke-width"),j(fe,"TITLE","title"),j(fe,"VISIBILITY","visibility"),j(fe,"X1","x1"),j(fe,"X2","x2"),j(fe,"Y1","y1"),j(fe,"Y2","y2"),j(fe,"MAIDR_SUBPLOT","subplot"),j(fe,"MAIDR","maidr"),j(fe,"MAIDR_JSON_SELECTOR",'[maidr^="{"]'),j(fe,"AFTER_END","afterend"),j(fe,"APPLICATION","application"),j(fe,"ARE"," are "),j(fe,"CIRCLE","circle"),j(fe,"CLOSE_BRACKET","]"),j(fe,"COMMA",","),j(fe,"COMMA_SPACE",", "),j(fe,"EMPTY",""),j(fe,"HIDDEN","hidden"),j(fe,"IS"," is "),j(fe,"LINE","line"),j(fe,"MAIDR_DATA","maidr-data"),j(fe,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),j(fe,"NEW_LINE",`
`),j(fe,"OPEN_BRACKET","["),j(fe,"POLYLINE","polyline"),j(fe,"SPACE"," "),j(fe,"THROUGH"," through "),j(fe,"TRANSPARENT","transparent"),j(fe,"VISIBLE","visible"),j(fe,"X","x"),j(fe,"Y","y"),j(fe,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),j(fe,"HIGHLIGHT_CONTRAST_RATIO",3),j(fe,"HIGHLIGHT_COLOR_RATIO",.6),j(fe,"HIGHLIGHT_MAX_COLOR",255),j(fe,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),j(fe,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),j(fe,"DATA_MODE","DATA POINT NAVIGATION"),j(fe,"ROW_COL_MODE","ROW AND COLUMN NAVIGATION"),j(fe,"GRID_MODE","GRID NAVIGATION"),j(fe,"INTERSECTION_MODE","INTERSECTING POINT NAVIGATION");class pT{constructor(){j(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,n=1){const r=this.items.lastIndexOf(t);return r!==-1?(this.items.splice(r,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}const mT=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function gT(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Mv(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function CO(e,t){const n=t.slice(0,t.length-1);for(let r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function OO(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function _P(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let a=!0;for(let l=0;l<n.length;l++)r.indexOf(n[l])===-1&&(a=!1);return a}const Rv={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":mT?173:189,"=":mT?61:187,";":mT?59:186,"'":222,"[":219,"]":221,"\\":220},lu={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},_v={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Sa={16:!1,18:!1,17:!1,91:!1},ii={};for(let e=1;e<20;e++)Rv["f".concat(e)]=111+e;let qr=[],Dv=null,MO="all";const Jc=new Map,Nv=e=>Rv[e.toLowerCase()]||lu[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),DP=e=>Object.keys(Rv).find(t=>Rv[t]===e),NP=e=>Object.keys(lu).find(t=>lu[t]===e);function RO(e){MO=e||"all"}function kv(){return MO||"all"}function kP(){return qr.slice(0)}function zP(){return qr.map(e=>DP(e)||NP(e)||String.fromCharCode(e))}function IP(){const e=[];return Object.keys(ii).forEach(t=>{ii[t].forEach(n=>{let{key:r,scope:a,mods:l,shortcut:u}=n;e.push({scope:a,shortcut:u,mods:l,keys:r.split("+").map(d=>Nv(d))})})}),e}function LP(e){const t=e.target||e.srcElement,{tagName:n}=t;let r=!0;const a=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function VP(e){return typeof e=="string"&&(e=Nv(e)),qr.indexOf(e)!==-1}function BP(e,t){let n,r;e||(e=kv());for(const a in ii)if(Object.prototype.hasOwnProperty.call(ii,a))for(n=ii[a],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(u=>{let{element:d}=u;return yT(d)}):r++;kv()===e&&RO(t||"all")}function PP(e){let t=e.keyCode||e.which||e.charCode;const n=qr.indexOf(t);if(n>=0&&qr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qr.splice(0,qr.length),(t===93||t===224)&&(t=91),t in Sa){Sa[t]=!1;for(const r in lu)lu[r]===t&&(Ua[r]=!1)}}function _O(e){if(typeof e>"u")Object.keys(ii).forEach(a=>{Array.isArray(ii[a])&&ii[a].forEach(l=>t5(l)),delete ii[a]}),yT(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&t5(a)});else if(typeof e=="object")e.key&&t5(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let[a,l]=n;typeof a=="function"&&(l=a,a=""),t5({key:e,scope:a,method:l,splitKey:"+"})}}const t5=e=>{let{key:t,scope:n,method:r,splitKey:a="+"}=e;OO(t).forEach(u=>{const d=u.split(a),h=d.length,y=d[h-1],v=y==="*"?"*":Nv(y);if(!ii[v])return;n||(n=kv());const x=h>1?CO(lu,d):[],T=[];ii[v]=ii[v].filter(E=>{const R=(r?E.method===r:!0)&&E.scope===n&&_P(E.mods,x);return R&&T.push(E.element),!R}),T.forEach(E=>yT(E))})};function DO(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(const l in Sa)Object.prototype.hasOwnProperty.call(Sa,l)&&(!Sa[l]&&t.mods.indexOf(+l)>-1||Sa[l]&&t.mods.indexOf(+l)===-1)&&(a=!1);(t.mods.length===0&&!Sa[16]&&!Sa[18]&&!Sa[17]&&!Sa[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(qr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function NO(e,t){const n=ii["*"];let r=e.keyCode||e.which||e.charCode;if(!Ua.filter.call(this,e))return;if((r===93||r===224)&&(r=91),qr.indexOf(r)===-1&&r!==229&&qr.push(r),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=_v[d];e[d]&&qr.indexOf(h)===-1?qr.push(h):!e[d]&&qr.indexOf(h)>-1?qr.splice(qr.indexOf(h),1):d==="metaKey"&&e[d]&&(qr=qr.filter(y=>y in _v||y===r))}),r in Sa){Sa[r]=!0;for(const d in lu)if(Object.prototype.hasOwnProperty.call(lu,d)){const h=_v[lu[d]];Ua[d]=e[h]}if(!n)return}for(const d in Sa)Object.prototype.hasOwnProperty.call(Sa,d)&&(Sa[d]=e[_v[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qr.indexOf(17)===-1&&qr.push(17),qr.indexOf(18)===-1&&qr.push(18),Sa[17]=!0,Sa[18]=!0);const a=kv();if(n)for(let d=0;d<n.length;d++)n[d].scope===a&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&DO(e,n[d],a,t);if(!(r in ii))return;const l=ii[r],u=l.length;for(let d=0;d<u;d++)if((e.type==="keydown"&&l[d].keydown||e.type==="keyup"&&l[d].keyup)&&l[d].key){const h=l[d],{splitKey:y}=h,v=h.key.split(y),x=[];for(let T=0;T<v.length;T++)x.push(Nv(v[T]));x.sort().join("")===qr.sort().join("")&&DO(e,h,a,t)}}function Ua(e,t,n){qr=[];const r=OO(e);let a=[],l="all",u=document,d=0,h=!1,y=!0,v="+",x=!1,T=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(l=t.scope),t.element&&(u=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(x=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(l=t),T&&_O(e,l);d<r.length;d++)e=r[d].split(v),a=[],e.length>1&&(a=CO(lu,e)),e=e[e.length-1],e=e==="*"?"*":Nv(e),e in ii||(ii[e]=[]),ii[e].push({keyup:h,keydown:y,scope:l,mods:a,shortcut:r[d],method:n,key:r[d],splitKey:v,element:u});if(typeof u<"u"&&window){if(!Jc.has(u)){const E=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return NO(R,u)},A=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;NO(R,u),PP(R)};Jc.set(u,{keydownListener:E,keyupListenr:A,capture:x}),gT(u,"keydown",E,x),gT(u,"keyup",A,x)}if(!Dv){const E=()=>{qr=[]};Dv={listener:E,capture:x},gT(window,"focus",E,x)}}}function jP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ii).forEach(n=>{ii[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function yT(e){const t=Object.values(ii).flat();if(t.findIndex(r=>{let{element:a}=r;return a===e})<0){const{keydownListener:r,keyupListenr:a,capture:l}=Jc.get(e)||{};r&&a&&(Mv(e,"keyup",a,l),Mv(e,"keydown",r,l),Jc.delete(e))}if((t.length<=0||Jc.size<=0)&&(Object.keys(Jc).forEach(a=>{const{keydownListener:l,keyupListenr:u,capture:d}=Jc.get(a)||{};l&&u&&(Mv(a,"keyup",u,d),Mv(a,"keydown",l,d),Jc.delete(a))}),Jc.clear(),Object.keys(ii).forEach(a=>delete ii[a]),Dv)){const{listener:a,capture:l}=Dv;Mv(window,"focus",a,l),Dv=null}}const vT={getPressedKeyString:zP,setScope:RO,getScope:kv,deleteScope:BP,getPressedKeyCodes:kP,getAllKeyCodes:IP,isPressed:VP,filter:LP,trigger:jP,unbind:_O,keyMap:Rv,modifier:lu,modifierMap:_v};for(const e in vT)Object.prototype.hasOwnProperty.call(vT,e)&&(Ua[e]=vT[e]);if(typeof window<"u"){const e=window.hotkeys;Ua.noConflict=t=>(t&&window.hotkeys===Ua&&(window.hotkeys=e),Ua),window.hotkeys=Ua}function kO(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}class $P{constructor(t){j(this,"id");j(this,"instructionContext");j(this,"selectorList",[]);j(this,"plotContext");j(this,"scopeContext");j(this,"navigationService");j(this,"figure");j(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new pT,this.scopeContext=new pT,this.navigationService=new hT,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(Pt.SUBPLOT);return}this.scopeContext.push(Pt.TRACE);const r=t.activeSubplot.state;if(r.empty||r.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}setRotorEnabled(t){this.isRotorActive=t}isRotorEnabled(){return this.isRotorActive}get isMultiPanel(){const t=this.figure.state;return!t.empty&&t.size>1}get figureTitle(){const t=this.figure.state;return t.empty?"unavailable":t.title}getSubplotSummaries(){return this.figure.getSubplotSummaries()}get figureSubtitle(){const t=this.figure.state;return t.empty?"unavailable":t.subtitle}get figureCaption(){const t=this.figure.state;return t.empty?"unavailable":t.caption}toggleScope(t){this.scopeContext.clear(),this.scopeContext.push(t),Ua.setScope(t)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,n){this.active.moveToIndex(t,n)}moveToPoint(t,n){this.active.moveToPoint(t,n)}stepTrace(t){if(this.plotContext.size()>1){const n=this.active;this.plotContext.pop();const r=this.active,a=this.navigationService.stepTraceInSubplot(r,t);a?this.plotContext.push(a):n&&this.plotContext.push(n)}else{const n=this.figure.subplots[0][0];this.active.notifyOutOfBounds(),n.notifyOutOfBounds()}}enterSubplot(){if(this.active.state.type==="figure"){const n=this.active;this.plotContext.push(n.activeSubplot);const r=n.activeSubplot.activeTrace;r.resetToInitialEntry(),this.plotContext.push(r),this.toggleScope(Pt.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(Pt.SUBPLOT))}enterGridCell(){const t=this.active;return kd(t)&&t.supportsGridMode()&&t.enterGridCell()?(this.toggleScope(Pt.GRID_CELL),!0):!1}exitGridCell(){const t=this.active;kd(t)&&t.isInCellMode()&&(t.exitGridCell(),this.toggleScope(Pt.TRACE))}moveCellPointLeft(){const t=this.active;kd(t)&&t.isInCellMode()&&t.moveCellPointLeft()}moveCellPointRight(){const t=this.active;kd(t)&&t.isInCellMode()&&t.moveCellPointRight()}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const r=t?"Click to activate.":fe.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${r}
        Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":{const a=n.trace.empty?void 0:n.trace.orientation,l=kO(n.trace.traceType,a);return`This is a maidr plot containing ${n.size} layers, and
        this is layer 1 of ${n.size}: ${l} plot. ${r}
        Use Arrows to navigate data points. Toggle B for Braille, T for Text,
        S for Sonification, and R for Review mode.`}case"trace":{let a=n.plotType;n.plotType==="multiline"&&n.groupCount===1&&(a="single line");const l=a==="multiline"&&n.groupCount?` with ${n.groupCount} groups`:"";return`This is a maidr plot of type: ${kO(a,n.orientation)}${l}. ${r} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class n5{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let a=n.substring(1).split("");return a.length===3&&(a=[a[0],a[0],a[1],a[1],a[2],a[2]]),{r:Number.parseInt(a[0]+a[1],16),g:Number.parseInt(a[2]+a[3],16),b:Number.parseInt(a[4]+a[5],16)}}const r=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return r?{r:Number.parseInt(r[1],10),g:Number.parseInt(r[2],10),b:Number.parseInt(r[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const r=this.calculateLuminance(t),a=this.calculateLuminance(n);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}static calculateLuminance(t){const[n,r,a]=[t.r,t.g,t.b].map(l=>{const u=l/255;return u<=.03928?u/12.92:((u+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*a}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}static isEqual(t,n){const r=this.parse(t),a=this.parse(n);return!r||!a?!1:r.r===a.r&&r.g===a.g&&r.b===a.b}}class Et{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),a=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,l=await new Promise((h,y)=>{const v=new Image;v.onload=()=>h(v),v.onerror=()=>y(new Error("Failed to load SVG image")),v.src=a}),u=document.createElement("canvas");[u.width,u.height]=[l.naturalWidth,l.naturalHeight];const d=u.getContext("2d");return d?(d.drawImage(l,0,0),u.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(n){return console.error("Error converting SVG to Base 64:",n instanceof Error?n.message:n),""}}static selectAllElements(t,n=!0){return Array.from(document.querySelectorAll(t)).map(r=>{if(!n)return r;const a=r.cloneNode(!0);return a.setAttribute(fe.VISIBILITY,fe.HIDDEN),r.insertAdjacentElement(fe.AFTER_END,a),a})}static selectElement(t,n=!0){const r=document.querySelector(t);if(!n)return r;const a=r==null?void 0:r.cloneNode(!0);return a==null||a.setAttribute(fe.VISIBILITY,fe.HIDDEN),r==null||r.insertAdjacentElement(fe.AFTER_END,a),a}static selectNthElement(t,n){return document.querySelectorAll(t)[n]??null}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(fe.FILL,fe.TRANSPARENT),n.setAttribute(fe.STROKE,fe.TRANSPARENT),n.setAttribute(fe.VISIBILITY,fe.HIDDEN),n}static createCircleElement(t,n,r){var y;const a=window.getComputedStyle(r),l=a.stroke||a.fill,u=a.strokeWidth||"2",d=Number.parseFloat(u)*2,h=document.createElementNS(this.SVG_NAMESPACE,fe.CIRCLE);return h.setAttribute(fe.CIRCLE_X,String(t)),h.setAttribute(fe.CIRCLE_Y,String(n)),h.setAttribute(fe.RADIUS,String(d)),h.setAttribute(fe.FILL,l),h.setAttribute(fe.STROKE,l),h.setAttribute(fe.STROKE_WIDTH,u),h.setAttribute(fe.VISIBILITY,fe.HIDDEN),(y=r.parentElement)==null||y.appendChild(h),h}static createLineElement(t,n){const a=t.getBBox(),l=a.width||this.MIN_LINE_SPAN,u=a.height||this.MIN_LINE_SPAN,d=a.x+a.width/2,h=a.y+a.height/2;let y,v,x,T;switch(n){case"top":a.width===0?[y,v,x,T]=[d-l/2,a.y,d+l/2,a.y]:[y,v,x,T]=[a.x,a.y,a.x+a.width,a.y];break;case"bottom":a.width===0?[y,v,x,T]=[d-l/2,a.y+a.height,d+l/2,a.y+a.height]:[y,v,x,T]=[a.x,a.y+a.height,a.x+a.width,a.y+a.height];break;case"left":a.height===0?[y,v,x,T]=[a.x,h-u/2,a.x,h+u/2]:[y,v,x,T]=[a.x,a.y,a.x,a.y+a.height];break;case"right":a.height===0?[y,v,x,T]=[a.x+a.width,h-u/2,a.x+a.width,h+u/2]:[y,v,x,T]=[a.x+a.width,a.y,a.x+a.width,a.y+a.height];break}const E=window.getComputedStyle(t),A=document.createElementNS(this.SVG_NAMESPACE,fe.LINE);return A.setAttribute(fe.X1,String(y)),A.setAttribute(fe.Y1,String(v)),A.setAttribute(fe.X2,String(x)),A.setAttribute(fe.Y2,String(T)),A.setAttribute(fe.STROKE,E.stroke),A.setAttribute(fe.STROKE_WIDTH,E.strokeWidth||"2"),A.setAttribute(fe.VISIBILITY,fe.HIDDEN),t.insertAdjacentElement(fe.AFTER_END,A),A}static getAdjustedOpacity(t,n){const r=t?Number.parseFloat(t):Number.NaN;return!Number.isNaN(r)&&r>n?r.toString():"1"}static createHighlightElement(t,n){try{const x=t.getBBox();if(x.width===0&&x.height===0){const T=window.getComputedStyle(t),E=Number.parseFloat(T.strokeWidth||"2"),A=Math.max(E*1.5,4),R=document.createElementNS(this.SVG_NAMESPACE,"circle");return R.setAttribute("cx",String(x.x)),R.setAttribute("cy",String(x.y)),R.setAttribute("r",String(A)),R.setAttribute(fe.FILL,n),R.setAttribute(fe.STROKE,n),R.setAttribute(fe.STROKE_WIDTH,"2"),R.setAttribute(fe.VISIBILITY,fe.VISIBLE),t.insertAdjacentElement(fe.AFTER_END,R),R}}catch{}const r=t.cloneNode(!0),a=t.tagName.toLowerCase(),l=a===fe.POLYLINE||a===fe.LINE,u=window.getComputedStyle(t),d=l?u.getPropertyValue(fe.STROKE):u.getPropertyValue(fe.FILL),h=this.getHighlightColor(d,n),y=u.getPropertyValue("fill-opacity"),v=u.getPropertyValue("stroke-opacity");if(r.style.fillOpacity=this.getAdjustedOpacity(y,this.MIN_VISIBLE_FILL_OPACITY),r.style.strokeOpacity=this.getAdjustedOpacity(v,this.MIN_VISIBLE_STROKE_OPACITY),r.setAttribute(fe.VISIBILITY,fe.VISIBLE),r.setAttribute(fe.STROKE,h),r.setAttribute(fe.FILL,h),r.style.fill=h,r.style.stroke=h,l){const x=window.getComputedStyle(r).getPropertyValue(fe.STROKE_WIDTH),T=x.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const E=Number.parseFloat(T[1]),A=T[2]||"";r.setAttribute(fe.STROKE_WIDTH,`${E+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${A}`)}else{const E=Number.parseFloat(x),A=Number.isNaN(E)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:E+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;r.setAttribute(fe.STROKE_WIDTH,`${A}`)}}return t.insertAdjacentElement(fe.AFTER_END,r),r}static getHighlightColor(t,n){const r=n5.parse(t);if(!r||!(n5.getContrastRatio(r,fe.HIGHLIGHT_BASE_COLOR)<fe.HIGHLIGHT_CONTRAST_RATIO))return n;const u={...r};return r.r===r.g&&r.g===r.b?(u.r=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.r*fe.HIGHLIGHT_COLOR_RATIO)),u.g=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.g*fe.HIGHLIGHT_COLOR_RATIO)),u.b=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.b*fe.HIGHLIGHT_COLOR_RATIO))):r.r>=r.g&&r.r>=r.b?u.r=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.r*fe.HIGHLIGHT_COLOR_RATIO)):r.g>=r.r&&r.g>=r.b?u.g=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.g*fe.HIGHLIGHT_COLOR_RATIO)):u.b=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(r.b*fe.HIGHLIGHT_COLOR_RATIO)),n5.rgbToString(u)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",r=n5.parse(n);return r?(.2126*r.r+.7152*r.g+.0722*r.b)/255>.5?"#000":"#fff":"#000"}static setSubplotHighlightCss(t,n){t.style.outline=`4px solid ${n}`,t.style.outlineOffset="3px",t.style.borderRadius="3px",t.style.overflow="visible"}static removeSubplotHighlightCss(t){t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"),t.style.removeProperty("border-radius"),t.style.removeProperty("overflow")}static setSubplotHighlightSvgWithAdaptiveColor(t,n,r){const a=t.querySelector("rect, path");let l="";if(a){l=window.getComputedStyle(a).getPropertyValue("fill"),(!l||l==="none"||l==="transparent"||l==="rgba(0, 0, 0, 0)")&&(r?l=window.getComputedStyle(r).getPropertyValue("fill"):l=n);const u=this.getHighlightColor(l,n);a.setAttribute("stroke",u),a.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}j(Et,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),j(Et,"MIN_LINE_SPAN",10),j(Et,"MIN_VISIBLE_FILL_OPACITY",.01),j(Et,"MIN_VISIBLE_STROKE_OPACITY",.01),j(Et,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const bT="unavailable",UP="X",HP="Y",qP="Level",GP={[pt.BAR]:"Bar Chart",[pt.BOX]:"Box Plot",[pt.CANDLESTICK]:"Candlestick Chart",[pt.DODGED]:"Dodged Bar Chart",[pt.HEATMAP]:"Heatmap",[pt.HISTOGRAM]:"Histogram",[pt.LINE]:"Line Chart",[pt.NORMALIZED]:"Normalized Stacked Bar Chart",[pt.SCATTER]:"Scatter Plot",[pt.SMOOTH]:"Smooth Line Chart",[pt.STACKED]:"Stacked Bar Chart",[pt.VIOLIN_BOX]:"Violin Box Plot",[pt.VIOLIN_KDE]:"Violin Plot"};class xT{constructor(){j(this,"observers");j(this,"isWarning");this.observers=new Array,this.isWarning=!1}dispose(){this.observers.length=0}notifyRotorBounds(){this.isWarning=!0,this.notifyStateUpdate(),this.isWarning=!1}get isInitialEntry(){return this.movable.isInitialEntry}set isInitialEntry(t){this.movable.isInitialEntry=t}get isOutOfBounds(){return this.movable.isOutOfBounds}set isOutOfBounds(t){this.movable.isOutOfBounds=t}get row(){return this.movable.row}get col(){return this.movable.col}set row(t){this.movable.row=t}set col(t){this.movable.col=t}getSafeIndices(){const t=this.row>=0&&this.row<this.dimension.rows?this.row:0,n=this.col>=0&&this.col<this.dimension.cols?this.col:0;return{row:t,col:n}}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyStateUpdate(){const t=this.state;this.observers.forEach(n=>n.update(t))}notifyOutOfBounds(){const t=this.outOfBoundsState;this.observers.forEach(n=>n.update(t))}moveOnce(t){const n=this.movable.moveOnce(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToExtreme(t){const n=this.movable.moveToExtreme(t);return n?this.notifyStateUpdate():this.notifyOutOfBounds(),n}moveToIndex(t,n){const r=this.movable.moveToIndex(t,n);return r?this.notifyStateUpdate():this.notifyOutOfBounds(),r}isMovable(t){return this.movable.isMovable(t)}notifyObserversWithState(t){for(const n of this.observers)n.update(t)}moveToNextCompareValue(t,n){return this.notifyRotorBounds(),!1}compare(t,n,r){return r==="lower"?t<n:r==="higher"?t>n:!1}moveUpRotor(t){throw new Error("Move up function is not defined for this trace")}moveDownRotor(t){throw new Error("Move down function is not defined for this trace")}moveLeftRotor(t){throw new Error("Move left function is not defined for this trace")}moveRightRotor(t){throw new Error("Move right function is not defined for this trace")}moveToPoint(t,n){}supportsCompareMode(){return!0}dataModeName(){return fe.DATA_MODE}}class Ea extends xT{constructor(n){var r,a,l,u,d,h;super();j(this,"id");j(this,"type");j(this,"title");j(this,"xAxis");j(this,"yAxis");j(this,"z");j(this,"navigationService");j(this,"layer");this.layer=n,this.navigationService=new hT,this.id=n.id,this.type=n.type,this.title=n.title??bT,this.xAxis=((a=(r=n.axes)==null?void 0:r.x)==null?void 0:a.label)??UP,this.yAxis=((u=(l=n.axes)==null?void 0:l.y)==null?void 0:u.label)??HP,this.z=((h=(d=n.axes)==null?void 0:d.z)==null?void 0:h.label)??qP}dispose(){this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(r=>{(Array.isArray(r)?r:[r]).forEach(l=>l.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isWarning?{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols},warning:!0}:{empty:!1,type:"trace",layerId:this.id,traceType:this.type,plotType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,z:this.z,hasMultiPoints:this.hasMultiPoints,audio:this.audio,braille:this.braille,text:this.text,autoplay:this.autoplay,highlight:this.highlight,orientation:this.layer.orientation}}get outOfBoundsState(){return{empty:!0,type:"trace",traceType:this.type,audio:{y:this.row,x:this.col,rows:this.dimension.rows,cols:this.dimension.cols}}}get highlight(){return this.highlightValues===null||this.isInitialEntry?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAllHighlightElements(){if(this.highlightValues===null)return[];const n=[];for(const r of this.highlightValues)for(const a of r)Array.isArray(a)?n.push(...a):a&&n.push(a);return n}getAllOriginalElements(){if(this.highlightValues===null)return[];const n=[];for(const r of this.highlightValues)for(const a of r){const l=Array.isArray(a)?a:a?[a]:[];for(const u of l){const d=u.previousElementSibling;d&&d.tagName===u.tagName&&d.getAttribute("visibility")!=="hidden"&&n.push(d)}}return n}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}}resetToInitialEntry(){this.isInitialEntry=!0,this.row=0,this.col=0}get hasMultiPoints(){return!1}getChartTypeLabel(){return GP[this.layer.type]??this.layer.type}getDescriptionAxes(){var n,r;return{x:this.xAxis,y:this.yAxis,...((r=(n=this.layer.axes)==null?void 0:n.z)==null?void 0:r.label)&&{z:this.z}}}getExtremaTargets(){return[]}navigateToExtrema(n){if(this.supportsExtrema)throw new Error("Extrema navigation not implemented by this plot type")}finalizeNavigation(){this.isInitialEntry&&(this.isInitialEntry=!1),this.updateVisualPointPosition(),this.notifyStateUpdate()}supportsIntersectionMode(){return!1}moveToNextIntersection(){return!1}moveToPrevIntersection(){return!1}updateVisualPointPosition(){}supportsExtremaNavigation(){return this.supportsExtrema}getCurrentXValue(){if(this.hasPointsArray()){const n=this.getPointsArray();if(this.isValidPointsArray(n))return this.navigationService.extractXValueFromPoints(n,this.row,this.col)}if(this.hasValuesArray()){const n=this.values;if(this.isValidValuesArray(n))return this.navigationService.extractXValueFromValues(n,this.row,this.col)}return null}moveToXValue(n){if(this.hasPointsArray()){const r=this.getPointsArray();if(this.isValidPointsArray(r))return this.navigationService.moveToXValueInPoints(r,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const r=this.values;if(this.isValidValuesArray(r))return this.navigationService.moveToXValueInValues(r,n,this.moveToIndex.bind(this))}return!1}hasPointsArray(){return"points"in this&&this.points!==void 0}hasValuesArray(){return"values"in this&&this.values!==void 0}getPointsArray(){return this.points}isValidPointsArray(n){return Array.isArray(n)&&n.length>0}isValidValuesArray(n){return Array.isArray(n)&&n.length>0}getId(){return this.id}moveToPoint(n,r){const a=this.findNearestPoint(n,r);if(a&&this.isPointInBounds(n,r,a)){if(this.row===a.row&&this.col===a.col)return;this.moveToIndex(a.row,a.col)}}isPointInBounds(n,r,{element:a,row:l,col:u}){const d=a.getBoundingClientRect();let h=12;return(this.type===pt.HEATMAP||this.type===pt.BAR||this.type===pt.STACKED||this.type===pt.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&r>=d.y-h&&r<=d.y+d.height+h}}class br{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const n=t.flat();return this.safeMin(n)}static maxFrom2D(t){const n=t.flat();return this.safeMax(n)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let n=t[0],r=t[0];for(let a=1;a<t.length;a++){const l=t[a];l<n&&(n=l),l>r&&(r=l)}return{min:n,max:r}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class ST{constructor(t){j(this,"isInitialEntry");j(this,"isOutOfBounds");j(this,"row");j(this,"col");this.isInitialEntry=(t==null?void 0:t.isInitialEntry)??!0,this.isOutOfBounds=!1,this.row=(t==null?void 0:t.row)??0,this.col=(t==null?void 0:t.col)??0}moveToIndex(t,n){return this.isMovable([t,n])?(this.row=t,this.col=n,this.isInitialEntry=!1,!0):!1}}class ef extends ST{constructor(n,r){super(r);j(this,"elements");this.elements=n}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;switch(n){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}return!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":this.row=this.elements.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.elements[this.row].length-1;break;case"BACKWARD":this.col=0;break}return!0}moveToIndex(n,r){return this.isMovable([n,r])?(this.row=n,this.col=r,this.isInitialEntry=!1,!0):!1}isMovable(n){if(Array.isArray(n)){const[r,a]=n;return r>=0&&r<this.elements.length&&a>=0&&a<this.elements[this.row].length}switch(n){case"UPWARD":return this.row<this.elements.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.elements[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.elements.length-1)),this.col=Math.max(0,Math.min(this.col,this.elements[this.row].length-1))}}class FP extends ST{constructor(n,r){super(r);j(this,"graph");this.graph=n}moveOnce(n){var l;if(this.isInitialEntry)return this.handleInitialEntry(),!0;const r=(l=this.graph[this.row])==null?void 0:l[this.col];if(!r)return!1;let a=null;switch(n){case"UPWARD":a=r.up;break;case"DOWNWARD":a=r.down;break;case"FORWARD":a=r.right;break;case"BACKWARD":a=r.left;break}return a?(this.row=a.row,this.col=a.col,!0):!1}moveToExtreme(n){var l;this.isInitialEntry&&this.handleInitialEntry();const r=(l=this.graph[this.row])==null?void 0:l[this.col];if(!r)return!1;let a=null;switch(n){case"UPWARD":a=r.top;break;case"DOWNWARD":a=r.bottom;break;case"FORWARD":a=r.end;break;case"BACKWARD":a=r.start;break}return a?(this.row=a.row,this.col=a.col,!0):!1}isMovable(n){var a,l,u;if(Array.isArray(n)){const[d,h]=n;return((a=this.graph[d])==null?void 0:a[h])!==null&&((l=this.graph[d])==null?void 0:l[h])!==void 0}const r=(u=this.graph[this.row])==null?void 0:u[this.col];if(!r)return!1;switch(n){case"UPWARD":return r.up!==null;case"DOWNWARD":return r.down!==null;case"FORWARD":return r.right!==null;case"BACKWARD":return r.left!==null}}handleInitialEntry(){this.isInitialEntry=!1,this.isMovable([0,0])?(this.row=0,this.col=0):(this.row=-1,this.col=-1)}}class YP extends ST{constructor(n,r){super();j(this,"mode");j(this,"xPoints");j(this,"yPoints");j(this,"xValues");j(this,"yValues");this.mode="col",this.xPoints=n,this.yPoints=r,this.xValues=n.map(a=>a.x),this.yValues=r.map(a=>a.y)}dispose(){this.xValues.length=0,this.yValues.length=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),!0;if(!this.isMovable(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}return!0}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}return!0}isMovable(n){if(Array.isArray(n))return!1;if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],r=n.y[Math.floor(n.y.length/2)];this.row=this.yValues.indexOf(r),this.mode="row"}else{const n=this.yPoints[this.row],r=n.x[Math.floor(n.x.length/2)];this.col=this.xValues.indexOf(r),this.mode="col"}}handleInitialEntry(){this.isInitialEntry=!1,this.mode==="col"?(this.col=Math.max(0,Math.min(this.col,this.xPoints.length-1)),this.row=Math.max(0,Math.min(this.row,this.xPoints[this.col].y.length-1))):(this.row=Math.max(0,Math.min(this.row,this.yPoints.length-1)),this.col=Math.max(0,Math.min(this.col,this.yPoints[this.row].x.length-1)))}}class ET extends Ea{constructor(n,r){super(n);j(this,"movable");j(this,"points");j(this,"barValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"orientation");j(this,"min");j(this,"max");j(this,"supportsExtrema",!0);this.points=r,this.orientation=n.orientation??_t.VERTICAL,this.barValues=r.map(a=>a.map(l=>this.orientation===_t.VERTICAL?Number(l.y):Number(l.x))),this.min=this.barValues.map(a=>br.safeMin(a)),this.max=this.barValues.map(a=>br.safeMax(a)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new ef(this.points)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get audio(){const n=this.orientation===_t.VERTICAL,r=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:br.safeMin(this.min),max:br.safeMax(this.max),raw:r},panning:{x:n?this.col:this.row,y:n?this.row:this.col,rows:n?this.barValues.length:this.barValues[this.col].length,cols:n?this.barValues[this.row].length:this.barValues.length},group:n?this.row:this.col}}get braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){const n=this.orientation===_t.VERTICAL,r=this.points[this.row][this.col],a=n?this.xAxis:this.yAxis,l=n?r.x:r.y,u=n?this.yAxis:this.xAxis,d=n?r.y:r.x;return{main:{label:a,value:l},cross:{label:u,value:d},mainAxis:n?"x":"y",crossAxis:n?"y":"x"}}get description(){const n=this.orientation===_t.VERTICAL,r=[{label:"Number of bars",value:this.points[0].length},{label:"Min value",value:br.safeMin(this.min)},{label:"Max value",value:br.safeMax(this.max)}];this.points.length>1&&r.push({label:"Number of groups",value:this.points.length});const a=n?[this.xAxis,this.yAxis]:[this.yAxis,this.xAxis],l=this.points[0].map(u=>{const d=n?u.x:u.y,h=n?u.y:u.x;return[d,h]});return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:r,dataTable:{headers:a,rows:l}}}get dimension(){return{rows:this.barValues.length,cols:this.barValues[this.row].length}}get values(){return this.barValues}mapToSvgElements(n){if(!n)return null;const a=[Et.selectAllElements(n)];if(a.length!==this.points.length)return null;for(let l=0;l<this.points.length;l++)if(a[l].length!==this.points[l].length)if(a[l].length<this.points[l].length){const u=[];let d=0;for(let h=0;h<this.points[l].length;h++)(this.orientation===_t.VERTICAL?Number(this.points[l][h].y):Number(this.points[l][h].x))!==0&&d<a[l].length?u.push(a[l][d++]):u.push(Et.createEmptyElement());a[l]=u}else return null;return a}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u,h=d.getBoundingClientRect();d&&r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}return r}findNearestPoint(n,r){if(!this.highlightValues||this.highlightValues.length===0)return null;for(let a=0;a<this.highlightValues.length;a++){const l=this.highlightValues[a];if(!(!l||l.length===0))for(let u=0;u<l.length;u++){const d=l[u];if(!d)continue;const h=Array.isArray(d)?d[0]:d;if(!h||!h.getBoundingClientRect)continue;const y=h.getBoundingClientRect();if(!(y.width===0&&y.height===0)&&n>=y.x&&n<=y.x+y.width&&r>=y.y&&r<=y.y+y.height)return{element:h,row:a,col:u}}}return null}}class XP extends ET{isPointInBounds(t,n,{element:r,row:a,col:l}){const u=r.getBoundingClientRect();return t>=u.x&&t<=u.x+u.width&&n>=u.y&&n<=u.y+u.height}constructor(t){super(t,[t.data])}getExtremaTargets(){var T,E;const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const r=this.barValues[n];if(!r||r.length===0)return t;const a=this.min[n],l=this.max[n],u=r.indexOf(l),d=r.indexOf(a),h=(T=this.points[n])==null?void 0:T[u],y=(E=this.points[n])==null?void 0:E[d],v=h?this.orientation===_t.VERTICAL?h.x:h.y:void 0,x=y?this.orientation===_t.VERTICAL?y.x:y.y:void 0;return t.push({label:`Max Bar at ${this.getPointLabel(u)}`,value:l,pointIndex:u,segment:"bar",type:"max",navigationType:"point",xValue:v}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:a,pointIndex:d,segment:"bar",type:"min",navigationType:"point",xValue:x}),t}navigateToExtrema(t){this.col=t.pointIndex,this.finalizeNavigation()}getPointLabel(t){if(this.points[this.row]&&this.points[this.row][t]){const n=this.points[this.row][t];return this.orientation===_t.VERTICAL?`${n.x}`:`${n.y}`}return`Point ${t}`}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}moveToNextCompareValue(t,n){const r=this.row;if(r<0||r>=this.barValues.length)return!1;const a=this.barValues[r];if(!a||a.length===0)return!1;const l=this.col,u=t==="right"?1:-1;let d=l+u;for(;d>=0&&d<a.length;){if(this.compare(a[d],a[l],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=u}return this.notifyRotorBounds(),!1}}const sa={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)",MEAN:"Mean"};class WP extends Ea{constructor(n){var d;super(n);j(this,"supportsExtrema",!1);j(this,"movable");j(this,"points");j(this,"boxValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"orientation");j(this,"sections");j(this,"min");j(this,"max");this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:r,accessors:a}=this.buildStandardBoxDataSections();this.sections=r,this.boxValues=this.computeBoxValues(a);const u=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=br.minFrom2D(u),this.max=br.maxFrom2D(u),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new ef(this.boxValues,{row:0})}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(r=>n.map(a=>a(r))):n.map(r=>this.points.map(a=>r(a)))}buildStandardBoxDataSections(){return{sections:[sa.LOWER_OUTLIER,sa.MIN,sa.Q1,sa.Q2,sa.Q3,sa.MAX,sa.UPPER_OUTLIER],accessors:[n=>n.lowerOutliers,n=>n.min,n=>n.q1,n=>n.q2,n=>n.q3,n=>n.max,n=>n.upperOutliers]}}get description(){const n=this.points.map(u=>u.z).join(", "),r=[{label:"Number of groups",value:this.points.length},{label:"Group names",value:n},{label:"Min",value:this.min},{label:"Max",value:this.max}],a=["Group","Min","Q1","Q2","Q3","Max"],l=this.points.map(u=>[u.z,u.min,u.q1,u.q2,u.q3,u.max]);return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:r,dataTable:{headers:a,rows:l}}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,r){return super.moveToIndex(n,r)}get values(){return this.boxValues}get audio(){const n=this.orientation===_t.HORIZONTAL,r=this.boxValues[this.row][this.col],a=n?this.col:this.row,l=Array.isArray(r)?r.length===0?a:r[r.length-1]-this.min:Number.isNaN(r)?a:r-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?l:this.row,y:n?this.row:l,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get braille(){const n=this.orientation===_t.HORIZONTAL,r=n?this.row:this.col,a=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:r,col:a}}get text(){const n=this.orientation===_t.HORIZONTAL,r=n?this.points[this.row]:this.points[this.col],a=n?this.yAxis:this.xAxis,l=n?this.sections[this.col]:this.sections[this.row],u=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:a,value:r.z},cross:{label:u,value:d},section:l,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get dimension(){const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.boxValues.length:this.boxValues[this.row].length,cols:n?this.boxValues[this.row].length:this.boxValues.length}}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const r=this.orientation===_t.VERTICAL,a=new Array;if(r)for(let u=0;u<this.sections.length;u++)a.push(Array.from({length:n.length}));const l=[];return n.forEach(u=>{var R,_;const d=((R=u.lowerOutliers)==null?void 0:R.flatMap(D=>Et.selectAllElements(D,!1)))??[],h=((_=u.upperOutliers)==null?void 0:_.flatMap(D=>Et.selectAllElements(D,!1)))??[],y=Et.selectElement(u.min,!1),v=Et.selectElement(u.max,!1),x=Et.selectElement(u.iq,!1),T=Et.selectElement(u.q2,!1),E=u.q1?Et.selectElement(u.q1,!1):null,A=u.q3?Et.selectElement(u.q3,!1):null;l.push({lowerOutliers:d,upperOutliers:h,min:y,max:v,iq:x,q2:T,q1Direct:E,q3Direct:A})}),l.forEach((u,d)=>{var _;const h=u.lowerOutliers.map(D=>{const z=D.cloneNode(!0);return z.setAttribute(fe.VISIBILITY,fe.HIDDEN),D.insertAdjacentElement(fe.AFTER_END,z),z}),y=u.upperOutliers.map(D=>{const z=D.cloneNode(!0);return z.setAttribute(fe.VISIBILITY,fe.HIDDEN),D.insertAdjacentElement(fe.AFTER_END,z),z}),v=this.cloneElementOrEmpty(u.min),x=this.cloneElementOrEmpty(u.max),T=this.cloneElementOrEmpty(u.q2);let E,A;if(u.q1Direct&&u.q3Direct)E=this.cloneElementOrEmpty(u.q1Direct),A=this.cloneElementOrEmpty(u.q3Direct);else{const D=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse";[E,A]=u.iq?r?D?[Et.createLineElement(u.iq,"top"),Et.createLineElement(u.iq,"bottom")]:[Et.createLineElement(u.iq,"bottom"),Et.createLineElement(u.iq,"top")]:[Et.createLineElement(u.iq,"left"),Et.createLineElement(u.iq,"right")]:[Et.createEmptyElement("line"),Et.createEmptyElement("line")]}const R=[h,v,E,T,A,x,y];r?R.forEach((D,z)=>{a[z][d]=D}):a.push(R)}),a}cloneElementOrEmpty(n){if(!n)return Et.createEmptyElement();const r=n.cloneNode(!0);return r.setAttribute(fe.VISIBILITY,fe.HIDDEN),n.insertAdjacentElement(fe.AFTER_END,r),r}moveToNextCompareValue(n,r){const a=this.row;if(a<0||a>=this.boxValues.length)return!1;let l=[],u=0;if(n==="left"||n==="right"?(l=this.boxValues[this.row],u=this.col):(l=this.boxValues.map(y=>y[this.col]),u=this.row),l.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=u+d;for(;h>=0&&h<l.length;){const y=l[u],v=l[h];if(Array.isArray(v)||Array.isArray(y))return!0;if(this.compare(v,y,r))return this.set_point(n,h),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}set_point(n,r){n==="left"||n==="right"?this.col=r:this.row=r}moveUpRotor(n){return this.orientation===_t.VERTICAL?(this.moveOnce("UPWARD"),!0):this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.orientation===_t.VERTICAL?(this.moveOnce("DOWNWARD"),!0):this.moveToNextCompareValue("down",n)}moveLeftRotor(n){return this.orientation===_t.HORIZONTAL?(this.moveOnce("BACKWARD"),!0):this.moveToNextCompareValue("left",n)}moveRightRotor(n){return this.orientation===_t.HORIZONTAL?(this.moveOnce("FORWARD"),!0):this.moveToNextCompareValue("right",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u;if(d){const h=d.getBoundingClientRect();r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}}return r}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}moveToPoint(n,r){}}const KP="trend",zO=100,QP=["volatility","open","high","low","close"];class ZP extends Ea{constructor(n){super(n);j(this,"supportsExtrema",!0);j(this,"movable");j(this,"candles");j(this,"candleValues");j(this,"orientation");j(this,"currentSegmentType","open");j(this,"currentPointIndex",0);j(this,"sortedSegmentsByPoint");j(this,"segmentPositionMaps");j(this,"sections");j(this,"min");j(this,"max");j(this,"highlightValues");j(this,"highlightCenters");j(this,"navigationService");this.navigationService=new hT;const r=n.data;this.candles=r.map(l=>({...l,volatility:Math.round((l.high-l.low)*zO)/zO,trend:l.close>l.open?"Bull":l.close<l.open?"Bear":"Neutral"})),this.orientation=n.orientation??_t.VERTICAL,this.sections=QP,this.candleValues=this.sections.map(l=>this.candles.map(u=>u[l]));const a=this.orientation===_t.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new ef(this.candleValues,a),this.min=br.minFrom2D(this.candleValues),this.max=br.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===_t.HORIZONTAL?this.col=0:this.row=0,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters()}precomputeSortedSegments(){return this.candles.map(n=>["volatility",...["low","open","close","high"].map(l=>[l,n[l]]).sort((l,u)=>l[1]-u[1]).map(l=>l[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const r=new Map;return n.forEach((a,l)=>{r.set(a,l)}),r})}getSegmentPositionInSortedOrder(n,r){return this.segmentPositionMaps[n].get(r)??0}getSegmentTypeAtSortedPosition(n,r){return this.sortedSegmentsByPoint[n][r]??"open"}updateVisualSegmentPosition(){const r=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===_t.HORIZONTAL?this.col=r:this.row=r}updateVisualPointPosition(){this.orientation===_t.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex,this.updateVisualSegmentPosition()}handleInitialEntry(){this.isInitialEntry=!1,this.currentPointIndex=Math.max(0,Math.min(this.currentPointIndex,this.candles.length-1)),this.currentSegmentType="close",this.updateVisualSegmentPosition()}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;switch(n){case"UPWARD":case"DOWNWARD":{const r=this.sortedSegmentsByPoint[this.currentPointIndex],a=r.indexOf(this.currentSegmentType??"open");if(a===-1)return this.notifyOutOfBounds(),!1;const l=n==="UPWARD"?a+1:a-1;if(l>=0&&l<r.length)this.currentSegmentType=r[l],this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}case"FORWARD":case"BACKWARD":{const r=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(r>=0&&r<this.candles.length)this.currentPointIndex=r,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}}return this.notifyStateUpdate(),!0}moveToExtreme(n){switch(this.isInitialEntry&&this.handleInitialEntry(),n){case"UPWARD":{const r=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=r[r.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const r=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=r[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}return this.notifyStateUpdate(),!0}moveToIndex(n,r){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:a,segmentType:l}=this.navigationService.computeIndexAndSegment(n,r,this.orientation,this.sections);return this.currentPointIndex=a,this.currentSegmentType=l,this.row=n,this.col=r,this.updateVisualSegmentPosition(),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}isMovable(n){if(Array.isArray(n))return super.isMovable(n);if(this.isInitialEntry)return!0;switch(n){case"UPWARD":case"DOWNWARD":{const r=this.sortedSegmentsByPoint[this.currentPointIndex],a=r.indexOf(this.currentSegmentType??"open"),l=n==="UPWARD"?a+1:a-1;return l>=0&&l<r.length}case"FORWARD":case"BACKWARD":{const r=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return r>=0&&r<this.candles.length}}}get description(){const n=this.candles.filter(d=>d.trend==="Bull").length,r=this.candles.filter(d=>d.trend==="Bear").length,a=[{label:"Number of periods",value:this.candles.length},{label:"Price range",value:`${this.min} to ${this.max}`},{label:"Bull count",value:n},{label:"Bear count",value:r}],l=["Date","Open","High","Low","Close","Volume","Trend"],u=this.candles.map(d=>[d.value,d.open,d.high,d.low,d.close,d.volume??"",d.trend]);return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:a,dataTable:{headers:l,rows:u}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}get audio(){let n;const r=this.orientation===_t.HORIZONTAL;return this.currentSegmentType==="volatility"?n=this.candles[this.currentPointIndex].volatility:this.currentSegmentType?n=this.candles[this.currentPointIndex][this.currentSegmentType]:n=this.candles[this.currentPointIndex].open,{freq:{min:this.min,max:this.max,raw:n},panning:{x:r?this.row:this.col,y:r?this.col:this.row,rows:r?this.candleValues.length:this.candleValues[this.row].length,cols:r?this.candleValues[this.row].length:this.candleValues.length},trend:this.candles[this.currentPointIndex].trend}}get braille(){const n=this.candles.map(u=>u.trend),r=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=r;const a=this.candleValues.map(u=>Math.min(...u)),l=this.candleValues.map(u=>Math.max(...u));return{empty:!1,id:this.id,values:this.candleValues,min:a,max:l,row:this.row,col:this.col,custom:n}}collectElements(n){if(!n)return[];const r=Array.isArray(n)?n:[n],a=[];for(const l of r)a.push(...Et.selectAllElements(l));return a}getElementAt(n,r){return r<n.length?n[r]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const A=Array.isArray(n)?n[0]||"":n,R=Et.selectAllElements(A),_=[];for(let D=0;D<this.sections.length;D++){_[D]=[];for(let z=0;z<this.candles.length;z++){const V=z<R.length?z:0;_[D][z]=R[V]}}return _}const r=n,a=this.candles.length,l=this.collectElements(r.body);let u=this.collectElements(r.wickHigh),d=this.collectElements(r.wickLow);if(u.length===0||d.length===0){const A=this.collectElements(r.wick);A.length>0&&(u.length===0&&(u=A),d.length===0&&(d=A))}const h=this.collectElements(r.open),y=this.collectElements(r.close),v=Array.from({length:a},()=>Et.createEmptyElement()),x=Array.from({length:a},()=>Et.createEmptyElement()),T=Array.from({length:a},()=>Et.createEmptyElement());for(let A=0;A<a;A++){let R=this.getElementAt(h,A);if(!R){const D=this.getElementAt(l,A);if(D){const{open:z,close:V}=this.candles[A],P=V>z?"bottom":V<z?"top":"bottom";R=Et.createLineElement(D,P)}else R=Et.createEmptyElement()}v[A]=R;let _=this.getElementAt(y,A);if(!_){const D=this.getElementAt(l,A);if(D){const{open:z,close:V}=this.candles[A],P=V>z?"top":V<z?"bottom":"top";_=Et.createLineElement(D,P)}else _=Et.createEmptyElement()}x[A]=_,T[A]=Et.createEmptyElement()}const E=Array.from({length:this.sections.length},()=>Array.from({length:a},()=>Et.createEmptyElement()));for(let A=0;A<a;A++){const R=this.sortedSegmentsByPoint[A];for(let _=0;_<R.length;_++){const D=R[_];let z;switch(D){case"volatility":{const V=[],P=this.getElementAt(l,A),I=this.getElementAt(u,A)??P,H=this.getElementAt(d,A)??P;I&&V.push(I),P&&V.push(P),H&&V.push(H);const X=Array.from(new Set(V));z=X.length>0?X:[Et.createEmptyElement()]}break;case"open":z=v[A];break;case"close":z=x[A];break;case"high":z=this.getElementAt(u,A)??this.getElementAt(l,A)??Et.createEmptyElement();break;case"low":z=this.getElementAt(d,A)??this.getElementAt(l,A)??Et.createEmptyElement();break;default:z=Et.createEmptyElement()}E[_][A]=z}}return E}get text(){const n=this.candles[this.currentPointIndex],r=this.orientation===_t.HORIZONTAL;let a;return this.currentSegmentType==="volatility"?a=n.volatility:this.currentSegmentType?a=n[this.currentSegmentType]:a=n.open,{main:{label:r?this.yAxis:this.xAxis,value:n.value},cross:{label:r?this.xAxis:this.yAxis,value:a},section:this.currentSegmentType??"open",z:{label:KP,value:n.trend},mainAxis:r?"y":"x",crossAxis:r?"x":"y"}}getCurrentTrend(){return this.candles[this.currentPointIndex].trend}getCurrentXValue(){return this.currentPointIndex>=0&&this.currentPointIndex<this.candles.length?this.candles[this.currentPointIndex].value:null}moveToXValue(n){const r=this.candles.findIndex(a=>a.value===n);return r!==-1?(this.currentPointIndex=r,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],r=this.currentSegmentType??"open";if(r==="volatility"){const a=this.candles.map((y,v)=>({value:y.volatility,index:v})),l=Math.max(...a.map(y=>y.value)),u=a.filter(y=>y.value===l).map(y=>y.index),d=Math.min(...a.map(y=>y.value)),h=a.filter(y=>y.value===d).map(y=>y.index);u.forEach((y,v)=>{const x=this.candles[y];n.push({label:`Max Volatility at ${x.value}`,value:x.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point",xValue:x.value})}),h.forEach((y,v)=>{const x=this.candles[y];n.push({label:`Min Volatility at ${x.value}`,value:x.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point",xValue:x.value})})}else{const a=this.candles.map((y,v)=>({value:y[r],index:v,xValue:y.value})),l=Math.max(...a.map(y=>y.value)),u=a.filter(y=>y.value===l).map(y=>y.index),d=Math.min(...a.map(y=>y.value)),h=a.filter(y=>y.value===d).map(y=>y.index);u.forEach((y,v)=>{const x=this.candles[y],T=r.charAt(0).toUpperCase()+r.slice(1);n.push({label:`Max ${T} at ${x.value}`,value:x[r],pointIndex:y,segment:r,type:"max",navigationType:"point",xValue:x.value})}),h.forEach((y,v)=>{const x=this.candles[y],T=r.charAt(0).toUpperCase()+r.slice(1);n.push({label:`Min ${T} at ${x.value}`,value:x[r],pointIndex:y,segment:r,type:"min",navigationType:"point",xValue:x.value})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeNavigation()}moveToNextCompareValue(n,r){const a=this.row;if(a<0||a>=this.candles.length)return!1;const l=this.currentSegmentType??"open",u=this.candles.map((v,x)=>({value:v[l],index:x,xValue:v.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<u.length;){if(this.compare(u[y].value,u[d].value,r))return this.col=y,this.currentPointIndex=y,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;y+=h}return this.notifyRotorBounds(),!1}moveUpRotor(){return this.moveOnce("UPWARD"),!0}moveDownRotor(){return this.moveOnce("DOWNWARD"),!0}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u;if(d){const h=d.getBoundingClientRect();r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}}return r}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}get dimension(){const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.candleValues.length:this.candleValues[this.row].length,cols:n?this.candleValues[this.row].length:this.candleValues.length}}}class JP extends Ea{constructor(n){super(n);j(this,"supportsExtrema",!0);j(this,"movable");j(this,"heatmapValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"x");j(this,"y");j(this,"min");j(this,"max");const r=n.data;this.x=r.x,this.y=[...r.y].reverse(),this.heatmapValues=[...r.points].reverse();const{min:a,max:l}=br.minMaxFrom2D(this.heatmapValues);this.min=a,this.max=l,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new ef(this.heatmapValues)}get values(){return this.heatmapValues}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get audio(){return{freq:{min:this.min,max:this.max,raw:this.heatmapValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}}get braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},z:{label:this.z,value:this.heatmapValues[this.row][this.col]}}}get description(){const n=[{label:"Rows",value:this.y.length},{label:"Columns",value:this.x.length},{label:"Min value",value:this.min},{label:"Max value",value:this.max}],r=[this.yAxis,...this.x],a=this.y.map((l,u)=>[l,...this.heatmapValues[u]]);return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:n,dataTable:{headers:r,rows:a}}}get dimension(){return{rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}mapToSvgElements(n){var d;if(!n)return null;const r=this.heatmapValues.length,a=this.heatmapValues[0].length;if(Array.isArray(n)){if(n.length!==r)return null;const h=[];for(let y=0;y<r;y++){const v=n[y];if(!Array.isArray(v)||v.length!==a)return null;const x=[];for(let T=0;T<a;T++){const E=document.querySelector(v[T]);if(!E)return null;x.push(E)}h.push(x)}return h}const l=Et.selectAllElements(n,!1);if(l.length===1&&l[0]instanceof SVGImageElement)return this.createOverlayRects(l[0],r,a);if(l.length===0||l.length!==r*a)return null;const u=new Array;if(l[0]instanceof SVGPathElement)for(let h=0;h<r;h++){const y=r-1-h,v=new Array;for(let x=0;x<a;x++){const T=y*a+x;v.push(l[T])}u.push(v)}else if(l[0]instanceof SVGRectElement)if(((d=this.layer.domMapping)==null?void 0:d.order)==="row")for(let h=0;h<r;h++){const y=r-1-h,v=new Array;for(let x=0;x<a;x++){const T=y*a+x;v.push(l[T])}u.push(v)}else for(let h=0;h<r;h++){const y=new Array;for(let v=0;v<a;v++){const x=v*r+h;y.push(l[x])}u.push(y)}return u}createOverlayRects(n,r,a){const l=Number.parseFloat(n.getAttribute("x")??"0"),u=Number.parseFloat(n.getAttribute("y")??"0"),d=Number.parseFloat(n.getAttribute("width")??"0"),h=Number.parseFloat(n.getAttribute("height")??"0");if(d===0||h===0)return null;const y=d/a,v=h/r,x=n.parentElement;if(!x)return null;const T="http://www.w3.org/2000/svg",E=new Array;for(let A=0;A<r;A++){const R=new Array;for(let _=0;_<a;_++){const D=document.createElementNS(T,"rect");D.setAttribute("x",String(l+_*y)),D.setAttribute("y",String(u+A*v)),D.setAttribute("width",String(y)),D.setAttribute("height",String(v)),D.setAttribute("fill","transparent"),D.setAttribute("stroke","none"),D.setAttribute("pointer-events","none"),x.appendChild(D),R.push(D)}E.push(R)}return E}updateVisualPointPosition(){const{row:n,col:r}=this.getSafeIndices();this.row=n,this.col=r}moveToNextCompareValue(n,r){switch(n){case"left":case"right":return this.search_in_row(n,r);case"up":case"down":return this.search_in_col(n,r);default:return this.notifyRotorBounds(),!1}}search_in_row(n,r){const a=this.y.length,l=this.col,u=n==="left"?-1:1;let d=l+u;for(;d>=0&&d<a;){if(this.compare(this.heatmapValues[this.row][d],this.heatmapValues[this.row][l],r))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=u}return this.notifyRotorBounds(),!1}search_in_col(n,r){const a=this.x.length,l=this.row,u=n==="up"?1:-1;let d=l+u;for(;d>=0&&d<a;){if(this.compare(this.heatmapValues[d][this.col],this.heatmapValues[l][this.col],r))return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=u}return!1}moveUpRotor(n){return this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.moveToNextCompareValue("down",n)}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u;if(d){const h=d.getBoundingClientRect();r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}}return r}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}getExtremaTargets(){const n=[],r=this.row,a=this.col,l=this.findGlobalExtrema("max");l&&n.push({label:`Global Maximum: ${l.value} at ${this.x[l.col]}, ${this.y[l.row]}`,value:l.value,pointIndex:l.row*this.heatmapValues[0].length+l.col,segment:"global",type:"max",navigationType:"group",groupIndex:l.row,categoryIndex:l.col,xValue:this.x[l.col]});const u=this.findGlobalExtrema("min");u&&n.push({label:`Global Minimum: ${u.value} at ${this.x[u.col]}, ${this.y[u.row]}`,value:u.value,pointIndex:u.row*this.heatmapValues[0].length+u.col,segment:"global",type:"min",navigationType:"group",groupIndex:u.row,categoryIndex:u.col,xValue:this.x[u.col]});const d=this.findRowExtrema(r,"max");d&&n.push({label:`Row Maximum: ${d.value} at ${this.x[d.col]}, ${this.y[r]}`,value:d.value,pointIndex:r*this.heatmapValues[0].length+d.col,segment:`row-${r}`,type:"max",navigationType:"group",groupIndex:r,categoryIndex:d.col,xValue:this.x[d.col]});const h=this.findRowExtrema(r,"min");h&&n.push({label:`Row Minimum: ${h.value} at ${this.x[h.col]}, ${this.y[r]}`,value:h.value,pointIndex:r*this.heatmapValues[0].length+h.col,segment:`row-${r}`,type:"min",navigationType:"group",groupIndex:r,categoryIndex:h.col,xValue:this.x[h.col]});const y=this.findColExtrema(a,"max");y&&n.push({label:`Column Maximum: ${y.value} at ${this.x[a]}, ${this.y[y.row]}`,value:y.value,pointIndex:y.row*this.heatmapValues[0].length+a,segment:`col-${a}`,type:"max",navigationType:"group",groupIndex:y.row,categoryIndex:a,xValue:this.x[a]});const v=this.findColExtrema(a,"min");return v&&n.push({label:`Column Minimum: ${v.value} at ${this.x[a]}, ${this.y[v.row]}`,value:v.value,pointIndex:v.row*this.heatmapValues[0].length+a,segment:`col-${a}`,type:"min",navigationType:"group",groupIndex:v.row,categoryIndex:a,xValue:this.x[a]}),n}findGlobalExtrema(n){if(this.heatmapValues.length===0)return null;let r=0,a=0,l=this.heatmapValues[0][0];for(let u=0;u<this.heatmapValues.length;u++)for(let d=0;d<this.heatmapValues[u].length;d++){const h=this.heatmapValues[u][d];(n==="max"?h>l:h<l)&&(l=h,r=u,a=d)}return{row:r,col:a,value:l}}findRowExtrema(n,r){if(n<0||n>=this.heatmapValues.length)return null;const a=this.heatmapValues[n];if(a.length===0)return null;let l=0,u=a[0];for(let d=1;d<a.length;d++){const h=a[d];(r==="max"?h>u:h<u)&&(u=h,l=d)}return{col:l,value:u}}findColExtrema(n,r){if(this.heatmapValues.length===0||n<0||n>=this.heatmapValues[0].length)return null;let a=0,l=this.heatmapValues[0][n];for(let u=1;u<this.heatmapValues.length;u++){const d=this.heatmapValues[u][n];(r==="max"?d>l:d<l)&&(l=d,a=u)}return{row:a,value:l}}navigateToExtrema(n){n.groupIndex!==void 0&&n.categoryIndex!==void 0&&(this.row=n.groupIndex,this.col=n.categoryIndex,this.finalizeNavigation())}}class ej extends ET{constructor(t){super(t,[t.data])}get description(){const t=this.orientation===_t.VERTICAL,n=this.points[0],r=n[0],a=n[n.length-1],l=t?r.xMin:r.yMin,u=t?a.xMax:a.yMax,d=[{label:"Number of bins",value:n.length},{label:"Min value",value:br.safeMin(this.min)},{label:"Max value",value:br.safeMax(this.max)},{label:"Bin range",value:`${l} to ${u}`}],h=t?[this.xAxis,this.yAxis,"Bin Min","Bin Max"]:[this.yAxis,this.xAxis,"Bin Min","Bin Max"],y=n.map(v=>{const x=t?v.x:v.y,T=t?v.y:v.x,E=t?v.xMin:v.yMin,A=t?v.xMax:v.yMax;return[x,T,E,A]});return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:d,dataTable:{headers:h,rows:y}}}get text(){const t=this.orientation===_t.VERTICAL,n=this.points[this.row][this.col],r=t?n.xMin:n.yMin,a=t?n.xMax:n.yMax;return{...super.text,range:{min:r,max:a}}}moveToNextCompareValue(t,n){const r=this.row;if(r<0||r>=this.barValues.length)return!1;const a=this.barValues[r];if(!a||a.length===0)return!1;const l=this.col,u=t==="right"?1:-1;let d=l+u;for(;d>=0&&d<a.length;){if(this.compare(a[d],a[l],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=u}return this.notifyRotorBounds(),!1}}const tj="Group",wT=/[ML]\s*(-?\d+(?:\.\d+)?)[,\s]+(-?\d+(?:\.\d+)?)/g,TT=/C\s*(?:-?\d+(?:\.\d+)?[,\s]+-?\d+(?:\.\d+)?[,\s]+){2}(-?\d+(?:\.\d+)?)[,\s]+(-?\d+(?:\.\d+)?)/g,F0=class F0 extends Ea{constructor(n){super(n);j(this,"supportsExtrema",!0);j(this,"rotorSupport",!0);j(this,"movable");j(this,"points");j(this,"lineValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"min");j(this,"max");j(this,"previousRow",null);j(this,"intersectionCache",new Map);this.points=n.data,this.lineValues=this.points.map(a=>a.map(l=>Number(l.y))),this.min=this.lineValues.map(a=>br.safeMin(a)),this.max=this.lineValues.map(a=>br.safeMax(a));const r=typeof n.selectors=="string"?[n.selectors]:n.selectors;this.highlightValues=this.mapToSvgElements(r),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new FP(this.buildGraph())}get values(){return this.lineValues}get description(){const n=this.points.length>1,r=[{label:"Number of lines",value:this.points.length},{label:"Points per line",value:this.points[0].length},{label:"Min value",value:br.safeMin(this.min)},{label:"Max value",value:br.safeMax(this.max)}];if(n){const u=this.points.map((d,h)=>{var y;return((y=d[0])==null?void 0:y.z)||`Line ${h+1}`}).join(", ");r.push({label:"Line names",value:u})}let a,l;return n?(a=[this.xAxis,this.yAxis,"Line"],l=this.points.flatMap((u,d)=>{var y;const h=((y=u[0])==null?void 0:y.z)||`Line ${d+1}`;return u.map(v=>[v.x,v.y,h])})):(a=[this.xAxis,this.yAxis],l=this.points[0].map(u=>[u.x,u.y])),{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:r,dataTable:{headers:a,rows:l}}}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}buildGraph(){const n=this.points.length;if(n===0)return new Array;const r=Math.max(0,...this.points.map(l=>l.length)),a=this.points.map(l=>l.map(()=>({up:null,down:null,left:null,right:null,top:null,bottom:null,start:null,end:null})));for(let l=0;l<r;l++){const u=this.points.map((v,x)=>{var T;return{y:(T=v[l])==null?void 0:T.y,row:x}}).filter(v=>v.y!==void 0);if(u.length===0)continue;const d=[...u].sort((v,x)=>v.y-x.y),h={row:d[0].row,col:l},y={row:d[d.length-1].row,col:l};for(let v=0;v<d.length;v++){const{row:x}=d[v],T=a[x][l];T&&(v>0&&(T.down={row:d[v-1].row,col:l}),v<d.length-1&&(T.up={row:d[v+1].row,col:l}),T.bottom=h,T.top=y)}}for(let l=0;l<n;l++){const u=this.points[l].length>0?{row:l,col:0}:null,d=this.points[l].length>0?{row:l,col:this.points[l].length-1}:null;for(let h=0;h<this.points[l].length;h++){const y=a[l][h];y&&(h>0&&(y.left={row:l,col:h-1}),h<this.points[l].length-1&&(y.right={row:l,col:h+1}),y.start=u,y.end=d)}}return a}get audio(){return{freq:{min:this.min[this.row],max:this.max[this.row],raw:this.lineValues[this.row][this.col]},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:this.row}}get braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}get text(){var u,d,h;const n=this.points[this.row][this.col],r=this.findIntersections();let a={};const l=((d=(u=this.layer.axes)==null?void 0:u.z)==null?void 0:d.label)??tj;if(r.length>1){let y=r.map(v=>{var T;const x=v.group;return((T=this.points[x][0])==null?void 0:T.z)||`l${x+1}`});if(this.previousRow!==null){const v=((h=this.points[this.previousRow][0])==null?void 0:h.z)||`l${this.previousRow+1}`;y.includes(v)&&(y=[v,...y.filter(x=>x!==v)])}a={z:{label:l,value:`intersection at (${y.join(", ")})`}}}else a=n.z?{z:{label:l,value:n.z}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...a}}get dimension(){return{rows:this.lineValues.length,cols:this.lineValues[this.row].length}}moveOnce(n){if(this.isInitialEntry)return this.movable.handleInitialEntry(),this.previousRow=null,this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.previousRow=this.row,n==="UPWARD"||n==="DOWNWARD"){const a=this.findLineByXAndYDirection(n),l=this.points[this.row][this.col].x;if(a!==null&&a!==this.row){const u=this.findColumnByXValue(a,l);if(u!==-1){this.row=a,this.col=u;const d=this.findIntersections();if(d.length>1){const y={...super.state,intersections:d};for(const v of this.observers)v.update(y)}else this.notifyStateUpdate();return!0}else return this.notifyOutOfBounds(),!1}else return this.notifyOutOfBounds(),!1}switch(n){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}const r=this.findIntersections();if(r.length>1){const l={...super.state,intersections:r};for(const u of this.observers)u.update(l)}else this.notifyStateUpdate();return!0}findIntersections(){const n=this.points[this.row][this.col].x,r=this.points[this.row][this.col].y,a=[];for(let l=0;l<this.points.length;l++)this.points[l].findIndex(d=>d.x===n&&d.y===r)!==-1&&a.push({freq:{min:this.min[l],max:this.max[l],raw:r},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:l});return a}isMovable(n){if(Array.isArray(n)){const[r,a]=n;return r>=0&&r<this.values.length&&a>=0&&a<this.values[r].length}switch(n){case"UPWARD":case"DOWNWARD":{const r=this.findLineByXAndYDirection(n);if(r===null)return!1;const a=this.points[this.row][this.col].x;return this.findColumnByXValue(r,a)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const r=this.points[this.row][this.col].x;let a=null,l=Number.POSITIVE_INFINITY;for(let u=0;u<this.points.length;u++){if(u===this.row)continue;const d=this.points[u].findIndex(x=>x.x===r);if(d===-1)continue;const h=this.points[u][d].y,y=n==="UPWARD"?h>this.points[this.row][this.col].y:h<this.points[this.row][this.col].y,v=Math.abs(h-this.points[this.row][this.col].y);y&&v<l&&(l=v,a=u)}return a}findColumnByXValue(n,r){return this.points[n].findIndex(a=>a.x===r)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const r=this.mapViaDomElements(n);return r||this.mapViaPathParsing(n)}mapViaDomElements(n){const r=[];let a=!0;for(let l=0;l<n.length;l++){const u=Et.selectAllElements(n[l],!1);if(u.length===0||u.length!==this.lineValues[l].length){r.push([]);continue}a=!1,r.push(u)}return a?null:r}mapViaPathParsing(n){const r=[];let a=!0;const l=new Set(n).size===n.length;for(let u=0;u<n.length;u++){const d=l?Et.selectElement(n[u],!1):Et.selectNthElement(n[0],u);if(!d){r.push([]);continue}const h=[];if(d instanceof SVGPathElement){const T=d.getAttribute(fe.D)||fe.EMPTY;this.extractPathCoordinates(T,h)}else if(d instanceof SVGPolylineElement){const E=(d.getAttribute(fe.POINTS)||fe.EMPTY).split(/\s+/).filter(Boolean);for(const A of E){const[R,_]=A.split(fe.COMMA);h.push({x:Number.parseFloat(R),y:Number.parseFloat(_)})}}const y=this.lineValues[u].length;if(h.length!==y)if(h.length>=2&&h.length<y){const T=Number(h[0].x),E=Number(h[h.length-1].x),A=this.points[u],R=Number(A[0].x),D=Number(A[A.length-1].x)-R,z=[];for(let V=0;V<y;V++){const P=Number(A[V].x),I=D>0?T+(P-R)/D*(E-T):T;let H=Number(h[0].y);for(let X=0;X<h.length-1;X++){const se=Number(h[X].x),ce=Number(h[X+1].x);if(I>=se-.01&&I<=ce+.01){const ie=ce-se,ue=ie>0?(I-se)/ie:0;H=Number(h[X].y)+ue*(Number(h[X+1].y)-Number(h[X].y));break}}z.push({x:I,y:H})}h.length=0,h.push(...z)}else if(h.length<y)for(;h.length<y;)h.push({x:Number.NaN,y:Number.NaN});else h.length=y;const v=[];let x=!1;for(const T of h){if(Number.isNaN(Number(T.x))||Number.isNaN(T.y)){x=!0;break}v.push(Et.createCircleElement(T.x,T.y,d))}if(x){r.push([]);continue}v.length>0&&(a=!1),r.push(v)}return a?null:r}extractPathCoordinates(n,r){wT.lastIndex=0;let a=wT.exec(n);const l=[];for(;a!==null;)l.push({index:a.index,x:Number.parseFloat(a[1]),y:Number.parseFloat(a[2])}),a=wT.exec(n);for(TT.lastIndex=0,a=TT.exec(n);a!==null;)l.push({index:a.index,x:Number.parseFloat(a[1]),y:Number.parseFloat(a[2])}),a=TT.exec(n);l.sort((u,d)=>u.index-d.index);for(const u of l)r.push({x:u.x,y:u.y})}get state(){const n=super.state;if(n.empty)return n;const r=this.points.length>1,a={...n,plotType:r?"multiline":"single line",...r&&{groupCount:this.points.length}},l=this.findIntersections();return l.length>1?{...a,intersections:l}:a}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u;if(d){const h=d.getBoundingClientRect();r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}}return r}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}getSegmentIntersection(n,r,a,l){const u=n.x,d=n.y,h=r.x,y=r.y,v=a.x,x=a.y,T=l.x,E=l.y,A=(u-h)*(x-E)-(d-y)*(v-T);if(Math.abs(A)<1e-10)return null;const R=((u-v)*(x-E)-(d-x)*(v-T))/A,_=-((u-h)*(d-x)-(d-y)*(u-v))/A;if(R>=0&&R<=1&&_>=0&&_<=1){const D=u+R*(h-u),z=d+R*(y-d);return{x:D,y:z}}return null}findAllIntersectionsForCurrentLine(){const n=this.row;if(this.intersectionCache.has(n))return this.intersectionCache.get(n);if(n<0||n>=this.points.length)return[];if(this.points.length<=1)return[];const r=this.points[n];if(r.length<2)return[];const a=[];for(let d=0;d<r.length-1;d++){const h=r[d],y=r[d+1],v={x:Number(h.x),y:Number(h.y)},x={x:Number(y.x),y:Number(y.y)};for(let T=0;T<this.points.length;T++){if(T===n)continue;const E=this.points[T];if(!(E.length<2))for(let A=0;A<E.length-1;A++){const R=E[A],_=E[A+1],D={x:Number(R.x),y:Number(R.y)},z={x:Number(_.x),y:Number(_.y)},V=this.getSegmentIntersection(v,x,D,z);if(V){const P=Math.hypot(V.x-v.x,V.y-v.y),I=Math.hypot(V.x-x.x,V.y-x.y),H=P<=I?d:d+1;a.push({pointIndex:H,x:V.x,y:V.y,otherLine:T})}}}}const l=[];for(const d of a){const h=l.find(y=>Math.abs(y.x-d.x)<F0.INTERSECTION_EPSILON&&Math.abs(y.y-d.y)<F0.INTERSECTION_EPSILON);if(h)h.intersectingLines.add(d.otherLine);else{const y=new Set;y.add(d.otherLine),l.push({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:y})}}const u=l.map(d=>({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:Array.from(d.intersectingLines).sort((h,y)=>h-y),intersectionKind:this.classifyIntersectionKind(n,Array.from(d.intersectingLines),d.x,d.y)})).sort((d,h)=>d.x-h.x);return this.intersectionCache.set(n,u),u}getIntersectionLabel(n){return n.map(r=>{const a=this.points[r][0];return(a==null?void 0:a.z)||`Line ${r+1}`}).join(", ")}hasPointAtCoordinate(n,r,a){return n<0||n>=this.points.length?!1:this.points[n].some(l=>Math.abs(Number(l.x)-r)<F0.INTERSECTION_EPSILON&&Math.abs(Number(l.y)-a)<F0.INTERSECTION_EPSILON)}classifyIntersectionKind(n,r,a,l){return this.hasPointAtCoordinate(n,a,l)&&r.some(h=>this.hasPointAtCoordinate(h,a,l))?"point":"slope"}getExtremaTargets(){var v,x,T,E;const n=[],r=this.row;if(r<0||r>=this.lineValues.length)return n;const a=this.lineValues[r];if(!a||a.length===0)return n;const l=this.min[r],u=this.max[r],d=[],h=[];for(let A=0;A<a.length;A++){const R=a[A];R===u&&d.push(A),R===l&&h.push(A)}for(const A of d)n.push({label:`Max point at ${this.getPointLabel(A)}`,value:u,pointIndex:A,segment:"line",type:"max",navigationType:"point",xValue:(x=(v=this.points[this.row])==null?void 0:v[A])==null?void 0:x.x});for(const A of h)n.push({label:`Min point at ${this.getPointLabel(A)}`,value:l,pointIndex:A,segment:"line",type:"min",navigationType:"point",xValue:(E=(T=this.points[this.row])==null?void 0:T[A])==null?void 0:E.x});const y=this.findAllIntersectionsForCurrentLine();for(const A of y){const R=this.getIntersectionLabel(A.intersectingLines),_=`x=${A.x.toFixed(2)}, y=${A.y.toFixed(2)}`,D=A.intersectionKind==="point"?"Point intersection":"Slope intersection";n.push({label:`${D} at ${_}`,value:A.y,pointIndex:A.pointIndex,segment:"intersection",type:"intersection",intersectionKind:A.intersectionKind,navigationType:"point",intersectingLines:A.intersectingLines,display:{coords:_,otherLines:R}})}return n}navigateToExtrema(n){this.col=n.pointIndex,this.finalizeNavigation()}getPointLabel(n){return this.points[this.row]&&this.points[this.row][n]?`${this.points[this.row][n].x}`:`Point ${n}`}updateVisualPointPosition(){const{row:n,col:r}=this.getSafeIndices();this.row=n,this.col=r}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.movable.handleInitialEntry(),super.moveToXValue(n)}moveToNextCompareValue(n,r){const a=this.row;if(a<0||a>=this.lineValues.length)return!1;const l=this.lineValues[a];if(!l||l.length===0)return!1;const u=this.col,d=n==="right"?1:-1;let h=u+d;for(;h>=0&&h<l.length;){if(this.compare(l[h],l[u],r))return this.col=h,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}compare(n,r,a){return a==="lower"?n<r:a==="higher"?n>r:!1}moveUpRotor(n){return this.moveOnce("UPWARD"),!0}moveDownRotor(n){return this.moveOnce("DOWNWARD"),!0}supportsIntersectionMode(){return this.points.length>1}getPointIntersectionIndices(){const n=this.findAllIntersectionsForCurrentLine(),r=new Set;for(const a of n)a.intersectionKind==="point"&&r.add(a.pointIndex);return[...r].sort((a,l)=>a-l)}moveToNextIntersection(){const r=this.getPointIntersectionIndices().find(a=>a>this.col);return r===void 0?!1:(this.col=r,this.finalizeNavigation(),!0)}moveToPrevIntersection(){const n=this.getPointIntersectionIndices();let r;for(let a=n.length-1;a>=0;a--)if(n[a]<this.col){r=n[a];break}return r===void 0?!1:(this.col=r,this.finalizeNavigation(),!0)}};j(F0,"INTERSECTION_EPSILON",1e-6);let r5=F0;class nj extends Ea{constructor(n){super(n);j(this,"mode");j(this,"movable");j(this,"supportsExtrema",!1);j(this,"xPoints");j(this,"yPoints");j(this,"xValues");j(this,"yValues");j(this,"highlightXValues");j(this,"highlightYValues");j(this,"highlightCenters");j(this,"minX");j(this,"maxX");j(this,"minY");j(this,"maxY");j(this,"gridCells");j(this,"numGridRows");j(this,"numGridCols");j(this,"gridRow");j(this,"gridCol");j(this,"isInGridMode");j(this,"isInGridCellMode");j(this,"cellPointIndex");j(this,"cellXPoints");j(this,"cellSvgGroups");this.mode="col";const r=n.data,a=[...r].sort((x,T)=>x.x-T.x||x.y-T.y);this.xPoints=new Array;let l=null;for(const x of a)(!l||l.x!==x.x)&&(l={x:x.x,y:[]},this.xPoints.push(l)),l.y.push(x.y);const u=[...r].sort((x,T)=>x.y-T.y||x.x-T.x);this.yPoints=new Array;let d=null;for(const x of u)(!d||d.y!==x.y)&&(d={y:x.y,x:[]},this.yPoints.push(d)),d.x.push(x.x);this.xValues=this.xPoints.map(x=>x.x),this.yValues=this.yPoints.map(x=>x.y),this.minX=br.safeMin(this.xValues),this.maxX=br.safeMax(this.xValues),this.minY=br.safeMin(this.yValues),this.maxY=br.safeMax(this.yValues);const h=n.selectors,y=h?Et.selectAllElements(h):[];[this.highlightXValues,this.highlightYValues]=this.groupSvgElements(y),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new YP(this.xPoints,this.yPoints),this.isInGridMode=!1,this.gridRow=0,this.gridCol=0,this.isInGridCellMode=!1,this.cellPointIndex=0,this.cellXPoints=[],this.cellSvgGroups=[];const v=this.resolveGridConfig(n);if(v){const x=this.computeGridSteps(v.xMin,v.xMax,v.xTickStep),T=this.computeGridSteps(v.yMin,v.yMax,v.yTickStep);this.numGridCols=x.length,this.numGridRows=T.length,this.gridCells=this.buildGridCells(r,x,T,y)}else this.gridCells=null,this.numGridRows=0,this.numGridCols=0}dispose(){this.movable.dispose(),this.xPoints.length=0,this.yPoints.length=0,this.highlightXValues&&(this.highlightXValues.forEach(n=>n.forEach(r=>r.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(r=>r.remove())),this.highlightYValues.length=0),super.dispose()}get highlightValues(){return this.mode==="col"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}get values(){const n=[this.xValues,this.yValues];return this.mode==="col"?this.row!==0&&(this.row=0):(this.row<0||this.row>=this.yPoints.length)&&(this.row=0),n}get braille(){if(this.isInGridMode&&this.gridCells){const n=[];let r=0;for(let a=0;a<this.numGridRows;a++){n[a]=[];for(let l=0;l<this.numGridCols;l++){const u=this.gridCells[a][l].points.length;n[a][l]=u,u>r&&(r=u)}}return{empty:!1,id:this.id,values:n,min:0,max:r,row:this.gridRow,col:this.gridCol}}return this.outOfBoundsState}get audio(){if(this.isInGridMode&&this.gridCells)return this.isInGridCellMode&&this.cellXPoints.length>0?{freq:{raw:this.cellXPoints[this.cellPointIndex].y,min:this.minY,max:this.maxY},panning:{y:0,x:this.cellPointIndex,rows:1,cols:this.cellXPoints.length}}:{freq:{raw:this.gridCells[this.gridRow][this.gridCol].yValues,min:this.minY,max:this.maxY},panning:{y:this.gridRow,x:this.gridCol,rows:this.numGridRows,cols:this.numGridCols}};if(this.mode==="col"){const n=this.xPoints[this.col];return{freq:{raw:n.y,min:this.minY,max:this.maxY},panning:{y:this.row,x:this.col,rows:n.y.length,cols:this.xPoints.length}}}else{const n=this.yPoints[this.row];return{freq:{raw:n.x,min:this.minX,max:this.maxX},panning:{y:this.row,x:this.col,rows:this.yPoints.length,cols:n.x.length}}}}get text(){if(this.isInGridMode&&this.gridCells){const n=this.gridCells[this.gridRow][this.gridCol];if(this.isInGridCellMode&&this.cellXPoints.length>0){const r=this.cellXPoints[this.cellPointIndex];return{main:{label:this.xAxis,value:r.x},cross:{label:this.yAxis,value:r.y},gridPosition:{row:this.gridRow+1,col:this.gridCol+1}}}return{main:{label:this.xAxis,value:""},cross:{label:this.yAxis,value:""},range:{min:n.xRange.min,max:n.xRange.max},crossRange:{min:n.yRange.min,max:n.yRange.max},gridPoints:n.points,gridPosition:{row:this.gridRow+1,col:this.gridCol+1}}}if(this.mode==="col"){const n=this.xPoints[this.col];return{main:{label:this.xAxis,value:n.x},cross:{label:this.yAxis,value:n.y}}}else{const n=this.yPoints[this.row];return{main:{label:this.yAxis,value:n.y},cross:{label:this.xAxis,value:n.x}}}}get description(){const r=[{label:"Total points",value:this.xPoints.reduce((u,d)=>u+d.y.length,0)},{label:"Unique X values",value:this.xPoints.length},{label:"Unique Y values",value:this.yPoints.length},{label:"X range",value:`${this.minX} to ${this.maxX}`},{label:"Y range",value:`${this.minY} to ${this.maxY}`}],a=[this.xAxis,this.yAxis],l=this.xPoints.flatMap(u=>u.y.map(d=>[u.x,d]));return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:r,dataTable:{headers:a,rows:l}}}get dimension(){return this.isInGridMode?{rows:this.numGridRows,cols:this.numGridCols}:{rows:this.yPoints.length,cols:this.xPoints.length}}get highlight(){if(this.isInGridMode&&this.gridCells){const r=this.gridCells[this.gridRow][this.gridCol];if(this.isInGridCellMode&&this.cellSvgGroups.length>0){const a=this.cellSvgGroups[this.cellPointIndex];return!a||a.length===0?this.outOfBoundsState:{empty:!1,elements:a}}return r.svgElements.length===0?this.outOfBoundsState:{empty:!1,elements:r.svgElements}}if(this.highlightValues===null)return this.outOfBoundsState;const n=this.mode==="col"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return n?{empty:!1,elements:n}:this.outOfBoundsState}get hasMultiPoints(){return!0}get outOfBoundsState(){return this.isInGridMode&&this.gridCells?{empty:!0,type:"trace",traceType:this.type,audio:{y:this.gridRow,x:this.gridCol,rows:this.numGridRows,cols:this.numGridCols}}:super.outOfBoundsState}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="col"}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],r=n.y[Math.floor(n.y.length/2)],a=this.yValues.indexOf(r);a===-1||a>=this.yPoints.length?this.row=0:this.row=a,this.mode="row"}else{const n=this.yPoints[this.row],r=n.x[Math.floor(n.x.length/2)],a=this.xValues.indexOf(r);a===-1||a>=this.xPoints.length?this.col=0:this.col=a,this.mode="col",this.row=0}}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(this.isInGridMode&&this.gridCells)return this.moveOnceInGridMode(n);if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.mode==="col")switch(n){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(n){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}return this.notifyStateUpdate(),!0}moveOnceInGridMode(n){let r=!1;switch(n){case"FORWARD":r=this.moveGridRight();break;case"BACKWARD":r=this.moveGridLeft();break;case"UPWARD":r=this.moveGridUp();break;case"DOWNWARD":r=this.moveGridDown();break}return r}moveToExtreme(n){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="col")switch(n){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}return this.notifyStateUpdate(),!0}moveToIndex(n,r){return this.mode==="col"?n>=0&&n<this.xPoints.length?(this.col=n,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):r>=0&&r<this.yPoints.length?(this.col=r,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}isMovable(n){if(Array.isArray(n))return!1;if(this.isInGridMode&&this.gridCells)switch(n){case"FORWARD":return this.gridCol<this.numGridCols-1;case"BACKWARD":return this.gridCol>0;case"UPWARD":return this.gridRow<this.numGridRows-1;case"DOWNWARD":return this.gridRow>0;default:return!1}if(this.mode==="col")switch(n){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0;default:return!1}else switch(n){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0;default:return!1}}setGridMode(n){if(!this.gridCells){this.isInGridMode=!1;return}this.isInGridMode=n,n&&(this.gridRow=0,this.gridCol=0)}supportsCompareMode(){return!1}dataModeName(){return fe.ROW_COL_MODE}supportsGridMode(){return this.gridCells!==null}getGridDimensions(){return this.gridCells?{rows:this.numGridRows,cols:this.numGridCols}:null}getGridPosition(){return this.gridCells?{row:this.gridRow+1,col:this.gridCol+1}:null}moveGridUp(){return this.gridCells?this.gridRow>=this.numGridRows-1?(this.notifyOutOfBounds(),!1):(this.gridRow++,this.notifyStateUpdate(),!0):!1}moveGridDown(){return this.gridCells?this.gridRow<=0?(this.notifyOutOfBounds(),!1):(this.gridRow--,this.notifyStateUpdate(),!0):!1}moveGridLeft(){return this.gridCells?this.gridCol<=0?(this.notifyOutOfBounds(),!1):(this.gridCol--,this.notifyStateUpdate(),!0):!1}moveGridRight(){return this.gridCells?this.gridCol>=this.numGridCols-1?(this.notifyOutOfBounds(),!1):(this.gridCol++,this.notifyStateUpdate(),!0):!1}isInCellMode(){return this.isInGridCellMode}enterGridCell(){if(!this.gridCells||!this.isInGridMode)return!1;const n=this.gridCells[this.gridRow][this.gridCol];if(n.points.length===0)return this.notifyOutOfBounds(),!1;const a=[...n.points.map((d,h)=>({point:d,svg:n.svgElements[h]}))].sort((d,h)=>d.point.x-h.point.x||d.point.y-h.point.y);this.cellXPoints=[],this.cellSvgGroups=[];let l=null,u=[];for(const{point:d,svg:h}of a)(!l||l.x!==d.x)&&(l&&(this.cellXPoints.push(l),this.cellSvgGroups.push(u)),l={x:d.x,y:[]},u=[]),l.y.push(d.y),h&&u.push(h);return l&&(this.cellXPoints.push(l),this.cellSvgGroups.push(u)),this.isInGridCellMode=!0,this.cellPointIndex=0,this.notifyStateUpdate(),!0}exitGridCell(){this.isInGridCellMode=!1,this.cellPointIndex=0,this.notifyStateUpdate()}moveCellPointLeft(){return!this.gridCells||!this.isInGridCellMode?!1:this.cellPointIndex<=0?(this.notifyOutOfBounds(),!1):(this.cellPointIndex--,this.notifyStateUpdate(),!0)}moveCellPointRight(){return!this.gridCells||!this.isInGridCellMode?!1:this.cellPointIndex>=this.cellXPoints.length-1?(this.notifyOutOfBounds(),!1):(this.cellPointIndex++,this.notifyStateUpdate(),!0)}getCellPointIndex(){return this.cellPointIndex}getCellPointCount(){return this.isInGridCellMode?this.cellXPoints.length:0}getCurrentCellPoint(){return!this.isInGridCellMode||this.cellXPoints.length===0?null:this.cellXPoints[this.cellPointIndex]??null}resolveGridConfig(n){var v,x,T,E,A,R;const r=n.axes;if(!r)return null;const a=(v=r.x)==null?void 0:v.min,l=(x=r.x)==null?void 0:x.max,u=(T=r.x)==null?void 0:T.tickStep,d=(E=r.y)==null?void 0:E.min,h=(A=r.y)==null?void 0:A.max,y=(R=r.y)==null?void 0:R.tickStep;return a==null||l==null||u==null||d==null||h==null||y==null?null:{xMin:a,xMax:l,xTickStep:u,yMin:d,yMax:h,yTickStep:y}}computeGridSteps(n,r,a){const l=[],u=Math.round((r-n)/a);for(let d=0;d<u;d++){const h=n+d*a,y=d===u-1?r:n+(d+1)*a;l.push({min:Math.round(h*1e3)/1e3,max:Math.round(y*1e3)/1e3})}return l}findGridBin(n,r){for(let a=0;a<r.length;a++)if(a===r.length-1){if(n>=r[a].min&&n<=r[a].max)return a}else if(n>=r[a].min&&n<r[a].max)return a;return-1}buildGridCells(n,r,a,l){const u=[];for(let h=0;h<a.length;h++){u[h]=[];for(let y=0;y<r.length;y++)u[h][y]={points:[],yValues:[],xValues:[],svgElements:[],xRange:r[y],yRange:a[h]}}const d=l.length===n.length;for(let h=0;h<n.length;h++){const y=n[h],v=this.findGridBin(y.x,r),x=this.findGridBin(y.y,a);x!==-1&&v!==-1&&(u[x][v].points.push(y),u[x][v].yValues.push(y.y),u[x][v].xValues.push(y.x),d&&u[x][v].svgElements.push(l[h]))}return u}groupSvgElements(n){if(n.length===0)return[null,null];const r=new Map,a=new Map;n.forEach(d=>{let h=Number.parseFloat(d.getAttribute("x")||""),y=Number.parseFloat(d.getAttribute("y")||"");if(Number.isNaN(h)||Number.isNaN(y)){const v=d.getAttribute("cx"),x=d.getAttribute("cy");v&&x&&(h=Number.parseFloat(v),y=Number.parseFloat(x))}if(Number.isNaN(h)||Number.isNaN(y)){const v=d.getAttribute("transform");if(v){const x=v.match(/translate\s*\(\s*([\d.eE+-]+)[\s,]+([\d.eE+-]+)/);x&&(h=Number.parseFloat(x[1]),y=Number.parseFloat(x[2]))}}if(Number.isNaN(h)||Number.isNaN(y)){const v=d.getAttribute("d");if(v){const x=v.match(/M\s*([\d.eE+-]+)[\s,]+([\d.eE+-]+)/);x&&(h=Number.parseFloat(x[1]),y=Number.parseFloat(x[2]))}}Number.isNaN(h)||(r.has(h)||r.set(h,[]),r.get(h).push(d)),Number.isNaN(y)||(a.has(y)||a.set(y,[]),a.get(y).push(d))});const l=Array.from(r.entries()).sort(([d],[h])=>d-h).map(([d,h])=>h),u=Array.from(a.entries()).sort(([d],[h])=>h-d).map(([d,h])=>h);return[l,u]}mapSvgElementsToCenters(){const n=this.highlightXValues;if(!n)return null;const r=[];for(let a=0;a<n.length;a++)for(let l=0;l<n[a].length;l++){const u=n[a][l],d=Array.isArray(u)?u[0]:u;if(d){const h=d.getBoundingClientRect();r.push({x:h.x+h.width/2,y:h.y+h.height/2,row:a,col:l,element:d})}}return r}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}moveToPoint(n,r){this.mode="col";const a=this.findNearestPoint(n,r);if(a&&this.isPointInBounds(n,r,a)){if(this.row===a.row&&this.col===a.col)return;this.moveToIndex(a.row,a.col)}}}const IO="Sum",LO="undefined";class rj extends ET{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let l=0;l<this.barValues[0].length;l++){const u=this.barValues.reduce((h,y)=>h+y[l],0);t.push(u);const d=this.orientation===_t.VERTICAL?{x:this.points[0][l].x,y:u,z:IO}:{x:u,y:this.points[0][l].y,z:IO};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:r,max:a}=br.minMax(t);this.min.push(r),this.max.push(a)}getExtremaTargets(){var R,_;const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const r=this.min[n],a=this.max[n],l=this.barValues[n];if(!l||l.length===0)return t;const u=l.indexOf(a),d=l.indexOf(r),h=this.getGroupLabel(n),y=this.getCategoryLabel(u),v=this.getCategoryLabel(d),x=(R=this.points[n])==null?void 0:R[u],T=(_=this.points[n])==null?void 0:_[d],E=x?this.orientation===_t.VERTICAL?x.x:x.y:void 0,A=T?this.orientation===_t.VERTICAL?T.x:T.y:void 0;return t.push({label:`Max ${h} at ${y}`,value:a,pointIndex:u,segment:h,type:"max",groupIndex:n,categoryIndex:u,navigationType:"group",xValue:E}),t.push({label:`Min ${h} at ${v}`,value:r,pointIndex:d,segment:h,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group",xValue:A}),t}navigateToExtrema(t){t.groupIndex!==void 0&&t.categoryIndex!==void 0?(this.row=t.groupIndex,this.col=t.categoryIndex):this.col=t.pointIndex,this.finalizeNavigation()}getGroupLabel(t){if(this.points[t]&&this.points[t].length>0){const n=this.points[t][0];if(t===this.barValues.length-1)return"Total";if(n.z)return`${this.getZAxisLabel()}: '${n.z}'`}return`Group ${t}`}getCategoryLabel(t){if(this.points[0]&&this.points[0][t]){const n=this.points[0][t];return this.orientation===_t.VERTICAL?`${n.x}`:`${n.y}`}return`Category ${t}`}getZAxisLabel(){return this.z}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}get description(){const t=this.orientation===_t.VERTICAL,n=this.points.slice(0,-1),r=[...new Set(n.map(d=>{var h;return(h=d[0])==null?void 0:h.z}).filter(Boolean))],a=[{label:"Number of bars",value:this.points[0].length},{label:"Min value",value:br.safeMin(this.min)},{label:"Max value",value:br.safeMax(this.max)},{label:"Number of groups",value:n.length},{label:`${this.z} categories`,value:r.join(", ")}],l=t?[this.xAxis,this.yAxis,this.z]:[this.yAxis,this.xAxis,this.z],u=n.flatMap(d=>d.map(h=>{const y=t?h.x:h.y,v=t?h.y:h.x;return[y,v,h.z??LO]}));return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:a,dataTable:{headers:l,rows:u}}}get text(){return{...super.text,z:{label:this.z,value:this.points[this.row][this.col].z??LO}}}get highlight(){if(this.highlightValues===null||this.row===this.barValues.length-1)return this.outOfBoundsState;const t=this.highlightValues[this.row];return!t||!t[this.col]?this.outOfBoundsState:{empty:!1,elements:t[this.col]}}mapToSvgElements(t){var h,y,v,x;if(!t)return null;const n=Et.selectAllElements(t);if(n.length===0)return null;const r=this.barValues.reduce((T,E)=>T+E.length,0),a=n.length<r,l=((h=this.layer.domMapping)==null?void 0:h.order)==="row",u=((y=this.layer.domMapping)==null?void 0:y.groupDirection)==="forward",d=new Array;if(n[0]instanceof SVGPathElement){for(let T=0;T<this.barValues.length;T++)d.push(new Array);if(l||!this.layer.domMapping)for(let T=0,E=0;T<this.barValues.length;T++)for(let A=0;A<this.barValues[T].length;A++)a&&this.barValues[T][A]===0||E>=n.length?d[T].push(Et.createEmptyElement()):d[T].push(n[E++]);else{if(!this.barValues[0])return null;for(let T=0,E=0;T<this.barValues[0].length;T++)if(u)for(let A=0;A<this.barValues.length;A++)a&&this.barValues[A][T]===0||E>=n.length?d[A].push(Et.createEmptyElement()):d[A].push(n[E++]);else for(let A=this.barValues.length-1;A>=0;A--)a&&this.barValues[A][T]===0||E>=n.length?d[A].push(Et.createEmptyElement()):d[A].push(n[E++])}}else if(n[0]instanceof SVGRectElement){if(!this.barValues||this.barValues.length===0)return null;for(let A=0;A<this.barValues.length;A++)d.push(new Array);const T=((v=this.layer.domMapping)==null?void 0:v.order)==="row",E=((x=this.layer.domMapping)==null?void 0:x.groupDirection)==="forward";if(T){for(let A=0,R=0;A<this.barValues.length;A++)if(this.barValues[A])for(let _=0;_<this.barValues[A].length;_++)a&&this.barValues[A][_]===0||R>=n.length?d[A].push(Et.createEmptyElement()):d[A].push(n[R++])}else{if(!this.barValues[0])return null;for(let A=0,R=0;A<this.barValues[0].length;A++)if(E)for(let _=0;_<this.barValues.length;_++)a&&this.barValues[_][A]===0||R>=n.length?d[_].push(Et.createEmptyElement()):d[_].push(n[R++]);else for(let _=this.barValues.length-1;_>=0;_--)a&&this.barValues[_][A]===0||R>=n.length?d[_].push(Et.createEmptyElement()):d[_].push(n[R++])}}return d}}class VO extends r5{constructor(t){super(t)}get state(){const t=super.state;return t.empty?t:{...t,plotType:"smooth"}}get audio(){const t=this.lineValues[this.row],n=u=>t[Math.max(0,Math.min(u,t.length-1))],r=n(this.col-1),a=n(this.col),l=n(this.col+1);return{freq:{min:this.min[this.row],max:this.max[this.row],raw:[r,a,l]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0}}}class ij extends VO{constructor(t){super(t)}mapToSvgElements(t){var a;if(!t||t.length!==this.lineValues.length)return null;const n=[];let r=!0;for(let l=0;l<t.length;l++){const u=this.lineValues[l].length,d=Et.selectAllElements(t[l],!1);if(d.length===u&&d.length>0){r=!1,n.push(d);continue}const h=Et.selectElement(t[l],!1);if(!h){n.push([]);continue}const y=(a=this.points)==null?void 0:a[l],v=[];for(const x of y)typeof x.svg_x=="number"&&typeof x.svg_y=="number"&&v.push(Et.createCircleElement(x.svg_x,x.svg_y,h));v.length>0&&(r=!1),n.push(v)}return r?null:n}}function aj(e){return typeof e=="object"&&e!==null&&"svg_x"in e&&"svg_y"in e&&typeof e.svg_x=="number"&&typeof e.svg_y=="number"}function oj(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&aj(e.data[0][0])?new ij(e):new VO(e)}const AT=.001;class lj extends Ea{constructor(n){super(n);j(this,"supportsExtrema",!1);j(this,"movable");j(this,"orientation");j(this,"points");j(this,"densityValues");j(this,"yValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"minDensity");j(this,"maxDensity");j(this,"refSafeMin");j(this,"refSafeMax");j(this,"refHasPositive");this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data,this.densityValues=this.points.map(l=>l.map(u=>u.density??u.width??0)),this.yValues=this.points.map(l=>l.map(u=>Number(u.y))),this.minDensity=this.densityValues.map(l=>br.safeMin(l.filter(u=>u>0))),this.maxDensity=this.densityValues.map(l=>br.safeMax(l));const r=this.densityValues[0];if(r&&r.length>0&&this.minDensity[0]>0){this.refHasPositive=!0;const l=this.minDensity[0],u=this.maxDensity[0];this.refSafeMin=l===u?Math.max(0,l-AT):l,this.refSafeMax=l===u?u+AT:u}else this.refHasPositive=!1,this.refSafeMin=0,this.refSafeMax=1;const a=this.orientation===_t.HORIZONTAL?[...n.selectors].reverse():n.selectors;this.highlightValues=this.mapToSvgElements(a),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new ef(this.points,{row:0})}get description(){var u;const n=this.points.map((d,h)=>{const y=d[0];return typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${h+1}`}),r=[{label:"Number of violins",value:this.points.length},{label:"Points per curve",value:((u=this.points[0])==null?void 0:u.length)??0},{label:"Violin names",value:n.join(", ")}],a=["Violin","Position","Y","Density"],l=this.points.flatMap((d,h)=>d.map((y,v)=>[n[h],v,Number(y.y),this.densityValues[h][v]]));return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:r,dataTable:{headers:a,rows:l}}}dispose(){this.points.length=0,this.densityValues.length=0,this.yValues.length=0,this.minDensity.length=0,this.maxDensity.length=0,super.dispose()}get values(){return this.densityValues}get dimension(){var n;return{rows:this.points.length,cols:((n=this.points[this.row])==null?void 0:n.length)??0}}isMovable(n){var a,l,u;if(Array.isArray(n)){const[d,h]=n;return d>=0&&d<this.points.length&&h>=0&&h<(((a=this.points[d])==null?void 0:a.length)??0)}if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":return this.row<this.points.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<(((l=this.points[this.row])==null?void 0:l.length)??0)-1;case"BACKWARD":return this.col>0}switch(n){case"FORWARD":return this.row<this.points.length-1;case"BACKWARD":return this.row>0;case"UPWARD":return this.col<(((u=this.points[this.row])==null?void 0:u.length)??0)-1;case"DOWNWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"FORWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"BACKWARD":return this.col-=1,this.notifyStateUpdate(),!0}switch(n){case"FORWARD":return this.row+=1,this.col=0,this.notifyStateUpdate(),!0;case"BACKWARD":return this.row-=1,this.col=0,this.notifyStateUpdate(),!0;case"UPWARD":return this.col+=1,this.notifyStateUpdate(),!0;case"DOWNWARD":return this.col-=1,this.notifyStateUpdate(),!0}}moveToExtreme(n){var a,l;if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(this.orientation===_t.HORIZONTAL)switch(n){case"UPWARD":this.row=this.points.length-1,this.col=0;break;case"DOWNWARD":this.row=0,this.col=0;break;case"FORWARD":this.col=(((a=this.points[this.row])==null?void 0:a.length)??1)-1;break;case"BACKWARD":this.col=0;break}else switch(n){case"FORWARD":this.row=this.points.length-1,this.col=0;break;case"BACKWARD":this.row=0,this.col=0;break;case"UPWARD":this.col=(((l=this.points[this.row])==null?void 0:l.length)??1)-1;break;case"DOWNWARD":this.col=0;break}return this.notifyStateUpdate(),!0}get audio(){var E;const n=this.orientation===_t.HORIZONTAL,r=((E=this.points[this.row])==null?void 0:E.length)??0,a=n?{x:this.col,y:this.row,rows:this.points.length,cols:r}:{y:this.row,x:this.col,rows:this.points.length,cols:r};if(!this.refHasPositive)return{freq:{min:0,max:1,raw:0},panning:a};const l=this.densityValues[0],u=Math.min(this.col,l.length-1),d=A=>l[Math.max(0,Math.min(A,l.length-1))],h=u>0?d(u-1):d(u),y=d(u),v=u<l.length-1?d(u+1):d(u);let x=1;const T=this.densityValues[this.row];if(T&&T.length>0){const A=Math.min(this.col,T.length-1),R=T[A],_=this.maxDensity[this.row];if(_>0&&R>0){const z=this.minDensity[this.row]===_?_+AT:_;x=R/z}}return{freq:{min:this.refSafeMin,max:this.refSafeMax,raw:[h,y,v]},panning:a,isContinuous:!0,volumeScale:x}}get autoplay(){return this.orientation===_t.HORIZONTAL?{UPWARD:this.dimension.rows,DOWNWARD:this.dimension.rows,FORWARD:this.dimension.cols,BACKWARD:this.dimension.cols}:{UPWARD:this.dimension.cols,DOWNWARD:this.dimension.cols,FORWARD:this.dimension.rows,BACKWARD:this.dimension.rows}}get text(){const n=this.points[this.row][this.col],r=y=>Math.round(y*1e4)/1e4,a=this.orientation===_t.HORIZONTAL;let l;if(typeof n.x=="string")l=n.x;else{const y=this.points[this.row][0];l=typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${this.row+1}`}const u=r(Number(n.y)),d={main:{label:a?this.yAxis:this.xAxis,value:l},cross:{label:a?this.xAxis:this.yAxis,value:u},mainAxis:a?"y":"x",crossAxis:a?"x":"y"},h=n.width!==void 0&&n.width>0?r(n.width):void 0;return h!==void 0&&(d.z={label:"volume",value:String(h)}),d}get braille(){return{empty:!1,id:this.id,values:this.densityValues,min:this.minDensity,max:this.maxDensity,row:this.row,col:this.col}}getCurrentXValue(){return this.row>=0&&this.row<this.points.length?this.row:null}moveToXValue(n){var l;if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const r=Math.floor(n);if(r<0||r>=this.points.length)return!1;const a=this.row;if(this.row=r,r!==a)this.col=0;else{const u=(l=this.points[r])!=null&&l.length?this.points[r].length-1:0;this.col=Math.min(this.col,u)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.yValues[this.row];return!n||n.length===0?null:this.col>=0&&this.col<n.length?n[this.col]:null}moveToXAndYValue(n,r){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const a=Math.floor(n);if(a<0||a>=this.yValues.length)return!1;this.row=a;const l=this.yValues[this.row];if(!l||l.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let u=0,d=Math.abs(l[0]-r);for(let h=1;h<l.length;h++){const y=Math.abs(l[h]-r);y<d&&(d=y,u=h)}return this.col=u,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length===0)return null;const r=[];let a=!0;const l=n.length===this.points.length;for(let u=0;u<this.points.length;u++){const d=[],h=this.points[u],y=l?n[u]:n[0];if(!y){r.push([]);continue}const v=Et.selectAllElements(y,!1),x=v.filter(_=>_ instanceof SVGUseElement),T=v.filter(_=>_ instanceof SVGPathElement),E=v.filter(_=>_ instanceof SVGPolygonElement),A=x.length>0?x:T.length>0?T:E,R=A.length>0?A[l?0:u<A.length?u:0]:null;if(R&&h){for(const _ of h){const D=_.svg_x,z=_.svg_y;D!==void 0&&z!==void 0&&!Number.isNaN(D)&&!Number.isNaN(z)&&d.push(Et.createCircleElement(D,z,R))}d.length>0&&(a=!1)}r.push(d)}return a?null:r}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let r=0;r<this.highlightValues.length;r++)for(let a=0;a<this.highlightValues[r].length;a++){const l=this.highlightValues[r][a];if(l){const u=l.getBoundingClientRect();n.push({x:u.x+u.width/2,y:u.y+u.height/2,row:r,col:a,element:l})}}return n}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}updateVisualPointPosition(){const{row:n,col:r}=this.getSafeIndices();this.row=n,this.col=r}}class sj extends Ea{constructor(n){var d;super(n);j(this,"supportsExtrema",!1);j(this,"movable");j(this,"points");j(this,"boxValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"orientation");j(this,"sections");j(this,"violinOptions");j(this,"min");j(this,"max");j(this,"minSectionIndex");this.violinOptions=n.violinOptions??{},this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:r,accessors:a}=this.buildViolinSections();this.sections=r,this.boxValues=this.computeBoxValues(a);const l=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=br.minFrom2D(l),this.max=br.maxFrom2D(l),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new ef(this.boxValues,{row:0});const u=this.sections.indexOf(sa.MIN);this.minSectionIndex=u>=0?u:0}buildViolinSections(){const n=[sa.MIN],r=[a=>a.min];return n.push(sa.Q1),r.push(a=>a.q1),this.violinOptions.showMedian!==!1&&(n.push(sa.Q2),r.push(a=>a.q2)),this.violinOptions.showMean===!0&&(n.push(sa.MEAN),r.push(a=>a.mean??Number.NaN)),n.push(sa.Q3),r.push(a=>a.q3),this.violinOptions.showExtrema!==!1&&(n.push(sa.MAX),r.push(a=>a.max)),{sections:n,accessors:r}}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(r=>n.map(a=>a(r))):n.map(r=>this.points.map(a=>r(a)))}get description(){const n=[{label:"Number of groups",value:this.points.length},{label:"Sections",value:this.sections.join(", ")},{label:"Min",value:this.min},{label:"Max",value:this.max}],r=["Group",...this.sections],a=this.orientation===_t.HORIZONTAL,l=this.points.map((u,d)=>{const h=this.sections.map((y,v)=>{var T,E;const x=a?(T=this.boxValues[d])==null?void 0:T[v]:(E=this.boxValues[v])==null?void 0:E[d];return Array.isArray(x)?x.join(", "):x??""});return[u.z,...h]});return{chartType:this.getChartTypeLabel(),title:this.title,axes:this.getDescriptionAxes(),stats:n,dataTable:{headers:r,rows:l}}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}get values(){return this.boxValues}get dimension(){var r,a;const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.boxValues.length:((r=this.boxValues[this.row])==null?void 0:r.length)??0,cols:n?((a=this.boxValues[this.row])==null?void 0:a.length)??0:this.boxValues.length}}handleInitialEntry(){var r;this.isInitialEntry=!1;const n=this.minSectionIndex;this.orientation===_t.VERTICAL?(this.row=Math.min(n,this.boxValues.length-1),this.col=0):(this.row=0,this.col=Math.min(n,((r=this.boxValues[0])==null?void 0:r.length)??1))}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;const r=this.minSectionIndex;if(this.orientation===_t.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=r;else if(n==="BACKWARD")this.col-=1,this.row=r;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=r;else if(n==="DOWNWARD")this.row-=1,this.col=r;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get audio(){const n=this.orientation===_t.HORIZONTAL,r=this.boxValues[this.row][this.col],a=n?this.col:this.row,l=Array.isArray(r)?r.length===0?a:r[r.length-1]-this.min:Number.isNaN(r)?a:r-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?l:this.row,y:n?this.row:l,rows:n?this.boxValues.length:this.max-this.min,cols:n?this.max-this.min:this.boxValues.length}}}get text(){const n=this.orientation===_t.HORIZONTAL,r=n?this.points[this.row]:this.points[this.col],a=n?this.yAxis:this.xAxis,l=n?this.sections[this.col]:this.sections[this.row],u=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:a,value:r.z},cross:{label:u,value:d},section:l,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get braille(){const n=this.orientation===_t.HORIZONTAL,r=n?this.row:this.col,a=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:r,col:a}}getCurrentXValue(){return this.orientation===_t.VERTICAL?this.col>=0?this.col:null:this.row>=0?this.row:null}moveToXValue(n){if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const r=Math.floor(n),a=this.values,l=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const u=a.length>0?a[0].length:0;if(r<0||r>=u)return!1;const d=this.col;this.col=r,r!==d&&(this.row=l)}else{if(r<0||r>=a.length)return!1;const u=this.row;this.row=r,r!==u&&(this.col=l)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const n=this.values;if(this.orientation===_t.VERTICAL){if(this.row>=0&&this.row<n.length&&this.col>=0){const r=n[this.row];if(Array.isArray(r)&&this.col<r.length){const a=r[this.col];return Array.isArray(a)?a.length>0?a[0]:null:typeof a=="number"?a:null}}}else if(this.row>=0&&this.row<n.length&&this.col>=0){const r=n[this.row];if(Array.isArray(r)&&this.col<r.length){const a=r[this.col];return Array.isArray(a)?a.length>0?a[0]:null:typeof a=="number"?a:null}}return null}moveToXAndYValue(n,r){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const a=Math.floor(n),l=this.values,u=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const d=l.length>0?l[0].length:0;if(a<0||a>=d)return!1;this.col=a;let h=u,y=1/0;for(let v=0;v<l.length;v++){const x=l[v];if(Array.isArray(x)&&a<x.length){const T=x[a];if(Array.isArray(T)){for(const E of T)if(typeof E=="number"){const A=Math.abs(E-r);A<y&&(y=A,h=v)}}else if(typeof T=="number"){const E=Math.abs(T-r);E<y&&(y=E,h=v)}}}this.row=h}else{if(a<0||a>=l.length)return!1;this.row=a;let d=u,h=1/0;const y=l[a];if(Array.isArray(y))for(let v=0;v<y.length;v++){const x=y[v];if(Array.isArray(x)){for(const T of x)if(typeof T=="number"){const E=Math.abs(T-r);E<h&&(h=E,d=v)}}else if(typeof x=="number"){const T=Math.abs(x-r);T<h&&(h=T,d=v)}}this.col=d}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length!==this.points.length)return null;const r=this.orientation===_t.VERTICAL,a=new Array;if(r)for(let u=0;u<this.sections.length;u++)a.push(Array.from({length:n.length}));const l=[];return n.forEach(u=>{const d=Et.selectElement(u.min,!1),h=Et.selectElement(u.max,!1),y=Et.selectElement(u.iq,!1),v=Et.selectElement(u.q2,!1),x=u.mean?Et.selectElement(u.mean,!1):null;l.push({min:d,max:h,iq:y,q2:v,mean:x})}),l.forEach((u,d)=>{var _;const h=this.cloneElementOrEmpty(u.min),y=this.cloneElementOrEmpty(u.max),v=this.cloneElementOrEmpty(u.q2),x=this.cloneElementOrEmpty(u.mean),T=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse",[E,A]=u.iq?r?T?[Et.createLineElement(u.iq,"top"),Et.createLineElement(u.iq,"bottom")]:[Et.createLineElement(u.iq,"bottom"),Et.createLineElement(u.iq,"top")]:[Et.createLineElement(u.iq,"left"),Et.createLineElement(u.iq,"right")]:[Et.createEmptyElement("line"),Et.createEmptyElement("line")],R=[];R.push(h),R.push(E),this.violinOptions.showMedian!==!1&&R.push(v),this.violinOptions.showMean===!0&&R.push(x),R.push(A),this.violinOptions.showExtrema!==!1&&R.push(y),r?R.forEach((D,z)=>{a[z][d]=D}):a.push(R)}),a}cloneElementOrEmpty(n){if(!n)return Et.createEmptyElement();const r=n.cloneNode(!0);return r.setAttribute(fe.VISIBILITY,fe.HIDDEN),n.insertAdjacentElement(fe.AFTER_END,r),r}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let r=0;r<this.highlightValues.length;r++)for(let a=0;a<this.highlightValues[r].length;a++){const l=this.highlightValues[r][a],u=Array.isArray(l)?l[0]:l;if(u){const d=u.getBoundingClientRect();n.push({x:d.x+d.width/2,y:d.y+d.height/2,row:r,col:a,element:u})}}return n}findNearestPoint(n,r){if(!this.highlightCenters)return null;let a=1/0,l=-1;for(let u=0;u<this.highlightCenters.length;u++){const d=this.highlightCenters[u],h=Math.hypot(d.x-n,d.y-r);h<a&&(a=h,l=u)}return l===-1?null:{element:this.highlightCenters[l].element,row:this.highlightCenters[l].row,col:this.highlightCenters[l].col}}moveToPoint(n,r){}updateVisualPointPosition(){const{row:n,col:r}=this.getSafeIndices();this.row=n,this.col=r}}class uj{static create(t){switch(t.type){case pt.BAR:return new XP(t);case pt.BOX:return new WP(t);case pt.CANDLESTICK:return new ZP(t);case pt.HEATMAP:return new JP(t);case pt.HISTOGRAM:return new ej(t);case pt.LINE:return new r5(t);case pt.SCATTER:return new nj(t);case pt.SMOOTH:return oj(t);case pt.DODGED:case pt.NORMALIZED:case pt.STACKED:return new rj(t);case pt.VIOLIN_KDE:return new lj(t);case pt.VIOLIN_BOX:return new sj(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const BO="MAIDR Plot",cj="unavailable",fj="unavailable";class dj extends xT{constructor(n){super();j(this,"id");j(this,"movable");j(this,"title");j(this,"subtitle");j(this,"caption");j(this,"subplots");j(this,"size");j(this,"visualOrderMap");j(this,"invertVertical");j(this,"totalAxesCount");this.id=n.id,this.title=n.title??BO,this.subtitle=n.subtitle??cj,this.caption=n.caption??fj;const r=n.subplots;this.subplots=r.map(a=>a.map(l=>new hj(l))),this.size=this.subplots.reduce((a,l)=>a+l.length,0),this.visualOrderMap=new Map,this.invertVertical=!1,this.totalAxesCount=0,this.movable=new ef(this.subplots)}get dimension(){return{rows:this.subplots.length,cols:this.subplots[this.row].length}}applyLayout(n){this.visualOrderMap=n.visualOrderMap,this.invertVertical=n.invertVertical,this.totalAxesCount=n.totalAxesCount;for(let r=0;r<this.subplots.length;r++)for(let a=0;a<this.subplots[r].length;a++){const l=n.axesElements.get(`${r},${a}`)??null;this.subplots[r][a].setAxesElement(l)}this.movable=new ef(this.subplots,{row:n.topLeftRow})}moveOnce(n){return super.moveOnce(this.adjustDirection(n))}moveToExtreme(n){return super.moveToExtreme(this.adjustDirection(n))}adjustDirection(n){if(!this.invertVertical)return n;switch(n){case"UPWARD":return"DOWNWARD";case"DOWNWARD":return"UPWARD";default:return n}}dispose(){this.subplots.forEach(n=>n.forEach(r=>r.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const n=`${this.row},${this.col}`,r=this.visualOrderMap.get(n);r===void 0&&console.warn(`[Figure] Visual order map missing key "${n}". Was applyLayout() called?`);const a=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:r??1,subplot:a.getStateWithFigurePosition(this.row,this.col),traceTypes:a.traceTypes,highlight:this.highlight}}get highlight(){if(this.totalAxesCount<=1)return{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}};const n=this.activeSubplot.axesElement;return n?{empty:!1,elements:n}:{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.subplots.length,cols:this.subplots[this.row].length}}}moveToPoint(n,r){this.notifyStateUpdate()}getSubplotSummaries(){if(this.size<=1)return[];const n=[];for(let r=0;r<this.subplots.length;r++)for(let a=0;a<this.subplots[r].length;a++){const l=this.subplots[r][a],u=`${r},${a}`,d=this.visualOrderMap.get(u)??n.length+1;n.push({index:d,title:l.primaryTitle,traceTypes:[...l.traceTypes],isActive:r===this.row&&a===this.col})}return n.sort((r,a)=>r.index-a.index),n}get outOfBoundsState(){return{empty:!0,type:"figure"}}}class hj extends xT{constructor(n){var u,d;super();j(this,"movable");j(this,"traces");j(this,"traceTypes");j(this,"primaryTitle");j(this,"size");j(this,"highlightValue");j(this,"isViolinPlot");j(this,"layerSelector");j(this,"_axesElement",null);const r=n.layers;this.size=r.length,this.primaryTitle=((u=r[0])==null?void 0:u.title)??"";const a=(d=r[0])==null?void 0:d.selectors;this.layerSelector=typeof a=="string"?a:Array.isArray(a)&&typeof a[0]=="string"?a[0]:null;const l=r.map(h=>h.type);this.isViolinPlot=l.includes(pt.VIOLIN_KDE)||l.includes(pt.VIOLIN_BOX),this.traces=r.map(h=>[uj.create(h)]),this.traceTypes=this.traces.flat().map(h=>{const y=h.state;return y.empty?fe.EMPTY:y.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new ef(this.traces)}get dimension(){return{rows:this.values.length,cols:this.values[this.row].length}}dispose(){this.traces.forEach(n=>n.forEach(r=>r.dispose())),this.traces.length=0,super.dispose()}getRow(){return this.row}getSize(){return this.size}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}moveOnce(n){return this.size>1&&this.isInitialEntry&&(this.isInitialEntry=!1),super.moveOnce(n)}get state(){return{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state,highlight:this.highlight}}get outOfBoundsState(){return{empty:!0,type:"subplot"}}get highlight(){return this.highlightValue===null?{empty:!0,type:"trace",audio:{y:this.row,x:this.col,rows:this.values.length,cols:this.values[this.row].length}}:{empty:!1,elements:this.highlightValue}}moveToPoint(n,r){this.notifyStateUpdate()}getStateWithFigurePosition(n,r){return this.state}getHighlightElement(){return this.highlightValue}getLayerSelector(){return this.layerSelector}get axesElement(){return this._axesElement}setAxesElement(n){this._axesElement=n}mapToSvgElement(n){return n?Et.selectElement(n)??null:null}}const Ha={SINE_BASIC:0,SQUARE_BASIC:1,SAWTOOTH_BASIC:2,TRIANGLE_BASIC:3,SAWTOOTH_DARK:4,SINE_HARMONIC:5,TRIANGLE_HARMONIC:6,SQUARE_HARMONIC:7,TRIANGLE_MELLOW:8,SINE_SUBTLE:9,SAWTOOTH_SOFT:10},e1=class e1{constructor(){j(this,"basePalette");j(this,"extendedPalette");this.basePalette=[{index:Ha.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:Ha.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:Ha.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:Ha.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:Ha.SAWTOOTH_DARK,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.2},{frequency:3,amplitude:.1},{frequency:5,amplitude:.05}]},timbreModulation:{attack:.005,decay:.3,sustain:.4,release:.5}},{index:Ha.SINE_HARMONIC,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.15},{frequency:4,amplitude:.05}]},timbreModulation:{attack:.02,decay:.2,sustain:.6,release:.3}},{index:Ha.TRIANGLE_HARMONIC,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.2},{frequency:6,amplitude:.1}]},timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:Ha.SQUARE_HARMONIC,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:3,amplitude:.1},{frequency:7,amplitude:.05}]},timbreModulation:{attack:.005,decay:.05,sustain:.5,release:.1}},{index:Ha.TRIANGLE_MELLOW,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:2.5,amplitude:.15},{frequency:4.5,amplitude:.08}]},timbreModulation:{attack:.01,decay:.4,sustain:.3,release:.5}},{index:Ha.SINE_SUBTLE,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.1},{frequency:3,amplitude:.05}]},timbreModulation:{attack:.02,decay:.1,sustain:.9,release:.15}},{index:Ha.SAWTOOTH_SOFT,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.05},{frequency:6,amplitude:.02}]},timbreModulation:{attack:.005,decay:.4,sustain:.2,release:.6}}],this.validateBasePalette(),this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const n=this.extendedPalette.get(t);if(n)return n;const r=this.generateExtendedEntry(t);return this.extendedPalette.set(t,r),r}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return Ha.SINE_BASIC;case"Bear":return Ha.SAWTOOTH_SOFT;case"Neutral":return Ha.TRIANGLE_BASIC;default:return Ha.SINE_BASIC}}generateExtendedPalette(){[{index:this.basePalette.length,waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{index:this.basePalette.length+1,waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{index:this.basePalette.length+2,waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{index:this.basePalette.length+3,waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((n,r)=>{this.extendedPalette.set(this.basePalette.length+r,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,r=this.basePalette[n],a=Math.floor((t-this.basePalette.length)/this.basePalette.length),l=this.generateHarmonics(a),u=this.generateTimbreModulation(a,r.timbreModulation);return{index:t,waveType:r.waveType,harmonicMix:{fundamental:1,harmonics:l},timbreModulation:u}}generateHarmonics(t){const n=[],r=e1.MIN_HARMONICS+t%e1.HARMONIC_VARIATION;for(let a=0;a<r;a++){const l=1+(a+1)*(.5+t*.3%1),u=.4/(a+1)*(1-t*.1%.3);n.push({frequency:l,amplitude:u})}return n}generateTimbreModulation(t,n){const r=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*r)),decay:Math.max(.05,Math.min(.3,n.decay*r)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*r))}}validateBasePalette(){this.basePalette.forEach((t,n)=>{if(t.index!==n)throw new Error(`AudioPalette validation error: Entry at array position ${n} has index ${t.index}. Array position must match the index property to prevent audio palette mismatches.`)})}};j(e1,"MIN_HARMONICS",2),j(e1,"HARMONIC_VARIATION",3);let CT=e1;const pj=100,mj=440,gj=880,PO=180,jO=.2,yj=.1,OT=.3,i5=Ha.SINE_BASIC;class vj{constructor(t,n,r){j(this,"notification");j(this,"audioPalette");j(this,"isCombinedAudio");j(this,"mode");j(this,"activeAudioIds");j(this,"volume");j(this,"minFrequency");j(this,"maxFrequency");j(this,"audioContext");j(this,"compressor");this.notification=t,this.audioPalette=new CT,this.isCombinedAudio=!1,this.mode="on",this.updateMode(r),this.activeAudioIds=new Map,this.volume=this.normalizeVolume(n.get("general.volume")),this.minFrequency=n.get("general.minFrequency"),this.maxFrequency=n.get("general.maxFrequency"),n.onChange(a=>{a.affectsSetting("general.volume")&&(this.volume=this.normalizeVolume(a.get("general.volume"))),a.affectsSetting("general.minFrequency")&&(this.minFrequency=a.get("general.minFrequency")),a.affectsSetting("general.maxFrequency")&&(this.maxFrequency=a.get("general.maxFrequency"))}),this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const n=this.audioContext.createGain();return n.gain.value=.5,t.connect(n),n.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const n=t.type==="subplot"?t.trace:t;n.empty||n.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=n.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}update(t){if(this.updateMode(t),this.mode==="off")return;if(t.empty){t.warning?this.playWarningTone():t.type==="trace"&&t.audio?this.playEmptyTone({x:t.audio.x,y:t.audio.y,rows:t.audio.rows,cols:t.audio.cols}):this.playEmptyTone({x:0,y:0,rows:1,cols:1});return}if(t.type!=="trace")return;if(t.traceType==="line"&&!t.empty&&Array.isArray(t.intersections)&&t.intersections.length>1){this.stopAll(),this.playSimultaneousTones(t.intersections);return}const n=t.audio;let r=n.group;n.trend&&r===void 0&&(r=this.audioPalette.getCandlestickGroupIndex(n.trend));const a=r!==void 0?this.audioPalette.getPaletteEntry(r):void 0;if(n.isContinuous)this.playSmooth(n.freq,n.panning,a,n.volumeMultiplier,n.volumeScale);else if(Array.isArray(n.freq.raw)){const l=n.freq.raw;if(l.length===0){this.playZeroTone(n.panning);return}let u=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{u<l.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:l[u++]},{x:n.panning.x,y:n.panning.y,rows:n.panning.rows,cols:n.panning.cols},a),h.push(setTimeout(y,d))):this.stop(h)};y()}else n.freq.raw===0?this.playZeroTone(n.panning):this.playTone(n.freq,n.panning,a)}playTone(t,n,r){const a={min:t.min,max:t.max},l={min:this.minFrequency,max:this.maxFrequency},u=this.interpolate(t.raw,a,l),d=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(u,{x:d,y:0},r)}createAdsrEnvelope(t,n,r,a,l){if(n!=null&&n.timbreModulation){const{attack:u,decay:d,sustain:h,release:y}=n.timbreModulation,v=l*u,x=l*d,T=l*y,E=l-v-x-T;return t.gain.setValueAtTime(1e-4*r,a),t.gain.linearRampToValueAtTime(r,a+v),t.gain.linearRampToValueAtTime(h*r,a+v+x),E>0&&t.gain.setValueAtTime(h*r,a+v+x+E),t.gain.linearRampToValueAtTime(1e-4*r,a+l),null}else return[.5*r,r,.5*r,.5*r,.5*r,.1*r,1e-4*r]}playOscillator(t,n={x:0,y:0},r){const a=OT,l=this.audioContext.currentTime;r||(r=this.audioPalette.getPaletteEntry(i5));const u=[],d=[],h=this.audioContext.createOscillator();if(h.type=r.waveType,h.frequency.value=t,u.push(h),r.harmonicMix)for(const T of r.harmonicMix.harmonics){const E=this.audioContext.createOscillator();E.type=r.waveType,E.frequency.value=T.frequency*t,u.push(E)}for(let T=0;T<u.length;T++){const E=this.audioContext.createGain();let A=this.volume;if(T===0)r.harmonicMix&&(A*=r.harmonicMix.fundamental);else{const _=r.harmonicMix.harmonics[T-1];A*=_.amplitude}const R=this.createAdsrEnvelope(E,r,A,l,a);R!==null&&E.gain.setValueCurveAtTime(R,l,a),d.push(E)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<u.length;T++)u[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),u.forEach(T=>T.start(l));const v=T=>{y.disconnect();for(let E=0;E<u.length;E++)u[E].stop(),u[E].disconnect(),d[E].disconnect();this.activeAudioIds.delete(T)},x=setTimeout(()=>v(x),a*1e3*2);return this.activeAudioIds.set(x,u),x}playSmooth(t,n,r,a,l){const u=this.audioContext,d=u.currentTime,h=OT,y=t.raw.map(V=>this.interpolate(V,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),v=this.volume;let x;l!==void 0?x=v*Math.max(0,l):x=v*(a??1),y.length<2&&y.push(y[0]);const T=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1),E=(r==null?void 0:r.waveType)||"sine",A=u.createOscillator();A.type=E,A.frequency.setValueCurveAtTime(y,d,h);const R=u.createGain(),_=this.createAdsrEnvelope(R,r,x,d,h);_!==null&&R.gain.setValueCurveAtTime(_,d,h);const D=u.createStereoPanner();D.pan.value=T,A.connect(R),R.connect(D),D.connect(this.compressor),A.start(d),A.stop(d+h);const z=setTimeout(()=>{A.disconnect(),R.disconnect(),D.disconnect(),this.activeAudioIds.delete(z)},h*1e3*2);this.activeAudioIds.set(z,A)}playEmptyTone(t){const n=this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),r=this.audioContext,a=r.currentTime,l=.2,u=r.createStereoPanner();u.pan.value=n;const d=[500,1e3,1500,2100,2700],h=[1,.6,.4,.2,.1],y=r.createGain();y.gain.setValueAtTime(.3*this.volume,a),y.gain.exponentialRampToValueAtTime(.01*this.volume,a+l),y.connect(u),u.connect(this.compressor);const v=[];for(let E=0;E<d.length;E++){const A=r.createOscillator(),R=r.createGain();A.frequency.value=d[E],A.type="sine",R.gain.setValueAtTime(h[E]*this.volume,a),R.gain.exponentialRampToValueAtTime(.001*this.volume,a+l),A.connect(R),R.connect(y),A.start(a),A.stop(a+l),v.push(A)}const x=E=>{u.disconnect(),y.disconnect(),v.forEach(A=>{A.disconnect()}),this.activeAudioIds.delete(E)},T=setTimeout(()=>x(T),l*1e3*2);return this.activeAudioIds.set(T,v),T}playOneWarningBeep(t,n){const r=this.audioContext.createOscillator(),a=this.audioContext.createGain();r.type="sine",r.frequency.value=t;let l=1;r.type!=="sine"&&(l=.5),a.gain.setValueAtTime(l,n),a.gain.exponentialRampToValueAtTime(.001,n+jO),r.connect(a),a.connect(this.audioContext.destination),r.start(n),r.stop(n+jO)}playWarningTone(){const t=this.audioContext.currentTime;this.playOneWarningBeep(PO,t),this.playOneWarningBeep(PO/2**(1/12),t+yj)}playWarningToneIfEnabled(){this.mode!=="off"&&this.playWarningTone()}playZeroTone(t){const n=this.clamp(this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(pj,{x:n,y:0},{index:i5,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(i5);return setInterval(()=>this.playOscillator(mj,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(i5);return this.playOscillator(gj,{x:0,y:0},t)}playSimultaneousTones(t){const n=OT,r=this.audioContext,a=r.currentTime,l=Array.isArray(t[0].freq.raw)?t[0].freq.raw[1]??t[0].freq.raw[0]:t[0].freq.raw,u=this.interpolate(l,{min:t[0].freq.min,max:t[0].freq.max},{min:this.minFrequency,max:this.maxFrequency});t.forEach((d,h)=>{const v=this.audioPalette.getPaletteEntry(d.group??h).waveType,x=r.createOscillator();x.type=v,x.frequency.value=u;const T=r.createGain();T.gain.setValueAtTime(this.volume,a),T.gain.exponentialRampToValueAtTime(.01*this.volume,a+n),x.connect(T),T.connect(this.compressor),x.start(a),x.stop(a+n);const E=setTimeout(()=>{x.disconnect(),T.disconnect(),this.activeAudioIds.delete(E)},n*1e3*2);this.activeAudioIds.set(E,[x])})}interpolate(t,n,r){return n.min===n.max?r.min:(t-n.min)/(n.max-n.min)*(r.max-r.min)+r.min}clamp(t,n,r){return Math.max(n,Math.min(t,r))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const n=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(n)}stop(t){(Array.isArray(t)?t:[t]).forEach(r=>{const a=this.activeAudioIds.get(r);if(!a){clearInterval(r);return}(Array.isArray(a)?a:[a]).forEach(u=>{u==null||u.disconnect(),u==null||u.stop()}),clearTimeout(r),this.activeAudioIds.delete(r)})}stopAll(){this.activeAudioIds.forEach((t,n)=>{clearTimeout(n),(Array.isArray(t)?t:[t]).forEach(a=>{a.disconnect(),a.stop()})}),this.activeAudioIds.clear()}normalizeVolume(t){return t/100*(t/100)}}const bj=250,xj=10,Sj=500,$O=20;class Ej{constructor(t,n,r){j(this,"context");j(this,"notification");j(this,"settings");j(this,"autoplayId");j(this,"currentDirection");j(this,"userSpeed");j(this,"defaultSpeed");j(this,"minSpeed");j(this,"maxSpeed");j(this,"autoplayRate");j(this,"interval");j(this,"totalDuration");j(this,"onChangeEmitter");j(this,"onChange");this.notification=n,this.context=t,this.settings=r,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=bj,this.minSpeed=xj,this.maxSpeed=Sj,this.interval=$O,this.autoplayRate=this.defaultSpeed,this.interval=$O,this.totalDuration=r.get("general.autoplayDuration"),r.onChange(a=>{a.affectsSetting("general.autoplayDuration")&&(this.totalDuration=a.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}start(t,n){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,n),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>=this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,n){if(this.userSpeed!==null)return this.userSpeed;if(n&&!n.empty){const r=Math.ceil(this.totalDuration/n.autoplay[t]);return this.defaultSpeed=r,this.minSpeed=Math.min(this.minSpeed,r),r}return this.defaultSpeed}}const b0=32,MT=1,a5=20,RT=160,wj=["single","multi","manual"],UO="manual",HO={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:b0,brailleDisplayLines:MT,brailleDisplayKind:UO,brailleDisplayPresetId:null,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive",hoverMode:"pointermove"},llm:{expertiseLevel:"basic",customInstruction:"",models:{OPENAI:{enabled:!1,apiKey:"",name:"OpenAI",version:"gpt-4o"},ANTHROPIC_CLAUDE:{enabled:!1,apiKey:"",name:"Anthropic Claude",version:"claude-3-7-sonnet-latest"},GOOGLE_GEMINI:{enabled:!1,apiKey:"",name:"Google Gemini",version:"gemini-2.0-flash"}}}};function Zm(e){return e===void 0||!Number.isFinite(e)?b0:Math.max(1,Math.floor(e))}const _T="general.brailleDisplaySize",DT="general.brailleDisplayLines";function qO(e){return e===void 0||!Number.isFinite(e)?MT:Math.min(a5,Math.max(1,Math.floor(e)))}function Tj(e){if(e.empty)return!1;const t=e.values;return Array.isArray(t)&&t.length>0&&Array.isArray(t[0])}function NT(e,t,n,r,a=!1,l=0){const u=new Array,d=new Array,h=new Array;for(let E=0;E<e;E++)d.push(new Array);let y=!1;if(a&&e>1){for(let E=0;E<e;E++)if(t(E)>r){y=!0;break}}const v=a?e-1:0,x=a?-1:e,T=a?-1:1;for(let E=v;E!==x;E+=T){const A=t(E);if(y){for(let D=0;D<A;D++)d[E].push(-1);const R=Math.max(0,A-1),_=l+r;for(let D=l;D<_;D++)D>=0&&D<A?(d[E][D]=h.length,u.push(n(E,D)),h.push({row:E,col:D})):(u.push(fe.SPACE),h.push({row:E,col:R}));d[E].push(h.length-1);continue}for(let R=0;R<A;R++)u.push(n(E,R)),d[E].push(h.length),h.push({row:E,col:R}),!a&&(R+1)%r===0&&(u.push(fe.NEW_LINE),h.push({row:E,col:R}));if(a){const R=A===0?r:Math.ceil(A/r)*r,_=h.length,D=Math.max(0,A-1);for(let z=A;z<R;z++)u.push(fe.SPACE),h.push({row:E,col:D});d[E].push(_)}else{const R=h.length;h.push({row:E,col:A}),(A===0||A%r!==0)&&u.push(fe.NEW_LINE),d[E].push(R)}}return{value:u.join(fe.EMPTY),cellToIndex:d,indexToCell:h}}class zv{encode(t,n=b0,r=!1,a=0){const l=Zm(n);return NT(t.values.length,u=>t.values[u].length,(u,d)=>{const h=(t.max[u]-t.min[u])/4,y=t.min[u]+h,v=y+h,x=v+h,T=t.values[u][d];return T===0?" ":T<=y||T<=v?"⠤":T<=x?"⠒":"⠉"},l,r,a)}}class GO{constructor(){j(this,"GLOBAL_MIN","globalMin");j(this,"GLOBAL_MAX","globalMax");j(this,"BLANK","blank");j(this,"LOWER_OUTLIER","lowerOutlier");j(this,"UPPER_OUTLIER","upperOutlier");j(this,"MIN","min");j(this,"MAX","max");j(this,"Q1","q1");j(this,"Q2","q2");j(this,"Q3","q3")}encode(t,n=b0,r=!1,a=0){const l=Zm(n),u=new Array,d=new Array,h=new Array,y=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER],v=t.values.length;for(let A=0;A<v;A++)h.push(Array.from({length:y.length}).fill(-1));const x=r?v-1:0,T=r?-1:v,E=r?-1:1;for(let A=x;A!==T;A+=E){const R=u.length,_=t.values[A],D=[{type:this.GLOBAL_MIN,value:t.min},..._.lowerOutliers.map(ee=>({type:this.LOWER_OUTLIER,value:ee})),{type:this.MIN,value:_.min},{type:this.Q1,value:_.q1},{type:this.Q2,value:_.q2},{type:this.Q3,value:_.q3},{type:this.MAX,value:_.max},..._.upperOutliers.map(ee=>({type:this.UPPER_OUTLIER,value:ee})),{type:this.GLOBAL_MAX,value:t.max}],z=new Array;let V=!0;for(let ee=0;ee<D.length-1;ee++){const W=D[ee],oe=D[ee+1],he=Math.abs(V?oe.value-W.value:W.value-D[ee-1].value);W.type===this.LOWER_OUTLIER||W.type===this.UPPER_OUTLIER?(z.push({type:W.type,length:0,numChars:1}),z.push({type:this.BLANK,length:he,numChars:0})):W.type===this.Q2?(V=!1,z.push({type:this.Q2,length:0,numChars:2})):W.type===this.GLOBAL_MIN||W.type===this.GLOBAL_MAX?z.push({type:this.BLANK,length:he,numChars:0}):z.push({type:W.type,length:he,numChars:1})}let P=z.reduce((ee,W)=>ee+(W.numChars>0?W.numChars:0),0),[I,H,X,se]=[-1,-1,-1,-1];for(let ee=0;ee<z.length;ee++)z[ee].type===this.MIN&&z[ee].length>0&&(I=ee),z[ee].type===this.MAX&&z[ee].length>0&&(H=ee),z[ee].type===this.Q1&&(X=ee),z[ee].type===this.Q3&&(se=ee);I!==-1&&H!==-1&&z[I].length!==z[H].length&&(z[I].length>z[H].length?(z[I].numChars++,P++):(z[H].numChars++,P++)),X!==-1&&se!==-1&&z[X].length!==z[se].length&&(z[X].length>z[se].length?(z[X].numChars++,P++):(z[se].numChars++,P++));const ce=Math.max(0,l-P),ie=z.reduce((ee,W)=>ee+(W.type!==this.Q2&&W.length>0?W.length:0),0);for(const ee of z)if(ee.type!==this.Q2&&ee.length>0){const W=Math.round(ee.length/ie*ce);ee.numChars+=W}const ue=z.reduce((ee,W)=>ee+W.numChars,0);let U=l-ue,le=0;for(;U!==0;){const ee=z[le%z.length];ee.type!==this.BLANK&&ee.type!==this.Q2&&ee.length>0&&(ee.numChars+=U>0?1:-1,U+=U>0?-1:1),le++}let Q=-1;for(const ee of z){ee.type!==this.BLANK&&ee.type!==this.GLOBAL_MIN&&ee.type!==this.GLOBAL_MAX&&(Q=y.indexOf(ee.type),h[A][Q]=u.length);for(let W=0;W<ee.numChars;W++){let oe="⠀";ee.type===this.MIN||ee.type===this.MAX?oe="⠒":ee.type===this.Q1||ee.type===this.Q3?oe="⠿":ee.type===this.Q2?oe=W===0?"⠸":"⠇":ee.type===this.LOWER_OUTLIER||ee.type===this.UPPER_OUTLIER?oe="⠂":ee.type===this.BLANK&&(oe="⠀"),u.push(oe),d.push({row:A,col:Q})}}for(let ee=0;ee<3;ee++)if(h[A][ee]===-1){for(let W=ee+1;W<=3;W++)if(h[A][W]!==-1){h[A][ee]=h[A][W];break}}for(let ee=6;ee>3;ee--)if(h[A][ee]===-1){for(let W=ee-1;W>=3;W--)if(h[A][W]!==-1){h[A][ee]=h[A][W];break}}if(r){const ee=u.length-R,W=ee===0?l:Math.ceil(ee/l)*l,oe=Math.max(0,Q);for(let he=ee;he<W;he++)u.push(fe.SPACE),d.push({row:A,col:oe})}else u.push(fe.NEW_LINE),d.push({row:A,col:Q})}return{value:u.join(fe.EMPTY),cellToIndex:h,indexToCell:d}}}class FO{encode(t,n=b0,r=!1,a=0){const l=Zm(n),u=(t.max-t.min)/3,d=t.min+u,h=d+u;return NT(t.values.length,y=>t.values[y].length,(y,v)=>{const x=t.values[y][v];return x===0?" ":x<=d?"⠤":x<=h?"⠒":"⠉"},l,r,a)}}class YO{encodeCell(t,n,r){const{low:a,medium:l,mediumHigh:u,high:d}=this.getThresholds(n,t),h=t.values[n][r],y=r>0?t.values[n][r-1]:null;return this.getBrailleChar(h,y,a,l,d,u)}encode(t,n=b0,r=!1,a=0){const l=Zm(n);return NT(t.values.length,u=>t.values[u].length,(u,d)=>this.encodeCell(t,u,d),l,r,a)}getBrailleChar(t,n,r,a,l,u){return u===void 0&&(u=l),t<=r&&n!==null&&n>r?n<=a?"⢄":n<=u?"⢆":"⢇":t<=r?"⣀":n!==null&&n<=r?t<=a?"⡠":t<=u?"⡰":"⡸":t<=a&&n!==null&&n>a?n<=u?"⠢":"⠣":t<=a?"⠤":n!==null&&n<=a?t<=u?"⠔":"⠜":t<=u&&n!==null&&n>u?"⠑":t<=u?"⠒":n!==null&&n<=u?"⠊":t<=l?"⠉":""}getBraille6Char(t,n,r,a,l){const u=x=>x<=r?"low":x<=a?"medium":(x<=l,"high"),d=u(t),h=n!==null?u(n):null,y={"low,medium":"⠢","low,high":"⠣","low,null":"⠤","low,low":"⠤","medium,low":"⠔","medium,high":"⠑","medium,null":"⠒","medium,medium":"⠒","high,low":"⠜","high,medium":"⠊","high,null":"⠉","high,high":"⠉"},v=`${d},${h}`;return y[v]||""}addDot8(t){if(!t||t.length===0)return"⢀";const a=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+a)}}class Aj extends YO{getThresholds(t,n){const r=Array.isArray(n.min)?n.min[t]:n.min,a=Array.isArray(n.max)?n.max[t]:n.max,l=(a-r)/3,u=r+l,d=u+l;return{low:u,medium:d,high:a}}encodeCell(t,n,r){var v;const{low:a,medium:l,high:u}=this.getThresholds(n,t),d=t.values[n][r],h=r>0?t.values[n][r-1]:null;let y=this.getBraille6Char(d,h,a,l,u);return((v=t.custom)==null?void 0:v[r])==="Bear"&&(y=this.addDot8(y)),y}}class kT extends YO{getThresholds(t,n){const r=(n.max[t]-n.min[t])/4,a=n.min[t]+r,l=a+r,u=l+r,d=n.max[t];return{low:a,medium:l,mediumHigh:u,high:d}}}class Cj{constructor(t,n,r,a){j(this,"context");j(this,"notification");j(this,"display");j(this,"enabled");j(this,"displaySize");j(this,"displayLines");j(this,"colOffset");j(this,"cacheId");j(this,"cache");j(this,"disposables");j(this,"encoders");j(this,"onChangeEmitter");j(this,"onChange");this.context=t,this.notification=n,this.display=r,this.enabled=!1,this.displaySize=Zm(a.get(_T)),this.displayLines=qO(a.get(DT)),this.colOffset=0,this.cacheId=fe.EMPTY,this.cache=null,this.disposables=[];const l=u=>u;this.encoders=new Map([[pt.BAR,l(new zv)],[pt.BOX,l(new GO)],[pt.CANDLESTICK,l(new Aj)],[pt.DODGED,l(new zv)],[pt.HEATMAP,l(new FO)],[pt.HISTOGRAM,l(new zv)],[pt.LINE,l(new kT)],[pt.NORMALIZED,l(new zv)],[pt.SCATTER,l(new FO)],[pt.SMOOTH,l(new kT)],[pt.STACKED,l(new zv)],[pt.VIOLIN_KDE,l(new kT)],[pt.VIOLIN_BOX,l(new GO)]]),this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event,this.disposables.push(a.onChange(u=>{const d=u.affectsSetting(_T),h=u.affectsSetting(DT);if(!d&&!h||(d&&(this.displaySize=Zm(u.get(_T))),h&&(this.displayLines=qO(u.get(DT))),this.cache=null,this.cacheId=fe.EMPTY,this.colOffset=0,!this.enabled))return;const y=this.context.state;y!=null&&(y.type==="trace"||y.type==="subplot")&&this.update(y)}))}dispose(){this.onChangeEmitter.dispose(),this.disposables.forEach(t=>t.dispose()),this.disposables.length=0,this.cache=null,this.encoders.clear()}get isEnabled(){return this.enabled}refreshDisplay(t){this.update(t)}update(t){if(!this.enabled||t.empty)return;const n=t.type==="subplot"?t.trace:t;if(n.empty||n.braille.empty||!this.encoders.has(n.traceType))return;const r=n.braille,a=this.displayLines>1,l=a&&this.willWindowHorizontally(r),u=l?Math.max(0,Math.floor(r.col/this.displaySize)*this.displaySize):0,d=l?`${r.id}|${u}`:r.id;if(this.cache===null||this.cacheId!==d){const h=this.encoders.get(n.traceType);this.colOffset=u,this.cache=h.encode(r,this.displaySize,a,this.colOffset),this.cacheId=d}this.onChangeEmitter.fire({value:this.cache.value,index:this.cache.cellToIndex[r.row][r.col],displaySize:this.displaySize,displayLines:this.displayLines})}willWindowHorizontally(t){if(!Tj(t)||t.values.length<=1)return!1;for(const n of t.values)if(n.length>this.displaySize)return!0;return!1}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:r}=this.cache.indexToCell[t];this.context.moveToIndex(n,r)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const r=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(r);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(Pt.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var XO=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(XO||{});class WO{constructor(){}static async post(t,n,r){const a={...this.DEFAULT_HEADERS,...r};return this.request(t,"POST",a,n)}static async request(t,n,r,a){try{const l=await fetch(t,{method:n,headers:r,body:a});return l.ok?{success:!0,data:await l.json()}:{success:!1,error:{statusCode:l.status,message:`API Error: ${l.status} - ${l.statusText}`}}}catch(l){return console.error(`Error in API ${n} request to ${t}:`,l),{success:!1,error:{statusCode:XO.SERVER_ERROR,message:l instanceof Error?l.message:"Unknown error occurred"}}}}}j(WO,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const Oj=`You are a helpful assistant that answers questions about statistical visualizations. Your role is to:
1. Answer the user's specific question directly and clearly
2. Use simple, everyday language with minimal statistical terms
3. Provide relevant information from the data when needed
4. Focus on what the user is asking, not describing the entire chart
5. Give brief context only when it helps answer the question
6. Keep responses concise and to the point`,Mj=`You are an expert assistant that answers questions about statistical visualizations. Your role is to:
1. Answer the user's specific question directly and accurately
2. Use accessible language that assumes basic statistical knowledge
3. Provide relevant insights and analysis when needed
4. Focus on what the user is asking, not describing the entire chart
5. Highlight key trends, outliers, and relationships when relevant to the question
6. Provide context and interpretation only when it helps answer the specific question`,Rj=`You are a highly specialized assistant that answers questions about statistical visualizations for users with strong statistical background. Your role is to:
1. Answer the user's specific question with technical depth and precision
2. Use precise statistical terminology and advanced concepts when appropriate
3. Provide detailed analysis of complex patterns and statistical significance when relevant
4. Focus on what the user is asking, not describing the entire chart
5. Analyze trends, outliers, relationships, and statistical properties when they relate to the question
6. Provide comprehensive context and sophisticated interpretations only when they help answer the specific question`,_j=`I have a statistical visualization with the following data:

1. Raw data in JSON format: 
{maidrJson}

2. Current selected point: {currentPositionText}

Question: {message}

Please answer my specific question directly. If you need to reference the visualization data, do so briefly and focus on answering what I asked.`,Dj={basic:Oj,intermediate:Mj,advanced:Rj};function Nj(e){return e==="custom"?"":Dj[e]}function zT(e,t){return t==="custom"?e:`${Nj(t)}

${e}`}function IT(e){return _j.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}const kj=1e3,zj=256,Ij=1e3;class Lj{constructor(t,n,r){j(this,"display");j(this,"textService");j(this,"models");this.display=t,this.textService=n,this.models={OPENAI:new Vj(t.plot,r,n,"gpt-4o"),ANTHROPIC_CLAUDE:new Bj(t.plot,r,n,"claude-3-7-sonnet-latest"),GOOGLE_GEMINI:new Pj(t.plot,r,n,"gemini-2.0-flash")}}async sendMessage(t,n){return this.models[t].getLlmResponse(n)}toggle(){this.display.toggleFocus(Pt.CHAT)}}class LT{constructor(t,n,r){j(this,"svg");j(this,"json");j(this,"textService");j(this,"maidrBaseUrl");j(this,"codeQueryParam");this.svg=t,this.json=JSON.stringify(n),this.textService=r,this.maidrBaseUrl="https://maidr-service.azurewebsites.net/api",this.codeQueryParam="I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D"}async getLlmResponse(t){var n;try{const r=await Et.toBase64(this.svg),a=t.expertise==="custom"?"advanced":t.expertise,l=this.textService.getCoordinateText()||"",u=this.getPayload(t.customInstruction,this.json,r,l,t.message,a),d=t.clientToken?this.getMaidrUrl():this.getApiUrl(t.apiKey),h=this.getHeaders(t),y=await WO.post(d,u,h);return y.success?y.data?this.formatResponse(y.data):{success:!1,error:"Response unavailable"}:{success:!1,error:(n=y.error)==null?void 0:n.message}}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}}getMaidrUrl(){return`${this.maidrBaseUrl}/${this.getEndPoint()}?code=${this.codeQueryParam}`}getHeaders(t){const n={"Content-Type":"application/json"};return t.clientToken?n.Authentication=`${t.email} ${t.clientToken}`:n.Authorization=`Bearer ${t.apiKey}`,n}}class Vj extends LT{constructor(n,r,a,l){super(n,r,a);j(this,"version");this.version=l}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(n,r,a,l,u,d){const h={maidrJson:r,currentPositionText:l,message:u,expertiseLevel:d};return JSON.stringify({model:this.version,max_tokens:kj,messages:[{role:"system",content:zT(n,h.expertiseLevel)},{role:"user",content:[{type:"text",text:IT(h)},{type:"image_url",image_url:{url:a}}]}]})}formatResponse(n){return n.choices.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.choices[0].message.content}}getHeaders(n){return super.getHeaders(n)}}class Bj extends LT{constructor(n,r,a,l){super(n,r,a);j(this,"version");this.version=l}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(n,r,a,l,u,d){const h={maidrJson:r,currentPositionText:l,message:u,expertiseLevel:d};return JSON.stringify({anthropic_version:this.version,max_tokens:zj,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:a}},{type:"text",text:`${zT(n,h.expertiseLevel)}

${IT(h)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const r=super.getHeaders(n);return r["anthropic-version"]=this.version,r}}class Pj extends LT{constructor(n,r,a,l){super(n,r,a);j(this,"version");this.version=l}getApiUrl(n){if(!n)throw new Error("API key is required for Gemini API");return`https://generativelanguage.googleapis.com/v1beta/models/${this.version}:generateContent?key=${n}`}getEndPoint(){return"gemini"}getPayload(n,r,a,l,u,d){const h={maidrJson:r,currentPositionText:l,message:u,expertiseLevel:d},y=zT(n,h.expertiseLevel),v=IT(h),x=`${y}

${v}`;return JSON.stringify({generationConfig:{maxOutputTokens:Ij},safetySettings:[],contents:[{role:"user",parts:[{text:x},{inlineData:{data:a.split(",")[1],mimeType:"image/svg+xml"}}]}]})}formatResponse(n){return n.candidates.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.candidates[0].content.parts[0].text}}getHeaders(n){const r=super.getHeaders(n);return delete r.Authorization,r}}class jj{constructor(t,n){j(this,"context");j(this,"autoplay");this.context=t,this.autoplay=n}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class $j{constructor(t,n){j(this,"context");j(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class Uj{constructor(t,n){j(this,"context");j(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class Hj{constructor(t,n){j(this,"context");j(this,"autoplay");this.autoplay=n,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class qj{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class Gj{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class Fj{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class Yj{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class zd{constructor(t,n,r,a,l){j(this,"context");j(this,"textViewModel");j(this,"audioService");j(this,"textService");j(this,"displayService");this.context=t,this.textViewModel=n,this.audioService=r,this.textService=a,this.displayService=l}restoreScope(){this.displayService.exitLabelScope()}}class Xj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.xAxis:`X label is ${t.xAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"X label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class Wj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const n=this.textService.isTerse()?t.yAxis:`Y label is ${t.yAxis}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Y label is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class Kj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.state,n=t.type==="trace"&&!t.empty?t.text.z:void 0;if(n!==void 0&&n.value!==void 0&&n.value!==null&&n.value!=="undefined"){const a=n.label,l=this.textService.isTerse()?a:`Z label is ${a}`;this.textViewModel.update(l)}else{const a=this.textService.isTerse()?"unavailable":"Z-axis is not available";this.textViewModel.update(a),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class Qj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.state;if(t.empty){this.announceUnavailable(),this.restoreScope();return}if(t.type==="figure"){this.announce(t.title,"Figure title"),this.restoreScope();return}if(t.type==="trace"){this.announceTraceTitle(t.title),this.restoreScope();return}this.announceUnavailable(),this.restoreScope()}announce(t,n){const r=this.textService.isTerse()?t:`${n} is ${t}`;this.textViewModel.update(r)}announceTraceTitle(t){if(this.context.isMultiPanel&&t!=="unavailable"){this.announce(t,"Subplot title");return}const n=this.context.figureTitle;if(n!=="unavailable"){this.announce(n,"Title");return}this.announceUnavailable()}announceUnavailable(){const t=this.textService.isTerse()?"unavailable":"Title is not available";this.textViewModel.update(t),this.audioService.playWarningToneIfEnabled()}}class Zj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.figureSubtitle;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Subtitle is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Subtitle is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class Jj extends zd{constructor(t,n,r,a,l){super(t,n,r,a,l)}execute(){const t=this.context.figureCaption;if(t!=="unavailable"){const n=this.textService.isTerse()?t:`Caption is ${t}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Caption is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class e$ extends zd{constructor(n,r,a,l,u,d,h){super(n,u,r,d,h);j(this,"audio");j(this,"brailleViewModel");j(this,"highlight");this.audio=r,this.highlight=a,this.brailleViewModel=l}execute(){const n=this.context.state;switch(n.type){case"figure":case"subplot":this.textViewModel.update(n);break;case"trace":this.textViewModel.update(n),this.audio.update(n),this.brailleViewModel.update(n),this.highlight.update(n);break}}}class t$ extends zd{constructor(t,n,r,a,l){super(t,r,a,n,l)}execute(){const t=this.context.state;if(t.empty||t.type!=="trace"){this.textViewModel.update("Not in a chart, unable to show position.");return}if(this.textViewModel.warnIfTextOff())return;if(t.text.gridPoints!==void 0&&t.text.range&&t.text.crossRange){this.announceGridPosition(t);return}const{panning:n}=t.audio,{x:r,y:a,rows:l,cols:u}=n,d=t.traceType;d===pt.BOX?this.announceBoxplotPosition(t):d===pt.CANDLESTICK?this.announceCandlestickPosition(t):d===pt.STACKED||d===pt.NORMALIZED||d===pt.DODGED?this.announceSegmentedBarPosition(t,r,u):d===pt.SMOOTH?l>1?this.announceMultiViolinPosition(a,l,r,u):this.announceSmoothPosition(r,u):d===pt.LINE&&t.groupCount&&t.groupCount>1?this.announceMultiLinePosition(r,u,a,l):d===pt.SCATTER?this.announceScatter(r,a,l,u):this.is2DPlot(l,u)?this.announce2DPosition(r,a,l,u):this.announce1DPosition(r,u)}is2DPlot(t,n){return t>1&&n>1}announce1DPosition(t,n){const r=t+1,a=n;if(this.textService.isTerse()||this.textService.isOff()){const l=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${l}%`)}else this.textViewModel.update(`Position is ${r} of ${a}`)}announce2DPosition(t,n,r,a){const l=t+1,u=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=a>1?Math.round(t/(a-1)*100):0,h=r>1?Math.round(n/(r-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is column ${l} of ${a}, row ${u} of ${r}`)}announceGridPosition(t){const{text:n}=t,r=n.range,a=n.crossRange;if(this.textService.isTerse())this.textViewModel.update(`${r.min} through ${r.max}, ${a.min} through ${a.max}`);else{const l=n.main.label||"x",u=n.cross.label||"y";this.textViewModel.update(`${l} is ${r.min} through ${r.max}, ${u} is ${a.min} through ${a.max}`)}}announceBoxplotPosition(t){const n=t.text.section||"",r=t.braille,a=r.row,l=r.values.length,u=a+1;if(this.textService.isTerse()||this.textService.isOff()){const d=l>1?Math.round(a/(l-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${u} of ${l} in ${n.toLowerCase()}`)}announceCandlestickPosition(t){const n=t.text.section||"",r=t.braille,a=r.col,l=r.values[0].length,u=a+1;if(this.textService.isTerse()||this.textService.isOff()){const d=l>1?Math.round(a/(l-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${u} of ${l}, ${n.toLowerCase()}`)}announceSegmentedBarPosition(t,n,r){var d;const a=((d=t.text.z)==null?void 0:d.value)??"",l=n+1,u=r;if(this.textService.isTerse()||this.textService.isOff()){const h=r>1?Math.round(n/(r-1)*100):0;this.textViewModel.update(`${h}%, ${a}`)}else this.textViewModel.update(`Position is ${l} of ${u}, Level is ${a}`)}announceSmoothPosition(t,n){this.announce1DPosition(t,n)}announceMultiViolinPosition(t,n,r,a){const l=t+1,u=r+1,d=`Violin ${l} of ${n}`;if(this.textService.isTerse()||this.textService.isOff()){const h=a>1?Math.round(r/(a-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${u} of ${a}`)}announceMultiLinePosition(t,n,r,a){const l=r+1,u=t+1,d=`Plot ${l} of ${a}`;if(this.textService.isTerse()||this.textService.isOff()){const h=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${u} of ${n}`)}announceScatter(t,n,r,a){const l=t+1,u=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=a>1?Math.round(t/(a-1)*100):0,h=r>1?Math.round(n/(r-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Column ${l} of ${a}, row ${u} of ${r}`)}}class n${constructor(t,n){j(this,"context");j(this,"goToExtremaViewModel");this.context=t,this.goToExtremaViewModel=n}execute(){const t=this.context.state;if(t.type==="trace")if(this.goToExtremaViewModel.state.visible)this.goToExtremaViewModel.hide();else{const n=this.context.active;n&&this.goToExtremaViewModel.isExtremaNavigable(n)&&this.goToExtremaViewModel.toggle(t)}}}class r${constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class i${constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class a${constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class o${constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class l${constructor(t,n){j(this,"context");j(this,"notification");this.context=t,this.notification=n}execute(){this.context.enterGridCell()||this.notification.notify("No points in this cell")}}class s${constructor(t){j(this,"context");this.context=t}execute(){this.context.exitGridCell()}}class u${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveCellPointLeft()}}class c${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveCellPointRight()}}class f${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class d${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class h${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class p${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class m${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class g${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class y${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class v${constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class b${constructor(t,n,r){j(this,"context");j(this,"brailleService");j(this,"displayService");this.context=t,this.brailleService=n,this.displayService=r}execute(){if(this.context.enterSubplot(),this.brailleService.isEnabled){const t=this.context.state;t.type==="trace"&&this.brailleService.refreshDisplay(t),this.displayService.toggleFocus(Pt.BRAILLE)}else this.displayService.syncFocusStack(Pt.TRACE)}}class x${constructor(t){j(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class S${constructor(t,n){j(this,"context");j(this,"displayService");this.context=t,this.displayService=n}execute(){this.displayService.dismissModalScope(Pt.SUBPLOT),this.context.exitSubplot(),this.displayService.notifyFocusChange(Pt.SUBPLOT)}}class E${constructor(t){j(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class w${constructor(t){j(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class T${constructor(t,n){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class A${constructor(t,n){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class C${constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class O${constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class M${constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class R${constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class _${constructor(t,n){j(this,"context");j(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class D${constructor(t){j(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class N${constructor(t){j(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class k${constructor(t,n){j(this,"context");j(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class z${constructor(t){j(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class I${constructor(t){j(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class L${constructor(t){j(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class V${constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class B${constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class P${constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class j${constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class $${constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class o5{constructor(t,n,r,a){j(this,"context");j(this,"scope");j(this,"textViewModel");j(this,"displayService");this.context=t,this.scope=n,this.textViewModel=r,this.displayService=a}execute(){var t;(t=this.textViewModel)==null||t.warnIfTextOff(),(this.scope===Pt.TRACE_LABEL||this.scope===Pt.FIGURE_LABEL)&&this.displayService?this.displayService.enterLabelScope(this.scope):this.context.toggleScope(this.scope)}}class U${constructor(t){j(this,"descriptionViewModel");this.descriptionViewModel=t}execute(){this.descriptionViewModel.toggle()}}class H${constructor(t){j(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class KO{constructor(t){j(this,"context");j(this,"audioService");j(this,"autoplayService");j(this,"brailleService");j(this,"displayService");j(this,"highContrastService");j(this,"highlightService");j(this,"notificationService");j(this,"rotorService");j(this,"textService");j(this,"brailleViewModel");j(this,"chatViewModel");j(this,"commandPaletteViewModel");j(this,"descriptionViewModel");j(this,"goToExtremaViewModel");j(this,"helpViewModel");j(this,"reviewViewModel");j(this,"settingsViewModel");j(this,"textViewModel");j(this,"rotorNavigationViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.brailleService=t.brailleService,this.displayService=t.displayService,this.highContrastService=t.highContrastService,this.highlightService=t.highlightService,this.notificationService=t.notificationService,this.rotorService=t.rotorNavigationService,this.textService=t.textService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.commandPaletteViewModel=t.commandPaletteViewModel,this.descriptionViewModel=t.descriptionViewModel,this.goToExtremaViewModel=t.goToExtremaViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel,this.rotorNavigationViewModel=t.rotorNavigationViewModel}create(t){switch(t){case"MOVE_UP":return this.context.isRotorEnabled()?new C$(this.rotorNavigationViewModel):new f$(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new M$(this.rotorNavigationViewModel):new d$(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new O$(this.rotorNavigationViewModel):new h$(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new R$(this.rotorNavigationViewModel):new p$(this.context);case"MOVE_TO_TOP_EXTREME":return new m$(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new g$(this.context);case"MOVE_TO_LEFT_EXTREME":return new y$(this.context);case"MOVE_TO_RIGHT_EXTREME":return new v$(this.context);case"MOVE_TO_TRACE_CONTEXT":return new b$(this.context,this.brailleService,this.displayService);case"MOVE_TO_SUBPLOT_CONTEXT":return new x$(this.context);case"EXIT_BRAILLE_AND_SUBPLOT":return new S$(this.context,this.displayService);case"MOVE_TO_NEXT_TRACE":return new E$(this.context);case"MOVE_TO_PREV_TRACE":return new w$(this.context);case"TOGGLE_AUDIO":return new N$(this.audioService);case"TOGGLE_BRAILLE":return new _$(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new D$(this.textViewModel);case"TOGGLE_REVIEW":return new k$(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new H$(this.highContrastService);case"TOGGLE_HELP":return new z$(this.helpViewModel);case"TOGGLE_CHAT":return new I$(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new V$(this.commandPaletteViewModel);case"TOGGLE_DESCRIPTION":return new U$(this.descriptionViewModel);case"TOGGLE_SETTINGS":return new L$(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new r$(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new i$(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new a$(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new o$(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new n$(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new P$(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new j$(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new $$(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new B$(this.commandPaletteViewModel);case"ANNOUNCE_X":return new Xj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_Y":return new Wj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_Z":return new Kj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_POINT":return new e$(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService,this.displayService);case"ANNOUNCE_TITLE":return new Qj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_SUBTITLE":return new Zj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_CAPTION":return new Jj(this.context,this.textViewModel,this.audioService,this.textService,this.displayService);case"ANNOUNCE_POSITION":return new t$(this.context,this.textService,this.textViewModel,this.audioService,this.displayService);case"ACTIVATE_FIGURE_LABEL_SCOPE":return new o5(this.context,Pt.FIGURE_LABEL,this.textViewModel,this.displayService);case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new o5(this.context,Pt.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new o5(this.context,Pt.TRACE_LABEL,this.textViewModel,this.displayService);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new o5(this.context,Pt.TRACE);case"AUTOPLAY_UPWARD":return new jj(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new $j(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new Uj(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new Hj(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new qj(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new Gj(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new Fj(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new Yj(this.autoplayService);case"ROTOR_NEXT_NAV":return new T$(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new A$(this.context,this.rotorNavigationViewModel);case"ENTER_GRID_CELL":return new l$(this.context,this.notificationService);case"EXIT_GRID_CELL":return new s$(this.context);case"GRID_CELL_MOVE_LEFT":return new u$(this.context);case"GRID_CELL_MOVE_RIGHT":return new c$(this.context);default:throw new Error(`Invalid command name: ${t}`)}}}const t1=class t1{constructor(){}static get ctrl(){return t1.IS_MAC?"command":"ctrl"}static get alt(){return t1.IS_MAC?"option":"alt"}static get enter(){return t1.IS_MAC?"return":"enter"}};j(t1,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let Tt=t1;function Ke(e,t,n){return{hotkey:e,description:t,...n}}const q$={ACTIVATE_TRACE_LABEL_SCOPE:Ke("l","Access Labels",{showInHelp:!1}),EXIT_BRAILLE_AND_SUBPLOT:Ke("esc","Exit Braille Mode",{showInHelp:!1}),AUTOPLAY_UPWARD:Ke(`${Tt.ctrl}+shift+up`,"Autoplay Upward",{helpKey:`${Tt.ctrl} + shift + up`}),AUTOPLAY_DOWNWARD:Ke(`${Tt.ctrl}+shift+down`,"Autoplay Downward",{helpKey:`${Tt.ctrl} + shift + down`}),AUTOPLAY_FORWARD:Ke(`${Tt.ctrl}+shift+right`,"Autoplay Forward",{helpKey:`${Tt.ctrl} + shift + right`}),AUTOPLAY_BACKWARD:Ke(`${Tt.ctrl}+shift+left`,"Autoplay Backward",{helpKey:`${Tt.ctrl} + shift + left`}),STOP_AUTOPLAY:Ke(`${Tt.ctrl}, up, down, left, right`,"Stop Autoplay",{helpKey:`${Tt.ctrl}`}),SPEED_UP_AUTOPLAY:Ke(".","Speed Up Autoplay",{helpKey:". (period)"}),SPEED_DOWN_AUTOPLAY:Ke(",","Speed Down Autoplay",{helpKey:", (comma)"}),RESET_AUTOPLAY_SPEED:Ke("/","Reset Autoplay Speed",{helpKey:"/ (slash)"}),MOVE_UP:Ke("up","Navigate Up"),MOVE_DOWN:Ke("down","Navigate Down"),MOVE_RIGHT:Ke("right","Navigate Right"),MOVE_LEFT:Ke("left","Navigate Left"),MOVE_TO_TOP_EXTREME:Ke(`${Tt.ctrl}+up`,"Go to Top Extreme",{helpKey:`${Tt.ctrl} + up`}),MOVE_TO_BOTTOM_EXTREME:Ke(`${Tt.ctrl}+down`,"Go to Bottom Extreme",{helpKey:`${Tt.ctrl} + down`}),MOVE_TO_LEFT_EXTREME:Ke(`${Tt.ctrl}+left`,"Go to Left Extreme",{helpKey:`${Tt.ctrl} + left`}),MOVE_TO_RIGHT_EXTREME:Ke(`${Tt.ctrl}+right`,"Go to Right Extreme",{helpKey:`${Tt.ctrl} + right`}),MOVE_TO_NEXT_TRACE:Ke("pageup","Move to Next Layer"),MOVE_TO_PREV_TRACE:Ke("pagedown","Move to Previous Layer"),TOGGLE_BRAILLE:Ke("b","Toggle Braille Mode"),TOGGLE_TEXT:Ke("t","Toggle Text Mode"),TOGGLE_AUDIO:Ke("s","Toggle Sonification Mode"),TOGGLE_REVIEW:Ke("r","Toggle Review Mode"),TOGGLE_HIGH_CONTRAST:Ke("c","Toggle High Contrast Mode"),TOGGLE_HELP:Ke(`${Tt.ctrl}+/`,"Open/Close Help",{helpKey:`${Tt.ctrl} + /`}),TOGGLE_CHAT:Ke("shift+/","Open Chat",{helpKey:"?"}),TOGGLE_SETTINGS:Ke(`${Tt.ctrl}+,`,"Open Settings",{helpKey:`${Tt.ctrl} + ,`}),ANNOUNCE_POINT:Ke("space","Replay Current Point"),ANNOUNCE_POSITION:Ke("p","Announce Position"),TOGGLE_DESCRIPTION:Ke("d","Open Chart Description"),ROTOR_NEXT_NAV:Ke(`${Tt.alt}+shift+up`,"Next Navigation Mode (Rotor)",{helpKey:`${Tt.alt} + shift + up`}),ROTOR_PREV_NAV:Ke(`${Tt.alt}+shift+down`,"Previous Navigation Mode (Rotor)",{helpKey:`${Tt.alt} + shift + down`})},G$={TOGGLE_CHAT:Ke("esc","Close Chat",{showInHelp:!1})},F$={DEACTIVATE_FIGURE_LABEL_SCOPE:Ke("escape","Exit Label Mode",{showInHelp:!1}),ANNOUNCE_TITLE:Ke("t","Announce Plot Title"),ANNOUNCE_SUBTITLE:Ke("s","Announce Subtitle"),ANNOUNCE_CAPTION:Ke("c","Announce Caption"),TOGGLE_HELP:Ke(`${Tt.ctrl}+/`,"Open/Close Help",{helpKey:`${Tt.ctrl} + /`})},Y$={TOGGLE_HELP:Ke("esc","Close Help",{showInHelp:!1})},X$={ACTIVATE_FIGURE_LABEL_SCOPE:Ke("l","Access Labels",{showInHelp:!1}),ANNOUNCE_TITLE:Ke("t","Announce Title"),ANNOUNCE_POINT:Ke("space","Announce Current Subplot"),ANNOUNCE_POSITION:Ke("p","Announce Position"),MOVE_UP:Ke("up","Move Up"),MOVE_DOWN:Ke("down","Move Down"),MOVE_RIGHT:Ke("right","Move Right"),MOVE_LEFT:Ke("left","Move Left"),MOVE_TO_TOP_EXTREME:Ke(`${Tt.ctrl}+up`,"Go to Top Extreme",{helpKey:`${Tt.ctrl} + up`}),MOVE_TO_BOTTOM_EXTREME:Ke(`${Tt.ctrl}+down`,"Go to Bottom Extreme",{helpKey:`${Tt.ctrl} + down`}),MOVE_TO_LEFT_EXTREME:Ke(`${Tt.ctrl}+left`,"Go to Left Extreme",{helpKey:`${Tt.ctrl} + left`}),MOVE_TO_RIGHT_EXTREME:Ke(`${Tt.ctrl}+right`,"Go to Right Extreme",{helpKey:`${Tt.ctrl} + right`}),MOVE_TO_TRACE_CONTEXT:Ke(`${Tt.enter}`,"Activate Current Subplot",{helpKey:`${Tt.enter}`}),TOGGLE_HIGH_CONTRAST:Ke("c","Toggle High Contrast Mode"),TOGGLE_HELP:Ke(`${Tt.ctrl}+/`,"Open/Close Help",{helpKey:`${Tt.ctrl} + /`}),TOGGLE_CHAT:Ke("shift+/","Open Chat",{helpKey:"?"}),TOGGLE_SETTINGS:Ke(`${Tt.ctrl}+,`,"Open Settings",{helpKey:`${Tt.ctrl} + ,`})},W$={DEACTIVATE_TRACE_LABEL_SCOPE:Ke("escape","Exit Label Mode",{showInHelp:!1}),ANNOUNCE_X:Ke("x","Announce X Label"),ANNOUNCE_Y:Ke("y","Announce Y Label"),ANNOUNCE_Z:Ke("z","Announce Z Label"),ANNOUNCE_TITLE:Ke("t","Announce Plot Title"),ANNOUNCE_SUBTITLE:Ke("s","Announce Subtitle"),ANNOUNCE_CAPTION:Ke("c","Announce Caption"),TOGGLE_HELP:Ke(`${Tt.ctrl}+/`,"Open/Close Help",{helpKey:`${Tt.ctrl} + /`})},K$={TOGGLE_BRAILLE:Ke("b","Toggle Braille Mode"),TOGGLE_REVIEW:Ke("r","Exit Review Mode"),ALLOW_DEFAULT:Ke(`up, down, left, right,
    ${Tt.ctrl}+up, ${Tt.ctrl}+down,
    ${Tt.ctrl}+left, ${Tt.ctrl}+right,
    pageup, pagedown, home, end,
    tab, ${Tt.ctrl}+a, ${Tt.ctrl}+c`,"Standard Text Selection",{showInHelp:!1})},Q$={TOGGLE_SETTINGS:Ke("esc","Close Settings",{showInHelp:!1})},Z$={ACTIVATE_TRACE_LABEL_SCOPE:Ke("l","Access Labels",{showInHelp:!1}),AUTOPLAY_UPWARD:Ke(`${Tt.ctrl}+shift+up`,"Autoplay Upward",{helpKey:`${Tt.ctrl} + shift + up`}),AUTOPLAY_DOWNWARD:Ke(`${Tt.ctrl}+shift+down`,"Autoplay Downward",{helpKey:`${Tt.ctrl} + shift + down`}),AUTOPLAY_FORWARD:Ke(`${Tt.ctrl}+shift+right`,"Autoplay Forward",{helpKey:`${Tt.ctrl} + shift + right`}),AUTOPLAY_BACKWARD:Ke(`${Tt.ctrl}+shift+left`,"Autoplay Backward",{helpKey:`${Tt.ctrl} + shift + left`}),STOP_AUTOPLAY:Ke(`${Tt.ctrl}, up, down, left, right`,"Stop Autoplay",{helpKey:`${Tt.ctrl}`}),SPEED_UP_AUTOPLAY:Ke(".","Speed Up Autoplay",{helpKey:". (period)"}),SPEED_DOWN_AUTOPLAY:Ke(",","Speed Down Autoplay",{helpKey:", (comma)"}),RESET_AUTOPLAY_SPEED:Ke("/","Reset Autoplay Speed",{helpKey:"/ (slash)"}),MOVE_UP:Ke("up","Navigate Up"),MOVE_DOWN:Ke("down","Navigate Down"),MOVE_RIGHT:Ke("right","Navigate Right"),MOVE_LEFT:Ke("left","Navigate Left"),MOVE_TO_TOP_EXTREME:Ke(`${Tt.ctrl}+up`,"Go to Top Extreme",{helpKey:`${Tt.ctrl} + up`}),MOVE_TO_BOTTOM_EXTREME:Ke(`${Tt.ctrl}+down`,"Go to Bottom Extreme",{helpKey:`${Tt.ctrl} + down`}),MOVE_TO_LEFT_EXTREME:Ke(`${Tt.ctrl}+left`,"Go to Left Extreme",{helpKey:`${Tt.ctrl} + left`}),MOVE_TO_RIGHT_EXTREME:Ke(`${Tt.ctrl}+right`,"Go to Right Extreme",{helpKey:`${Tt.ctrl} + right`}),MOVE_TO_SUBPLOT_CONTEXT:Ke("esc","Return to Subplot",{showInHelp:!1}),MOVE_TO_NEXT_TRACE:Ke("pageup","Move to Next Layer"),MOVE_TO_PREV_TRACE:Ke("pagedown","Move to Previous Layer"),TOGGLE_BRAILLE:Ke("b","Toggle Braille Mode"),TOGGLE_TEXT:Ke("t","Toggle Text Mode"),TOGGLE_AUDIO:Ke("s","Toggle Sonification Mode"),TOGGLE_REVIEW:Ke("r","Toggle Review Mode"),TOGGLE_HIGH_CONTRAST:Ke("c","Toggle High Contrast Mode"),TOGGLE_HELP:Ke(`${Tt.ctrl}+/`,"Open/Close Help",{helpKey:`${Tt.ctrl} + /`}),TOGGLE_CHAT:Ke("shift+/","Open Chat",{helpKey:"?"}),TOGGLE_COMMAND_PALETTE:Ke(`${Tt.ctrl}+shift+p`,"Open Command Palette",{helpKey:`${Tt.ctrl} + shift + p`}),TOGGLE_SETTINGS:Ke(`${Tt.ctrl}+,`,"Open Settings",{helpKey:`${Tt.ctrl} + ,`}),ANNOUNCE_POINT:Ke("space","Replay Current Point"),ANNOUNCE_POSITION:Ke("p","Announce Position"),GO_TO_EXTREMA_TOGGLE:Ke("g","Go To Extrema"),TOGGLE_DESCRIPTION:Ke("d","Open Chart Description"),ROTOR_NEXT_NAV:Ke(`${Tt.alt}+shift+up`,"Next Navigation Mode (Rotor)",{helpKey:`${Tt.alt} + shift + up`}),ROTOR_PREV_NAV:Ke(`${Tt.alt}+shift+down`,"Previous Navigation Mode (Rotor)",{helpKey:`${Tt.alt} + shift + down`}),ENTER_GRID_CELL:Ke(`${Tt.enter}`,"Enter Grid Cell",{showInHelp:!1})},J$={GO_TO_EXTREMA_MOVE_UP:Ke("up","Navigate Up",{showInHelp:!1}),GO_TO_EXTREMA_MOVE_DOWN:Ke("down","Navigate Down",{showInHelp:!1}),GO_TO_EXTREMA_SELECT:Ke("enter","Select",{showInHelp:!1}),GO_TO_EXTREMA_CLOSE:Ke("esc","Close",{showInHelp:!1}),GO_TO_EXTREMA_TOGGLE:Ke("g","Go To Extrema",{showInHelp:!1})},eU={TOGGLE_DESCRIPTION:Ke("esc","Close Chart Description",{showInHelp:!1})},tU={COMMAND_PALETTE_MOVE_UP:Ke("up","Navigate Up",{showInHelp:!1}),COMMAND_PALETTE_MOVE_DOWN:Ke("down","Navigate Down",{showInHelp:!1}),COMMAND_PALETTE_SELECT:Ke("enter","Select",{showInHelp:!1}),COMMAND_PALETTE_CLOSE:Ke("esc","Close",{showInHelp:!1})},nU={GRID_CELL_MOVE_LEFT:Ke("left","Navigate Left in Cell",{showInHelp:!1}),GRID_CELL_MOVE_RIGHT:Ke("right","Navigate Right in Cell",{showInHelp:!1}),EXIT_GRID_CELL:Ke("esc","Exit Grid Cell",{showInHelp:!1})},l5={[Pt.BRAILLE]:q$,[Pt.CHAT]:G$,[Pt.COMMAND_PALETTE]:tU,[Pt.DESCRIPTION]:eU,[Pt.FIGURE_LABEL]:F$,[Pt.GO_TO_EXTREMA]:J$,[Pt.GRID_CELL]:nU,[Pt.HELP]:Y$,[Pt.REVIEW]:K$,[Pt.SETTINGS]:Q$,[Pt.SUBPLOT]:X$,[Pt.TRACE]:Z$,[Pt.TRACE_LABEL]:W$};function QO(e){return l5[e]}class rU{constructor(t){j(this,"commandFactory");this.commandFactory=new KO(t)}register(t){Ua.filter=n=>{const r=n.target;return r.tagName.toLowerCase()===fe.INPUT?r.id.startsWith(fe.REVIEW_INPUT):r.tagName.toLowerCase()===fe.TEXT_AREA?r.id.startsWith(fe.BRAILLE_TEXT_AREA):!0};for(const[n,r]of Object.entries(l5))for(const[a,l]of Object.entries(r)){const u=l.hotkey;a==="STOP_AUTOPLAY"&&Ua("*",Pt.TRACE,d=>{(Ua.command||Ua.ctrl)&&this.commandFactory.create(a).execute(d)}),Ua(u,{scope:n},d=>{a!=="ALLOW_DEFAULT"&&(d.preventDefault(),this.commandFactory.create(a).execute(d))})}Ua.setScope(t)}unregister(){Ua.unbind()}}class iU{constructor(t,n,r){j(this,"mouseListener");j(this,"commandContext");j(this,"hoverMode","none");j(this,"plot");j(this,"settingsService");this.commandContext=t,this.settingsService=n;const a=n.loadSettings();this.hoverMode=a.general.hoverMode,this.plot=r.plot,this.settingsService.addObserver(this)}registerEvents(){this.mouseListener||(this.mouseListener=t=>{const n=t.clientX,r=t.clientY;this.commandContext.context.moveToPoint(n,r)}),this.removeEventListeners(),this.hoverMode==="pointermove"?this.plot.addEventListener("pointermove",this.mouseListener):this.hoverMode==="click"&&this.plot.addEventListener("click",this.mouseListener)}removeEventListeners(){this.mouseListener&&(this.plot.removeEventListener("pointermove",this.mouseListener),this.plot.removeEventListener("click",this.mouseListener))}unregister(){this.removeEventListeners()}update(t){const n=t.general.hoverMode;this.hoverMode!==n&&(this.hoverMode=n,this.registerEvents())}dispose(){this.unregister(),this.settingsService.removeObserver(this)}}class aU{constructor(t,n){j(this,"commandFactory");j(this,"commandContext");j(this,"onScopeChangeEmitter",new Zc);j(this,"lastEmittedScope");j(this,"onScopeChange",this.onScopeChangeEmitter.event);this.commandFactory=new KO(t),this.commandContext=t,this.lastEmittedScope=n}getContext(){return this.commandContext}executeCommand(t){const n=this.getCurrentScope(),r=l5[n];if(!(!r||!(t in r)))try{this.commandFactory.create(t).execute(),this.emitIfScopeChanged()}catch(a){console.error(`Failed to execute command ${t}:`,a)}}getCurrentScope(){return this.commandContext.context.scope}emitIfScopeChanged(){const t=this.getCurrentScope();t!==this.lastEmittedScope&&(this.lastEmittedScope=t,this.onScopeChangeEmitter.fire(t))}dispose(){this.onScopeChangeEmitter.dispose()}}class oU{constructor(t,n){j(this,"context");j(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==Pt.COMMAND_PALETTE&&this.display.toggleFocus(Pt.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==Pt.TRACE&&this.display.toggleFocus(Pt.COMMAND_PALETTE)}}class lU{constructor(t,n){j(this,"context");j(this,"display");this.context=t,this.display=n}getDescription(){const t=this.context.active;if(t instanceof Ea){const n=t.description,r=n.title,a=this.context.figureTitle,d=r&&r!==bT?r:a&&a!==BO&&a!==bT?a:"",h=this.context.getSubplotSummaries();return{...n,title:d,...h.length>0&&{subplots:h}}}return null}toggle(){this.display.toggleFocus(Pt.DESCRIPTION)}}function sU(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class uU{constructor(t,n,r){j(this,"context");j(this,"focusStack");j(this,"plot");j(this,"onChangeEmitter");j(this,"onChange");j(this,"hasEnteredInteractive",!1);j(this,"textService");j(this,"isReturningFromModeToggle",!1);j(this,"textChangeDisposer",null);j(this,"hasClearedOnFirstNav",!1);j(this,"pendingFocusChangeTimer",null);this.context=t,this.focusStack=new pT,this.focusStack.push(this.context.scope),this.plot=n,this.textService=r,this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event,this.removeInstruction(),this.textChangeDisposer=this.textService.onChange(()=>{this.hasClearedOnFirstNav||(this.plot.removeAttribute(fe.ARIA_LABEL),this.hasClearedOnFirstNav=!0)})}dispose(){var t;this.addInstruction(),this.pendingFocusChangeTimer!==null&&(clearTimeout(this.pendingFocusChangeTimer),this.pendingFocusChangeTimer=null),(t=this.textChangeDisposer)==null||t.dispose(),this.textChangeDisposer=null,this.onChangeEmitter.dispose(),wO(this.plot)&&xP(this.plot)}getInstruction(t=!0){return this.context.getInstruction(t)}addInstruction(){this.plot.setAttribute(fe.ARIA_LABEL,this.getInstruction()),this.plot.setAttribute(fe.TITLE,this.getInstruction()),this.plot.setAttribute(fe.ROLE,fe.IMAGE),this.plot.tabIndex=0}removeInstruction(){const t=this.hasEnteredInteractive?"":this.getInstruction(!1);t?(this.plot.setAttribute(fe.ARIA_LABEL,t),this.plot.removeAttribute(fe.TITLE),this.plot.setAttribute(fe.ROLE,fe.APPLICATION),this.plot.tabIndex=0):(this.plot.removeAttribute(fe.ARIA_LABEL),this.plot.removeAttribute(fe.TITLE),this.plot.setAttribute(fe.ROLE,fe.APPLICATION),this.plot.tabIndex=0)}getTraceAriaLabel(){const t=this.textService.format(this.context.state);return t&&t.trim().length>0?t:this.getInstruction(!1)}enterLabelScope(t){this.context.toggleScope(t)}exitLabelScope(){const t=this.focusStack.peek()??Pt.TRACE;this.context.toggleScope(t)}syncFocusStack(t){this.focusStack.clear(),this.focusStack.push(t)}toggleFocus(t){this.isReturningFromModeToggle=t==="BRAILLE"||t==="REVIEW"||t==="GO_TO_EXTREMA"||t==="COMMAND_PALETTE"||t==="DESCRIPTION"||t==="SETTINGS"||t==="CHAT"||t==="HELP",this.isReturningFromModeToggle&&this.plot.removeAttribute(fe.ARIA_LABEL),this.focusStack.removeLast(t)||this.focusStack.push(t);let n=this.focusStack.peek();if(this.isReturningFromModeToggle&&(n==="SUBPLOT"||n==="TRACE")){const a=this.context.state.type==="trace"?Pt.TRACE:Pt.SUBPLOT;n!==a&&(this.focusStack.clear(),this.focusStack.push(a),n=a)}this.context.toggleScope(n),this.updateFocus(n)}dismissModalScope(t){this.plot.focus(),this.focusStack.clear(),this.focusStack.push(t)}notifyFocusChange(t){this.pendingFocusChangeTimer!==null&&clearTimeout(this.pendingFocusChangeTimer),this.pendingFocusChangeTimer=setTimeout(()=>{this.pendingFocusChangeTimer=null,this.onChangeEmitter.fire({value:t})},0)}updateFocus(t){t==="TRACE"||t==="SUBPLOT"?(this.plot.tabIndex=0,setTimeout(()=>{if(this.isReturningFromModeToggle)this.isReturningFromModeToggle=!1,this.plot.removeAttribute(fe.ARIA_LABEL);else{const n=this.context.active;n&&sU(n)&&n.ensureInitialized(),this.hasEnteredInteractive||this.plot.removeAttribute(fe.ARIA_LABEL)}this.plot.setAttribute(fe.ROLE,fe.APPLICATION),this.plot.focus(),this.hasEnteredInteractive||(this.hasEnteredInteractive=!0),this.onChangeEmitter.fire({value:t})},0)):this.onChangeEmitter.fire({value:t})}}const Jm=e=>`${e}`,eg={currency:(e="USD",t=2,n="en-US")=>r=>{const a=typeof r=="number"?r:Number.parseFloat(String(r));return new Intl.NumberFormat(n,{style:"currency",currency:e,minimumFractionDigits:t,maximumFractionDigits:t}).format(a)},percent:(e=1)=>t=>`${((typeof t=="number"?t:Number.parseFloat(String(t)))*100).toFixed(e)}%`,date:(e,t="en-US")=>n=>{const r=new Date(n);return new Intl.DateTimeFormat(t,e).format(r)},number:(e=0,t="en-US")=>n=>{const r=typeof n=="number"?n:Number.parseFloat(String(n));return new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}).format(r)},scientific:(e=2)=>t=>(typeof t=="number"?t:Number.parseFloat(String(t))).toExponential(e),fixed:(e=2)=>t=>(typeof t=="number"?t:Number.parseFloat(String(t))).toFixed(e)};class VT{constructor(){}static resolveFormat(t){if(!t)return Jm;if(t.function)try{return new Function("value",t.function)}catch{return console.warn("Invalid format function string:",t.function),Jm}return t.type?this.resolveTypeSpecifier(t):Jm}static resolveTypeSpecifier(t){const{type:n,decimals:r,currency:a,locale:l,dateOptions:u}=t;switch(n){case"currency":return eg.currency(a??"USD",r??2,l??"en-US");case"percent":return eg.percent(r??1);case"fixed":return eg.fixed(r??2);case"number":return eg.number(r??0,l??"en-US");case"date":return eg.date(u,l??"en-US");case"scientific":return eg.scientific(r??2);default:return Jm}}static wrapFormat(t,n){const{missingText:r="missing"}=n??{};return a=>a==null||typeof a=="number"&&Number.isNaN(a)?r:t(a)}static applyFormat(t,n){return Array.isArray(t)?t.map(r=>n(r)):n(t)}}class cU{constructor(t){j(this,"formatters");this.formatters=new Map,this.initializeFormatters(t)}initializeFormatters(t){var n,r,a;for(const l of t.subplots)for(const u of l)for(const d of u.layers){const h=d.id,y=d.axes,v={x:this.resolveAxisFormat((n=y==null?void 0:y.x)==null?void 0:n.format),y:this.resolveAxisFormat((r=y==null?void 0:y.y)==null?void 0:r.format),z:this.resolveAxisFormat((a=y==null?void 0:y.z)==null?void 0:a.format)};this.formatters.set(h,v)}}resolveAxisFormat(t){const n=VT.resolveFormat(t);return VT.wrapFormat(n)}getFormatter(t,n){const r=this.formatters.get(t);return r?r[n]:Jm}hasCustomFormatter(t,n){const r=this.formatters.get(t);return r?r[n]!==Jm:!1}formatValue(t,n,r){const a=this.getFormatter(n,r);return VT.applyFormat(t,a)}formatSingleValue(t,n,r){return this.getFormatter(n,r)(t)}formatArrayValue(t,n,r){const a=this.getFormatter(n,r);return t.map(l=>a(l))}dispose(){this.formatters.clear()}}class fU{constructor(t,n){j(this,"context");j(this,"display");this.context=t,this.display=n}toggle(t){if(t.empty)return;const n=this.context.active;n&&this.isExtremaNavigable(n)&&this.context.scope!==Pt.GO_TO_EXTREMA&&this.display.toggleFocus(Pt.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof Ea&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==Pt.TRACE&&this.display.toggleFocus(Pt.GO_TO_EXTREMA)}}const dU={[Pt.TRACE]:[{scope:Pt.TRACE_LABEL,entryKey:"l"}],[Pt.SUBPLOT]:[{scope:Pt.FIGURE_LABEL,entryKey:"l"}]};function hU(e){const t=[];for(const n of Object.values(e))n.showInHelp!==!1&&t.push({description:n.description,key:n.helpKey??n.hotkey});return t}function pU(e,t,n){const r=[],a=new Set(Object.keys(n));for(const[l,u]of Object.entries(e)){if(a.has(l)||u.showInHelp===!1)continue;const d=u.helpKey??u.hotkey;d==="escape"||d==="esc"||r.push({description:u.description,key:`${t} ${d}`})}return r}function ZO(e){const t=QO(e),n=hU(t),r=dU[e];if(r)for(const a of r){const l=QO(a.scope),u=pU(l,a.entryKey,t);n.push(...u)}return n}class mU{constructor(t,n){j(this,"context");j(this,"display");j(this,"scopedMenuItems");this.context=t,this.display=n;const r=ZO(Pt.TRACE),a=ZO(Pt.SUBPLOT);this.scopedMenuItems={[Pt.TRACE]:r,[Pt.TRACE_LABEL]:r,[Pt.BRAILLE]:r,[Pt.SUBPLOT]:a,[Pt.FIGURE_LABEL]:a}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(Pt.HELP)}}const wa="http://www.w3.org/2000/svg",W6=class W6{constructor(){j(this,"patternCache",new Map);j(this,"defsElement",null);j(this,"targetSvg",null);j(this,"patternGenerators",{"diagonal-stripes":this.createDiagonalStripes.bind(this),"square-grid":this.createSquareGrid.bind(this),dots:this.createDots.bind(this),"horizontal-lines":this.createHorizontalLines.bind(this),diamonds:this.createDiamonds.bind(this)})}initialize(t){this.targetSvg=t,this.ensureDefsElement()}getPattern(t){const{type:n,baseColor:r,patternColor:a,scale:l=1}=t,u=this.generateCacheKey(n,r,a,l),d=this.patternCache.get(u);if(d&&this.patternExists(d))return d;const h=this.createPattern(t);return this.patternCache.set(u,h.id),this.injectPattern(h),h.id}applyPattern(t,n){const a=`url(#${this.getPattern(n)})`,l=t.getAttribute("style")||"";if(l.match(/fill:[^;]+/i)){const u=l.replace(/fill:[^;]+/i,`fill:${a}`);t.setAttribute("style",u)}else t.setAttribute("fill",a)}removePattern(t,n){t.setAttribute("fill",n)}getPatternTypes(){return["diagonal-stripes","dots","square-grid","horizontal-lines","diamonds"]}getPatternTypeByIndex(t){const n=this.getPatternTypes();return n[t%n.length]}dispose(){var t;for(const n of this.patternCache.values()){const r=(t=this.targetSvg)==null?void 0:t.querySelector(`#${n}`);r==null||r.remove()}this.patternCache.clear(),this.defsElement=null,this.targetSvg=null}ensureDefsElement(){if(!this.targetSvg)throw new Error("PatternService not initialized with target SVG");let t=this.targetSvg.querySelector("defs");t||(t=document.createElementNS(wa,"defs"),this.targetSvg.insertBefore(t,this.targetSvg.firstChild)),this.defsElement=t}patternExists(t){var n;return!!((n=this.targetSvg)!=null&&n.querySelector(`#${t}`))}generateCacheKey(t,n,r,a){const l=this.normalizeColor(n),u=this.normalizeColor(r);return`${t}-${l}-${u}-${a}`}generatePatternId(t){const n=Date.now(),r=Math.random().toString(36).substring(2,8);return`${W6.PATTERN_PREFIX}-${t}-${n}-${r}`}normalizeColor(t){const n=document.createElement("canvas").getContext("2d");return n?(n.fillStyle="#000",n.fillStyle=t,n.fillStyle.toLowerCase()):t.toLowerCase().replace(/\s/g,"")}createPattern(t){const{type:n,baseColor:r,patternColor:a,scale:l=1}=t,u=this.patternGenerators[n];if(!u)throw new Error(`Unknown pattern type: ${n}`);const d=u(r,a,l),h=this.generatePatternId(n);return d.setAttribute("id",h),{id:h,element:d}}injectPattern(t){var n;this.defsElement||this.ensureDefsElement(),(n=this.defsElement)==null||n.appendChild(t.element)}createDiagonalStripes(t,n,r){const a=12*r,l=5*r,u=document.createElementNS(wa,"pattern");u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(a)),u.setAttribute("height",String(a)),u.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(wa,"rect");d.setAttribute("width",String(a)),d.setAttribute("height",String(a)),d.setAttribute("fill",t),u.appendChild(d);const h=document.createElementNS(wa,"line");return h.setAttribute("x1","0"),h.setAttribute("y1","0"),h.setAttribute("x2","0"),h.setAttribute("y2",String(a)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(l)),u.appendChild(h),u}createSquareGrid(t,n,r){const a=14*r,l=3*r,u=document.createElementNS(wa,"pattern");u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(a)),u.setAttribute("height",String(a));const d=document.createElementNS(wa,"rect");d.setAttribute("width",String(a)),d.setAttribute("height",String(a)),d.setAttribute("fill",t),u.appendChild(d);const h=document.createElementNS(wa,"path");return h.setAttribute("d",`M ${a} 0 L 0 0 0 ${a}`),h.setAttribute("fill","none"),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(l)),u.appendChild(h),u}createDots(t,n,r){const a=16*r,l=4*r,u=document.createElementNS(wa,"pattern");u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(a)),u.setAttribute("height",String(a));const d=document.createElementNS(wa,"rect");d.setAttribute("width",String(a)),d.setAttribute("height",String(a)),d.setAttribute("fill",t),u.appendChild(d);const h=document.createElementNS(wa,"circle");return h.setAttribute("cx",String(a/2)),h.setAttribute("cy",String(a/2)),h.setAttribute("r",String(l)),h.setAttribute("fill",n),u.appendChild(h),u}createHorizontalLines(t,n,r){const a=10*r,l=4*r,u=document.createElementNS(wa,"pattern");u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(a)),u.setAttribute("height",String(a));const d=document.createElementNS(wa,"rect");d.setAttribute("width",String(a)),d.setAttribute("height",String(a)),d.setAttribute("fill",t),u.appendChild(d);const h=document.createElementNS(wa,"line");return h.setAttribute("x1","0"),h.setAttribute("y1",String(a/2)),h.setAttribute("x2",String(a)),h.setAttribute("y2",String(a/2)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(l)),u.appendChild(h),u}createDiamonds(t,n,r){const a=16*r,l=a/2,u=document.createElementNS(wa,"pattern");u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(a)),u.setAttribute("height",String(a)),u.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(wa,"rect");d.setAttribute("width",String(a)),d.setAttribute("height",String(a)),d.setAttribute("fill",t),u.appendChild(d);const h=document.createElementNS(wa,"rect");h.setAttribute("width",String(l)),h.setAttribute("height",String(l)),h.setAttribute("fill",n),u.appendChild(h);const y=document.createElementNS(wa,"rect");return y.setAttribute("x",String(l)),y.setAttribute("y",String(l)),y.setAttribute("width",String(l)),y.setAttribute("height",String(l)),y.setAttribute("fill",n),u.appendChild(y),u}};j(W6,"PATTERN_PREFIX","maidr-pattern");let BT=W6;const on={LUMINANCE_RED_COEFF:.299,LUMINANCE_GREEN_COEFF:.587,LUMINANCE_BLUE_COEFF:.114,RGB_MAX_VALUE:255,NEAR_WHITE_LUMINANCE_SCALE:.1,MIN_COMPLEX_PATH_LENGTH:120,LIGHTNESS_MIDPOINT:.5,DEFAULT_MIDRANGE_LUMINANCE:.5,GLOW_FILTER_OFFSET:"-50%",GLOW_FILTER_SIZE:"200%",GLOW_BLUR_OUTER:20,GLOW_BLUR_MIDDLE:10,GLOW_BLUR_INNER:5,HSL_HUE_DIVISOR:6,HSL_GREEN_HUE_OFFSET:2,HSL_BLUE_HUE_OFFSET:4,HSL_THRESHOLD_ONE_SIXTH:1/6,HSL_THRESHOLD_ONE_HALF:1/2,HSL_THRESHOLD_TWO_THIRDS:2/3,HSL_THRESHOLD_ONE_THIRD:1/3};class gU{constructor(t,n,r,a,l){j(this,"settingsService");j(this,"notificationService");j(this,"displayService");j(this,"figure");j(this,"context");j(this,"settingsDisposable",null);j(this,"defaultBackgroundColor","");j(this,"defaultForegroundColor","");j(this,"originalColorInfo",null);j(this,"traceElementsCache",null);j(this,"patternService",null);j(this,"previousHighContrastMode",!1);j(this,"sharedCanvasCtx",null);this.settingsService=t,this.notificationService=n,this.displayService=r,this.figure=a,this.context=l,this.previousHighContrastMode=this.highContrastMode,this.settingsDisposable=this.settingsService.onChange(u=>{u.affectsSetting("general.highContrastMode")&&this.handleHighContrastModeChange(u.get("general.highContrastMode"))}),this.captureOriginalColors()}getSharedCanvasContext(){return this.sharedCanvasCtx||(this.sharedCanvasCtx=document.createElement("canvas").getContext("2d")),this.sharedCanvasCtx}get highContrastMode(){return this.settingsService.loadSettings().general.highContrastMode}get highContrastLightColor(){return this.settingsService.loadSettings().general.highContrastLightColor}get highContrastDarkColor(){return this.settingsService.loadSettings().general.highContrastDarkColor}get highContrastLevels(){return this.settingsService.loadSettings().general.highContrastLevels}get colorEquivalents(){return this.interpolateColors(this.highContrastLightColor,this.highContrastDarkColor,this.highContrastLevels)}initializeHighContrast(){this.highContrastMode&&this.applyHighContrast()}suspendHighContrast(){this.highContrastMode&&this.originalColorInfo&&this.restoreOriginalColors()}captureOriginalColors(){const t=window.getComputedStyle(document.body);this.defaultBackgroundColor=t.backgroundColor,this.defaultForegroundColor=t.color,this.originalColorInfo=this.getOriginalColorInfo()}validateCapturedElements(){return!this.originalColorInfo||this.originalColorInfo.length===0?!1:this.originalColorInfo.every(t=>t.element&&document.body.contains(t.element))}recaptureIfNeeded(){this.validateCapturedElements()||(console.warn("HighContrastService: DOM changed since capture, re-capturing colors"),this.captureOriginalColors())}dispose(){this.settingsDisposable&&(this.settingsDisposable.dispose(),this.settingsDisposable=null),this.patternService&&(this.patternService.dispose(),this.patternService=null)}handleHighContrastModeChange(t){t!==this.previousHighContrastMode&&(this.previousHighContrastMode=t,t?this.applyHighContrast():this.restoreOriginalColors())}toggleHighContrast(){const t=this.settingsService.loadSettings(),n=!t.general.highContrastMode;this.settingsService.saveSettings({...t,general:{...t.general,highContrastMode:n}});const r=`High Contrast Mode ${n?"on":"off"}`;this.notificationService.notify(r)}applyHighContrast(){var n,r;this.recaptureIfNeeded(),document.body.style.backgroundColor=this.highContrastDarkColor,document.body.style.color=this.highContrastLightColor;const t=this.getHighContrastColors();for(const a of t)if(a.element&&a.attrType==="style"){const u=(a.element.getAttribute("style")||"").replace(new RegExp(`${a.attr}:\\s*[^;]+`,"i"),`${a.attr}:${a.color}`);a.element.setAttribute("style",u)}else a.element&&a.attrType==="attribute"&&a.element.setAttribute(a.attr,a.color);this.addGlowShadowFilter(this.displayService.plot),(n=this.originalColorInfo)==null||n.forEach(a=>{this.hasParentWithStringInID(a.element,"text")&&a.element.setAttribute("filter","url(#glow-shadow)")}),"type"in this.context.instructionContext&&this.context.instructionContext.type==="line"&&((r=document.getElementById(this.context.id))==null||r.classList.add("high-contrast")),this.displayService.plot.setAttribute("style",`fill:${this.highContrastLightColor}`),"type"in this.context.instructionContext&&(this.context.instructionContext.type==="stacked_bar"||this.context.instructionContext.type==="dodged_bar")&&this.applyPatternsToElements(t)}restoreOriginalColors(){var t;this.originalColorInfo&&(document.body.style.backgroundColor=this.defaultBackgroundColor,document.body.style.color=this.defaultForegroundColor,this.originalColorInfo.forEach(n=>{if(n.element&&n.attrType==="style"){const a=(n.element.getAttribute("style")||"").replace(new RegExp(`${n.attr}:\\s*[^;]+`,"i"),`${n.attr}:${n.color}`);n.element.setAttribute("style",a)}else n.element&&n.attrType==="attribute"&&n.element.setAttribute(n.attr,n.color);n.element.getAttribute("filter")==="url(#glow-shadow)"&&n.element.removeAttribute("filter")}),"type"in this.context.instructionContext&&this.context.instructionContext.type==="line"&&((t=document.getElementById(this.context.id))==null||t.classList.remove("high-contrast")),this.displayService.plot.setAttribute("style",`fill:${this.defaultForegroundColor}`),this.patternService&&(this.patternService.dispose(),this.patternService=null))}getAllTraceElements(){if(this.traceElementsCache!==null)return this.traceElementsCache;const t=new Set;for(const n of this.figure.subplots)for(const r of n)for(const a of r.traces)for(const l of a){const u=l.getAllOriginalElements();for(const d of u)t.add(d)}return this.traceElementsCache=t,t}isTraceElement(t,n){return n.has(t)}getOriginalColorInfo(){const t=this.displayService.plot;if(!t)return null;const n=t.querySelectorAll("*"),r=this.getAllTraceElements(),a=[];for(let l=0;l<n.length;l++){const u=n[l];if(u.getAttribute("visibility")==="hidden")continue;const d=u.getAttribute("style")||"",h=d.match(/fill:\s*([^;]+)/i),y=d.match(/stroke:\s*([^;]+)/i),v=this.isTraceElement(u,r),x=u.getAttribute("d");let T=!1;x&&(T=x.length>on.MIN_COMPLEX_PATH_LENGTH);const E=T;h&&a.push({element:u,color:h[1].trim(),isInSelectors:v,cantBeBackground:E,attr:"fill",attrType:"style"}),y&&a.push({element:u,color:y[1].trim(),isInSelectors:v,cantBeBackground:E,attr:"stroke",attrType:"style"});const A=u.getAttribute("fill");A&&a.push({element:u,color:A.trim(),isInSelectors:v,cantBeBackground:E,attr:"fill",attrType:"attribute"});const R=u.getAttribute("stroke");R&&a.push({element:u,color:R.trim(),isInSelectors:v,cantBeBackground:E,attr:"stroke",attrType:"attribute"})}return a}getHighContrastColors(){const t=this.originalColorInfo;return t?this.spreadColorsAcrossLuminanceSpectrum(t).map(a=>({...a,color:this.toColorStep(a)})):[]}hasParentWithStringInID(t,n="",r=""){let a=t.parentElement;for(;a&&!(a.tagName==="svg"||a.tagName==="BODY");){if(r.length>0&&a.id.startsWith(r))return!1;if(n.length>0&&a.id.startsWith(n))return!0;a=a.parentElement}return!1}addGlowShadowFilter(t){const n=t;if(n.querySelector("#glow-shadow"))return;let r=n.querySelector("defs");r||(r=document.createElementNS("http://www.w3.org/2000/svg","defs"),n.insertBefore(r,n.firstChild));const a=document.createElementNS("http://www.w3.org/2000/svg","filter");a.setAttribute("id","glow-shadow"),a.setAttribute("x",on.GLOW_FILTER_OFFSET),a.setAttribute("y",on.GLOW_FILTER_OFFSET),a.setAttribute("width",on.GLOW_FILTER_SIZE),a.setAttribute("height",on.GLOW_FILTER_SIZE);const l=`
    <feGaussianBlur in="SourceAlpha" stdDeviation="${on.GLOW_BLUR_OUTER}" result="blur1"/>
    <feOffset dx="0" dy="0" result="offsetblur1" in="blur1"/>
    <feFlood flood-color="black" result="color1"/>
    <feComposite in="color1" in2="offsetblur1" operator="in" result="shadow1"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${on.GLOW_BLUR_MIDDLE}" result="blur2"/>
    <feOffset dx="0" dy="0" result="offsetblur2" in="blur2"/>
    <feFlood flood-color="black" result="color2"/>
    <feComposite in="color2" in2="offsetblur2" operator="in" result="shadow2"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${on.GLOW_BLUR_MIDDLE}" result="blur3"/>
    <feOffset dx="0" dy="0" result="offsetblur3" in="blur3"/>
    <feFlood flood-color="black" result="color3"/>
    <feComposite in="color3" in2="offsetblur3" operator="in" result="shadow3"/>

    <feGaussianBlur in="SourceAlpha" stdDeviation="${on.GLOW_BLUR_INNER}" result="blur4"/>
    <feOffset dx="0" dy="0" result="offsetblur4" in="blur4"/>
    <feFlood flood-color="black" result="color4"/>
    <feComposite in="color4" in2="offsetblur4" operator="in" result="shadow4"/>

    <feMerge>
      <feMergeNode in="shadow1"/>
      <feMergeNode in="shadow2"/>
      <feMergeNode in="shadow3"/>
      <feMergeNode in="shadow4"/>
      <feMergeNode in="SourceGraphic"/>
    </feMerge>
  `;a.innerHTML=l,r.appendChild(a)}toColorStep(t){const n=t.color;if(n==="none"||n==="transparent")return n;if(this.hasParentWithStringInID(t.element,"text"))return this.highContrastLightColor;const r=[...this.colorEquivalents],a=this.getSharedCanvasContext();if(!a)return n;a.fillStyle="#000",a.fillStyle=n.trim();let l=a.fillStyle;if(/^#[0-9a-f]{8}$/i.test(l)){const y=Number.parseInt(l.slice(1,3),16),v=Number.parseInt(l.slice(3,5),16),x=Number.parseInt(l.slice(5,7),16),T=Number.parseInt(l.slice(7,9),16)/on.RGB_MAX_VALUE,E=Math.round(y*T+on.RGB_MAX_VALUE*(1-T)),A=Math.round(v*T+on.RGB_MAX_VALUE*(1-T)),R=Math.round(x*T+on.RGB_MAX_VALUE*(1-T));l=`#${E.toString(16).padStart(2,"0")}${A.toString(16).padStart(2,"0")}${R.toString(16).padStart(2,"0")}`}else if(!/^#[0-9a-f]{6}$/i.test(l))return n;let u=!1;const d=on.NEAR_WHITE_LUMINANCE_SCALE;return"type"in this.context.instructionContext&&(this.context.instructionContext.type==="bar"||this.context.instructionContext.type==="histogram")&&t.isInSelectors&&(u=!0),this.findClosestColor(n,r,u,d,t.cantBeBackground)}findClosestColor(t,n,r,a,l){if(n.length===0)throw new Error("Color array cannot be empty");const u=v=>{const x=v.replace("#","");return{r:Number.parseInt(x.slice(0,2),16),g:Number.parseInt(x.slice(2,4),16),b:Number.parseInt(x.slice(4,6),16)}},d=v=>on.LUMINANCE_RED_COEFF*v.r+on.LUMINANCE_GREEN_COEFF*v.g+on.LUMINANCE_BLUE_COEFF*v.b,h=(v,x)=>Math.sqrt((v.r-x.r)**2+(v.g-x.g)**2+(v.b-x.b)**2),y=u(t);if(l){const v=n.indexOf(this.highContrastDarkColor);v!==-1&&n.splice(v,1)}if(r){const v=d(y),x=on.RGB_MAX_VALUE*(1-a);if(v>=x||n.length===1)return n[0];let T=n[0];if(n.length>1){let E=h(y,u(n[1]));for(let A=1;A<n.length;A++){const R=h(y,u(n[A]));R<E&&(E=R,T=n[A])}}return T}else{let v=n[0],x=h(y,u(n[0]));for(let A=1;A<n.length;A++){const R=h(y,u(n[A]));R<x&&(x=R,v=n[A])}const T=n.indexOf(v),E=n.length-1-T;return n[E]}}interpolateColors(t,n,r){const a=Math.max(2,Math.floor(r)),l=this.parseColorToRgb(t),u=this.parseColorToRgb(n);if(!l||!u)return[t,n];if(a===2)return[t,n];const d=[],h=y=>{const v=Math.round(l.r+y*(u.r-l.r)),x=Math.round(l.g+y*(u.g-l.g)),T=Math.round(l.b+y*(u.b-l.b));return this.rgbToHex({r:v,g:x,b:T})};for(let y=0;y<a;y++){const v=y/(a-1);d.push(h(v))}return d}parseColorToRgb(t){const n=t.trim(),r=this.getSharedCanvasContext();if(!r)return null;r.fillStyle="#000",r.fillStyle=n;const a=r.fillStyle;return/^#[0-9a-f]{6}$/i.test(a)?{r:Number.parseInt(a.slice(1,3),16),g:Number.parseInt(a.slice(3,5),16),b:Number.parseInt(a.slice(5,7),16)}:null}rgbToHex(t){const n=r=>Math.max(0,Math.min(on.RGB_MAX_VALUE,r)).toString(16).padStart(2,"0");return`#${n(t.r)}${n(t.g)}${n(t.b)}`}normalizeColor(t){const n=this.getSharedCanvasContext();return n?(n.fillStyle="#000",n.fillStyle=t,n.fillStyle.toLowerCase()):t.toLowerCase().replace(/\s/g,"")}spreadColorsAcrossLuminanceSpectrum(t){const n=v=>{const x=v.r/on.RGB_MAX_VALUE,T=v.g/on.RGB_MAX_VALUE,E=v.b/on.RGB_MAX_VALUE,A=Math.max(x,T,E),R=Math.min(x,T,E),_=(A+R)/2;if(A===R)return{h:0,s:0,l:_};const D=A-R,z=_>on.LIGHTNESS_MIDPOINT?D/(2-A-R):D/(A+R);let V=0;return A===x?V=((T-E)/D+(T<E?on.HSL_HUE_DIVISOR:0))/on.HSL_HUE_DIVISOR:A===T?V=((E-x)/D+on.HSL_GREEN_HUE_OFFSET)/on.HSL_HUE_DIVISOR:V=((x-T)/D+on.HSL_BLUE_HUE_OFFSET)/on.HSL_HUE_DIVISOR,{h:V,s:z,l:_}},r=v=>{const{h:x,s:T,l:E}=v;if(T===0){const D=Math.round(E*on.RGB_MAX_VALUE);return{r:D,g:D,b:D}}const A=(D,z,V)=>{let P=V;return P<0&&(P+=1),P>1&&(P-=1),P<on.HSL_THRESHOLD_ONE_SIXTH?D+(z-D)*on.HSL_HUE_DIVISOR*P:P<on.HSL_THRESHOLD_ONE_HALF?z:P<on.HSL_THRESHOLD_TWO_THIRDS?D+(z-D)*(on.HSL_THRESHOLD_TWO_THIRDS-P)*on.HSL_HUE_DIVISOR:D},R=E<on.LIGHTNESS_MIDPOINT?E*(1+T):E+T-E*T,_=2*E-R;return{r:Math.round(A(_,R,x+on.HSL_THRESHOLD_ONE_THIRD)*on.RGB_MAX_VALUE),g:Math.round(A(_,R,x)*on.RGB_MAX_VALUE),b:Math.round(A(_,R,x-on.HSL_THRESHOLD_ONE_THIRD)*on.RGB_MAX_VALUE)}},a=[];for(let v=0;v<t.length;v++){const x=t[v];if(!(x.color==="none"||x.color==="transparent")&&x.isInSelectors){const T=this.parseColorToRgb(x.color);if(T){const E=n(T);a.push({index:v,luminance:E.l,hsl:E})}}}if(a.length<=1)return t.map(v=>({...v}));const l=a.map(v=>v.luminance),u=Math.min(...l),h=Math.max(...l)-u,y=t.map(v=>({...v}));for(const v of a){let x;h===0?x=on.DEFAULT_MIDRANGE_LUMINANCE:x=(v.luminance-u)/h;const T={h:v.hsl.h,s:v.hsl.s,l:x},E=r(T),A=this.rgbToHex(E);y[v.index].color=A}return y}applyPatternsToElements(t){if(!this.originalColorInfo)return;if(!this.patternService){this.patternService=new BT;const l=this.displayService.plot;this.patternService.initialize(l)}const n=new Map;for(const l of t)l.isInSelectors&&l.attr==="fill"&&n.set(l.element,l.color);const r=new Map;for(const l of this.originalColorInfo)if(l.isInSelectors&&l.attr==="fill"){const u=this.normalizeColor(l.color);r.has(u)||r.set(u,[]),r.get(u).push(l)}let a=0;for(const[l,u]of r){const d=this.patternService.getPatternTypeByIndex(a);for(const h of u){const y=n.get(h.element)||this.highContrastLightColor,v=this.getMostContrastingColor(y);this.patternService.applyPattern(h.element,{type:d,baseColor:y,patternColor:v})}a++}}getMostContrastingColor(t){const n=this.getRelativeLuminance(t),r=this.getRelativeLuminance(this.highContrastDarkColor),a=this.getRelativeLuminance(this.highContrastLightColor),l=Math.abs(n-r),u=Math.abs(n-a);return l>u?this.highContrastDarkColor:this.highContrastLightColor}getRelativeLuminance(t){const n=this.parseColorToRgb(t);return n?(on.LUMINANCE_RED_COEFF*n.r+on.LUMINANCE_GREEN_COEFF*n.g+on.LUMINANCE_BLUE_COEFF*n.b)/on.RGB_MAX_VALUE:on.DEFAULT_MIDRANGE_LUMINANCE}}class yU{constructor(t){j(this,"highlightedElements");j(this,"settingsService");j(this,"highlightedSubplots");j(this,"currentHighlightColor");this.settingsService=t,this.highlightedElements=new Map,this.highlightedSubplots=new Set;const n=t.loadSettings();this.currentHighlightColor=n.general.highlightColor}dispose(){this.unhighlightAll()}isSettings(t){return"general"in t}createHighlightElement(t){if(!(t instanceof SVGElement))throw new TypeError("Invalid element provided for highlight creation");const n=Et.createHighlightElement(t,this.currentHighlightColor);return n.id=`${fe.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,n}handleSettingsUpdate(t){this.currentHighlightColor=t.general.highlightColor}handleStateUpdate(t){t.empty||(this.unhighlightTraceElements(),t.type==="figure"?this.handleFigureState(t):t.type==="subplot"?this.handleSubplotState(t):this.handleTraceState(t))}handleFigureState(t){t.empty||this.processHighlighting(t.highlight)}handleSubplotState(t){t.empty||this.processHighlighting(t.highlight)}handleTraceState(t){if(t.empty||t.highlight.empty)return;const n=this.getElementsFromHighlight(t.highlight);this.highlightTraceElements(n)}processHighlighting(t){if(t.empty)return;const n=this.getElementsFromHighlight(t);this.isMultiPlotScenario()?this.highlightSubplotElements(n):this.unhighlightSubplotElements()}getElementsFromHighlight(t){return t.empty?[]:Array.isArray(t.elements)?t.elements:[t.elements]}isMultiPlotScenario(){return document.querySelectorAll('g[id^="axes_"]').length>1}highlightTraceElements(t){for(const n of t)try{const r=this.createHighlightElement(n);this.highlightedElements.set(n,r)}catch(r){console.error("Failed to highlight element:",r)}}highlightSubplotElements(t){var a;this.unhighlightSubplotElements();const n=(a=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:a.parentElement,r=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const l of t)Et.setSubplotHighlightSvgWithAdaptiveColor(l,this.currentHighlightColor,r),this.highlightedSubplots.add(l)}update(t){try{this.isSettings(t)?this.handleSettingsUpdate(t):this.handleStateUpdate(t)}catch(n){console.error("Failed to update highlight service:",n)}}highlight(t){if(!(t instanceof SVGElement)){console.warn("Invalid element provided to highlight method");return}try{this.unhighlight(t);const n=this.createHighlightElement(t);this.highlightedElements.set(t,n)}catch(n){console.error("Failed to highlight element:",n)}}unhighlight(t){if(!(t instanceof SVGElement))return;const n=this.highlightedElements.get(t);if(n)try{n.remove(),this.highlightedElements.delete(t)}catch(r){console.error("Failed to unhighlight element:",r)}}clear(){try{this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear(),this.unhighlightSubplotElements()}catch(t){console.error("Failed to clear highlights:",t)}}unhighlightTraceElements(){this.highlightedElements.forEach(t=>{t.remove()}),this.highlightedElements.clear()}unhighlightSubplotElements(){this.highlightedSubplots.forEach(t=>{Et.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class vU{constructor(){j(this,"onChangeEmitter");j(this,"onChange");this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class bU{constructor(t,n,r){j(this,"notification");j(this,"display");j(this,"text");j(this,"enabled");j(this,"onChangeEmitter");j(this,"onChange");this.notification=t,this.display=n,this.text=r,this.enabled=!1,this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const n=this.text.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(Pt.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}class xU{constructor(t,n,r){j(this,"context");j(this,"text");j(this,"notification");j(this,"rotorIndex");this.context=t,this.rotorIndex=0,this.text=n,this.notification=r}moveToNextRotorUnit(){const t=this.getAvailableModes();return this.rotorIndex=(this.rotorIndex+1)%t.length,this.setMode(),this.formatModeDisplay()}moveToPrevRotorUnit(){const t=this.getAvailableModes();return this.rotorIndex=(this.rotorIndex-1+t.length)%t.length,this.setMode(),this.formatModeDisplay()}formatModeDisplay(){const t=this.getMode();if(t===fe.GRID_MODE){const n=this.context.active;if(kd(n)){const r=n.getGridDimensions();if(r)return`GRID NAVIGATION: ${r.rows}×${r.cols} GRID`}}return t}getCurrentUnit(){return this.rotorIndex}callMoveToNextCompareMethod(t){const n=this.context.active,r=this.getCompareType();if(r!=="lower"&&r!=="higher")return console.error(`Unexpected compare type: ${r}`),null;if(n instanceof Ea)if(n.getCurrentXValue()!==null){if(!n.moveToNextCompareValue(t,r)){const u=this.getMessage(r,t);return console.warn(u),u}}else console.error("Unable to retrieve the current X value.");else console.error("The active trace does not support 'callMoveToNextCompareMethod'.");return null}moveUp(){const t=this.getMode();if(t===fe.GRID_MODE)return this.moveGrid("up");if(t===fe.INTERSECTION_MODE)return this.announceIntersectionMessage(this.getIntersectionVerticalUnavailableMessage());const n=this.context.active;try{if(n instanceof Ea&&!n.moveUpRotor(this.getCompareType())){const a=this.getMessage(this.getCompareType(),"above");return console.warn(a),a}}catch{return this.moveRight()}return null}moveDown(){const t=this.getMode();if(t===fe.GRID_MODE)return this.moveGrid("down");if(t===fe.INTERSECTION_MODE)return this.announceIntersectionMessage(this.getIntersectionVerticalUnavailableMessage());const n=this.context.active;try{if(n instanceof Ea&&!n.moveDownRotor(this.getCompareType())){const a=this.getMessage(this.getCompareType(),"below");return console.warn(a),a}}catch{return this.moveLeft()}return null}moveLeft(){const t=this.getMode();if(t===fe.GRID_MODE)return this.moveGrid("left");if(t===fe.INTERSECTION_MODE)return this.moveIntersection("left");const n=this.context.active;try{if(n instanceof Ea&&!n.moveLeftRotor(this.getCompareType())){const a=this.getMessage(this.getCompareType(),"left");return console.warn(a),a}}catch{return this.callMoveToNextCompareMethod("left")}return null}moveRight(){const t=this.getMode();if(t===fe.GRID_MODE)return this.moveGrid("right");if(t===fe.INTERSECTION_MODE)return this.moveIntersection("right");const n=this.context.active;try{if(n instanceof Ea&&!n.moveRightRotor(this.getCompareType())){const a=this.getMessage(this.getCompareType(),"right");return console.warn(a),a}}catch{return this.callMoveToNextCompareMethod("right")}return null}setMode(){const t=this.getMode();if(this.isDataMode(t)){this.context.setRotorEnabled(!1),this.notifyGridMode(!1);return}this.context.setRotorEnabled(!0),this.notifyGridMode(t===fe.GRID_MODE)}getMode(){const t=this.getAvailableModes(),n=this.rotorIndex%t.length;return t[n]}getCompareType(){const t=this.getMode();return t===fe.HIGHER_VALUE_MODE?"higher":(t===fe.LOWER_VALUE_MODE,"lower")}getMessage(t,n){const r=n==="above"||n==="below",a=r?"":"on the ",l=r?`${n} `:`to the ${n} of `;return this.buildMessage(`No ${t} value found ${a}${n}`,`No ${t} value found ${l}the current value.`)}getAvailableModes(){const t=this.context.active,n=[];return t instanceof Ea?(n.push(t.dataModeName()),t.supportsCompareMode()&&(n.push(fe.LOWER_VALUE_MODE),n.push(fe.HIGHER_VALUE_MODE)),kd(t)&&t.supportsGridMode()&&n.push(fe.GRID_MODE),t.supportsIntersectionMode()&&n.push(fe.INTERSECTION_MODE)):n.push(fe.DATA_MODE),n}isDataMode(t){return t===fe.DATA_MODE||t===fe.ROW_COL_MODE}moveIntersection(t){const n=this.context.active;return n instanceof Ea?(t==="right"?n.moveToNextIntersection():n.moveToPrevIntersection())?null:this.announceIntersectionMessage(this.getIntersectionBoundMessage(t)):this.announceIntersectionMessage(this.buildMessage("Intersection mode unavailable","Intersection navigation is not available in the current context."))}announceIntersectionMessage(t){return this.notification.notify(t),t}buildMessage(t,n){return this.text.isOff()?"":this.text.isTerse()?t:n}getIntersectionBoundMessage(t){return this.buildMessage(`No intersection to the ${t}`,`No intersection found to the ${t} of the current point.`)}getIntersectionVerticalUnavailableMessage(){return this.buildMessage("Up/down unavailable in intersection mode","Up and down navigation is not available in intersection point mode.")}notifyGridMode(t){const n=this.context.active;kd(n)&&n.setGridMode(t)}moveGrid(t){const n=this.context.active;if(!kd(n)||!n.supportsGridMode())return this.getMessage("grid",t);switch(t){case"up":n.moveGridUp();break;case"down":n.moveGridDown();break;case"left":n.moveGridLeft();break;case"right":n.moveGridRight();break}return null}}const Iv=[{id:"focus-14-blue-5g",label:"Focus 14 Blue (5th Gen)",manufacturer:"Freedom Scientific",cells:14,lines:1},{id:"focus-40-blue-5g",label:"Focus 40 Blue (5th Gen)",manufacturer:"Freedom Scientific",cells:40,lines:1},{id:"focus-80-blue-5g",label:"Focus 80 Blue (5th Gen)",manufacturer:"Freedom Scientific",cells:80,lines:1},{id:"brailliant-bi-20x",label:"Brailliant BI 20X",manufacturer:"HumanWare",cells:20,lines:1},{id:"brailliant-bi-40x",label:"Brailliant BI 40X",manufacturer:"HumanWare",cells:40,lines:1},{id:"brailliant-b-80",label:"Brailliant B 80",manufacturer:"HumanWare",cells:80,lines:1},{id:"brailliant-bi-32",label:"Brailliant BI 32",manufacturer:"HumanWare",cells:32,lines:1},{id:"mantis-q40",label:"Mantis Q40",manufacturer:"APH / HumanWare",cells:40,lines:1},{id:"chameleon-20",label:"Chameleon 20",manufacturer:"APH / HumanWare",cells:20,lines:1},{id:"orbit-reader-20",label:"Orbit Reader 20",manufacturer:"Orbit Research",cells:20,lines:1},{id:"orbit-reader-40",label:"Orbit Reader 40",manufacturer:"Orbit Research",cells:40,lines:1},{id:"qbraille-xl",label:"QBraille XL",manufacturer:"HIMS",cells:40,lines:1},{id:"varioultra-20",label:"VarioUltra 20",manufacturer:"VisioBraille",cells:20,lines:1},{id:"varioultra-40",label:"VarioUltra 40",manufacturer:"VisioBraille",cells:40,lines:1},{id:"active-braille",label:"Active Braille",manufacturer:"Help Tech",cells:40,lines:1},{id:"actilino",label:"Actilino",manufacturer:"Help Tech",cells:16,lines:1},{id:"alva-usb-640",label:"ALVA USB 640",manufacturer:"Optelec",cells:40,lines:1},{id:"alva-bc680",label:"ALVA BC680",manufacturer:"Optelec",cells:80,lines:1},{id:"brailleme",label:"BrailleMe",manufacturer:"Innovision",cells:20,lines:1},{id:"nls-ereader",label:"NLS eReader",manufacturer:"HumanWare / Zoomax",cells:20,lines:1}],Lv=[{id:"canute-360",label:"Canute 360",manufacturer:"Bristol Braille Technology",cells:40,lines:9},{id:"monarch",label:"Monarch",manufacturer:"APH / HumanWare / NFB",cells:32,lines:10},{id:"orbit-slate-340",label:"Orbit Slate 340",manufacturer:"Orbit Research",cells:40,lines:3},{id:"orbit-slate-520",label:"Orbit Slate 520",manufacturer:"Orbit Research",cells:20,lines:5},{id:"dot-pad-x",label:"Dot Pad X",manufacturer:"Dot Inc.",cells:20,lines:8}];function JO(e){return typeof e=="string"&&wj.includes(e)}function PT(e){const t=Number.isNaN(e)?1:Math.floor(e);return Math.min(a5,Math.max(1,t))}function jT(e){const t=Number.isNaN(e)?1:Math.floor(e);return Math.min(RT,Math.max(1,t))}function s5(e,t){if(e.trim()==="")return null;const n=Number(e);return Number.isFinite(n)?t?t(n):Math.floor(n):null}function SU(e){return`${e.label} — ${e.manufacturer} (${e.cells} cells)`}function EU(e){return`${e.label} — ${e.manufacturer} (${e.lines} lines × ${e.cells} cells)`}function u5(e,t){if(t)return e.find(n=>n.id===t)}function e9(e,t){if(e==="single"){const n=u5(Iv,t)??Iv[0];return{brailleDisplayKind:"single",brailleDisplayPresetId:n.id,brailleDisplaySize:n.cells,brailleDisplayLines:n.lines}}if(e==="multi"){const n=u5(Lv,t)??Lv[0];return{brailleDisplayKind:"multi",brailleDisplayPresetId:n.id,brailleDisplaySize:n.cells,brailleDisplayLines:n.lines}}return{brailleDisplayKind:"manual",brailleDisplayPresetId:null}}function wU(e,t){const r=u5(e==="single"?Iv:Lv,t);return r?{brailleDisplayKind:e,brailleDisplayPresetId:r.id,brailleDisplaySize:r.cells,brailleDisplayLines:r.lines}:null}function TU(e){const t=e.brailleDisplayKind,n=JO(t)?t:UO;if(n==="manual"){const u=jT(e.brailleDisplaySize),d=PT(e.brailleDisplayLines);return e.brailleDisplayKind===n&&e.brailleDisplayPresetId===null&&e.brailleDisplaySize===u&&e.brailleDisplayLines===d?e:{...e,brailleDisplayKind:"manual",brailleDisplayPresetId:null,brailleDisplaySize:u,brailleDisplayLines:d}}const a=u5(n==="single"?Iv:Lv,e.brailleDisplayPresetId);if(a)return e.brailleDisplaySize===a.cells&&e.brailleDisplayLines===a.lines?e:{...e,brailleDisplaySize:a.cells,brailleDisplayLines:a.lines};const l=e9(n,e.brailleDisplayPresetId);return{...e,...l}}function t9(e,t){const n={...e};for(const r of Object.keys(t)){const a=t[r],l=e[r];a!=null&&typeof a=="object"&&!Array.isArray(a)&&typeof l=="object"&&l!==null?n[r]=t9(l,a):a!=null&&(n[r]=a)}return n}const $T="maidr-settings";function AU(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}function c5(e,t){const n=AU(e,t);if(n===void 0)throw new Error(`Setting not found: ${t}`);return n}class n9{constructor(t,n){j(this,"oldSettings");j(this,"newSettings");this.oldSettings=t,this.newSettings=n}affectsSetting(t){const n=c5(this.oldSettings,t),r=c5(this.newSettings,t);return JSON.stringify(n)!==JSON.stringify(r)}get(t){return c5(this.newSettings,t)}}class CU{constructor(t,n){j(this,"storage");j(this,"display");j(this,"defaultSettings");j(this,"currentSettings");j(this,"observers");j(this,"onChangeEmitter");j(this,"onChange");this.storage=t,this.display=n,this.observers=[],this.defaultSettings=structuredClone(HO),this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event;const r=this.storage.load($T),a=r?t9(this.defaultSettings,r):this.defaultSettings;this.currentSettings={...a,general:TU(a.general)}}dispose(){this.onChangeEmitter.dispose()}loadSettings(){return this.currentSettings}saveSettings(t){const n=this.currentSettings;this.currentSettings=t,this.storage.save($T,this.currentSettings),this.onChangeEmitter.fire(new n9(n,t))}resetSettings(){const t=this.currentSettings;return this.currentSettings=this.defaultSettings,this.storage.remove($T),this.onChangeEmitter.fire(new n9(t,this.currentSettings)),this.currentSettings}get(t){return c5(this.currentSettings,t)}toggle(){this.display.toggleFocus(Pt.SETTINGS)}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(n=>n!==t)}notifyStateUpdate(){for(const t of this.observers)t.update(this.currentSettings)}}class OU{save(t,n){try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch(r){console.error(`Error while saving ${t} to storage`,r)}}load(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return console.error(`Error while loading ${t} from storage`,n),null}}remove(t){try{localStorage.removeItem(t)}catch(n){console.error(`Error while removing ${t} from storage`,n)}}}function r9(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class MU{constructor(t,n){j(this,"notification");j(this,"formatter");j(this,"mode");j(this,"currentState",null);j(this,"currentSubplotIndex",null);j(this,"currentLayerId",null);j(this,"hasHadFirstNavigation",!1);j(this,"onChangeEmitter");j(this,"onChange");j(this,"onNavigationEmitter");j(this,"onNavigation");this.notification=t,this.formatter=n,this.mode="verbose",this.onChangeEmitter=new Zc,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new Zc,this.onNavigation=this.onNavigationEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.onNavigationEmitter.dispose()}formatSingleValue(t,n){return this.formatter&&this.currentLayerId?this.formatter.formatSingleValue(t,this.currentLayerId,n):String(t)}formatArrayValue(t,n){return this.formatter&&this.currentLayerId?this.formatter.formatArrayValue(t,this.currentLayerId,n):t.map(r=>String(r))}getCurrentState(){return this.currentState}getCoordinateText(){return!this.currentState||this.currentState.empty?null:this.currentState.type==="subplot"&&!this.currentState.trace.empty?this.formatCoordinateText(this.currentState.trace):this.currentState.type==="trace"&&!this.currentState.empty?this.formatCoordinateText(this.currentState):null}isLayerSwitch(){if(!this.currentState||this.currentState.empty||this.currentState.type!=="subplot")return!1;const t=this.currentState.index;return this.currentSubplotIndex!==null&&this.currentSubplotIndex!==t?(this.currentSubplotIndex=t,!0):this.currentSubplotIndex===null?(this.currentSubplotIndex=t,t!==0):!1}getHasHadFirstNavigation(){return this.hasHadFirstNavigation}enableAnnouncements(){this.onNavigationEmitter.fire({type:"first_navigation"})}formatCoordinateText(t){if(t.empty||!t.text)return null;this.currentLayerId=t.layerId;const{text:n}=t,r=[],a=n.mainAxis??"x",l=n.crossAxis??"y";if(n.main&&n.main.value!==void 0){const u=Array.isArray(n.main.value)?this.formatArrayValue(n.main.value,a).join(", "):this.formatSingleValue(n.main.value,a);r.push(`${n.main.label} is ${u}`)}if(n.cross&&n.cross.value!==void 0){const u=Array.isArray(n.cross.value)?this.formatArrayValue(n.cross.value,l).join(", "):this.formatSingleValue(n.cross.value,l);r.push(`${n.cross.label} is ${u}`)}return n.z&&n.z.value!==void 0&&r.push(`${n.z.label} is ${n.z.value}`),r.length>0?r.join(", "):null}formatLayerSwitchAnnouncement(t){if(!r9(t))return"";this.currentLayerId=t.layerId;let n=`Layer ${t.index} of ${t.size}: ${t.plotType||t.traceType} plot`;if(t.text){const r=[],a=t.text.mainAxis??"x",l=t.text.crossAxis??"y";if(t.text.main&&t.text.main.value!==void 0){const d=Array.isArray(t.text.main.value)?this.formatArrayValue(t.text.main.value,a).join(", "):this.formatSingleValue(t.text.main.value,a);r.push(`${t.text.main.label} is ${d}`)}if(!(t.traceType==="violin_box")&&t.text.cross&&t.text.cross.value!==void 0){const d=Array.isArray(t.text.cross.value)?this.formatArrayValue(t.text.cross.value,l).join(", "):this.formatSingleValue(t.text.cross.value,l);r.push(`${t.text.cross.label} is ${d}`)}t.text.z&&t.text.z.value!==void 0&&r.push(`${t.text.z.label} is ${t.text.z.value}`),r.length>0&&(n+=` at ${r.join(", ")}`)}return n}format(t){return typeof t=="string"?t:!t||t.empty?t.type==="subplot"?"No additional layer":`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType,t.trace):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,n,r){const a=r.length===1?`This is a ${r[0]} plot`:`This is a multi-layered plot containing ${r.join(fe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${a}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,r,a){const l=a&&!a.empty?a.plotType:r;return`Layer ${t} of ${n}: ${l} plot`}isBoxPlotWithSection(t){return t.section!==void 0&&t.z===void 0}formatVerboseTraceText(t){if(t.gridPoints!==void 0&&t.range&&t.crossRange)return this.formatVerboseGridText(t);const n=new Array;t.gridPosition&&t.gridPoints===void 0&&n.push(`Cell [${t.gridPosition.row},${t.gridPosition.col}]`,fe.COMMA_SPACE);const r=t.mainAxis??"x",a=t.crossAxis??"y";if(n.push(t.main.label,fe.IS),t.range!==void 0?n.push(this.formatSingleValue(t.range.min,r),fe.THROUGH,this.formatSingleValue(t.range.max,r)):Array.isArray(t.main.value)?n.push(this.formatArrayValue(t.main.value,r).join(fe.COMMA_SPACE)):n.push(this.formatSingleValue(t.main.value,r)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===sa.UPPER_OUTLIER||t.section===sa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const l=t.cross.label,u=t.cross.value,h=`[${this.formatArrayValue(u,a).join(", ")}]`,y=this.formatSingleValue(t.main.value,r);if(u.length===0)return`${t.main.label} is ${y}, no ${t.section.toLowerCase()} for ${l}`;{const v=u.length===1?"is":"are";return`${t.main.label} is ${y}, ${t.section.toLowerCase()} for ${l} ${v} ${h}`}}if(t.section!==void 0)if(this.isBoxPlotWithSection(t)){const l=t.cross.label;n.push(fe.COMMA_SPACE,t.section.toLowerCase(),fe.SPACE,l)}else n.push(fe.COMMA_SPACE,t.section,fe.SPACE,t.cross.label);else n.push(fe.COMMA_SPACE,t.cross.label);if(Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(fe.ARE,this.formatArrayValue(t.cross.value,a).join(fe.COMMA_SPACE)):t.cross.value.length>0&&n.push(fe.IS,this.formatArrayValue(t.cross.value,a).join(fe.COMMA_SPACE)):n.push(fe.IS,this.formatSingleValue(t.cross.value,a)),t.z!==void 0){let l;t.z.value==="Bull"||t.z.value==="Bear"?l=t.z.value.toLowerCase():l=this.formatSingleValue(t.z.value,"z"),n.push(fe.COMMA_SPACE,t.z.label,fe.IS,l)}return n.join(fe.EMPTY)}formatTerseTraceText(t){if(t.gridPoints!==void 0&&t.range&&t.crossRange)return this.formatTerseGridText(t);const n=new Array;t.gridPosition&&t.gridPoints===void 0&&n.push(`Cell [${t.gridPosition.row},${t.gridPosition.col}]`,fe.COMMA_SPACE);const r=t.mainAxis??"x",a=t.crossAxis??"y";if(Array.isArray(t.main.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.main.value,r).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.main.value,r),fe.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===sa.UPPER_OUTLIER||t.section===sa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const l=t.cross.value,d=`[${this.formatArrayValue(l,a).join(", ")}]`,h=this.formatSingleValue(t.main.value,r);return l.length===0?`${h}, no ${t.section.toLowerCase()}`:`${h}, ${l.length} ${t.section.toLowerCase()} ${d}`}if(t.section!==void 0&&t.z!==void 0?(n.push(t.section,fe.SPACE),Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,a).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,a))):t.section!==void 0&&t.z===void 0?(n.push(t.section,fe.SPACE),Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,a).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,a))):Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,a).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,a)),t.z!==void 0){let l;t.z.value==="Bull"||t.z.value==="Bear"?l=t.z.value.toLowerCase():l=this.formatSingleValue(t.z.value,"z"),t.section,n.push(fe.COMMA_SPACE,l)}return n.join(fe.EMPTY)}formatVerboseGridText(t){const n=t.mainAxis??"x",r=t.crossAxis??"y",a=[];t.gridPosition&&a.push(`Cell [${t.gridPosition.row},${t.gridPosition.col}]`,fe.COMMA_SPACE),a.push(t.main.label,fe.IS,this.formatSingleValue(t.range.min,n),fe.THROUGH,this.formatSingleValue(t.range.max,n)),a.push(fe.COMMA_SPACE,t.cross.label,fe.IS,this.formatSingleValue(t.crossRange.min,r),fe.THROUGH,this.formatSingleValue(t.crossRange.max,r));const l=t.gridPoints;if(l.length===0)a.push(fe.COMMA_SPACE,"no points");else{const u=l.map(h=>`(${this.formatSingleValue(h.x,n)}, ${this.formatSingleValue(h.y,r)})`),d=l.length===1?" is":"s are";a.push(fe.COMMA_SPACE,`point${d}: `,u.join(fe.COMMA_SPACE))}return a.join(fe.EMPTY)}formatTerseGridText(t){const n=t.mainAxis??"x",r=t.crossAxis??"y",a=[];t.gridPosition&&a.push(`Cell [${t.gridPosition.row},${t.gridPosition.col}]`,fe.COMMA_SPACE),a.push(this.formatSingleValue(t.range.min,n),fe.THROUGH,this.formatSingleValue(t.range.max,n)),a.push(fe.COMMA_SPACE,this.formatSingleValue(t.crossRange.min,r),fe.THROUGH,this.formatSingleValue(t.crossRange.max,r));const l=t.gridPoints;if(l.length===0)a.push(fe.COMMA_SPACE,"no points");else{const u=l.map(d=>`(${this.formatSingleValue(d.x,n)}, ${this.formatSingleValue(d.y,r)})`);a.push(fe.COMMA_SPACE,"points: ",u.join(fe.COMMA_SPACE))}return a.join(fe.EMPTY)}update(t){if(this.mode==="off"||t&&t.empty&&t.type==="trace"&&!t.warning)return;if(this.currentState=t,t.type==="trace"&&!t.empty?this.currentLayerId=t.layerId:t.type==="subplot"&&!t.empty&&!t.trace.empty&&(this.currentLayerId=t.trace.layerId),t.type==="trace"&&r9(t)){const r=this.formatLayerSwitchAnnouncement(t);this.notification.notify(r);return}if(t.type==="subplot"){const r=this.format(t);r&&this.notification.notify(r);return}t.type==="figure"&&!t.empty&&!this.hasHadFirstNavigation&&(this.hasHadFirstNavigation=!0,this.onNavigationEmitter.fire({type:"first_navigation"}));const n=this.format(t);n&&this.onChangeEmitter.fire({value:n})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}isVerbose(){return this.mode==="verbose"}isTerse(){return this.mode==="terse"}isOff(){return this.mode==="off"}}var Si={};function Ta(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var RU=typeof Symbol=="function"&&Symbol.observable||"@@observable",i9=RU,UT=()=>Math.random().toString(36).substring(7).split("").join("."),_U={INIT:`@@redux/INIT${UT()}`,REPLACE:`@@redux/REPLACE${UT()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${UT()}`},x0=_U;function Vv(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function DU(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(zU(e))return"date";if(kU(e))return"error";const n=NU(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function NU(e){return typeof e.constructor=="function"?e.constructor.name:null}function kU(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function zU(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Id(e){let t=typeof e;return Si.NODE_ENV!=="production"&&(t=DU(e)),t}function a9(e,t,n){if(typeof e!="function")throw new Error(Si.NODE_ENV==="production"?Ta(2):`Expected the root reducer to be a function. Instead, received: '${Id(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Si.NODE_ENV==="production"?Ta(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Si.NODE_ENV==="production"?Ta(1):`Expected the enhancer to be a function. Instead, received: '${Id(n)}'`);return n(a9)(e,t)}let r=e,a=t,l=new Map,u=l,d=0,h=!1;function y(){u===l&&(u=new Map,l.forEach((_,D)=>{u.set(D,_)}))}function v(){if(h)throw new Error(Si.NODE_ENV==="production"?Ta(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function x(_){if(typeof _!="function")throw new Error(Si.NODE_ENV==="production"?Ta(4):`Expected the listener to be a function. Instead, received: '${Id(_)}'`);if(h)throw new Error(Si.NODE_ENV==="production"?Ta(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let D=!0;y();const z=d++;return u.set(z,_),function(){if(D){if(h)throw new Error(Si.NODE_ENV==="production"?Ta(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");D=!1,y(),u.delete(z),l=null}}}function T(_){if(!Vv(_))throw new Error(Si.NODE_ENV==="production"?Ta(7):`Actions must be plain objects. Instead, the actual type was: '${Id(_)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof _.type>"u")throw new Error(Si.NODE_ENV==="production"?Ta(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof _.type!="string")throw new Error(Si.NODE_ENV==="production"?Ta(17):`Action "type" property must be a string. Instead, the actual type was: '${Id(_.type)}'. Value was: '${_.type}' (stringified)`);if(h)throw new Error(Si.NODE_ENV==="production"?Ta(9):"Reducers may not dispatch actions.");try{h=!0,a=r(a,_)}finally{h=!1}return(l=u).forEach(z=>{z()}),_}function E(_){if(typeof _!="function")throw new Error(Si.NODE_ENV==="production"?Ta(10):`Expected the nextReducer to be a function. Instead, received: '${Id(_)}`);r=_,T({type:x0.REPLACE})}function A(){const _=x;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(Si.NODE_ENV==="production"?Ta(11):`Expected the observer to be an object. Instead, received: '${Id(D)}'`);function z(){const P=D;P.next&&P.next(v())}return z(),{unsubscribe:_(z)}},[i9](){return this}}}return T({type:x0.INIT}),{dispatch:T,subscribe:x,getState:v,replaceReducer:E,[i9]:A}}function o9(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function IU(e,t,n,r){const a=Object.keys(t),l=n&&n.type===x0.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Vv(e))return`The ${l} has unexpected type of "${Id(e)}". Expected argument to be an object with the following keys: "${a.join('", "')}"`;const u=Object.keys(e).filter(d=>!t.hasOwnProperty(d)&&!r[d]);if(u.forEach(d=>{r[d]=!0}),!(n&&n.type===x0.REPLACE)&&u.length>0)return`Unexpected ${u.length>1?"keys":"key"} "${u.join('", "')}" found in ${l}. Expected to find one of the known reducer keys instead: "${a.join('", "')}". Unexpected keys will be ignored.`}function LU(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:x0.INIT})>"u")throw new Error(Si.NODE_ENV==="production"?Ta(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:x0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Si.NODE_ENV==="production"?Ta(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${x0.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function VU(e){const t=Object.keys(e),n={};for(let u=0;u<t.length;u++){const d=t[u];Si.NODE_ENV!=="production"&&typeof e[d]>"u"&&o9(`No reducer provided for key "${d}"`),typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let a;Si.NODE_ENV!=="production"&&(a={});let l;try{LU(n)}catch(u){l=u}return function(d={},h){if(l)throw l;if(Si.NODE_ENV!=="production"){const x=IU(d,n,h,a);x&&o9(x)}let y=!1;const v={};for(let x=0;x<r.length;x++){const T=r[x],E=n[T],A=d[T],R=E(A,h);if(typeof R>"u"){const _=h&&h.type;throw new Error(Si.NODE_ENV==="production"?Ta(14):`When called with an action of type ${_?`"${String(_)}"`:"(unknown type)"}, the slice reducer for key "${T}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}v[T]=R,y=y||R!==A}return y=y||r.length!==Object.keys(d).length,y?v:d}}function f5(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function BU(...e){return t=>(n,r)=>{const a=t(n,r);let l=()=>{throw new Error(Si.NODE_ENV==="production"?Ta(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const u={getState:a.getState,dispatch:(h,...y)=>l(h,...y)},d=e.map(h=>h(u));return l=f5(...d)(a.dispatch),{...a,dispatch:l}}}function l9(e){return Vv(e)&&"type"in e&&typeof e.type=="string"}var d5={},s9=Symbol.for("immer-nothing"),u9=Symbol.for("immer-draftable"),go=Symbol.for("immer-state"),PU=d5.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function vl(e,...t){if(d5.NODE_ENV!=="production"){const n=PU[e],r=S0(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bl=Object,tg=bl.getPrototypeOf,h5="constructor",p5="prototype",HT="configurable",m5="enumerable",g5="writable",Bv="value",tf=e=>!!e&&!!e[go];function su(e){var t;return e?f9(e)||b5(e)||!!e[u9]||!!((t=e[h5])!=null&&t[u9])||x5(e)||S5(e):!1}var jU=bl[p5][h5].toString(),c9=new WeakMap;function f9(e){if(!e||!GT(e))return!1;const t=tg(e);if(t===null||t===bl[p5])return!0;const n=bl.hasOwnProperty.call(t,h5)&&t[h5];if(n===Object)return!0;if(!S0(n))return!1;let r=c9.get(n);return r===void 0&&(r=Function.toString.call(n),c9.set(n,r)),r===jU}function y5(e,t,n=!0){Pv(e)===0?(n?Reflect.ownKeys(e):bl.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Pv(e){const t=e[go];return t?t.type_:b5(e)?1:x5(e)?2:S5(e)?3:0}var d9=(e,t,n=Pv(e))=>n===2?e.has(t):bl[p5].hasOwnProperty.call(e,t),qT=(e,t,n=Pv(e))=>n===2?e.get(t):e[t],v5=(e,t,n,r=Pv(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function $U(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var b5=Array.isArray,x5=e=>e instanceof Map,S5=e=>e instanceof Set,GT=e=>typeof e=="object",S0=e=>typeof e=="function",FT=e=>typeof e=="boolean";function UU(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var nf=e=>e.copy_||e.base_,YT=e=>e.modified_?e.copy_:e.base_;function XT(e,t){if(x5(e))return new Map(e);if(S5(e))return new Set(e);if(b5(e))return Array[p5].slice.call(e);const n=f9(e);if(t===!0||t==="class_only"&&!n){const r=bl.getOwnPropertyDescriptors(e);delete r[go];let a=Reflect.ownKeys(r);for(let l=0;l<a.length;l++){const u=a[l],d=r[u];d[g5]===!1&&(d[g5]=!0,d[HT]=!0),(d.get||d.set)&&(r[u]={[HT]:!0,[g5]:!0,[m5]:d[m5],[Bv]:e[u]})}return bl.create(tg(e),r)}else{const r=tg(e);if(r!==null&&n)return{...e};const a=bl.create(r);return bl.assign(a,e)}}function WT(e,t=!1){return w5(e)||tf(e)||!su(e)||(Pv(e)>1&&bl.defineProperties(e,{set:E5,add:E5,clear:E5,delete:E5}),bl.freeze(e),t&&y5(e,(n,r)=>{WT(r,!0)},!1)),e}function HU(){vl(2)}var E5={[Bv]:HU};function w5(e){return e===null||!GT(e)?!0:bl.isFrozen(e)}var T5="MapSet",KT="Patches",h9="ArrayMethods",p9={};function E0(e){const t=p9[e];return t||vl(0,e),t}var m9=e=>!!p9[e],jv,g9=()=>jv,qU=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:m9(T5)?E0(T5):void 0,arrayMethodsPlugin_:m9(h9)?E0(h9):void 0});function y9(e,t){t&&(e.patchPlugin_=E0(KT),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function QT(e){ZT(e),e.drafts_.forEach(GU),e.drafts_=null}function ZT(e){e===jv&&(jv=e.parent_)}var v9=e=>jv=qU(jv,e);function GU(e){const t=e[go];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function b9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[go].modified_&&(QT(t),vl(4)),su(e)&&(e=x9(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[go].base_,e,t)}else e=x9(t,n);return FU(t,e,!0),QT(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==s9?e:void 0}function x9(e,t){if(w5(t))return t;const n=t[go];if(!n)return C5(t,e.handledSet_,e);if(!A5(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);w9(n,e)}return n.copy_}function FU(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&WT(t,n)}function S9(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var A5=(e,t)=>e.scope_===t,YU=[];function E9(e,t,n,r){const a=nf(e),l=e.type_;if(r!==void 0&&qT(a,r,l)===t){v5(a,r,n,l);return}if(!e.draftLocations_){const d=e.draftLocations_=new Map;y5(a,(h,y)=>{if(tf(y)){const v=d.get(y)||[];v.push(h),d.set(y,v)}})}const u=e.draftLocations_.get(t)??YU;for(const d of u)v5(a,d,n,l)}function XU(e,t,n){e.callbacks_.push(function(a){var d;const l=t;if(!l||!A5(l,a))return;(d=a.mapSetPlugin_)==null||d.fixSetContents(l);const u=YT(l);E9(e,l.draft_??l,u,n),w9(l,a)})}function w9(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:a}=t;if(a){const l=a.getPath(e);l&&a.generatePatches_(e,l,t)}S9(e)}}function WU(e,t,n){const{scope_:r}=e;if(tf(n)){const a=n[go];A5(a,r)&&a.callbacks_.push(function(){M5(e);const u=YT(a);E9(e,n,u,t)})}else su(n)&&e.callbacks_.push(function(){const l=nf(e);e.type_===3?l.has(n)&&C5(n,r.handledSet_,r):qT(l,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&C5(qT(e.copy_,t,e.type_),r.handledSet_,r)})}function C5(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||tf(e)||t.has(e)||!su(e)||w5(e)||(t.add(e),y5(e,(r,a)=>{if(tf(a)){const l=a[go];if(A5(l,n)){const u=YT(l);v5(e,r,u,e.type_),S9(l)}}else su(a)&&C5(a,t,n)})),e}function KU(e,t){const n=b5(e),r={type_:n?1:0,scope_:t?t.scope_:g9(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,l=O5;n&&(a=[r],l=$v);const{revoke:u,proxy:d}=Proxy.revocable(a,l);return r.draft_=d,r.revoke_=u,[d,r]}var O5={get(e,t){if(t===go)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=nf(e);if(!d9(a,t,e.type_))return QU(e,a,t);const l=a[t];if(e.finalized_||!su(l)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&UU(t))return l;if(l===JT(e.base_,t)){M5(e);const u=e.type_===1?+t:t,d=t2(e.scope_,l,e,u);return e.copy_[u]=d}return l},has(e,t){return t in nf(e)},ownKeys(e){return Reflect.ownKeys(nf(e))},set(e,t,n){const r=T9(nf(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=JT(nf(e),t),l=a==null?void 0:a[go];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if($U(n,a)&&(n!==void 0||d9(e.base_,t,e.type_)))return!0;M5(e),e2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),WU(e,t,n)),!0},deleteProperty(e,t){return M5(e),JT(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),e2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[g5]:!0,[HT]:e.type_!==1||t!=="length",[m5]:r[m5],[Bv]:n[t]}},defineProperty(){vl(11)},getPrototypeOf(e){return tg(e.base_)},setPrototypeOf(){vl(12)}},$v={};for(let e in O5){let t=O5[e];$v[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}$v.deleteProperty=function(e,t){return d5.NODE_ENV!=="production"&&isNaN(parseInt(t))&&vl(13),$v.set.call(this,e,t,void 0)},$v.set=function(e,t,n){return d5.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&vl(14),O5.set.call(this,e[0],t,n,e[0])};function JT(e,t){const n=e[go];return(n?nf(n):e)[t]}function QU(e,t,n){var a;const r=T9(t,n);return r?Bv in r?r[Bv]:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function T9(e,t){if(!(t in e))return;let n=tg(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=tg(n)}}function e2(e){e.modified_||(e.modified_=!0,e.parent_&&e2(e.parent_))}function M5(e){e.copy_||(e.assigned_=new Map,e.copy_=XT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ZU=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(S0(t)&&!S0(n)){const l=n;n=t;const u=this;return function(h=l,...y){return u.produce(h,v=>n.call(this,v,...y))}}S0(n)||vl(6),r!==void 0&&!S0(r)&&vl(7);let a;if(su(t)){const l=v9(this),u=t2(l,t,void 0);let d=!0;try{a=n(u),d=!1}finally{d?QT(l):ZT(l)}return y9(l,r),b9(a,l)}else if(!t||!GT(t)){if(a=n(t),a===void 0&&(a=t),a===s9&&(a=void 0),this.autoFreeze_&&WT(a,!0),r){const l=[],u=[];E0(KT).generateReplacementPatches_(t,a,{patches_:l,inversePatches_:u}),r(l,u)}return a}else vl(1,t)},this.produceWithPatches=(t,n)=>{if(S0(t))return(u,...d)=>this.produceWithPatches(u,h=>t(h,...d));let r,a;return[this.produce(t,n,(u,d)=>{r=u,a=d}),r,a]},FT(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),FT(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),FT(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){su(e)||vl(8),tf(e)&&(e=JU(e));const t=v9(this),n=t2(t,e,void 0);return n[go].isManual_=!0,ZT(t),n}finishDraft(e,t){const n=e&&e[go];(!n||!n.isManual_)&&vl(9);const{scope_:r}=n;return y9(r,t),b9(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=E0(KT).applyPatches_;return tf(e)?r(e,t):this.produce(e,a=>r(a,t))}};function t2(e,t,n,r){const[a,l]=x5(t)?E0(T5).proxyMap_(t,n):S5(t)?E0(T5).proxySet_(t,n):KU(t,n);return((n==null?void 0:n.scope_)??g9()).drafts_.push(a),l.callbacks_=(n==null?void 0:n.callbacks_)??[],l.key_=r,n&&r!==void 0?XU(n,l,r):l.callbacks_.push(function(h){var v;(v=h.mapSetPlugin_)==null||v.fixSetContents(l);const{patchPlugin_:y}=h;l.modified_&&y&&y.generatePatches_(l,[],h)}),a}function JU(e){return tf(e)||vl(10,e),A9(e)}function A9(e){if(!su(e)||w5(e))return e;const t=e[go];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=XT(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=XT(e,!0);return y5(n,(a,l)=>{v5(n,a,A9(l))},r),t&&(t.finalized_=!1),n}var eH=new ZU,C9=eH.produce;function O9(e){return({dispatch:n,getState:r})=>a=>l=>typeof l=="function"?l(n,r,e):a(l)}var tH=O9(),nH=O9,an={},rH=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?f5:f5.apply(null,arguments)},iH=e=>e&&typeof e.match=="function";function M9(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(an.NODE_ENV==="production"?Or(0):"prepareAction did not return an object");return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>l9(r)&&r.type===e,n}function aH(e){return typeof e=="function"&&"type"in e&&iH(e)}function oH(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function lH(e={}){if(an.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=aH}=e;return()=>n=>r=>(t(r)&&console.warn(oH(r.type)),n(r))}function R9(e,t){let n=0;return{measureTime(r){const a=Date.now();try{return r()}finally{const l=Date.now();n+=l-a}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms. 
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var _9=class WS extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,WS.prototype)}static get[Symbol.species](){return WS}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new WS(...t[0].concat(this)):new WS(...t.concat(this))}};function D9(e){return su(e)?C9(e,()=>{}):e}function R5(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function sH(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function uH(e,t,n){const r=N9(e,t,n);return{detectMutations(){return k9(e,t,r,n)}}}function N9(e,t=[],n,r="",a=new Set){const l={value:n};if(!e(n)&&!a.has(n)){a.add(n),l.children={};const u=t.length>0;for(const d in n){const h=r?r+"."+d:d;u&&t.some(v=>v instanceof RegExp?v.test(h):h===v)||(l.children[d]=N9(e,t,n[d],h))}}return l}function k9(e,t=[],n,r,a=!1,l=""){const u=n?n.value:void 0,d=u===r;if(a&&!d&&!Number.isNaN(r))return{wasMutated:!0,path:l};if(e(u)||e(r))return{wasMutated:!1};const h={};for(let v in n.children)h[v]=!0;for(let v in r)h[v]=!0;const y=t.length>0;for(let v in h){const x=l?l+"."+v:v;if(y&&t.some(A=>A instanceof RegExp?A.test(x):x===A))continue;const T=k9(e,t,n.children[v],r[v],d,x);if(T.wasMutated)return T}return{wasMutated:!1}}function cH(e={}){if(an.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(d,h,y,v){return JSON.stringify(d,n(h,v),y)},n=function(d,h){let y=[],v=[];return h||(h=function(x,T){return y[0]===T?"[Circular ~]":"[Circular ~."+v.slice(0,y.indexOf(T)).join(".")+"]"}),function(x,T){if(y.length>0){var E=y.indexOf(this);~E?y.splice(E+1):y.push(this),~E?v.splice(E,1/0,x):v.push(x),~y.indexOf(T)&&(T=h.call(this,x,T))}else y.push(T);return d==null?T:d.call(this,x,T)}},{isImmutable:r=sH,ignoredPaths:a,warnAfter:l=32}=e;const u=uH.bind(null,r,a);return({getState:d})=>{let h=d(),y=u(h),v;return x=>T=>{const E=R9(l,"ImmutableStateInvariantMiddleware");E.measureTime(()=>{if(h=d(),v=y.detectMutations(),y=u(h),v.wasMutated)throw new Error(an.NODE_ENV==="production"?Or(19):`A state mutation was detected between dispatches, in the path '${v.path||""}'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const A=x(T);return E.measureTime(()=>{if(h=d(),v=y.detectMutations(),y=u(h),v.wasMutated)throw new Error(an.NODE_ENV==="production"?Or(20):`A state mutation was detected inside a dispatch, in the path: ${v.path||""}. Take a look at the reducer(s) handling the action ${t(T)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),E.warnIfExceeded(),A}}}}function z9(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Vv(e)}function n2(e,t="",n=z9,r,a=[],l){let u;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||l!=null&&l.has(e))return!1;const d=r!=null?r(e):Object.entries(e),h=a.length>0;for(const[y,v]of d){const x=t?t+"."+y:y;if(!(h&&a.some(E=>E instanceof RegExp?E.test(x):x===E))){if(!n(v))return{keyPath:x,value:v};if(typeof v=="object"&&(u=n2(v,x,n,r,a,l),u))return u}}return l&&I9(e)&&l.add(e),!1}function I9(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!I9(t))return!1;return!0}function fH(e={}){if(an.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=z9,getEntries:n,ignoredActions:r=[],ignoredActionPaths:a=["meta.arg","meta.baseQueryMeta"],ignoredPaths:l=[],warnAfter:u=32,ignoreState:d=!1,ignoreActions:h=!1,disableCache:y=!1}=e,v=!y&&WeakSet?new WeakSet:void 0;return x=>T=>E=>{if(!l9(E))return T(E);const A=T(E),R=R9(u,"SerializableStateInvariantMiddleware");return!h&&!(r.length&&r.indexOf(E.type)!==-1)&&R.measureTime(()=>{const _=n2(E,"",t,n,a,v);if(_){const{keyPath:D,value:z}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${D}\`. Value:`,z,`
Take a look at the logic that dispatched this action: `,E,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),d||(R.measureTime(()=>{const _=x.getState(),D=n2(_,"",t,n,l,v);if(D){const{keyPath:z,value:V}=D;console.error(`A non-serializable value was detected in the state, in the path: \`${z}\`. Value:`,V,`
Take a look at the reducer(s) handling this action type: ${E.type}.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),R.warnIfExceeded()),A}}}function _5(e){return typeof e=="boolean"}var dH=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:l=!0}=t??{};let u=new _9;if(n&&(_5(n)?u.push(tH):u.push(nH(n.extraArgument))),an.NODE_ENV!=="production"){if(r){let d={};_5(r)||(d=r),u.unshift(cH(d))}if(a){let d={};_5(a)||(d=a),u.push(fH(d))}if(l){let d={};_5(l)||(d=l),u.unshift(lH(d))}}return u},hH="RTK_autoBatch",L9=e=>t=>{setTimeout(t,e)},pH=(e,t)=>n=>{let r=!1;const a=()=>{r||(r=!0,cancelAnimationFrame(l),clearTimeout(u),n())},l=e(a),u=setTimeout(a,t)},mH=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,l=!1,u=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?pH(window.requestAnimationFrame,100):L9(10):e.type==="callback"?e.queueNotification:L9(e.timeout),y=()=>{u=!1,l&&(l=!1,d.forEach(v=>v()))};return Object.assign({},r,{subscribe(v){const x=()=>a&&v(),T=r.subscribe(x);return d.add(v),()=>{T(),d.delete(v)}},dispatch(v){var x;try{return a=!((x=v==null?void 0:v.meta)!=null&&x[hH]),l=!a,l&&(u||(u=!0,h(y))),r.dispatch(v)}finally{a=!0}}})},gH=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new _9(e);return r&&a.push(mH(typeof r=="object"?r:void 0)),a};function yH(e){const t=dH(),{reducer:n=void 0,middleware:r,devTools:a=!0,duplicateMiddlewareCheck:l=!0,preloadedState:u=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(Vv(n))h=VU(n);else throw new Error(an.NODE_ENV==="production"?Or(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(an.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(an.NODE_ENV==="production"?Or(2):"`middleware` field must be a callback");let y;if(typeof r=="function"){if(y=r(t),an.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(an.NODE_ENV==="production"?Or(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(an.NODE_ENV!=="production"&&y.some(R=>typeof R!="function"))throw new Error(an.NODE_ENV==="production"?Or(4):"each middleware provided to configureStore must be a function");if(an.NODE_ENV!=="production"&&l){let R=new Set;y.forEach(_=>{if(R.has(_))throw new Error(an.NODE_ENV==="production"?Or(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");R.add(_)})}let v=f5;a&&(v=rH({trace:an.NODE_ENV!=="production",...typeof a=="object"&&a}));const x=BU(...y),T=gH(x);if(an.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(an.NODE_ENV==="production"?Or(5):"`enhancers` field must be a callback");let E=typeof d=="function"?d(T):T();if(an.NODE_ENV!=="production"&&!Array.isArray(E))throw new Error(an.NODE_ENV==="production"?Or(6):"`enhancers` callback must return an array");if(an.NODE_ENV!=="production"&&E.some(R=>typeof R!="function"))throw new Error(an.NODE_ENV==="production"?Or(7):"each enhancer provided to configureStore must be a function");an.NODE_ENV!=="production"&&y.length&&!E.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const A=v(...E);return a9(h,u,A)}function V9(e){const t={},n=[];let r;const a={addCase(l,u){if(an.NODE_ENV!=="production"){if(n.length>0)throw new Error(an.NODE_ENV==="production"?Or(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(an.NODE_ENV==="production"?Or(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof l=="string"?l:l.type;if(!d)throw new Error(an.NODE_ENV==="production"?Or(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(an.NODE_ENV==="production"?Or(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=u,a},addAsyncThunk(l,u){if(an.NODE_ENV!=="production"&&r)throw new Error(an.NODE_ENV==="production"?Or(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return u.pending&&(t[l.pending.type]=u.pending),u.rejected&&(t[l.rejected.type]=u.rejected),u.fulfilled&&(t[l.fulfilled.type]=u.fulfilled),u.settled&&n.push({matcher:l.settled,reducer:u.settled}),a},addMatcher(l,u){if(an.NODE_ENV!=="production"&&r)throw new Error(an.NODE_ENV==="production"?Or(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:l,reducer:u}),a},addDefaultCase(l){if(an.NODE_ENV!=="production"&&r)throw new Error(an.NODE_ENV==="production"?Or(31):"`builder.addDefaultCase` can only be called once");return r=l,a}};return e(a),[t,n,r]}function vH(e){return typeof e=="function"}function bH(e,t){if(an.NODE_ENV!=="production"&&typeof t=="object")throw new Error(an.NODE_ENV==="production"?Or(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,a]=V9(t),l;if(vH(e))l=()=>D9(e());else{const d=D9(e);l=()=>d}function u(d=l(),h){let y=[n[h.type],...r.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return y.filter(v=>!!v).length===0&&(y=[a]),y.reduce((v,x)=>{if(x)if(tf(v)){const E=x(v,h);return E===void 0?v:E}else{if(su(v))return C9(v,T=>x(T,h));{const T=x(v,h);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return v},d)}return u.getInitialState=l,u}var xH=Symbol.for("rtk-slice-createasyncthunk");function SH(e,t){return`${e}/${t}`}function EH({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[xH];return function(a){const{name:l,reducerPath:u=l}=a;if(!l)throw new Error(an.NODE_ENV==="production"?Or(11):"`name` is a required option for createSlice");typeof process<"u"&&an.NODE_ENV==="development"&&a.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const d=(typeof a.reducers=="function"?a.reducers(TH()):a.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(P,I){const H=typeof P=="string"?P:P.type;if(!H)throw new Error(an.NODE_ENV==="production"?Or(12):"`context.addCase` cannot be called with an empty action type");if(H in y.sliceCaseReducersByType)throw new Error(an.NODE_ENV==="production"?Or(13):"`context.addCase` cannot be called with two reducers for the same action type: "+H);return y.sliceCaseReducersByType[H]=I,v},addMatcher(P,I){return y.sliceMatchers.push({matcher:P,reducer:I}),v},exposeAction(P,I){return y.actionCreators[P]=I,v},exposeCaseReducer(P,I){return y.sliceCaseReducersByName[P]=I,v}};h.forEach(P=>{const I=d[P],H={reducerName:P,type:SH(l,P),createNotation:typeof a.reducers=="function"};CH(I)?MH(H,I,v,t):AH(H,I,v)});function x(){if(an.NODE_ENV!=="production"&&typeof a.extraReducers=="object")throw new Error(an.NODE_ENV==="production"?Or(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[P={},I=[],H=void 0]=typeof a.extraReducers=="function"?V9(a.extraReducers):[a.extraReducers],X={...P,...y.sliceCaseReducersByType};return bH(a.initialState,se=>{for(let ce in X)se.addCase(ce,X[ce]);for(let ce of y.sliceMatchers)se.addMatcher(ce.matcher,ce.reducer);for(let ce of I)se.addMatcher(ce.matcher,ce.reducer);H&&se.addDefaultCase(H)})}const T=P=>P,E=new Map,A=new WeakMap;let R;function _(P,I){return R||(R=x()),R(P,I)}function D(){return R||(R=x()),R.getInitialState()}function z(P,I=!1){function H(se){let ce=se[P];if(typeof ce>"u"){if(I)ce=R5(A,H,D);else if(an.NODE_ENV!=="production")throw new Error(an.NODE_ENV==="production"?Or(15):"selectSlice returned undefined for an uninjected slice reducer")}return ce}function X(se=T){const ce=R5(E,I,()=>new WeakMap);return R5(ce,se,()=>{const ie={};for(const[ue,U]of Object.entries(a.selectors??{}))ie[ue]=wH(U,se,()=>R5(A,se,D),I);return ie})}return{reducerPath:P,getSelectors:X,get selectors(){return X(H)},selectSlice:H}}const V={name:l,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:D,...z(u),injectInto(P,{reducerPath:I,...H}={}){const X=I??u;return P.inject({reducerPath:X,reducer:_},H),{...V,...z(X,!0)}}};return V}}function wH(e,t,n,r){function a(l,...u){let d=t(l);if(typeof d>"u"){if(r)d=n();else if(an.NODE_ENV!=="production")throw new Error(an.NODE_ENV==="production"?Or(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...u)}return a.unwrapped=e,a}var uu=EH();function TH(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function AH({type:e,reducerName:t,createNotation:n},r,a){let l,u;if("reducer"in r){if(n&&!OH(r))throw new Error(an.NODE_ENV==="production"?Or(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");l=r.reducer,u=r.prepare}else l=r;a.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,u?M9(e,u):M9(e))}function CH(e){return e._reducerDefinitionType==="asyncThunk"}function OH(e){return e._reducerDefinitionType==="reducerWithPrepare"}function MH({type:e,reducerName:t},n,r,a){if(!a)throw new Error(an.NODE_ENV==="production"?Or(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:l,fulfilled:u,pending:d,rejected:h,settled:y,options:v}=n,x=a(e,l,v);r.exposeAction(t,x),u&&r.addCase(x.fulfilled,u),d&&r.addCase(x.pending,d),h&&r.addCase(x.rejected,h),y&&r.addMatcher(x.settled,y),r.exposeCaseReducer(t,{fulfilled:u||D5,pending:d||D5,rejected:h||D5,settled:y||D5})}function D5(){}function Or(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class cu{constructor(t){j(this,"store");j(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const B9={value:"",index:-1,displaySize:b0,displayLines:MT},P9=uu({name:"braille",initialState:B9,reducers:{update(e,t){return t.payload},reset(){return B9}}}),{update:RH,reset:_H}=P9.actions;class DH extends cu{constructor(n,r){super(n);j(this,"brailleService");this.brailleService=r,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(_H())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(RH(n))}))}get state(){return this.store.getState().braille}moveToIndex(n){this.brailleService.moveToIndex(n)}update(n){this.brailleService.update(n)}toggle(n){this.brailleService.toggle(n)}}const NH=P9.reducer,Uv={OPENAI:{default:"gpt-4o",options:["gpt-4o","gpt-4o-mini","gpt-4.1","o1-mini","o3","o4-mini"],labels:{"gpt-4o":"GPT-4o","gpt-4o-mini":"GPT-4o Mini","gpt-4.1":"GPT-4.1","o1-mini":"o1-mini",o3:"o3","o4-mini":"o4-mini"}},ANTHROPIC_CLAUDE:{default:"claude-3-7-sonnet-latest",options:["claude-3-5-haiku-latest","claude-3-5-sonnet-latest","claude-3-7-sonnet-latest"],labels:{"claude-3-5-haiku-latest":"Claude 3.5 Haiku","claude-3-5-sonnet-latest":"Claude 3.5 Sonnet","claude-3-7-sonnet-latest":"Claude 3.7 Sonnet"}},GOOGLE_GEMINI:{default:"gemini-2.0-flash",options:["gemini-2.0-flash","gemini-2.0-flash-lite","gemini-2.5-flash-preview-04-17","gemini-2.5-pro-preview-05-06"],labels:{"gemini-2.0-flash":"Gemini 2.0 Flash","gemini-2.0-flash-lite":"Gemini 2.0 Flash Lite","gemini-2.5-flash-preview-04-17":"Gemini 2.5 Flash Preview","gemini-2.5-pro-preview-05-06":"Gemini 2.5 Pro Preview"}}},j9={messages:[],suggestions:[]};function $9(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const U9=uu({name:"chat",initialState:j9,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS",modelSelections:t.payload.modelSelections,isWelcomeMessage:t.payload.isWelcomeMessage})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const n=e.messages.find(r=>r.model===t.payload.model&&r.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(r=>r.model===t.payload.model&&r.timestamp===t.payload.timestamp);n&&(n.text=`Error: ${t.payload.error}`,n.status="FAILED")},updateSuggestions:(e,t)=>{e.suggestions=t.payload},updateWelcomeMessage:(e,t)=>{const n=e.messages.findIndex(r=>r.isWelcomeMessage);n!==-1&&(e.messages[n].text=t.payload.text,t.payload.modelSelections&&(e.messages[n].modelSelections=t.payload.modelSelections))},reset(){return j9}}}),{addUserMessage:kH,addSystemMessage:zH,addPendingResponse:IH,updateResponse:LH,updateError:H9,updateSuggestions:VH,updateWelcomeMessage:BH,reset:q9}=U9.actions;class PH extends cu{constructor(n,r,a){super(n);j(this,"chatService");j(this,"audioService");this.chatService=r,this.audioService=a,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(q9())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:n}=this.snapshot.settings;return Object.values(n.models).some(r=>r.enabled&&r.apiKey.trim().length>0)}toggle(){this.chatService.toggle()}getEnabledModelsData(){const n=this.snapshot.settings.llm.models,r=Object.entries(n).filter(([l,u])=>u.enabled&&u.apiKey.trim().length>0).map(([l,u])=>{var v;const d=(v=Uv[l])==null?void 0:v.labels,h=(d==null?void 0:d[u.version])||u.version;return`${$9(l)} (${h})`}),a=Object.entries(n).filter(([l,u])=>u.enabled&&u.apiKey.trim().length>0).map(([l,u])=>({modelKey:l,name:$9(l),version:u.version}));return{enabledModels:r,modelSelections:a}}loadInitialMessage(){const n=new Date().toISOString(),{enabledModels:r,modelSelections:a}=this.getEnabledModelsData(),l=r.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${r.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(zH({text:l,timestamp:n,modelSelections:a,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(q9()),this.loadInitialMessage()}updateWelcomeMessage(){const{enabledModels:n,modelSelections:r}=this.getEnabledModelsData(),a=n.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${n.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(BH({text:a,modelSelections:r}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:r}=this.snapshot.settings,a=r.expertiseLevel,l=Date.now(),u=[{id:`suggestion-${l}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${l}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${l}-3`,text:"How does this compare to other data points?",type:"analysis"}];return a==="advanced"&&u.push({id:`suggestion-${l}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${l}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),u}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(VH(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:r}=this.snapshot.settings,a=new Date().toISOString();this.store.dispatch(kH({text:n,timestamp:a}));const l=Object.keys(r.models).filter(u=>r.models[u].enabled&&r.models[u].apiKey.trim().length>0);await Promise.all(l.map(async u=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch(IH({model:u,timestamp:a}));const h=r.models[u],y=r.customExpertise&&["basic","intermediate","advanced"].includes(r.customExpertise)?r.customExpertise:r.expertiseLevel,v=await this.chatService.sendMessage(u,{message:n,customInstruction:r.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),v.error?this.store.dispatch(H9({model:u,error:v.error,timestamp:a})):(this.store.dispatch(LH({model:u,data:v.data,timestamp:a})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(H9({model:u,error:h instanceof Error?h.message:"Error processing request",timestamp:a}))}}))}}const jH=U9.reducer,G9=uu({name:"commandPalette",initialState:{visible:!1,commands:[],selectedIndex:-1,search:""},reducers:{show(e,t){e.visible=!0,e.commands=t.payload.commands,e.selectedIndex=-1,e.search=""},hide(e){e.visible=!1,e.commands=[],e.selectedIndex=-1,e.search=""},updateSelectedIndex(e,t){e.selectedIndex=t.payload},updateSearch(e,t){e.search=t.payload,e.selectedIndex=-1}}}),{show:$H,hide:F9,updateSelectedIndex:r2,updateSearch:UH}=G9.actions;class HH extends cu{constructor(n,r){super(n);j(this,"commandPaletteService");j(this,"executeCommandCallback",null);this.commandPaletteService=r}setExecuteCommandCallback(n){this.executeCommandCallback=n}dispose(){super.dispose(),this.store.dispatch(F9())}get state(){return this.store.getState().commandPalette}toggle(){this.state.visible?this.hide():this.show()}show(){const n=l5.TRACE,r=Object.entries(n).filter(([a])=>!a.startsWith("ALLOW_")).map(([a,l])=>({key:l.helpKey??l.hotkey,description:l.description,commandKey:a}));this.store.dispatch($H({commands:r,scope:Pt.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(F9()),this.commandPaletteService.returnToTraceScope()}executeAndClose(n){if(!this.executeCommandCallback)throw new Error("Command execution callback not set. Call setExecuteCommandCallback first.");const r=this.executeCommandCallback;this.hide(),setTimeout(()=>{r(n)},0)}selectCurrent(){const n=this.state;if(n.commands.length>0&&n.selectedIndex>=0){const r=n.commands[n.selectedIndex];r&&this.executeAndClose(r.commandKey)}}moveUp(){const n=this.state;if(n.commands.length>0){if(n.selectedIndex===0)return;const r=n.selectedIndex>=0?n.selectedIndex:n.commands.length-1,a=Math.max(0,r-1);this.store.dispatch(r2(a))}}moveDown(){const n=this.state;if(n.commands.length>0){const r=n.selectedIndex>=0?n.selectedIndex:-1,a=Math.min(n.commands.length-1,r+1);this.store.dispatch(r2(a))}}moveToSearch(){this.store.dispatch(r2(-1))}updateSearch(n){this.store.dispatch(UH(n))}}const qH=G9.reducer,Y9={data:null},X9=uu({name:"description",initialState:Y9,reducers:{setDescription(e,t){e.data=t.payload},reset(){return Y9}}}),{setDescription:W9,reset:GH}=X9.actions;class FH extends cu{constructor(n,r){super(n);j(this,"descriptionService");this.descriptionService=r}toggle(){if(this.store.getState().description.data!==null)this.store.dispatch(W9(null));else{const r=this.descriptionService.getDescription();this.store.dispatch(W9(r))}this.descriptionService.toggle()}dispose(){super.dispose(),this.store.dispatch(GH())}get state(){return this.store.getState().description}}const YH=X9.reducer,K9=uu({name:"display",initialState:{focus:null,tooltip:{visible:!1,value:""}},reducers:{hideTooltip(e){e.tooltip={...e.tooltip,visible:!1,value:""}},showTooltip(e,t){e.tooltip={...e.tooltip,visible:!0,value:t.payload}},updateFocus(e,t){e.focus=t.payload},clearFocus(e){e.focus=null}}}),{hideTooltip:XH,showTooltip:WH,updateFocus:KH,clearFocus:QH}=K9.actions;class ZH extends cu{constructor(n,r){super(n);j(this,"displayService");this.displayService=r,this.registerListeners(),this.store.dispatch(XH())}dispose(){this.store.dispatch(QH()),this.store.dispatch(WH(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(KH(n.value))}))}get state(){return this.store.getState().display}}const JH=K9.reducer,Q9=uu({name:"goToExtrema",initialState:{visible:!1,targets:[],selectedIndex:0,description:""},reducers:{show(e,t){return{visible:!0,targets:t.payload.targets,selectedIndex:0,description:t.payload.description}},hide(){return{visible:!1,targets:[],selectedIndex:0,description:""}},updateSelectedIndex(e,t){return{...e,selectedIndex:t.payload}}}}),{show:eq,hide:i2,updateSelectedIndex:Z9}=Q9.actions;class tq extends cu{constructor(n,r,a,l){super(n);j(this,"goToExtremaService");j(this,"context");j(this,"formatter");this.goToExtremaService=r,this.context=a,this.formatter=l}dispose(){super.dispose(),this.store.dispatch(i2())}get state(){return this.store.getState().goToExtrema}toggle(n){if(n.empty)return;const r=this.context.active;if(r&&this.goToExtremaService.isExtremaNavigable(r)){const a=r.getExtremaTargets(),l=this.formatTargetLabels(a,n.layerId),u=this.generateDescription(n.traceType);this.store.dispatch(eq({targets:l,description:u})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(i2()),this.goToExtremaService.returnToTraceScope()}get activeContext(){return this.context}moveUp(){const n=this.state;if(n.targets.length>0){const r=n.selectedIndex||0,a=Math.max(0,r-1);this.store.dispatch(Z9(a))}}moveDown(){const n=this.state;if(n.targets.length>0){const r=n.targets.length,a=n.selectedIndex||0,l=Math.min(r,a+1);this.store.dispatch(Z9(l))}}selectCurrent(){const n=this.state;if(n.targets.length>0&&n.selectedIndex!==void 0){const r=n.targets[n.selectedIndex];r&&this.handleTargetSelect(r)}}handleTargetSelect(n){const r=this.context.active;if(r&&this.goToExtremaService.isExtremaNavigable(r))try{this.store.dispatch(i2()),this.goToExtremaService.returnToTraceScope(),r.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}formatTargetLabels(n,r){return!this.formatter||!this.formatter.hasCustomFormatter(r,"x")?n:n.map(a=>{if(a.xValue===void 0)return a;const l=this.formatter.formatSingleValue(a.xValue,r,"x"),u=String(a.xValue);return l===u?a:{...a,label:a.label.replaceAll(u,l)}})}generateDescription(n){return`Navigate to points of interest within the current ${n}`}getAvailableXValues(){const n=this.context.active;return n&&this.supportsXValueNavigation(n)?n.getAvailableXValues():[]}isExtremaNavigable(n){return this.goToExtremaService.isExtremaNavigable(n)}supportsXValueNavigation(n){return n!==null&&typeof n=="object"&&"getAvailableXValues"in n&&typeof n.getAvailableXValues=="function"}}const nq=Q9.reducer,J9={items:[]},eM=uu({name:"help",initialState:J9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return J9}}}),{setHelpItems:rq,reset:iq}=eM.actions;class aq extends cu{constructor(n,r){super(n);j(this,"helpService");this.helpService=r}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(rq(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(iq())}get state(){return this.store.getState().help}}const oq=eM.reducer;class lq{constructor(){j(this,"viewModels",new Map)}register(t,n){this.viewModels.set(t,n)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear()}}const tM={value:""},nM=uu({name:"review",initialState:tM,reducers:{update(e,t){e.value=t.payload},reset(){return tM}}}),{update:sq,reset:uq}=nM.actions;class cq extends cu{constructor(n,r){super(n);j(this,"reviewService");this.reviewService=r,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(uq())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(sq(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const fq=nM.reducer,rM=uu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:ng}=rM.actions;class dq extends cu{constructor(n,r){super(n);j(this,"rotorService");this.rotorService=r}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch(ng(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch(ng(`${n}`))}moveUp(){this.store.dispatch(ng(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch(ng(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch(ng(this.rotorService.moveDown()))}moveRight(){this.store.dispatch(ng(this.rotorService.moveRight()))}}const hq=rM.reducer,iM=HO,aM=uu({name:"settings",initialState:iM,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>iM}}),{update:N5,reset:pq}=aM.actions;class mq extends cu{constructor(n,r){super(n);j(this,"settingsService");this.settingsService=r,this.load()}dispose(){super.dispose(),this.store.dispatch(pq())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(N5(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(N5(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(N5(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(N5(n))}toggle(){this.settingsService.toggle()}}const gq=aM.reducer,oM={enabled:!0,announce:!0,value:"",revision:0,message:null},lM=uu({name:"text",initialState:oM,reducers:{update(e,t){e.value=t.payload,e.revision+=1},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},clearMessage(e){e.message=null},reset(){return oM}}}),{update:yq,announceText:vq,toggle:bq,notify:xq,clearMessage:Sq,reset:Eq}=lM.actions;class wq extends cu{constructor(n,r,a,l,u){super(n);j(this,"audioService");j(this,"textService");this.audioService=u,this.textService=r,this.registerListeners(a,l)}dispose(){super.dispose(),this.store.dispatch(Eq())}registerListeners(n,r){this.disposables.push(this.textService.onChange(a=>{this.update(a.value)})),this.disposables.push(this.textService.onNavigation(a=>{a.type==="first_navigation"&&this.setAnnounce(!0)})),this.disposables.push(n.onChange(a=>{this.notify(a.value)})),this.disposables.push(r.onChange(a=>{switch(a.type){case"start":this.setAnnounce(!1);break;case"stop":this.setAnnounce(!0);break}}))}get state(){return this.store.getState().text}toggle(){const n=this.textService.toggle();this.store.dispatch(bq(n))}update(n){const r=this.textService.format(n);this.store.dispatch(yq(r)),this.store.dispatch(Sq())}notify(n){this.store.dispatch(xq(n))}setAnnounce(n){this.store.dispatch(vq(n))}warnIfTextOff(){return this.textService.isOff()?(this.notify("Text mode is off. To enable, press the T key."),this.audioService.playWarningTone(),!0):!1}}const Tq=lM.reducer;function Aq(e){const t=Oq(e),n=Mq(e,t),r=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return Nq(e,r,t);const a=Rq(n),l=_q(a),u=a[0].row,d=Dq(n,e.length);return{visualOrderMap:l,topLeftRow:u,invertVertical:d,totalAxesCount:r,axesElements:t}}function Cq(e,t){if(e){const n=e.closest('g[id^="axes_"]');if(n)return n}if(t){const n=document.querySelector(t);if(n){const r=n.closest('g[id^="axes_"]');if(r)return r}}return null}function Oq(e){const t=new Map;for(let n=0;n<e.length;n++)for(let r=0;r<e[n].length;r++){const a=e[n][r],l=Cq(a.getHighlightElement(),a.getLayerSelector());t.set(`${n},${r}`,l)}return t}function Mq(e,t){const n=[];for(let r=0;r<e.length;r++)for(let a=0;a<e[r].length;a++){const l=t.get(`${r},${a}`);if(l){const u=l.getBoundingClientRect();n.push({row:r,col:a,y:u.top,x:u.left})}}return n}function Rq(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function _q(e){const t=new Map;for(let n=0;n<e.length;n++)t.set(`${e[n].row},${e[n].col}`,n+1);return t}function Dq(e,t){if(t<=1)return!1;const n=e.find(a=>a.row===0),r=e.find(a=>a.row===1);return n&&r?n.y<r.y:!1}function Nq(e,t,n){const r=new Map;let a=1;for(let l=0;l<e.length;l++)for(let u=0;u<e[l].length;u++)r.set(`${l},${u}`,a++);return{visualOrderMap:r,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class kq{constructor(t,n,r){j(this,"figure");j(this,"context");j(this,"displayService");j(this,"notificationService");j(this,"settingsService");j(this,"formatterService");j(this,"audioService");j(this,"brailleService");j(this,"goToExtremaService");j(this,"textService");j(this,"reviewService");j(this,"rotorNavigationService");j(this,"autoplayService");j(this,"highContrastService");j(this,"highlightService");j(this,"descriptionService");j(this,"helpService");j(this,"chatService");j(this,"textViewModel");j(this,"brailleViewModel");j(this,"goToExtremaViewModel");j(this,"reviewViewModel");j(this,"descriptionViewModel");j(this,"displayViewModel");j(this,"helpViewModel");j(this,"chatViewModel");j(this,"settingsViewModel");j(this,"rotorNavigationViewModel");j(this,"commandPaletteViewModel");j(this,"keybinding");j(this,"mousebinding");j(this,"commandExecutor");j(this,"viewModelRegistry");this.viewModelRegistry=new lq,this.figure=new dj(t),this.figure.applyLayout(Aq(this.figure.subplots)),this.context=new $P(this.figure),this.notificationService=new vU,this.formatterService=new cU(t),this.textService=new MU(this.notificationService,this.formatterService),this.displayService=new uU(this.context,n,this.textService),this.settingsService=new CU(new OU,this.displayService),this.audioService=new vj(this.notificationService,this.settingsService,this.context.state),this.brailleService=new Cj(this.context,this.notificationService,this.displayService,this.settingsService),this.goToExtremaService=new fU(this.context,this.displayService),this.reviewService=new bU(this.notificationService,this.displayService,this.textService),this.autoplayService=new Ej(this.context,this.notificationService,this.settingsService),this.highContrastService=new gU(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new yU(this.settingsService),this.descriptionService=new lU(this.context,this.displayService),this.helpService=new mU(this.context,this.displayService),this.chatService=new Lj(this.displayService,this.textService,t),this.textViewModel=new wq(r,this.textService,this.notificationService,this.autoplayService,this.audioService),this.brailleViewModel=new DH(r,this.brailleService),this.goToExtremaViewModel=new tq(r,this.goToExtremaService,this.context,this.formatterService),this.reviewViewModel=new cq(r,this.reviewService),this.descriptionViewModel=new FH(r,this.descriptionService),this.displayViewModel=new ZH(r,this.displayService),this.helpViewModel=new aq(r,this.helpService),this.settingsViewModel=new mq(r,this.settingsService),this.rotorNavigationService=new xU(this.context,this.textService,this.notificationService),this.rotorNavigationViewModel=new dq(r,this.rotorNavigationService),this.chatViewModel=new PH(r,this.chatService,this.audioService);const a=new oU(this.context,this.displayService);this.commandPaletteViewModel=new HH(r,a),this.keybinding=new rU({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,brailleService:this.brailleService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,notificationService:this.notificationService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,descriptionViewModel:this.descriptionViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel}),this.mousebinding=new iU({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,brailleService:this.brailleService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,notificationService:this.notificationService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,descriptionViewModel:this.descriptionViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.settingsService,this.displayService),this.commandExecutor=new aU({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,brailleService:this.brailleService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,notificationService:this.notificationService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,descriptionViewModel:this.descriptionViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.context.scope),this.commandPaletteViewModel.setExecuteCommandCallback(l=>this.commandExecutor.executeCommand(l)),this.registerViewModels(),this.registerObservers(),t.onNavigate&&this.registerNavigateCallback(t.onNavigate),this.keybinding.register(this.context.scope),this.mousebinding.registerEvents()}announceInitialInstruction(){const t=this.displayService.getInstruction(!1);this.textViewModel.update(t)}getInitialInstruction(){return this.displayService.getInstruction(!1)}showInitialInstructionInText(){const t=this.displayService.getInstruction(!1);this.textViewModel.setAnnounce(!1),this.textViewModel.update(t)}initializeHighContrast(){this.highContrastService.initializeHighContrast()}suspendHighContrast(){this.highContrastService.suspendHighContrast()}dispose(){this.keybinding.unregister(),this.mousebinding.dispose(),this.commandExecutor.dispose(),this.viewModelRegistry.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.descriptionViewModel.dispose(),this.displayViewModel.dispose(),this.goToExtremaViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.commandPaletteViewModel.dispose(),this.rotorNavigationViewModel.dispose(),this.highContrastService.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.formatterService.dispose(),this.settingsService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}getContextValue(){return{viewModelRegistry:this.viewModelRegistry,commandExecutor:this.commandExecutor}}registerViewModels(){this.viewModelRegistry.register("text",this.textViewModel),this.viewModelRegistry.register("braille",this.brailleViewModel),this.viewModelRegistry.register("goToExtrema",this.goToExtremaViewModel),this.viewModelRegistry.register("review",this.reviewViewModel),this.viewModelRegistry.register("description",this.descriptionViewModel),this.viewModelRegistry.register("display",this.displayViewModel),this.viewModelRegistry.register("help",this.helpViewModel),this.viewModelRegistry.register("chat",this.chatViewModel),this.viewModelRegistry.register("settings",this.settingsViewModel),this.viewModelRegistry.register("commandPalette",this.commandPaletteViewModel),this.viewModelRegistry.register("commandExecutor",this.commandExecutor),this.viewModelRegistry.register("rotor",this.rotorNavigationViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.addObserver(this.audioService),this.figure.addObserver(this.highlightService),this.figure.subplots.forEach(t=>t.forEach(n=>{n.addObserver(this.textService),n.addObserver(this.audioService),n.addObserver(this.brailleService),n.addObserver(this.highlightService),n.traces.forEach(r=>r.forEach(a=>{a.addObserver(this.audioService),a.addObserver(this.brailleService),a.addObserver(this.textService),a.addObserver(this.reviewService),a.addObserver(this.highlightService)}))}))}registerNavigateCallback(t){const n={update:r=>{!r.empty&&!r.braille.empty&&t({layerId:r.layerId,row:r.braille.row,col:r.braille.col})}};this.figure.subplots.forEach(r=>r.forEach(a=>{a.traces.forEach(l=>l.forEach(u=>{u.addObserver(n)}))}))}}function zq(e,t){const n=q.useRef(null),r=q.useRef(null),a=q.useRef(null),l=q.useRef(!1),u=q.useRef(null),d=q.useRef(null),[h,y]=q.useState(null),v=q.useCallback(()=>{const _=n.current;if(!_)return null;const{onNavigate:D,...z}=e,V=structuredClone(z);return D&&(V.onNavigate=D),new kq(V,_,t)},[e,t]),x=q.useRef(v);x.current=v;const T=q.useCallback(()=>{a.current&&(a.current.suspendHighContrast(),a.current.dispose(),a.current=null),y(null),l.current=!1},[]),E=q.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),u.current&&(clearTimeout(u.current),u.current=null),u.current=setTimeout(()=>{var _;if(u.current=null,!a.current){const D=x.current();if(!D)return;a.current=D;const z=D.getContextValue();y(z),D.initializeHighContrast()}l.current||(l.current=!0,(_=a.current)==null||_.showInitialInstructionInText())},0)},[]),A=q.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null),d.current=setTimeout(()=>{d.current=null;const _=r.current;if(!_)return;const D=document.activeElement;_.contains(D)||T()},0)},[T]),R=q.useCallback(()=>{if(document.visibilityState==="visible"){if(!a.current)return;u.current&&(clearTimeout(u.current),u.current=null),d.current&&(clearTimeout(d.current),d.current=null),T();const _=x.current();if(!_)return;a.current=_,y(_.getContextValue()),_.initializeHighContrast(),l.current=!1}},[T]);return q.useEffect(()=>(document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}),[R]),q.useEffect(()=>()=>{u.current&&clearTimeout(u.current),d.current&&clearTimeout(d.current),a.current&&(a.current.suspendHighContrast(),a.current.dispose(),a.current=null)},[]),{plotRef:n,figureRef:r,contextValue:h,onFocusIn:E,onFocusOut:A}}const Iq={braille:NH,chat:jH,commandPalette:qH,description:YH,display:JH,goToExtrema:nq,help:oq,review:fq,settings:gq,text:Tq,rotor:hq};function Lq(){return yH({reducer:Iq})}const sM=q.createContext(null);function Vq(){const e=q.useContext(sM);if(!e)throw new Error("useMaidrContext must be used within a MaidrContext.Provider. Ensure the component is rendered inside a <Maidr> component.");return e}var k5={exports:{}},a2={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uM;function Bq(){if(uM)return a2;uM=1;var e=Nd();function t(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return a2.useSyncExternalStoreWithSelector=function(h,y,v,x,T){var E=a(null);if(E.current===null){var A={hasValue:!1,value:null};E.current=A}else A=E.current;E=u(function(){function _(I){if(!D){if(D=!0,z=I,I=x(I),T!==void 0&&A.hasValue){var H=A.value;if(T(H,I))return V=H}return V=I}if(H=V,n(z,I))return H;var X=x(I);return T!==void 0&&T(H,X)?(z=I,H):(z=I,V=X)}var D=!1,z,V,P=v===void 0?null:v;return[function(){return _(y())},P===null?void 0:function(){return _(P())}]},[y,v,x,T]);var R=r(h,E[0],E[1]);return l(function(){A.hasValue=!0,A.value=R},[R]),d(R),R},a2}var o2={},cM;function Pq(){if(cM)return o2;cM=1;var e={};/**
 * @license React
 * use-sync-external-store-with-selector.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){function t(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Nd(),r=typeof Object.is=="function"?Object.is:t,a=n.useSyncExternalStore,l=n.useRef,u=n.useEffect,d=n.useMemo,h=n.useDebugValue;o2.useSyncExternalStoreWithSelector=function(y,v,x,T,E){var A=l(null);if(A.current===null){var R={hasValue:!1,value:null};A.current=R}else R=A.current;A=d(function(){function D(H){if(!z){if(z=!0,V=H,H=T(H),E!==void 0&&R.hasValue){var X=R.value;if(E(X,H))return P=X}return P=H}if(X=P,r(V,H))return X;var se=T(H);return E!==void 0&&E(X,se)?(V=H,X):(V=H,P=se)}var z=!1,V,P,I=x===void 0?null:x;return[function(){return D(v())},I===null?void 0:function(){return D(I())}]},[v,x,T,E]);var _=a(y,A[0],A[1]);return u(function(){R.hasValue=!0,R.value=_},[_]),h(_),_},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),o2}var fM;function jq(){if(fM)return k5.exports;fM=1;var e={};return e.NODE_ENV==="production"?k5.exports=Bq():k5.exports=Pq(),k5.exports}var $q=jq(),Hv={};function Uq(e){e()}function Hq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Uq(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var dM={notify(){},get:()=>[]};function qq(e,t){let n,r=dM,a=0,l=!1;function u(R){v();const _=r.subscribe(R);let D=!1;return()=>{D||(D=!0,_(),x())}}function d(){r.notify()}function h(){A.onStateChange&&A.onStateChange()}function y(){return l}function v(){a++,n||(n=e.subscribe(h),r=Hq())}function x(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=dM)}function T(){l||(l=!0,v())}function E(){l&&(l=!1,x())}const A={addNestedSub:u,notifyNestedSubs:d,handleChangeWrapper:h,isSubscribed:y,trySubscribe:T,tryUnsubscribe:E,getListeners:()=>r};return A}var Gq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fq=Gq(),Yq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Xq=Yq(),Wq=()=>Fq||Xq?q.useLayoutEffect:q.useEffect,Kq=Wq(),l2=Symbol.for("react-redux-context"),s2=typeof globalThis<"u"?globalThis:{};function Qq(){if(!q.createContext)return{};const e=s2[l2]??(s2[l2]=new Map);let t=e.get(q.createContext);return t||(t=q.createContext(null),Hv.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(q.createContext,t)),t}var z5=Qq();function Zq(e){const{children:t,context:n,serverState:r,store:a}=e,l=q.useMemo(()=>{const h=qq(a),y={store:a,subscription:h,getServerState:r?()=>r:void 0};if(Hv.NODE_ENV==="production")return y;{const{identityFunctionCheck:v="once",stabilityCheck:x="once"}=e;return Object.assign(y,{stabilityCheck:x,identityFunctionCheck:v})}},[a,r]),u=q.useMemo(()=>a.getState(),[a]);Kq(()=>{const{subscription:h}=l;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),u!==a.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[l,u]);const d=n||z5;return q.createElement(d.Provider,{value:l},t)}var Jq=Zq;function hM(e=z5){return function(){const n=q.useContext(e);if(Hv.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var eG=hM(),tG=(e,t)=>e===t;function nG(e=z5){const t=e===z5?eG:hM(e),n=(r,a={})=>{const{equalityFn:l=tG}=typeof a=="function"?{equalityFn:a}:a;if(Hv.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof l!="function")throw new Error("You must pass a function as an equality function to useSelector")}const u=t(),{store:d,subscription:h,getServerState:y}=u,v=q.useRef(!0),x=q.useCallback({[r.name](E){const A=r(E);if(Hv.NODE_ENV!=="production"){const{devModeChecks:R={}}=typeof a=="function"?{}:a,{identityFunctionCheck:_,stabilityCheck:D}=u,{identityFunctionCheck:z,stabilityCheck:V}={stabilityCheck:D,identityFunctionCheck:_,...R};if(V==="always"||V==="once"&&v.current){const P=r(E);if(!l(A,P)){let I;try{throw new Error}catch(H){({stack:I}=H)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:E,selected:A,selected2:P,stack:I})}}if((z==="always"||z==="once"&&v.current)&&A===E){let P;try{throw new Error}catch(I){({stack:P}=I)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:P})}v.current&&(v.current=!1)}return A}}[r.name],[r]),T=$q.useSyncExternalStoreWithSelector(h.addNestedSub,d.getState,y||d.getState,x,l);return q.useDebugValue(T),T};return Object.assign(n,{withTypes:()=>n}),n}var rG=nG();const iG=rG;function fu(e){const{viewModelRegistry:t}=Vq();return t.get(e)}function Wl(e){return iG(t=>t[e])}const aG=()=>{const e=q.useId(),t=fu("braille"),{value:n,index:r,displaySize:a,displayLines:l}=Wl("braille"),u=q.useRef(null),d=q.useRef(r),h=y=>{const v=y.target,x=v.selectionStart;if(x>=n.length){v.setSelectionRange(d.current,d.current);return}x!==d.current&&(d.current=x,t.moveToIndex(x))};return q.useEffect(()=>{const y=u.current;if(y)return y.addEventListener(Ku.SELECTION_CHANGE,h),()=>{y.removeEventListener(Ku.SELECTION_CHANGE,h)}},[]),q.useEffect(()=>{const y=u.current;y&&(y.value=n,y.selectionStart=r,y.selectionEnd=r,y.focus(),d.current=r)},[n,r]),L.jsx("div",{id:e,role:"application","aria-label":"Braille display",children:L.jsx("textarea",{id:`${fe.BRAILLE_TEXT_AREA}-${e}`,ref:u,defaultValue:n,autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,wrap:"off",rows:Math.max(l,5),cols:a})})},pM=e=>e,mM=(()=>{let e=pM;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pM}}})();function rf(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var oG={};function We(e){if(typeof e!="string")throw new Error(oG.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":rf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function u2(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}var I5={exports:{}},L5={exports:{}},sr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gM;function lG(){if(gM)return sr;gM=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function V(I){if(typeof I=="object"&&I!==null){var H=I.$$typeof;switch(H){case t:switch(I=I.type,I){case h:case y:case r:case l:case a:case x:return I;default:switch(I=I&&I.$$typeof,I){case d:case v:case A:case E:case u:return I;default:return H}}case n:return H}}}function P(I){return V(I)===y}return sr.AsyncMode=h,sr.ConcurrentMode=y,sr.ContextConsumer=d,sr.ContextProvider=u,sr.Element=t,sr.ForwardRef=v,sr.Fragment=r,sr.Lazy=A,sr.Memo=E,sr.Portal=n,sr.Profiler=l,sr.StrictMode=a,sr.Suspense=x,sr.isAsyncMode=function(I){return P(I)||V(I)===h},sr.isConcurrentMode=P,sr.isContextConsumer=function(I){return V(I)===d},sr.isContextProvider=function(I){return V(I)===u},sr.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},sr.isForwardRef=function(I){return V(I)===v},sr.isFragment=function(I){return V(I)===r},sr.isLazy=function(I){return V(I)===A},sr.isMemo=function(I){return V(I)===E},sr.isPortal=function(I){return V(I)===n},sr.isProfiler=function(I){return V(I)===l},sr.isStrictMode=function(I){return V(I)===a},sr.isSuspense=function(I){return V(I)===x},sr.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===y||I===l||I===a||I===x||I===T||typeof I=="object"&&I!==null&&(I.$$typeof===A||I.$$typeof===E||I.$$typeof===u||I.$$typeof===d||I.$$typeof===v||I.$$typeof===_||I.$$typeof===D||I.$$typeof===z||I.$$typeof===R)},sr.typeOf=V,sr}var ur={},yM;function sG(){if(yM)return ur;yM=1;var e={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,v=t?Symbol.for("react.concurrent_mode"):60111,x=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,E=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,D=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,V=t?Symbol.for("react.scope"):60119;function P(Re){return typeof Re=="string"||typeof Re=="function"||Re===a||Re===v||Re===u||Re===l||Re===T||Re===E||typeof Re=="object"&&Re!==null&&(Re.$$typeof===R||Re.$$typeof===A||Re.$$typeof===d||Re.$$typeof===h||Re.$$typeof===x||Re.$$typeof===D||Re.$$typeof===z||Re.$$typeof===V||Re.$$typeof===_)}function I(Re){if(typeof Re=="object"&&Re!==null){var ut=Re.$$typeof;switch(ut){case n:var Vt=Re.type;switch(Vt){case y:case v:case a:case u:case l:case T:return Vt;default:var Qt=Vt&&Vt.$$typeof;switch(Qt){case h:case x:case R:case A:case d:return Qt;default:return ut}}case r:return ut}}}var H=y,X=v,se=h,ce=d,ie=n,ue=x,U=a,le=R,Q=A,ee=r,W=u,oe=l,he=T,be=!1;function re(Re){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Re)||I(Re)===y}function F(Re){return I(Re)===v}function te(Re){return I(Re)===h}function Y(Re){return I(Re)===d}function Me(Re){return typeof Re=="object"&&Re!==null&&Re.$$typeof===n}function Ee(Re){return I(Re)===x}function _e(Re){return I(Re)===a}function Be(Re){return I(Re)===R}function Ue(Re){return I(Re)===A}function Ye(Re){return I(Re)===r}function Xe(Re){return I(Re)===u}function Je(Re){return I(Re)===l}function Ve(Re){return I(Re)===T}ur.AsyncMode=H,ur.ConcurrentMode=X,ur.ContextConsumer=se,ur.ContextProvider=ce,ur.Element=ie,ur.ForwardRef=ue,ur.Fragment=U,ur.Lazy=le,ur.Memo=Q,ur.Portal=ee,ur.Profiler=W,ur.StrictMode=oe,ur.Suspense=he,ur.isAsyncMode=re,ur.isConcurrentMode=F,ur.isContextConsumer=te,ur.isContextProvider=Y,ur.isElement=Me,ur.isForwardRef=Ee,ur.isFragment=_e,ur.isLazy=Be,ur.isMemo=Ue,ur.isPortal=Ye,ur.isProfiler=Xe,ur.isStrictMode=Je,ur.isSuspense=Ve,ur.isValidElementType=P,ur.typeOf=I})(),ur}var vM;function bM(){if(vM)return L5.exports;vM=1;var e={};return e.NODE_ENV==="production"?L5.exports=lG():L5.exports=sG(),L5.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var c2,xM;function uG(){if(xM)return c2;xM=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function a(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var u={},d=0;d<10;d++)u["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(u).map(function(v){return u[v]});if(h.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(v){y[v]=v}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return c2=a()?Object.assign:function(l,u){for(var d,h=r(l),y,v=1;v<arguments.length;v++){d=Object(arguments[v]);for(var x in d)t.call(d,x)&&(h[x]=d[x]);if(e){y=e(d);for(var T=0;T<y.length;T++)n.call(d,y[T])&&(h[y[T]]=d[y[T]])}}return h},c2}var f2,SM;function d2(){if(SM)return f2;SM=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return f2=e,f2}var h2,EM;function wM(){return EM||(EM=1,h2=Function.call.bind(Object.prototype.hasOwnProperty)),h2}var p2,TM;function cG(){if(TM)return p2;TM=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=d2(),r={},a=wM();t=function(u){var d="Warning: "+u;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function l(u,d,h,y,v){if(e.NODE_ENV!=="production"){for(var x in u)if(a(u,x)){var T;try{if(typeof u[x]!="function"){var E=Error((y||"React class")+": "+h+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}T=u[x](d,x,y,h,null,n)}catch(R){T=R}if(T&&!(T instanceof Error)&&t((y||"React class")+": type specification of "+h+" `"+x+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof T+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),T instanceof Error&&!(T.message in r)){r[T.message]=!0;var A=v?v():"";t("Failed "+h+" type: "+T.message+(A??""))}}}}return l.resetWarningCache=function(){e.NODE_ENV!=="production"&&(r={})},p2=l,p2}var m2,AM;function fG(){if(AM)return m2;AM=1;var e={},t=bM(),n=uG(),r=d2(),a=wM(),l=cG(),u=function(){};e.NODE_ENV!=="production"&&(u=function(h){var y="Warning: "+h;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return m2=function(h,y){var v=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function T(F){var te=F&&(v&&F[v]||F[x]);if(typeof te=="function")return te}var E="<<anonymous>>",A={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:V(),arrayOf:P,element:I(),elementType:H(),instanceOf:X,node:ue(),objectOf:ce,oneOf:se,oneOfType:ie,shape:le,exact:Q};function R(F,te){return F===te?F!==0||1/F===1/te:F!==F&&te!==te}function _(F,te){this.message=F,this.data=te&&typeof te=="object"?te:{},this.stack=""}_.prototype=Error.prototype;function D(F){if(e.NODE_ENV!=="production")var te={},Y=0;function Me(_e,Be,Ue,Ye,Xe,Je,Ve){if(Ye=Ye||E,Je=Je||Ue,Ve!==r){if(y){var Re=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Re.name="Invariant Violation",Re}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var ut=Ye+":"+Ue;!te[ut]&&Y<3&&(u("You are manually calling a React.PropTypes validation function for the `"+Je+"` prop on `"+Ye+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),te[ut]=!0,Y++)}}return Be[Ue]==null?_e?Be[Ue]===null?new _("The "+Xe+" `"+Je+"` is marked as required "+("in `"+Ye+"`, but its value is `null`.")):new _("The "+Xe+" `"+Je+"` is marked as required in "+("`"+Ye+"`, but its value is `undefined`.")):null:F(Be,Ue,Ye,Xe,Je)}var Ee=Me.bind(null,!1);return Ee.isRequired=Me.bind(null,!0),Ee}function z(F){function te(Y,Me,Ee,_e,Be,Ue){var Ye=Y[Me],Xe=oe(Ye);if(Xe!==F){var Je=he(Ye);return new _("Invalid "+_e+" `"+Be+"` of type "+("`"+Je+"` supplied to `"+Ee+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return D(te)}function V(){return D(d)}function P(F){function te(Y,Me,Ee,_e,Be){if(typeof F!="function")return new _("Property `"+Be+"` of component `"+Ee+"` has invalid PropType notation inside arrayOf.");var Ue=Y[Me];if(!Array.isArray(Ue)){var Ye=oe(Ue);return new _("Invalid "+_e+" `"+Be+"` of type "+("`"+Ye+"` supplied to `"+Ee+"`, expected an array."))}for(var Xe=0;Xe<Ue.length;Xe++){var Je=F(Ue,Xe,Ee,_e,Be+"["+Xe+"]",r);if(Je instanceof Error)return Je}return null}return D(te)}function I(){function F(te,Y,Me,Ee,_e){var Be=te[Y];if(!h(Be)){var Ue=oe(Be);return new _("Invalid "+Ee+" `"+_e+"` of type "+("`"+Ue+"` supplied to `"+Me+"`, expected a single ReactElement."))}return null}return D(F)}function H(){function F(te,Y,Me,Ee,_e){var Be=te[Y];if(!t.isValidElementType(Be)){var Ue=oe(Be);return new _("Invalid "+Ee+" `"+_e+"` of type "+("`"+Ue+"` supplied to `"+Me+"`, expected a single ReactElement type."))}return null}return D(F)}function X(F){function te(Y,Me,Ee,_e,Be){if(!(Y[Me]instanceof F)){var Ue=F.name||E,Ye=re(Y[Me]);return new _("Invalid "+_e+" `"+Be+"` of type "+("`"+Ye+"` supplied to `"+Ee+"`, expected ")+("instance of `"+Ue+"`."))}return null}return D(te)}function se(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),d;function te(Y,Me,Ee,_e,Be){for(var Ue=Y[Me],Ye=0;Ye<F.length;Ye++)if(R(Ue,F[Ye]))return null;var Xe=JSON.stringify(F,function(Ve,Re){var ut=he(Re);return ut==="symbol"?String(Re):Re});return new _("Invalid "+_e+" `"+Be+"` of value `"+String(Ue)+"` "+("supplied to `"+Ee+"`, expected one of "+Xe+"."))}return D(te)}function ce(F){function te(Y,Me,Ee,_e,Be){if(typeof F!="function")return new _("Property `"+Be+"` of component `"+Ee+"` has invalid PropType notation inside objectOf.");var Ue=Y[Me],Ye=oe(Ue);if(Ye!=="object")return new _("Invalid "+_e+" `"+Be+"` of type "+("`"+Ye+"` supplied to `"+Ee+"`, expected an object."));for(var Xe in Ue)if(a(Ue,Xe)){var Je=F(Ue,Xe,Ee,_e,Be+"."+Xe,r);if(Je instanceof Error)return Je}return null}return D(te)}function ie(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var te=0;te<F.length;te++){var Y=F[te];if(typeof Y!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+be(Y)+" at index "+te+"."),d}function Me(Ee,_e,Be,Ue,Ye){for(var Xe=[],Je=0;Je<F.length;Je++){var Ve=F[Je],Re=Ve(Ee,_e,Be,Ue,Ye,r);if(Re==null)return null;Re.data&&a(Re.data,"expectedType")&&Xe.push(Re.data.expectedType)}var ut=Xe.length>0?", expected one of type ["+Xe.join(", ")+"]":"";return new _("Invalid "+Ue+" `"+Ye+"` supplied to "+("`"+Be+"`"+ut+"."))}return D(Me)}function ue(){function F(te,Y,Me,Ee,_e){return ee(te[Y])?null:new _("Invalid "+Ee+" `"+_e+"` supplied to "+("`"+Me+"`, expected a ReactNode."))}return D(F)}function U(F,te,Y,Me,Ee){return new _((F||"React class")+": "+te+" type `"+Y+"."+Me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ee+"`.")}function le(F){function te(Y,Me,Ee,_e,Be){var Ue=Y[Me],Ye=oe(Ue);if(Ye!=="object")return new _("Invalid "+_e+" `"+Be+"` of type `"+Ye+"` "+("supplied to `"+Ee+"`, expected `object`."));for(var Xe in F){var Je=F[Xe];if(typeof Je!="function")return U(Ee,_e,Be,Xe,he(Je));var Ve=Je(Ue,Xe,Ee,_e,Be+"."+Xe,r);if(Ve)return Ve}return null}return D(te)}function Q(F){function te(Y,Me,Ee,_e,Be){var Ue=Y[Me],Ye=oe(Ue);if(Ye!=="object")return new _("Invalid "+_e+" `"+Be+"` of type `"+Ye+"` "+("supplied to `"+Ee+"`, expected `object`."));var Xe=n({},Y[Me],F);for(var Je in Xe){var Ve=F[Je];if(a(F,Je)&&typeof Ve!="function")return U(Ee,_e,Be,Je,he(Ve));if(!Ve)return new _("Invalid "+_e+" `"+Be+"` key `"+Je+"` supplied to `"+Ee+"`.\nBad object: "+JSON.stringify(Y[Me],null,"  ")+`
Valid keys: `+JSON.stringify(Object.keys(F),null,"  "));var Re=Ve(Ue,Je,Ee,_e,Be+"."+Je,r);if(Re)return Re}return null}return D(te)}function ee(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(ee);if(F===null||h(F))return!0;var te=T(F);if(te){var Y=te.call(F),Me;if(te!==F.entries){for(;!(Me=Y.next()).done;)if(!ee(Me.value))return!1}else for(;!(Me=Y.next()).done;){var Ee=Me.value;if(Ee&&!ee(Ee[1]))return!1}}else return!1;return!0;default:return!1}}function W(F,te){return F==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function oe(F){var te=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":W(te,F)?"symbol":te}function he(F){if(typeof F>"u"||F===null)return""+F;var te=oe(F);if(te==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return te}function be(F){var te=he(F);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function re(F){return!F.constructor||!F.constructor.name?E:F.constructor.name}return A.checkPropTypes=l,A.resetWarningCache=l.resetWarningCache,A.PropTypes=A,A},m2}var g2,CM;function dG(){if(CM)return g2;CM=1;var e=d2();function t(){}function n(){}return n.resetWarningCache=t,g2=function(){function r(u,d,h,y,v,x){if(x!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function a(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},g2}var OM;function hG(){if(OM)return I5.exports;OM=1;var e={};if(e.NODE_ENV!=="production"){var t=bM(),n=!0;I5.exports=fG()(t.isElement,n)}else I5.exports=dG()();return I5.exports}var pG=hG();const p=yl(pG);function MM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=MM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function At(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=MM(e))&&(r&&(r+=" "),r+=t);return r}function Wt(e,t,n=void 0){const r={};for(const a in e){const l=e[a];let u="",d=!0;for(let h=0;h<l.length;h+=1){const y=l[h];y&&(u+=(d===!0?"":" ")+t(y),d=!1,n&&n[y]&&(u+=" "+n[y]))}r[a]=u}return r}var V5={exports:{}},xr={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var RM;function mG(){if(RM)return xr;RM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function A(R){if(typeof R=="object"&&R!==null){var _=R.$$typeof;switch(_){case e:switch(R=R.type,R){case n:case a:case r:case h:case y:case T:return R;default:switch(R=R&&R.$$typeof,R){case u:case d:case x:case v:return R;case l:return R;default:return _}}case t:return _}}}return xr.ContextConsumer=l,xr.ContextProvider=u,xr.Element=e,xr.ForwardRef=d,xr.Fragment=n,xr.Lazy=x,xr.Memo=v,xr.Portal=t,xr.Profiler=a,xr.StrictMode=r,xr.Suspense=h,xr.SuspenseList=y,xr.isContextConsumer=function(R){return A(R)===l},xr.isContextProvider=function(R){return A(R)===u},xr.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},xr.isForwardRef=function(R){return A(R)===d},xr.isFragment=function(R){return A(R)===n},xr.isLazy=function(R){return A(R)===x},xr.isMemo=function(R){return A(R)===v},xr.isPortal=function(R){return A(R)===t},xr.isProfiler=function(R){return A(R)===a},xr.isStrictMode=function(R){return A(R)===r},xr.isSuspense=function(R){return A(R)===h},xr.isSuspenseList=function(R){return A(R)===y},xr.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===a||R===r||R===h||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===x||R.$$typeof===v||R.$$typeof===u||R.$$typeof===l||R.$$typeof===d||R.$$typeof===E||R.getModuleId!==void 0)},xr.typeOf=A,xr}var Sr={},_M;function gG(){if(_M)return Sr;_M=1;var e={};/**
 * @license React
 * react-is.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){function t(_){if(typeof _=="object"&&_!==null){var D=_.$$typeof;switch(D){case n:switch(_=_.type,_){case a:case u:case l:case v:case x:case A:return _;default:switch(_=_&&_.$$typeof,_){case h:case y:case E:case T:return _;case d:return _;default:return D}}case r:return D}}}var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),A=Symbol.for("react.view_transition"),R=Symbol.for("react.client.reference");Sr.ContextConsumer=d,Sr.ContextProvider=h,Sr.Element=n,Sr.ForwardRef=y,Sr.Fragment=a,Sr.Lazy=E,Sr.Memo=T,Sr.Portal=r,Sr.Profiler=u,Sr.StrictMode=l,Sr.Suspense=v,Sr.SuspenseList=x,Sr.isContextConsumer=function(_){return t(_)===d},Sr.isContextProvider=function(_){return t(_)===h},Sr.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},Sr.isForwardRef=function(_){return t(_)===y},Sr.isFragment=function(_){return t(_)===a},Sr.isLazy=function(_){return t(_)===E},Sr.isMemo=function(_){return t(_)===T},Sr.isPortal=function(_){return t(_)===r},Sr.isProfiler=function(_){return t(_)===u},Sr.isStrictMode=function(_){return t(_)===l},Sr.isSuspense=function(_){return t(_)===v},Sr.isSuspenseList=function(_){return t(_)===x},Sr.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===a||_===u||_===l||_===v||_===x||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===T||_.$$typeof===h||_.$$typeof===d||_.$$typeof===y||_.$$typeof===R||_.getModuleId!==void 0)},Sr.typeOf=t})(),Sr}var DM;function yG(){if(DM)return V5.exports;DM=1;var e={};return e.NODE_ENV==="production"?V5.exports=mG():V5.exports=gG(),V5.exports}var w0=yG();function Qu(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 NM(e){if(q.isValidElement(e)||w0.isValidElementType(e)||!Qu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=NM(e[n])}),t}function qa(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Qu(e)&&Qu(t)&&Object.keys(t).forEach(a=>{q.isValidElement(t[a])||w0.isValidElementType(t[a])?r[a]=t[a]:Qu(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Qu(e[a])?r[a]=qa(e[a],t[a],n):n.clone?r[a]=Qu(t[a])?NM(t[a]):t[a]:r[a]=t[a]}),r}function qv(e,t){return t?qa(e,t,{clone:!1}):e}var vG={};const Ld=vG.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};var bG={};function kM(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{var u,d;const l=/min-width:\s*([0-9.]+)/;return+(((u=r.match(l))==null?void 0:u[1])||0)-+(((d=a.match(l))==null?void 0:d[1])||0)});return n.length?n.reduce((r,a)=>{const l=t[a];return delete r[a],r[a]=l,r},{...t}):t}function xG(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function SG(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(bG.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,a]=n,l=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(l)}function EG(e){const t=(l,u)=>l.replace("@media",u?`@container ${u}`:"@container");function n(l,u){l.up=(...d)=>t(e.breakpoints.up(...d),u),l.down=(...d)=>t(e.breakpoints.down(...d),u),l.between=(...d)=>t(e.breakpoints.between(...d),u),l.only=(...d)=>t(e.breakpoints.only(...d),u),l.not=(...d)=>{const h=t(e.breakpoints.not(...d),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const r={},a=l=>(n(r,l),r);return n(a),{...e,containerQueries:a}}const B5={xs:0,sm:600,md:900,lg:1200,xl:1536},zM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${B5[e]}px)`},wG={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:B5[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function af(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const l=r.breakpoints||zM;return t.reduce((u,d,h)=>(u[l.up(l.keys[h])]=n(t[h]),u),{})}if(typeof t=="object"){const l=r.breakpoints||zM;return Object.keys(t).reduce((u,d)=>{if(xG(l.keys,d)){const h=SG(r.containerQueries?r:wG,d);h&&(u[h]=n(t[d],d))}else if(Object.keys(l.values||B5).includes(d)){const h=l.up(d);u[h]=n(t[d],d)}else{const h=d;u[h]=t[h]}return u},{})}return n(t)}function TG(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,a)=>{const l=e.up(a);return r[l]={},r},{}))||{}}function IM(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}var AG={};function P5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function j5(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=P5(e,n)||r,t&&(a=t(a,r,e)),a}function Ei(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,l=u=>{if(u[t]==null)return null;const d=u[t],h=u.theme,y=P5(h,r)||{};return af(u,d,x=>{let T=j5(y,a,x);return x===T&&typeof x=="string"&&(T=j5(y,a,`${t}${x==="default"?"":We(x)}`,x)),n===!1?T:{[n]:T}})};return l.propTypes=AG.NODE_ENV!=="production"?{[t]:Ld}:{},l.filterProps=[t],l}function CG(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var rg={};const OG={m:"margin",p:"padding"},MG={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},LM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RG=CG(e=>{if(e.length>2)if(LM[e])e=LM[e];else return[e];const[t,n]=e.split(""),r=OG[t],a=MG[n]||"";return Array.isArray(a)?a.map(l=>r+l):[r+a]}),$5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],U5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],_G=[...$5,...U5];function Gv(e,t,n,r){const a=P5(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:(rg.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${l}.`),typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l):Array.isArray(a)?l=>{if(typeof l=="string")return l;const u=Math.abs(l);rg.NODE_ENV!=="production"&&(Number.isInteger(u)?u>a.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${u} > ${a.length-1}, you need to add the missing values.`].join(`
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));const d=a[u];return l>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:(rg.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
`)),()=>{})}function y2(e){return Gv(e,"spacing",8,"spacing")}function Fv(e,t){return typeof t=="string"||t==null?t:e(t)}function DG(e,t){return n=>e.reduce((r,a)=>(r[a]=Fv(t,n),r),{})}function NG(e,t,n,r){if(!t.includes(n))return null;const a=RG(n),l=DG(a,r),u=e[n];return af(e,u,l)}function VM(e,t){const n=y2(e.theme);return Object.keys(e).map(r=>NG(e,t,r,n)).reduce(qv,{})}function di(e){return VM(e,$5)}di.propTypes=rg.NODE_ENV!=="production"?$5.reduce((e,t)=>(e[t]=Ld,e),{}):{},di.filterProps=$5;function hi(e){return VM(e,U5)}hi.propTypes=rg.NODE_ENV!=="production"?U5.reduce((e,t)=>(e[t]=Ld,e),{}):{},hi.filterProps=U5,rg.NODE_ENV!=="production"&&_G.reduce((e,t)=>(e[t]=Ld,e),{});var kG={};function H5(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(l=>{r[l]=a}),r),{}),n=r=>Object.keys(r).reduce((a,l)=>t[l]?qv(a,t[l](r)):a,{});return n.propTypes=kG.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}var zG={};function Kl(e){return typeof e!="number"?e:`${e}px solid`}function Ql(e,t){return Ei({prop:e,themeKey:"borders",transform:t})}const IG=Ql("border",Kl),LG=Ql("borderTop",Kl),VG=Ql("borderRight",Kl),BG=Ql("borderBottom",Kl),PG=Ql("borderLeft",Kl),jG=Ql("borderColor"),$G=Ql("borderTopColor"),UG=Ql("borderRightColor"),HG=Ql("borderBottomColor"),qG=Ql("borderLeftColor"),GG=Ql("outline",Kl),FG=Ql("outlineColor"),q5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gv(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fv(t,r)});return af(e,e.borderRadius,n)}return null};q5.propTypes=zG.NODE_ENV!=="production"?{borderRadius:Ld}:{},q5.filterProps=["borderRadius"],H5(IG,LG,VG,BG,PG,jG,$G,UG,HG,qG,q5,GG,FG);var v2={};const G5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gv(e.theme,"spacing",8,"gap"),n=r=>({gap:Fv(t,r)});return af(e,e.gap,n)}return null};G5.propTypes=v2.NODE_ENV!=="production"?{gap:Ld}:{},G5.filterProps=["gap"];const F5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gv(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fv(t,r)});return af(e,e.columnGap,n)}return null};F5.propTypes=v2.NODE_ENV!=="production"?{columnGap:Ld}:{},F5.filterProps=["columnGap"];const Y5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gv(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fv(t,r)});return af(e,e.rowGap,n)}return null};Y5.propTypes=v2.NODE_ENV!=="production"?{rowGap:Ld}:{},Y5.filterProps=["rowGap"];const YG=Ei({prop:"gridColumn"}),XG=Ei({prop:"gridRow"}),WG=Ei({prop:"gridAutoFlow"}),KG=Ei({prop:"gridAutoColumns"}),QG=Ei({prop:"gridAutoRows"}),ZG=Ei({prop:"gridTemplateColumns"}),JG=Ei({prop:"gridTemplateRows"}),eF=Ei({prop:"gridTemplateAreas"}),tF=Ei({prop:"gridArea"});H5(G5,F5,Y5,YG,XG,WG,KG,QG,ZG,JG,eF,tF);function ig(e,t){return t==="grey"?t:e}const nF=Ei({prop:"color",themeKey:"palette",transform:ig}),rF=Ei({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ig}),iF=Ei({prop:"backgroundColor",themeKey:"palette",transform:ig});H5(nF,rF,iF);function xl(e){return e<=1&&e!==0?`${e*100}%`:e}const aF=Ei({prop:"width",transform:xl}),b2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,l,u,d,h;const r=((u=(l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.values)==null?void 0:u[n])||B5[n];return r?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:xl(n)}};return af(e,e.maxWidth,t)}return null};b2.filterProps=["maxWidth"];const oF=Ei({prop:"minWidth",transform:xl}),lF=Ei({prop:"height",transform:xl}),sF=Ei({prop:"maxHeight",transform:xl}),uF=Ei({prop:"minHeight",transform:xl});Ei({prop:"size",cssProperty:"width",transform:xl}),Ei({prop:"size",cssProperty:"height",transform:xl});const cF=Ei({prop:"boxSizing"});H5(aF,b2,oF,lF,sF,uF,cF);const Yv={border:{themeKey:"borders",transform:Kl},borderTop:{themeKey:"borders",transform:Kl},borderRight:{themeKey:"borders",transform:Kl},borderBottom:{themeKey:"borders",transform:Kl},borderLeft:{themeKey:"borders",transform:Kl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:q5},color:{themeKey:"palette",transform:ig},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ig},backgroundColor:{themeKey:"palette",transform:ig},p:{style:hi},pt:{style:hi},pr:{style:hi},pb:{style:hi},pl:{style:hi},px:{style:hi},py:{style:hi},padding:{style:hi},paddingTop:{style:hi},paddingRight:{style:hi},paddingBottom:{style:hi},paddingLeft:{style:hi},paddingX:{style:hi},paddingY:{style:hi},paddingInline:{style:hi},paddingInlineStart:{style:hi},paddingInlineEnd:{style:hi},paddingBlock:{style:hi},paddingBlockStart:{style:hi},paddingBlockEnd:{style:hi},m:{style:di},mt:{style:di},mr:{style:di},mb:{style:di},ml:{style:di},mx:{style:di},my:{style:di},margin:{style:di},marginTop:{style:di},marginRight:{style:di},marginBottom:{style:di},marginLeft:{style:di},marginX:{style:di},marginY:{style:di},marginInline:{style:di},marginInlineStart:{style:di},marginInlineEnd:{style:di},marginBlock:{style:di},marginBlockStart:{style:di},marginBlockEnd:{style:di},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:G5},rowGap:{style:Y5},columnGap:{style:F5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xl},maxWidth:{style:b2},minWidth:{transform:xl},height:{transform:xl},maxHeight:{transform:xl},minHeight:{transform:xl},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 fF(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function dF(e,t){return typeof e=="function"?e(t):e}function hF(){function e(n,r,a,l){const u={[n]:r,theme:a},d=l[n];if(!d)return{[n]:r};const{cssProperty:h=n,themeKey:y,transform:v,style:x}=d;if(r==null)return null;if(y==="typography"&&r==="inherit")return{[n]:r};const T=P5(a,y)||{};return x?x(u):af(u,r,A=>{let R=j5(T,v,A);return A===R&&typeof A=="string"&&(R=j5(T,v,`${n}${A==="default"?"":We(A)}`,A)),h===!1?R:{[h]:R}})}function t(n){const{sx:r,theme:a={},nested:l}=n||{};if(!r)return null;const u=a.unstable_sxConfig??Yv;function d(h){let y=h;if(typeof h=="function")y=h(a);else if(typeof h!="object")return h;if(!y)return null;const v=TG(a.breakpoints),x=Object.keys(v);let T=v;return Object.keys(y).forEach(E=>{const A=dF(y[E],a);if(A!=null)if(typeof A=="object")if(u[E])T=qv(T,e(E,A,a,u));else{const R=af({theme:a},A,_=>({[E]:_}));fF(R,A)?T[E]=t({sx:A,theme:a,nested:!0}):T=qv(T,R)}else T=qv(T,e(E,A,a,u))}),!l&&a.modularCssLayers?{"@layer sx":kM(a,IM(x,T))}:kM(a,IM(x,T))}return Array.isArray(r)?r.map(d):d(r)}return t}const T0=hF();T0.filterProps=["sx"];const pF=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Yv;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function x2(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=pF(n);let l;return Array.isArray(t)?l=[r,...t]:typeof t=="function"?l=(...u)=>{const d=t(...u);return Qu(d)?{...r,...d}:r}:l={...r,...t},{...a,sx:l}}function X5(){return X5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X5.apply(null,arguments)}function mF(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 gF(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 yF=(function(){function e(n){var r=this;this._insertTag=function(a){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,l),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gF(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var l=mF(a);try{l.insertRule(r,l.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ga="-ms-",W5="-moz-",er="-webkit-",BM="comm",S2="rule",E2="decl",vF="@import",PM="@keyframes",bF="@layer",xF=Math.abs,K5=String.fromCharCode,SF=Object.assign;function EF(e,t){return Aa(e,0)^45?(((t<<2^Aa(e,0))<<2^Aa(e,1))<<2^Aa(e,2))<<2^Aa(e,3):0}function jM(e){return e.trim()}function wF(e,t){return(e=t.exec(e))?e[0]:e}function tr(e,t,n){return e.replace(t,n)}function w2(e,t){return e.indexOf(t)}function Aa(e,t){return e.charCodeAt(t)|0}function Xv(e,t,n){return e.slice(t,n)}function Zu(e){return e.length}function T2(e){return e.length}function Q5(e,t){return t.push(e),e}function TF(e,t){return e.map(t).join("")}var Z5=1,ag=1,$M=0,Ho=0,_i=0,og="";function J5(e,t,n,r,a,l,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:Z5,column:ag,length:u,return:""}}function Wv(e,t){return SF(J5("",null,null,"",null,null,0),e,{length:-e.length},t)}function AF(){return _i}function CF(){return _i=Ho>0?Aa(og,--Ho):0,ag--,_i===10&&(ag=1,Z5--),_i}function Sl(){return _i=Ho<$M?Aa(og,Ho++):0,ag++,_i===10&&(ag=1,Z5++),_i}function Ju(){return Aa(og,Ho)}function e3(){return Ho}function Kv(e,t){return Xv(og,e,t)}function Qv(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 UM(e){return Z5=ag=1,$M=Zu(og=e),Ho=0,[]}function HM(e){return og="",e}function t3(e){return jM(Kv(Ho-1,A2(e===91?e+2:e===40?e+1:e)))}function OF(e){for(;(_i=Ju())&&_i<33;)Sl();return Qv(e)>2||Qv(_i)>3?"":" "}function MF(e,t){for(;--t&&Sl()&&!(_i<48||_i>102||_i>57&&_i<65||_i>70&&_i<97););return Kv(e,e3()+(t<6&&Ju()==32&&Sl()==32))}function A2(e){for(;Sl();)switch(_i){case e:return Ho;case 34:case 39:e!==34&&e!==39&&A2(_i);break;case 40:e===41&&A2(e);break;case 92:Sl();break}return Ho}function RF(e,t){for(;Sl()&&e+_i!==57;)if(e+_i===84&&Ju()===47)break;return"/*"+Kv(t,Ho-1)+"*"+K5(e===47?e:Sl())}function _F(e){for(;!Qv(Ju());)Sl();return Kv(e,Ho)}function DF(e){return HM(n3("",null,null,null,[""],e=UM(e),0,[0],e))}function n3(e,t,n,r,a,l,u,d,h){for(var y=0,v=0,x=u,T=0,E=0,A=0,R=1,_=1,D=1,z=0,V="",P=a,I=l,H=r,X=V;_;)switch(A=z,z=Sl()){case 40:if(A!=108&&Aa(X,x-1)==58){w2(X+=tr(t3(z),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:X+=t3(z);break;case 9:case 10:case 13:case 32:X+=OF(A);break;case 92:X+=MF(e3()-1,7);continue;case 47:switch(Ju()){case 42:case 47:Q5(NF(RF(Sl(),e3()),t,n),h);break;default:X+="/"}break;case 123*R:d[y++]=Zu(X)*D;case 125*R:case 59:case 0:switch(z){case 0:case 125:_=0;case 59+v:D==-1&&(X=tr(X,/\f/g,"")),E>0&&Zu(X)-x&&Q5(E>32?GM(X+";",r,n,x-1):GM(tr(X," ","")+";",r,n,x-2),h);break;case 59:X+=";";default:if(Q5(H=qM(X,t,n,y,v,a,d,V,P=[],I=[],x),l),z===123)if(v===0)n3(X,t,H,H,P,l,x,d,I);else switch(T===99&&Aa(X,3)===110?100:T){case 100:case 108:case 109:case 115:n3(e,H,H,r&&Q5(qM(e,H,H,0,0,a,d,V,a,P=[],x),I),a,I,x,d,r?P:I);break;default:n3(X,H,H,H,[""],I,0,d,I)}}y=v=E=0,R=D=1,V=X="",x=u;break;case 58:x=1+Zu(X),E=A;default:if(R<1){if(z==123)--R;else if(z==125&&R++==0&&CF()==125)continue}switch(X+=K5(z),z*R){case 38:D=v>0?1:(X+="\f",-1);break;case 44:d[y++]=(Zu(X)-1)*D,D=1;break;case 64:Ju()===45&&(X+=t3(Sl())),T=Ju(),v=x=Zu(V=X+=_F(e3())),z++;break;case 45:A===45&&Zu(X)==2&&(R=0)}}return l}function qM(e,t,n,r,a,l,u,d,h,y,v){for(var x=a-1,T=a===0?l:[""],E=T2(T),A=0,R=0,_=0;A<r;++A)for(var D=0,z=Xv(e,x+1,x=xF(R=u[A])),V=e;D<E;++D)(V=jM(R>0?T[D]+" "+z:tr(z,/&\f/g,T[D])))&&(h[_++]=V);return J5(e,t,n,a===0?S2:d,h,y,v)}function NF(e,t,n){return J5(e,t,n,BM,K5(AF()),Xv(e,2,-2),0)}function GM(e,t,n,r){return J5(e,t,n,E2,Xv(e,0,r),Xv(e,r+1,-1),r)}function lg(e,t){for(var n="",r=T2(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function kF(e,t,n,r){switch(e.type){case bF:if(e.children.length)break;case vF:case E2:return e.return=e.return||e.value;case BM:return"";case PM:return e.return=e.value+"{"+lg(e.children,r)+"}";case S2:e.value=e.props.join(",")}return Zu(n=lg(e.children,r))?e.return=e.value+"{"+n+"}":""}function zF(e){var t=T2(e);return function(n,r,a,l){for(var u="",d=0;d<t;d++)u+=e[d](n,r,a,l)||"";return u}}function IF(e){return function(t){t.root||(t=t.return)&&e(t)}}function FM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var LF=function(t,n,r){for(var a=0,l=0;a=l,l=Ju(),a===38&&l===12&&(n[r]=1),!Qv(l);)Sl();return Kv(t,Ho)},VF=function(t,n){var r=-1,a=44;do switch(Qv(a)){case 0:a===38&&Ju()===12&&(n[r]=1),t[r]+=LF(Ho-1,n,r);break;case 2:t[r]+=t3(a);break;case 4:if(a===44){t[++r]=Ju()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=K5(a)}while(a=Sl());return t},BF=function(t,n){return HM(VF(UM(t),n))},YM=new WeakMap,PF=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!YM.get(r))&&!a){YM.set(t,!0);for(var l=[],u=BF(n,l),d=r.props,h=0,y=0;h<u.length;h++)for(var v=0;v<d.length;v++,y++)t.props[y]=l[h]?u[h].replace(/&\f/g,d[v]):d[v]+" "+u[h]}}},jF=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function XM(e,t){switch(EF(e,t)){case 5103:return er+"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 er+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return er+e+W5+e+Ga+e+e;case 6828:case 4268:return er+e+Ga+e+e;case 6165:return er+e+Ga+"flex-"+e+e;case 5187:return er+e+tr(e,/(\w+).+(:[^]+)/,er+"box-$1$2"+Ga+"flex-$1$2")+e;case 5443:return er+e+Ga+"flex-item-"+tr(e,/flex-|-self/,"")+e;case 4675:return er+e+Ga+"flex-line-pack"+tr(e,/align-content|flex-|-self/,"")+e;case 5548:return er+e+Ga+tr(e,"shrink","negative")+e;case 5292:return er+e+Ga+tr(e,"basis","preferred-size")+e;case 6060:return er+"box-"+tr(e,"-grow","")+er+e+Ga+tr(e,"grow","positive")+e;case 4554:return er+tr(e,/([^-])(transform)/g,"$1"+er+"$2")+e;case 6187:return tr(tr(tr(e,/(zoom-|grab)/,er+"$1"),/(image-set)/,er+"$1"),e,"")+e;case 5495:case 3959:return tr(e,/(image-set\([^]*)/,er+"$1$`$1");case 4968:return tr(tr(e,/(.+:)(flex-)?(.*)/,er+"box-pack:$3"+Ga+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+er+e+e;case 4095:case 3583:case 4068:case 2532:return tr(e,/(.+)-inline(.+)/,er+"$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(Zu(e)-1-t>6)switch(Aa(e,t+1)){case 109:if(Aa(e,t+4)!==45)break;case 102:return tr(e,/(.+:)(.+)-([^]+)/,"$1"+er+"$2-$3$1"+W5+(Aa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~w2(e,"stretch")?XM(tr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Aa(e,t+1)!==115)break;case 6444:switch(Aa(e,Zu(e)-3-(~w2(e,"!important")&&10))){case 107:return tr(e,":",":"+er)+e;case 101:return tr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+er+(Aa(e,14)===45?"inline-":"")+"box$3$1"+er+"$2$3$1"+Ga+"$2box$3")+e}break;case 5936:switch(Aa(e,t+11)){case 114:return er+e+Ga+tr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return er+e+Ga+tr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return er+e+Ga+tr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return er+e+Ga+e+e}return e}var $F=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case E2:t.return=XM(t.value,t.length);break;case PM:return lg([Wv(t,{value:tr(t.value,"@","@"+er)})],a);case S2:if(t.length)return TF(t.props,function(l){switch(wF(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lg([Wv(t,{props:[tr(l,/:(read-\w+)/,":"+W5+"$1")]})],a);case"::placeholder":return lg([Wv(t,{props:[tr(l,/:(plac\w+)/,":"+er+"input-$1")]}),Wv(t,{props:[tr(l,/:(plac\w+)/,":"+W5+"$1")]}),Wv(t,{props:[tr(l,/:(plac\w+)/,Ga+"input-$1")]})],a)}return""})}},UF=[$F],HF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(R){var _=R.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var a=t.stylisPlugins||UF,l={},u,d=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(R){for(var _=R.getAttribute("data-emotion").split(" "),D=1;D<_.length;D++)l[_[D]]=!0;d.push(R)});var h,y=[PF,jF];{var v,x=[kF,IF(function(R){v.insert(R)})],T=zF(y.concat(a,x)),E=function(_){return lg(DF(_),T)};h=function(_,D,z,V){v=z,E(_?_+"{"+D.styles+"}":D.styles),V&&(A.inserted[D.name]=!0)}}var A={key:n,sheet:new yF({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:h};return A.sheet.hydrate(d),A},r3={exports:{}},cr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var WM;function qF(){if(WM)return cr;WM=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function V(I){if(typeof I=="object"&&I!==null){var H=I.$$typeof;switch(H){case t:switch(I=I.type,I){case h:case y:case r:case l:case a:case x:return I;default:switch(I=I&&I.$$typeof,I){case d:case v:case A:case E:case u:return I;default:return H}}case n:return H}}}function P(I){return V(I)===y}return cr.AsyncMode=h,cr.ConcurrentMode=y,cr.ContextConsumer=d,cr.ContextProvider=u,cr.Element=t,cr.ForwardRef=v,cr.Fragment=r,cr.Lazy=A,cr.Memo=E,cr.Portal=n,cr.Profiler=l,cr.StrictMode=a,cr.Suspense=x,cr.isAsyncMode=function(I){return P(I)||V(I)===h},cr.isConcurrentMode=P,cr.isContextConsumer=function(I){return V(I)===d},cr.isContextProvider=function(I){return V(I)===u},cr.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},cr.isForwardRef=function(I){return V(I)===v},cr.isFragment=function(I){return V(I)===r},cr.isLazy=function(I){return V(I)===A},cr.isMemo=function(I){return V(I)===E},cr.isPortal=function(I){return V(I)===n},cr.isProfiler=function(I){return V(I)===l},cr.isStrictMode=function(I){return V(I)===a},cr.isSuspense=function(I){return V(I)===x},cr.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===y||I===l||I===a||I===x||I===T||typeof I=="object"&&I!==null&&(I.$$typeof===A||I.$$typeof===E||I.$$typeof===u||I.$$typeof===d||I.$$typeof===v||I.$$typeof===_||I.$$typeof===D||I.$$typeof===z||I.$$typeof===R)},cr.typeOf=V,cr}var fr={},KM;function GF(){if(KM)return fr;KM=1;var e={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,y=t?Symbol.for("react.async_mode"):60111,v=t?Symbol.for("react.concurrent_mode"):60111,x=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,E=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,D=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,V=t?Symbol.for("react.scope"):60119;function P(Re){return typeof Re=="string"||typeof Re=="function"||Re===a||Re===v||Re===u||Re===l||Re===T||Re===E||typeof Re=="object"&&Re!==null&&(Re.$$typeof===R||Re.$$typeof===A||Re.$$typeof===d||Re.$$typeof===h||Re.$$typeof===x||Re.$$typeof===D||Re.$$typeof===z||Re.$$typeof===V||Re.$$typeof===_)}function I(Re){if(typeof Re=="object"&&Re!==null){var ut=Re.$$typeof;switch(ut){case n:var Vt=Re.type;switch(Vt){case y:case v:case a:case u:case l:case T:return Vt;default:var Qt=Vt&&Vt.$$typeof;switch(Qt){case h:case x:case R:case A:case d:return Qt;default:return ut}}case r:return ut}}}var H=y,X=v,se=h,ce=d,ie=n,ue=x,U=a,le=R,Q=A,ee=r,W=u,oe=l,he=T,be=!1;function re(Re){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Re)||I(Re)===y}function F(Re){return I(Re)===v}function te(Re){return I(Re)===h}function Y(Re){return I(Re)===d}function Me(Re){return typeof Re=="object"&&Re!==null&&Re.$$typeof===n}function Ee(Re){return I(Re)===x}function _e(Re){return I(Re)===a}function Be(Re){return I(Re)===R}function Ue(Re){return I(Re)===A}function Ye(Re){return I(Re)===r}function Xe(Re){return I(Re)===u}function Je(Re){return I(Re)===l}function Ve(Re){return I(Re)===T}fr.AsyncMode=H,fr.ConcurrentMode=X,fr.ContextConsumer=se,fr.ContextProvider=ce,fr.Element=ie,fr.ForwardRef=ue,fr.Fragment=U,fr.Lazy=le,fr.Memo=Q,fr.Portal=ee,fr.Profiler=W,fr.StrictMode=oe,fr.Suspense=he,fr.isAsyncMode=re,fr.isConcurrentMode=F,fr.isContextConsumer=te,fr.isContextProvider=Y,fr.isElement=Me,fr.isForwardRef=Ee,fr.isFragment=_e,fr.isLazy=Be,fr.isMemo=Ue,fr.isPortal=Ye,fr.isProfiler=Xe,fr.isStrictMode=Je,fr.isSuspense=Ve,fr.isValidElementType=P,fr.typeOf=I})(),fr}var QM;function FF(){if(QM)return r3.exports;QM=1;var e={};return e.NODE_ENV==="production"?r3.exports=qF():r3.exports=GF(),r3.exports}var C2,ZM;function YF(){if(ZM)return C2;ZM=1;var e=FF(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=r,l[e.Memo]=a;function u(A){return e.isMemo(A)?a:l[A.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,T=Object.prototype;function E(A,R,_){if(typeof R!="string"){if(T){var D=x(R);D&&D!==T&&E(A,D,_)}var z=h(R);y&&(z=z.concat(y(R)));for(var V=u(A),P=u(R),I=0;I<z.length;++I){var H=z[I];if(!n[H]&&!(_&&_[H])&&!(P&&P[H])&&!(V&&V[H])){var X=v(R,H);try{d(A,H,X)}catch{}}}}return A}return C2=E,C2}YF();var XF=!0;function JM(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var O2=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||XF===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},M2=function(t,n,r){O2(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+a:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function WF(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var KF={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},QF=/[A-Z]|^ms/g,ZF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eR=function(t){return t.charCodeAt(1)===45},tR=function(t){return t!=null&&typeof t!="boolean"},R2=FM(function(e){return eR(e)?e:e.replace(QF,"-$&").toLowerCase()}),nR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZF,function(r,a,l){return ec={name:a,styles:l,next:ec},a})}return KF[t]!==1&&!eR(t)&&typeof n=="number"&&n!==0?n+"px":n};function Zv(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return ec={name:a.name,styles:a.styles,next:ec},a.name;var l=n;if(l.styles!==void 0){var u=l.next;if(u!==void 0)for(;u!==void 0;)ec={name:u.name,styles:u.styles,next:ec},u=u.next;var d=l.styles+";";return d}return JF(e,t,n)}case"function":{if(e!==void 0){var h=ec,y=n(e);return ec=h,Zv(e,t,y)}break}}var v=n;if(t==null)return v;var x=t[v];return x!==void 0?x:v}function JF(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Zv(e,t,n[a])+";";else for(var l in n){var u=n[l];if(typeof u!="object"){var d=u;t!=null&&t[d]!==void 0?r+=l+"{"+t[d]+"}":tR(d)&&(r+=R2(l)+":"+nR(l,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)tR(u[h])&&(r+=R2(l)+":"+nR(l,u[h])+";");else{var y=Zv(e,t,u);switch(l){case"animation":case"animationName":{r+=R2(l)+":"+y+";";break}default:r+=l+"{"+y+"}"}}}return r}var rR=/label:\s*([^\s;{]+)\s*(;|$)/g,ec;function Jv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";ec=void 0;var l=e[0];if(l==null||l.raw===void 0)r=!1,a+=Zv(n,t,l);else{var u=l;a+=u[0]}for(var d=1;d<e.length;d++)if(a+=Zv(n,t,e[d]),r){var h=l;a+=h[d]}rR.lastIndex=0;for(var y="",v;(v=rR.exec(a))!==null;)y+="-"+v[1];var x=WF(a)+y;return{name:x,styles:a,next:ec}}var eY=function(t){return t()},iR=oT.useInsertionEffect?oT.useInsertionEffect:!1,aR=iR||eY,oR=iR||q.useLayoutEffect,lR=q.createContext(typeof HTMLElement<"u"?HF({key:"css"}):null);lR.Provider;var _2=function(t){return q.forwardRef(function(n,r){var a=q.useContext(lR);return t(n,a,r)})},i3=q.createContext({}),D2={}.hasOwnProperty,N2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tY=function(t,n){var r={};for(var a in n)D2.call(n,a)&&(r[a]=n[a]);return r[N2]=t,r},nY=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return O2(n,r,a),aR(function(){return M2(n,r,a)}),null},rY=_2(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[N2],l=[r],u="";typeof e.className=="string"?u=JM(t.registered,l,e.className):e.className!=null&&(u=e.className+" ");var d=Jv(l,void 0,q.useContext(i3));u+=t.key+"-"+d.name;var h={};for(var y in e)D2.call(e,y)&&y!=="css"&&y!==N2&&(h[y]=e[y]);return h.className=u,n&&(h.ref=n),q.createElement(q.Fragment,null,q.createElement(nY,{cache:t,serialized:d,isStringTag:typeof a=="string"}),q.createElement(a,h))}),iY=rY,sR=function(t,n){var r=arguments;if(n==null||!D2.call(n,"css"))return q.createElement.apply(void 0,r);var a=r.length,l=new Array(a);l[0]=iY,l[1]=tY(t,n);for(var u=2;u<a;u++)l[u]=r[u];return q.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(sR||(sR={}));var aY=_2(function(e,t){var n=e.styles,r=Jv([n],void 0,q.useContext(i3)),a=q.useRef();return oR(function(){var l=t.key+"-global",u=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+l+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",l),u.hydrate([h])),a.current=[u,d],function(){u.flush()}},[t]),oR(function(){var l=a.current,u=l[0],d=l[1];if(d){l[1]=!1;return}if(r.next!==void 0&&M2(t,r.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function k2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Jv(t)}function eb(){var e=k2.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var oY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lY=FM(function(e){return oY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sY=lY,uY=function(t){return t!=="theme"},uR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sY:uY},cR=function(t,n,r){var a;if(n){var l=n.shouldForwardProp;a=t.__emotion_forwardProp&&l?function(u){return t.__emotion_forwardProp(u)&&l(u)}:l}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},cY=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return O2(n,r,a),aR(function(){return M2(n,r,a)}),null},fY=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,l,u;n!==void 0&&(l=n.label,u=n.target);var d=cR(t,n,r),h=d||uR(a),y=!h("as");return function(){var v=arguments,x=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&x.push("label:"+l+";"),v[0]==null||v[0].raw===void 0)x.push.apply(x,v);else{var T=v[0];x.push(T[0]);for(var E=v.length,A=1;A<E;A++)x.push(v[A],T[A])}var R=_2(function(_,D,z){var V=y&&_.as||a,P="",I=[],H=_;if(_.theme==null){H={};for(var X in _)H[X]=_[X];H.theme=q.useContext(i3)}typeof _.className=="string"?P=JM(D.registered,I,_.className):_.className!=null&&(P=_.className+" ");var se=Jv(x.concat(I),D.registered,H);P+=D.key+"-"+se.name,u!==void 0&&(P+=" "+u);var ce=y&&d===void 0?uR(V):h,ie={};for(var ue in _)y&&ue==="as"||ce(ue)&&(ie[ue]=_[ue]);return ie.className=P,z&&(ie.ref=z),q.createElement(q.Fragment,null,q.createElement(cY,{cache:D,serialized:se,isStringTag:typeof V=="string"}),q.createElement(V,ie))});return R.displayName=l!==void 0?l:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",R.defaultProps=t.defaultProps,R.__emotion_real=R,R.__emotion_base=a,R.__emotion_styles=x,R.__emotion_forwardProp=d,Object.defineProperty(R,"toString",{value:function(){return"."+u}}),R.withComponent=function(_,D){var z=e(_,X5({},n,D,{shouldForwardProp:cR(R,D,!0)}));return z.apply(void 0,x)},R}},dY=["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"],z2=fY.bind(null);dY.forEach(function(e){z2[e]=z2(e)});var hY={};function pY(e){return e==null||Object.keys(e).length===0}function fR(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(pY(a)?n:a):t;return L.jsx(aY,{styles:r})}hY.NODE_ENV!=="production"&&(fR.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});var mY={};function dR(e,t){const n=z2(e,t);return mY.NODE_ENV!=="production"?(...r)=>{const a=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):r.some(l=>l===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),n(...r)}:n}function gY(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const hR=[];function Vd(e){return hR[0]=e,Jv(hR)}const yY=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function vY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,l=yY(t),u=Object.keys(l);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n})`}function h(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-r/100}${n})`}function y(T,E){const A=u.indexOf(E);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n}) and (max-width:${(A!==-1&&typeof t[u[A]]=="number"?t[u[A]]:E)-r/100}${n})`}function v(T){return u.indexOf(T)+1<u.length?y(T,u[u.indexOf(T)+1]):d(T)}function x(T){const E=u.indexOf(T);return E===0?d(u[1]):E===u.length-1?h(u[E]):y(T,u[u.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:u,values:l,up:d,down:h,between:y,only:v,not:x,unit:n,...a}}const bY={borderRadius:4};var xY={};function pR(e=8,t=y2({spacing:e})){if(e.mui)return e;const n=(...r)=>(xY.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(l=>{const u=t(l);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function SY(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function a3(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:l={},...u}=e,d=vY(n),h=pR(a);let y=qa({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:h,shape:{...bY,...l}},u);return y=EG(y),y.applyStyles=SY,y=t.reduce((v,x)=>qa(v,x),y),y.unstable_sxConfig={...Yv,...u==null?void 0:u.unstable_sxConfig},y.unstable_sx=function(x){return T0({sx:x,theme:this})},y}function EY(e){return Object.keys(e).length===0}function wY(e=null){const t=q.useContext(i3);return!t||EY(t)?e:t}const TY=a3();function tb(e=TY){return wY(e)}var AY={};function I2(e){const t=Vd(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mR({styles:e,themeId:t,defaultTheme:n={}}){const r=tb(n),a=t&&r[t]||r;let l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(u=>I2(typeof u=="function"?u(a):u)):l=I2(l)),L.jsx(fR,{styles:l})}AY.NODE_ENV!=="production"&&(mR.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool]),themeId:p.string});function CY(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,l=dR("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(T0);return q.forwardRef(function(h,y){const v=tb(n),{className:x,component:T="div",...E}=x2(h);return L.jsx(l,{as:T,ref:y,className:At(x,a?a(r):r),theme:t&&v[t]||v,...E})})}const OY={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 Ft(e,t,n="Mui"){const r=OY[t];return r?`${n}-${r}`:`${mM.generate(e)}-${t}`}function Yt(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Ft(e,a,n)}),r}function gR(e,t=""){return e.displayName||e.name||t}function yR(e,t,n){const r=gR(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function MY(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return gR(e,"Component");if(typeof e=="object")switch(e.$$typeof){case w0.ForwardRef:return yR(e,e.render,"ForwardRef");case w0.Memo:return yR(e,e.type,"memo");default:return}}}function vR(e){const{variants:t,...n}=e,r={variants:t,style:Vd(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Vd(a.style))}),r}var bR={};const RY=a3();function L2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function A0(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function _Y(e){return e?(t,n)=>n[e]:null}function DY(e,t,n){e.theme=zY(e.theme)?n:e.theme[t]||e.theme}function o3(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>o3(e,a,n));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=n?A0(r.style,n):r.style;else{const{variants:l,...u}=r;a=n?A0(Vd(u),n):u}return xR(e,r.variants,[a],n)}return r!=null&&r.isProcessed?n?A0(Vd(r.style),n):r.style:n?A0(Vd(r),n):r}function xR(e,t,n=[],r=void 0){var l;let a;e:for(let u=0;u<t.length;u+=1){const d=t[u];if(typeof d.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!d.props(a))continue}else for(const h in d.props)if(e[h]!==d.props[h]&&((l=e.ownerState)==null?void 0:l[h])!==d.props[h])continue e;typeof d.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?A0(Vd(d.style(a)),r):d.style(a))):n.push(r?A0(Vd(d.style),r):d.style)}return n}function SR(e={}){const{themeId:t,defaultTheme:n=RY,rootShouldForwardProp:r=L2,slotShouldForwardProp:a=L2}=e;function l(d){DY(d,t,n)}return(d,h={})=>{gY(d,H=>H.filter(X=>X!==T0));const{name:y,slot:v,skipVariantsResolver:x,skipSx:T,overridesResolver:E=_Y(ER(v)),...A}=h,R=y&&y.startsWith("Mui")||v?"components":"custom",_=x!==void 0?x:v&&v!=="Root"&&v!=="root"||!1,D=T||!1;let z=L2;v==="Root"||v==="root"?z=r:v?z=a:IY(d)&&(z=void 0);const V=dR(d,{shouldForwardProp:z,label:kY(y,v),...A}),P=H=>{if(H.__emotion_real===H)return H;if(typeof H=="function")return function(se){return o3(se,H,se.theme.modularCssLayers?R:void 0)};if(Qu(H)){const X=vR(H);return function(ce){return X.variants?o3(ce,X,ce.theme.modularCssLayers?R:void 0):ce.theme.modularCssLayers?A0(X.style,R):X.style}}return H},I=(...H)=>{const X=[],se=H.map(P),ce=[];if(X.push(l),y&&E&&ce.push(function(le){var oe,he;const ee=(he=(oe=le.theme.components)==null?void 0:oe[y])==null?void 0:he.styleOverrides;if(!ee)return null;const W={};for(const be in ee)W[be]=o3(le,ee[be],le.theme.modularCssLayers?"theme":void 0);return E(le,W)}),y&&!_&&ce.push(function(le){var W,oe;const Q=le.theme,ee=(oe=(W=Q==null?void 0:Q.components)==null?void 0:W[y])==null?void 0:oe.variants;return ee?xR(le,ee,[],le.theme.modularCssLayers?"theme":void 0):null}),D||ce.push(T0),Array.isArray(se[0])){const U=se.shift(),le=new Array(X.length).fill(""),Q=new Array(ce.length).fill("");let ee;ee=[...le,...U,...Q],ee.raw=[...le,...U.raw,...Q],X.unshift(ee)}const ie=[...X,...se,...ce],ue=V(...ie);return d.muiName&&(ue.muiName=d.muiName),bR.NODE_ENV!=="production"&&(ue.displayName=NY(y,v,d)),ue};return V.withConfig&&(I.withConfig=V.withConfig),I}}function NY(e,t,n){return e?`${e}${We(t||"")}`:`Styled(${MY(n)})`}function kY(e,t){let n;return bR.NODE_ENV!=="production"&&e&&(n=`${e}-${ER(t||"Root")}`),n}function zY(e){for(const t in e)return!1;return!0}function IY(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ER(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const LY=SR();function nb(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const u=e[l],d=t[l];if(!d)r[l]=u||{};else if(!u)r[l]=d;else{r[l]={...d};for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){const y=h;r[l][y]=nb(u[y],d[y],n)}}}else l==="className"&&n&&t.className?r.className=At(e==null?void 0:e.className,t==null?void 0:t.className):l==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[l]===void 0&&(r[l]=e[l])}return r}function VY(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nb(t.components[n].defaultProps,r)}function BY({props:e,name:t,defaultTheme:n,themeId:r}){let a=tb(n);return r&&(a=a[r]||a),VY({theme:a,name:t,props:e})}const El=typeof window<"u"?q.useLayoutEffect:q.useEffect;function sg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Bd={};function V2(e,t=0,n=1){return Bd.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),sg(e,t,n)}function PY(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),Bd.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Pd(e){if(e.type)return e;if(e.charAt(0)==="#")return Pd(PY(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Bd.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:rf(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Bd.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:rf(10,a))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:a}}const jY=e=>{const t=Pd(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},rb=(e,t)=>{try{return jY(e)}catch{return t&&Bd.NODE_ENV!=="production"&&console.warn(t),e}};function l3(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function wR(e){e=Pd(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,l=r*Math.min(a,1-a),u=(y,v=(y+n/30)%12)=>a-l*Math.max(Math.min(v-3,9-v,1),-1);let d="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),l3({type:d,values:h})}function B2(e){e=Pd(e);let t=e.type==="hsl"||e.type==="hsla"?Pd(wR(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function TR(e,t){const n=B2(e),r=B2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s3(e,t){return e=Pd(e),t=V2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,l3(e)}function C0(e,t,n){try{return s3(e,t)}catch{return n&&Bd.NODE_ENV!=="production"&&console.warn(n),e}}function u3(e,t){if(e=Pd(e),t=V2(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l3(e)}function gr(e,t,n){try{return u3(e,t)}catch{return n&&Bd.NODE_ENV!=="production"&&console.warn(n),e}}function c3(e,t){if(e=Pd(e),t=V2(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l3(e)}function yr(e,t,n){try{return c3(e,t)}catch{return n&&Bd.NODE_ENV!=="production"&&console.warn(n),e}}function $Y(e,t=.15){return B2(e)>.5?u3(e,t):c3(e,t)}function f3(e,t,n){try{return $Y(e,t)}catch{return e}}var UY={};const HY="exact-prop: ​";function AR(e){return UY.NODE_ENV==="production"?e:{...e,[HY]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}var qY={};const GY=q.createContext();qY.NODE_ENV!=="production"&&(p.node,p.bool);const d3=()=>q.useContext(GY)??!1;var FY={};const YY=q.createContext(void 0);FY.NODE_ENV!=="production"&&(p.node,p.object);function XY(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?nb(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?nb(a,r,t.components.mergeClassNameAndStyle):r}function WY({props:e,name:t}){const n=q.useContext(YY);return XY({props:e,name:t,theme:{components:n}})}let CR=0;function KY(e){const[t,n]=q.useState(e),r=e||t;return q.useEffect(()=>{t==null&&(CR+=1,n(`mui-${CR}`))},[t]),r}const OR={...oT}.useId;function O0(e){if(OR!==void 0){const t=OR();return e??t}return KY(e)}const MR={theme:void 0};function QY(e){let t,n;return function(a){let l=t;return(l===void 0||a.theme!==n)&&(MR.theme=a.theme,l=vR(e(MR)),t=l,n=a.theme),l}}function ZY(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const RR=(e,t,n,r=[])=>{let a=e;t.forEach((l,u)=>{u===t.length-1?Array.isArray(a)?a[Number(l)]=n:a&&typeof a=="object"&&(a[l]=n):a&&typeof a=="object"&&(a[l]||(a[l]=r.includes(l)?[]:{}),a=a[l])})},JY=(e,t,n)=>{function r(a,l=[],u=[]){Object.entries(a).forEach(([d,h])=>{(!n||n&&!n([...l,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?r(h,[...l,d],Array.isArray(h)?[...u,d]:u):t([...l,d],h,u))})}r(e)},eX=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function P2(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},l={},u={};return JY(e,(d,h,y)=>{if((typeof h=="string"||typeof h=="number")&&(!r||!r(d,h))){const v=`--${n?`${n}-`:""}${d.join("-")}`,x=eX(d,h);Object.assign(a,{[v]:x}),RR(l,d,`var(${v})`,y),RR(u,d,`var(${v}, ${x})`,y)}},d=>d[0]==="vars"),{css:a,vars:l,varsWithDefaults:u}}function tX(e,t={}){const{getSelector:n=D,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:l}=t,{colorSchemes:u={},components:d,defaultColorScheme:h="light",...y}=e,{vars:v,css:x,varsWithDefaults:T}=P2(y,t);let E=T;const A={},{[h]:R,..._}=u;if(Object.entries(_||{}).forEach(([P,I])=>{const{vars:H,css:X,varsWithDefaults:se}=P2(I,t);E=qa(E,se),A[P]={css:X,vars:H}}),R){const{css:P,vars:I,varsWithDefaults:H}=P2(R,t);E=qa(E,H),A[h]={css:P,vars:I}}function D(P,I){var X,se;let H=a;if(a==="class"&&(H=".%s"),a==="data"&&(H="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(H=`[${a}="%s"]`),P){if(H==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((se=(X=u[P])==null?void 0:X.palette)==null?void 0:se.mode)||P})`]:{":root":I}};if(H)return e.defaultColorScheme===P?`:root, ${H.replace("%s",String(P))}`:H.replace("%s",String(P))}return":root"}return{vars:E,generateThemeVars:()=>{let P={...v};return Object.entries(A).forEach(([,{vars:I}])=>{P=qa(P,I)}),P},generateStyleSheets:()=>{var ce,ie;const P=[],I=e.defaultColorScheme||"light";function H(ue,U){Object.keys(U).length&&P.push(typeof ue=="string"?{[ue]:{...U}}:ue)}H(n(void 0,{...x}),x);const{[I]:X,...se}=A;if(X){const{css:ue}=X,U=(ie=(ce=u[I])==null?void 0:ce.palette)==null?void 0:ie.mode,le=!r&&U?{colorScheme:U,...ue}:{...ue};H(n(I,{...le}),le)}return Object.entries(se).forEach(([ue,{css:U}])=>{var ee,W;const le=(W=(ee=u[ue])==null?void 0:ee.palette)==null?void 0:W.mode,Q=!r&&le?{colorScheme:le,...U}:{...U};H(n(ue,{...Q}),Q)}),l&&P.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),P}}}var nX={};function rX(e){return function(n){return e==="media"?(nX.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ug(e,t){var n,r,a;return q.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:a.muiName))!==-1}const iX=(e,t)=>e.filter(n=>t.includes(n)),cg=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((a,l)=>{n((u,d)=>{l<=e.keys.length-1&&(l===0?Object.assign(u,d):u[e.up(e.keys[l])]=d)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:iX(e.keys,Object.keys(t))).forEach(l=>{if(e.keys.includes(l)){const u=t[l];u!==void 0&&n((d,h)=>{r===l?Object.assign(d,h):d[e.up(l)]=h},u)}}):(typeof t=="number"||typeof t=="string")&&n((a,l)=>{Object.assign(a,l)},t)};function h3(e){return`--Grid-${e}Spacing`}function p3(e){return`--Grid-parent-${e}Spacing`}const _R="--Grid-columns",fg="--Grid-parent-columns",aX=({theme:e,ownerState:t})=>{const n={};return cg(e.breakpoints,t.size,(r,a)=>{let l={};a==="grow"&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / var(${fg}) - (var(${fg}) - ${a}) * (var(${p3("column")}) / var(${fg})))`}),r(n,l)}),n},oX=({theme:e,ownerState:t})=>{const n={};return cg(e.breakpoints,t.offset,(r,a)=>{let l={};a==="auto"&&(l={marginLeft:"auto"}),typeof a=="number"&&(l={marginLeft:a===0?"0px":`calc(100% * ${a} / var(${fg}) + var(${p3("column")}) * ${a} / var(${fg}))`}),r(n,l)}),n},lX=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[_R]:12};return cg(e.breakpoints,t.columns,(r,a)=>{const l=a??12;r(n,{[_R]:l,"> *":{[fg]:l}})}),n},sX=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return cg(e.breakpoints,t.rowSpacing,(r,a)=>{var u;const l=typeof a=="string"?a:(u=e.spacing)==null?void 0:u.call(e,a);r(n,{[h3("row")]:l,"> *":{[p3("row")]:l}})}),n},uX=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return cg(e.breakpoints,t.columnSpacing,(r,a)=>{var u;const l=typeof a=="string"?a:(u=e.spacing)==null?void 0:u.call(e,a);r(n,{[h3("column")]:l,"> *":{[p3("column")]:l}})}),n},cX=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return cg(e.breakpoints,t.direction,(r,a)=>{r(n,{flexDirection:a})}),n},fX=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${h3("row")}) var(${h3("column")})`}}),dX=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},hX=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([a,l])=>{n(l)&&r.push(`spacing-${a}-${String(l)}`)}),r}return[]},pX=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];var mX={};const gX=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,DR=[];function yX(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),mX.NODE_ENV!=="production"&&n.forEach(r=>{DR.includes(r)||(DR.push(r),console.warn(`MUI Grid: ${gX(r)}
`))})}var vX={};const bX=a3(),xX=LY("div",{name:"MuiGrid",slot:"Root"});function SX(e){return BY({props:e,name:"MuiGrid",defaultTheme:bX})}function EX(e={}){const{createStyledComponent:t=xX,useThemeProps:n=SX,useTheme:r=tb,componentName:a="MuiGrid"}=e,l=(y,v)=>{const{container:x,direction:T,spacing:E,wrap:A,size:R}=y,_={root:["root",x&&"container",A!=="wrap"&&`wrap-xs-${String(A)}`,...pX(T),...dX(R),...x?hX(E,v.breakpoints.keys[0]):[]]};return Wt(_,D=>Ft(a,D),{})};function u(y,v,x=()=>!0){const T={};return y===null||(Array.isArray(y)?y.forEach((E,A)=>{E!==null&&x(E)&&v.keys[A]&&(T[v.keys[A]]=E)}):typeof y=="object"?Object.keys(y).forEach(E=>{const A=y[E];A!=null&&x(A)&&(T[E]=A)}):T[v.keys[0]]=y),T}const d=t(lX,uX,sX,aX,cX,fX,oX),h=q.forwardRef(function(v,x){const T=r(),E=n(v),A=x2(E);yX(A,T.breakpoints);const{className:R,children:_,columns:D=12,container:z=!1,component:V="div",direction:P="row",wrap:I="wrap",size:H={},offset:X={},spacing:se=0,rowSpacing:ce=se,columnSpacing:ie=se,unstable_level:ue=0,...U}=A,le=u(H,T.breakpoints,F=>F!==!1),Q=u(X,T.breakpoints),ee=v.columns??(ue?void 0:D),W=v.spacing??(ue?void 0:se),oe=v.rowSpacing??v.spacing??(ue?void 0:ce),he=v.columnSpacing??v.spacing??(ue?void 0:ie),be={...A,level:ue,columns:ee,container:z,direction:P,wrap:I,spacing:W,rowSpacing:oe,columnSpacing:he,size:le,offset:Q},re=l(be,T);return L.jsx(d,{ref:x,as:V,ownerState:be,className:At(re.root,R),...U,children:q.Children.map(_,F=>{var te;return q.isValidElement(F)&&ug(F,["Grid"])&&z&&F.props.container?q.cloneElement(F,{unstable_level:((te=F.props)==null?void 0:te.unstable_level)??ue+1}):F})})});return vX.NODE_ENV!=="production"&&(h.propTypes={children:p.node,className:p.string,columns:p.oneOfType([p.arrayOf(p.number),p.number,p.object]),columnSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),component:p.elementType,container:p.bool,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),offset:p.oneOfType([p.string,p.number,p.arrayOf(p.oneOfType([p.string,p.number])),p.object]),rowSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),size:p.oneOfType([p.string,p.bool,p.number,p.arrayOf(p.oneOfType([p.string,p.bool,p.number])),p.object]),spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),wrap:p.oneOf(["nowrap","wrap-reverse","wrap"])}),h.muiName="Grid",h}const ib={black:"#000",white:"#fff"},wX={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"},dg={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},hg={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ab={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},pg={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},mg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gg={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var m3={};function NR(){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:ib.white,default:ib.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 kR=NR();function zR(){return{text:{primary:ib.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:ib.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 j2=zR();function IR(e,t,n,r){const a=r.light||r,l=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=c3(e.main,a):t==="dark"&&(e.dark=u3(e.main,l)))}function LR(e,t,n,r,a){const l=a.light||a,u=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(l*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function TX(e="light"){return e==="dark"?{main:pg[200],light:pg[50],dark:pg[400]}:{main:pg[700],light:pg[400],dark:pg[800]}}function AX(e="light"){return e==="dark"?{main:dg[200],light:dg[50],dark:dg[400]}:{main:dg[500],light:dg[300],dark:dg[700]}}function CX(e="light"){return e==="dark"?{main:hg[500],light:hg[300],dark:hg[700]}:{main:hg[700],light:hg[400],dark:hg[800]}}function OX(e="light"){return e==="dark"?{main:mg[400],light:mg[300],dark:mg[700]}:{main:mg[700],light:mg[500],dark:mg[900]}}function MX(e="light"){return e==="dark"?{main:gg[400],light:gg[300],dark:gg[700]}:{main:gg[800],light:gg[500],dark:gg[900]}}function RX(e="light"){return e==="dark"?{main:ab[400],light:ab[300],dark:ab[700]}:{main:"#ed6c02",light:ab[500],dark:ab[900]}}function _X(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function $2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...l}=e,u=e.primary||TX(t),d=e.secondary||AX(t),h=e.error||CX(t),y=e.info||OX(t),v=e.success||MX(t),x=e.warning||RX(t);function T(_){if(a)return _X(_);const D=TR(_,j2.text.primary)>=n?j2.text.primary:kR.text.primary;if(m3.NODE_ENV!=="production"){const z=TR(_,D);z<3&&console.error([`MUI: The contrast ratio of ${z}:1 for ${D} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
`))}return D}const E=({color:_,name:D,mainShade:z=500,lightShade:V=300,darkShade:P=700})=>{if(_={..._},!_.main&&_[z]&&(_.main=_[z]),!_.hasOwnProperty("main"))throw new Error(m3.NODE_ENV!=="production"?`MUI: The color${D?` (${D})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${z}\` property.`:rf(11,D?` (${D})`:"",z));if(typeof _.main!="string")throw new Error(m3.NODE_ENV!=="production"?`MUI: The color${D?` (${D})`:""} provided to augmentColor(color) is invalid.
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.

Did you intend to use one of the following approaches?

import { green } from "@mui/material/colors";

const theme1 = createTheme({ palette: {
  primary: green,
} });

const theme2 = createTheme({ palette: {
  primary: { main: green[500] },
} });`:rf(12,D?` (${D})`:"",JSON.stringify(_.main)));return a?(LR(a,_,"light",V,r),LR(a,_,"dark",P,r)):(IR(_,"light",V,r),IR(_,"dark",P,r)),_.contrastText||(_.contrastText=T(_.main)),_};let A;return t==="light"?A=NR():t==="dark"&&(A=zR()),m3.NODE_ENV!=="production"&&(A||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qa({common:{...ib},mode:t,primary:E({color:u,name:"primary"}),secondary:E({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:h,name:"error"}),warning:E({color:x,name:"warning"}),info:E({color:y,name:"info"}),success:E({color:v,name:"success"}),grey:wX,contrastThreshold:n,getContrastText:T,augmentColor:E,tonalOffset:r,...A},l)}function DX(e){const t={};return Object.entries(e).forEach(r=>{const[a,l]=r;typeof l=="object"&&(t[a]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function NX(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}var kX={};function zX(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},BR='"Roboto", "Helvetica", "Arial", sans-serif';function IX(e,t){const{fontFamily:n=BR,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:y,pxToRem:v,...x}=typeof t=="function"?t(e):t;kX.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const T=r/14,E=v||(_=>`${_/h*T}rem`),A=(_,D,z,V,P)=>({fontFamily:n,fontWeight:_,fontSize:E(D),lineHeight:z,...n===BR?{letterSpacing:`${zX(V/D)}em`}:{},...P,...y}),R={h1:A(a,96,1.167,-1.5),h2:A(a,60,1.2,-.5),h3:A(l,48,1.167,0),h4:A(l,34,1.235,.25),h5:A(l,24,1.334,0),h6:A(u,20,1.6,.15),subtitle1:A(l,16,1.75,.15),subtitle2:A(u,14,1.57,.1),body1:A(l,16,1.5,.15),body2:A(l,14,1.43,.15),button:A(u,14,1.75,.4,VR),caption:A(l,12,1.66,.4),overline:A(l,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qa({htmlFontSize:h,pxToRem:E,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:d,...R},x,{clone:!1})}const LX=.2,VX=.14,BX=.12;function Gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${LX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${VX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BX})`].join(",")}const PX=["none",Gr(0,2,1,-1,0,1,1,0,0,1,3,0),Gr(0,3,1,-2,0,2,2,0,0,1,5,0),Gr(0,3,3,-2,0,3,4,0,0,1,8,0),Gr(0,2,4,-1,0,4,5,0,0,1,10,0),Gr(0,3,5,-1,0,5,8,0,0,1,14,0),Gr(0,3,5,-1,0,6,10,0,0,1,18,0),Gr(0,4,5,-2,0,7,10,1,0,2,16,1),Gr(0,5,5,-3,0,8,10,1,0,3,14,2),Gr(0,5,6,-3,0,9,12,1,0,3,16,2),Gr(0,6,6,-3,0,10,14,1,0,4,18,3),Gr(0,6,7,-4,0,11,15,1,0,4,20,3),Gr(0,7,8,-4,0,12,17,2,0,5,22,4),Gr(0,7,8,-4,0,13,19,2,0,5,24,4),Gr(0,7,9,-4,0,14,21,2,0,5,26,4),Gr(0,8,9,-5,0,15,22,2,0,6,28,5),Gr(0,8,10,-5,0,16,24,2,0,6,30,5),Gr(0,8,11,-5,0,17,26,2,0,6,32,5),Gr(0,9,11,-5,0,18,28,2,0,7,34,6),Gr(0,9,12,-6,0,19,29,2,0,7,36,6),Gr(0,10,13,-6,0,20,31,3,0,8,38,7),Gr(0,10,13,-6,0,21,33,3,0,8,40,7),Gr(0,10,14,-6,0,22,35,3,0,8,42,7),Gr(0,11,14,-7,0,23,36,3,0,9,44,8),Gr(0,11,15,-7,0,24,38,3,0,9,46,8)];var jX={};const $X={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)"},UX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PR(e){return`${Math.round(e)}ms`}function HX(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function qX(e){const t={...$X,...e.easing},n={...UX,...e.duration};return{getAutoHeightDuration:HX,create:(a=["all"],l={})=>{const{duration:u=n.standard,easing:d=t.easeInOut,delay:h=0,...y}=l;if(jX.NODE_ENV!=="production"){const v=T=>typeof T=="string",x=T=>!Number.isNaN(parseFloat(T));!v(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!x(u)&&!v(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),v(d)||console.error('MUI: Argument "easing" must be a string.'),!x(h)&&!v(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof l!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
`)),Object.keys(y).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(y).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(v=>`${v} ${typeof u=="string"?u:PR(u)} ${d} ${typeof h=="string"?h:PR(h)}`).join(",")},...e,easing:t,duration:n}}const GX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function FX(e){return Qu(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function jR(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let l=0;l<a.length;l++){const[u,d]=a[l];!FX(d)||u.startsWith("unstable_")?delete r[u]:Qu(d)&&(r[u]={...d},n(r[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

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

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

export default theme;`}var U2={};function $R(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const YX=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function XX(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:s3(t,YX(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$R(n)})`:c3(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$R(n)})`:u3(t,n)}})}function H2(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:l={},transitions:u={},typography:d={},shape:h,colorSpace:y,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(U2.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":rf(20));const x=$2({...l,colorSpace:y}),T=a3(e);let E=qa(T,{mixins:NX(T.breakpoints,r),palette:x,shadows:PX.slice(),typography:IX(x,d),transitions:qX(u),zIndex:{...GX}});if(E=qa(E,v),E=t.reduce((A,R)=>qa(A,R),E),U2.NODE_ENV!=="production"){const A=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],R=(_,D)=>{let z;for(z in _){const V=_[z];if(A.includes(z)&&Object.keys(V).length>0){if(U2.NODE_ENV!=="production"){const P=Ft("",z);console.error([`MUI: The \`${D}\` component increases the CSS specificity of the \`${z}\` internal state.`,"You can not override it like this: ",JSON.stringify(_,null,2),"",`Instead, you need to use the '&.${P}' syntax:`,JSON.stringify({root:{[`&.${P}`]:V}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}_[z]={}}}};Object.keys(E.components).forEach(_=>{const D=E.components[_].styleOverrides;D&&_.startsWith("Mui")&&R(D,_)})}return E.unstable_sxConfig={...Yv,...v==null?void 0:v.unstable_sxConfig},E.unstable_sx=function(R){return T0({sx:R,theme:this})},E.toRuntimeSource=jR,XX(E),E}function q2(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 WX=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=q2(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function UR(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function HR(e){return e==="dark"?WX:[]}function KX(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...l}=e,u=$2({...t,colorSpace:a});return{palette:u,opacity:{...UR(u.mode),...n},overlays:r||HR(u.mode),...l}}function QX(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const ZX=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],JX=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let l=a;if(a==="class"&&(l=".%s"),a==="data"&&(l="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(l=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return ZX(e.cssVarPrefix).forEach(d=>{u[d]=n[d],delete n[d]}),l==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:u}}:l?{[l.replace("%s",t)]:u,[`${r}, ${l.replace("%s",t)}`]:n}:{[r]:{...n,...u}}}if(l&&l!=="media")return`${r}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(l)return l.replace("%s",String(t))}return r};var eW={};function tW(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ge(e,t,n){!e[t]&&n&&(e[t]=n)}function ob(e){return typeof e!="string"||!e.startsWith("hsl")?e:wR(e)}function of(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rb(ob(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function nW(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tc=e=>{try{return e()}catch{}},rW=(e="mui")=>ZY(e);function G2(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const l=a==="dark"?"dark":"light";if(!r){t[a]=KX({...n,palette:{mode:l,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:u,...d}=H2({...r,palette:{mode:l,...n==null?void 0:n.palette},colorSpace:e});return t[a]={...n,palette:u,opacity:{...UR(l),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||HR(l)},d}function iW(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:l="mui",nativeColor:u=!1,shouldSkipGeneratingVar:d=QX,colorSchemeSelector:h=n.light&&n.dark?"media":void 0,rootSelector:y=":root",...v}=e,x=Object.keys(n)[0],T=r||(n.light&&x!=="light"?"light":x),E=rW(l),{[T]:A,light:R,dark:_,...D}=n,z={...D};let V=A;if((T==="dark"&&!("dark"in n)||T==="light"&&!("light"in n))&&(V=!0),!V)throw new Error(eW.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${T}\` option is either missing or invalid.`:rf(21,T));let P;u&&(P="oklch");const I=G2(P,z,V,v,T);R&&!z.light&&G2(P,z,R,void 0,"light"),_&&!z.dark&&G2(P,z,_,void 0,"dark");let H={defaultColorScheme:T,...I,cssVarPrefix:l,colorSchemeSelector:h,rootSelector:y,getCssVar:E,colorSchemes:z,font:{...DX(I.typography),...I.font},spacing:nW(v.spacing)};Object.keys(H.colorSchemes).forEach(ue=>{const U=H.colorSchemes[ue].palette,le=ee=>{const W=ee.split("-"),oe=W[1],he=W[2];return E(ee,U[oe][he])};U.mode==="light"&&(Ge(U.common,"background","#fff"),Ge(U.common,"onBackground","#000")),U.mode==="dark"&&(Ge(U.common,"background","#000"),Ge(U.common,"onBackground","#fff"));function Q(ee,W,oe){if(P){let he;return ee===C0&&(he=`transparent ${((1-oe)*100).toFixed(0)}%`),ee===gr&&(he=`#000 ${(oe*100).toFixed(0)}%`),ee===yr&&(he=`#fff ${(oe*100).toFixed(0)}%`),`color-mix(in ${P}, ${W}, ${he})`}return ee(W,oe)}if(tW(U,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),U.mode==="light"){Ge(U.Alert,"errorColor",Q(gr,u?E("palette-error-light"):U.error.light,.6)),Ge(U.Alert,"infoColor",Q(gr,u?E("palette-info-light"):U.info.light,.6)),Ge(U.Alert,"successColor",Q(gr,u?E("palette-success-light"):U.success.light,.6)),Ge(U.Alert,"warningColor",Q(gr,u?E("palette-warning-light"):U.warning.light,.6)),Ge(U.Alert,"errorFilledBg",le("palette-error-main")),Ge(U.Alert,"infoFilledBg",le("palette-info-main")),Ge(U.Alert,"successFilledBg",le("palette-success-main")),Ge(U.Alert,"warningFilledBg",le("palette-warning-main")),Ge(U.Alert,"errorFilledColor",tc(()=>U.getContrastText(U.error.main))),Ge(U.Alert,"infoFilledColor",tc(()=>U.getContrastText(U.info.main))),Ge(U.Alert,"successFilledColor",tc(()=>U.getContrastText(U.success.main))),Ge(U.Alert,"warningFilledColor",tc(()=>U.getContrastText(U.warning.main))),Ge(U.Alert,"errorStandardBg",Q(yr,u?E("palette-error-light"):U.error.light,.9)),Ge(U.Alert,"infoStandardBg",Q(yr,u?E("palette-info-light"):U.info.light,.9)),Ge(U.Alert,"successStandardBg",Q(yr,u?E("palette-success-light"):U.success.light,.9)),Ge(U.Alert,"warningStandardBg",Q(yr,u?E("palette-warning-light"):U.warning.light,.9)),Ge(U.Alert,"errorIconColor",le("palette-error-main")),Ge(U.Alert,"infoIconColor",le("palette-info-main")),Ge(U.Alert,"successIconColor",le("palette-success-main")),Ge(U.Alert,"warningIconColor",le("palette-warning-main")),Ge(U.AppBar,"defaultBg",le("palette-grey-100")),Ge(U.Avatar,"defaultBg",le("palette-grey-400")),Ge(U.Button,"inheritContainedBg",le("palette-grey-300")),Ge(U.Button,"inheritContainedHoverBg",le("palette-grey-A100")),Ge(U.Chip,"defaultBorder",le("palette-grey-400")),Ge(U.Chip,"defaultAvatarColor",le("palette-grey-700")),Ge(U.Chip,"defaultIconColor",le("palette-grey-700")),Ge(U.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ge(U.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ge(U.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ge(U.LinearProgress,"primaryBg",Q(yr,u?E("palette-primary-main"):U.primary.main,.62)),Ge(U.LinearProgress,"secondaryBg",Q(yr,u?E("palette-secondary-main"):U.secondary.main,.62)),Ge(U.LinearProgress,"errorBg",Q(yr,u?E("palette-error-main"):U.error.main,.62)),Ge(U.LinearProgress,"infoBg",Q(yr,u?E("palette-info-main"):U.info.main,.62)),Ge(U.LinearProgress,"successBg",Q(yr,u?E("palette-success-main"):U.success.main,.62)),Ge(U.LinearProgress,"warningBg",Q(yr,u?E("palette-warning-light"):U.warning.main,.62)),Ge(U.Skeleton,"bg",P?Q(C0,u?E("palette-text-primary"):U.text.primary,.11):`rgba(${le("palette-text-primaryChannel")} / 0.11)`),Ge(U.Slider,"primaryTrack",Q(yr,u?E("palette-primary-main"):U.primary.main,.62)),Ge(U.Slider,"secondaryTrack",Q(yr,u?E("palette-secondary-main"):U.secondary.main,.62)),Ge(U.Slider,"errorTrack",Q(yr,u?E("palette-error-main"):U.error.main,.62)),Ge(U.Slider,"infoTrack",Q(yr,u?E("palette-info-main"):U.info.main,.62)),Ge(U.Slider,"successTrack",Q(yr,u?E("palette-success-main"):U.success.main,.62)),Ge(U.Slider,"warningTrack",Q(yr,u?E("palette-warning-main"):U.warning.main,.62));const ee=P?Q(gr,u?E("palette-background-default"):U.background.default,.6825):f3(U.background.default,.8);Ge(U.SnackbarContent,"bg",ee),Ge(U.SnackbarContent,"color",tc(()=>P?j2.text.primary:U.getContrastText(ee))),Ge(U.SpeedDialAction,"fabHoverBg",f3(U.background.paper,.15)),Ge(U.StepConnector,"border",le("palette-grey-400")),Ge(U.StepContent,"border",le("palette-grey-400")),Ge(U.Switch,"defaultColor",le("palette-common-white")),Ge(U.Switch,"defaultDisabledColor",le("palette-grey-100")),Ge(U.Switch,"primaryDisabledColor",Q(yr,u?E("palette-primary-main"):U.primary.main,.62)),Ge(U.Switch,"secondaryDisabledColor",Q(yr,u?E("palette-secondary-main"):U.secondary.main,.62)),Ge(U.Switch,"errorDisabledColor",Q(yr,u?E("palette-error-main"):U.error.main,.62)),Ge(U.Switch,"infoDisabledColor",Q(yr,u?E("palette-info-main"):U.info.main,.62)),Ge(U.Switch,"successDisabledColor",Q(yr,u?E("palette-success-main"):U.success.main,.62)),Ge(U.Switch,"warningDisabledColor",Q(yr,u?E("palette-warning-main"):U.warning.main,.62)),Ge(U.TableCell,"border",Q(yr,C0(u?E("palette-divider"):U.divider,1),.88)),Ge(U.Tooltip,"bg",Q(C0,u?E("palette-grey-700"):U.grey[700],.92))}if(U.mode==="dark"){Ge(U.Alert,"errorColor",Q(yr,u?E("palette-error-light"):U.error.light,.6)),Ge(U.Alert,"infoColor",Q(yr,u?E("palette-info-light"):U.info.light,.6)),Ge(U.Alert,"successColor",Q(yr,u?E("palette-success-light"):U.success.light,.6)),Ge(U.Alert,"warningColor",Q(yr,u?E("palette-warning-light"):U.warning.light,.6)),Ge(U.Alert,"errorFilledBg",le("palette-error-dark")),Ge(U.Alert,"infoFilledBg",le("palette-info-dark")),Ge(U.Alert,"successFilledBg",le("palette-success-dark")),Ge(U.Alert,"warningFilledBg",le("palette-warning-dark")),Ge(U.Alert,"errorFilledColor",tc(()=>U.getContrastText(U.error.dark))),Ge(U.Alert,"infoFilledColor",tc(()=>U.getContrastText(U.info.dark))),Ge(U.Alert,"successFilledColor",tc(()=>U.getContrastText(U.success.dark))),Ge(U.Alert,"warningFilledColor",tc(()=>U.getContrastText(U.warning.dark))),Ge(U.Alert,"errorStandardBg",Q(gr,u?E("palette-error-light"):U.error.light,.9)),Ge(U.Alert,"infoStandardBg",Q(gr,u?E("palette-info-light"):U.info.light,.9)),Ge(U.Alert,"successStandardBg",Q(gr,u?E("palette-success-light"):U.success.light,.9)),Ge(U.Alert,"warningStandardBg",Q(gr,u?E("palette-warning-light"):U.warning.light,.9)),Ge(U.Alert,"errorIconColor",le("palette-error-main")),Ge(U.Alert,"infoIconColor",le("palette-info-main")),Ge(U.Alert,"successIconColor",le("palette-success-main")),Ge(U.Alert,"warningIconColor",le("palette-warning-main")),Ge(U.AppBar,"defaultBg",le("palette-grey-900")),Ge(U.AppBar,"darkBg",le("palette-background-paper")),Ge(U.AppBar,"darkColor",le("palette-text-primary")),Ge(U.Avatar,"defaultBg",le("palette-grey-600")),Ge(U.Button,"inheritContainedBg",le("palette-grey-800")),Ge(U.Button,"inheritContainedHoverBg",le("palette-grey-700")),Ge(U.Chip,"defaultBorder",le("palette-grey-700")),Ge(U.Chip,"defaultAvatarColor",le("palette-grey-300")),Ge(U.Chip,"defaultIconColor",le("palette-grey-300")),Ge(U.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ge(U.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ge(U.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ge(U.LinearProgress,"primaryBg",Q(gr,u?E("palette-primary-main"):U.primary.main,.5)),Ge(U.LinearProgress,"secondaryBg",Q(gr,u?E("palette-secondary-main"):U.secondary.main,.5)),Ge(U.LinearProgress,"errorBg",Q(gr,u?E("palette-error-main"):U.error.main,.5)),Ge(U.LinearProgress,"infoBg",Q(gr,u?E("palette-info-main"):U.info.main,.5)),Ge(U.LinearProgress,"successBg",Q(gr,u?E("palette-success-main"):U.success.main,.5)),Ge(U.LinearProgress,"warningBg",Q(gr,u?E("palette-warning-main"):U.warning.main,.5)),Ge(U.Skeleton,"bg",P?Q(C0,u?E("palette-text-primary"):U.text.primary,.13):`rgba(${le("palette-text-primaryChannel")} / 0.13)`),Ge(U.Slider,"primaryTrack",Q(gr,u?E("palette-primary-main"):U.primary.main,.5)),Ge(U.Slider,"secondaryTrack",Q(gr,u?E("palette-secondary-main"):U.secondary.main,.5)),Ge(U.Slider,"errorTrack",Q(gr,u?E("palette-error-main"):U.error.main,.5)),Ge(U.Slider,"infoTrack",Q(gr,u?E("palette-info-main"):U.info.main,.5)),Ge(U.Slider,"successTrack",Q(gr,u?E("palette-success-main"):U.success.main,.5)),Ge(U.Slider,"warningTrack",Q(gr,u?E("palette-warning-light"):U.warning.main,.5));const ee=P?Q(yr,u?E("palette-background-default"):U.background.default,.985):f3(U.background.default,.98);Ge(U.SnackbarContent,"bg",ee),Ge(U.SnackbarContent,"color",tc(()=>P?kR.text.primary:U.getContrastText(ee))),Ge(U.SpeedDialAction,"fabHoverBg",f3(U.background.paper,.15)),Ge(U.StepConnector,"border",le("palette-grey-600")),Ge(U.StepContent,"border",le("palette-grey-600")),Ge(U.Switch,"defaultColor",le("palette-grey-300")),Ge(U.Switch,"defaultDisabledColor",le("palette-grey-600")),Ge(U.Switch,"primaryDisabledColor",Q(gr,u?E("palette-primary-main"):U.primary.main,.55)),Ge(U.Switch,"secondaryDisabledColor",Q(gr,u?E("palette-secondary-main"):U.secondary.main,.55)),Ge(U.Switch,"errorDisabledColor",Q(gr,u?E("palette-error-main"):U.error.main,.55)),Ge(U.Switch,"infoDisabledColor",Q(gr,u?E("palette-info-main"):U.info.main,.55)),Ge(U.Switch,"successDisabledColor",Q(gr,u?E("palette-success-main"):U.success.main,.55)),Ge(U.Switch,"warningDisabledColor",Q(gr,u?E("palette-warning-light"):U.warning.main,.55)),Ge(U.TableCell,"border",Q(gr,C0(u?E("palette-divider"):U.divider,1),.68)),Ge(U.Tooltip,"bg",Q(C0,u?E("palette-grey-700"):U.grey[700],.92))}u||(of(U.background,"default"),of(U.background,"paper"),of(U.common,"background"),of(U.common,"onBackground"),of(U,"divider")),Object.keys(U).forEach(ee=>{const W=U[ee];ee!=="tonalOffset"&&!u&&W&&typeof W=="object"&&(W.main&&Ge(U[ee],"mainChannel",rb(ob(W.main))),W.light&&Ge(U[ee],"lightChannel",rb(ob(W.light))),W.dark&&Ge(U[ee],"darkChannel",rb(ob(W.dark))),W.contrastText&&Ge(U[ee],"contrastTextChannel",rb(ob(W.contrastText))),ee==="text"&&(of(U[ee],"primary"),of(U[ee],"secondary")),ee==="action"&&(W.active&&of(U[ee],"active"),W.selected&&of(U[ee],"selected")))})}),H=t.reduce((ue,U)=>qa(ue,U),H);const X={prefix:l,disableCssColorScheme:a,shouldSkipGeneratingVar:d,getSelector:JX(H),enableContrastVars:u},{vars:se,generateThemeVars:ce,generateStyleSheets:ie}=tX(H,X);return H.vars=se,Object.entries(H.colorSchemes[H.defaultColorScheme]).forEach(([ue,U])=>{H[ue]=U}),H.generateThemeVars=ce,H.generateStyleSheets=ie,H.generateSpacing=function(){return pR(v.spacing,y2(this))},H.getColorSchemeSelector=rX(h),H.spacing=H.generateSpacing(),H.shouldSkipGeneratingVar=d,H.unstable_sxConfig={...Yv,...v==null?void 0:v.unstable_sxConfig},H.unstable_sx=function(U){return T0({sx:U,theme:this})},H.toRuntimeSource=jR,H}function qR(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:$2({...n===!0?{}:n.palette,mode:t})})}function GR(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...u}=e,d=l||"light",h=a==null?void 0:a[d],y={...a,...n?{[d]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return H2(e,...t);let v=n;"palette"in e||y[d]&&(y[d]!==!0?v=y[d].palette:d==="dark"&&(v={mode:"dark"}));const x=H2({...e,palette:v},...t);return x.defaultColorScheme=d,x.colorSchemes=y,x.palette.mode==="light"&&(x.colorSchemes.light={...y.light!==!0&&y.light,palette:x.palette},qR(x,"dark",y.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:x.palette},qR(x,"light",y.light)),x}return!n&&!("light"in y)&&d==="light"&&(y.light=!0),iW({...u,colorSchemes:y,defaultColorScheme:d,...typeof r!="boolean"&&r},...t)}const F2=GR(),g3="$$material";var aW={};function lf(){const e=tb(F2);return aW.NODE_ENV!=="production"&&q.useDebugValue(e),e[g3]||e}var oW={};function FR(e){return L.jsx(mR,{...e,defaultTheme:F2,themeId:g3})}oW.NODE_ENV!=="production"&&(FR.propTypes={styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool])});function y3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ca=e=>y3(e)&&e!=="classes",rt=SR({themeId:g3,defaultTheme:F2,rootShouldForwardProp:Ca});function lW(e){return function(n){return L.jsx(FR,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function sW(){return x2}const Kt=QY;var uW={};uW.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function Jt(e){return WY(e)}function cW(e){return Ft("MuiSvgIcon",e)}Yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var fW={};const dW=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${We(t)}`,`fontSize${We(n)}`]};return Wt(a,cW,r)},hW=rt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${We(n.color)}`],t[`fontSize${We(n.fontSize)}`]]}})(Kt(({theme:e})=>{var t,n,r,a,l,u,d,h,y,v,x,T,E,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:R=>!R.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((v=(y=e.typography)==null?void 0:y.pxToRem)==null?void 0:v.call(y,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,R])=>R&&R.main).map(([R])=>{var _,D;return{props:{color:R},style:{color:(D=(_=(e.vars??e).palette)==null?void 0:_[R])==null?void 0:D.main}}}),{props:{color:"action"},style:{color:(T=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(A=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:A.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),M0=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiSvgIcon"}),{children:a,className:l,color:u="inherit",component:d="svg",fontSize:h="medium",htmlColor:y,inheritViewBox:v=!1,titleAccess:x,viewBox:T="0 0 24 24",...E}=r,A=q.isValidElement(a)&&a.type==="svg",R={...r,color:u,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:v,viewBox:T,hasSvgAsChild:A},_={};v||(_.viewBox=T);const D=dW(R);return L.jsxs(hW,{as:d,className:At(D.root,l),focusable:"false",color:y,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:n,..._,...E,...A&&a.props,ownerState:R,children:[A?a.props.children:a,x?L.jsx("title",{children:x}):null]})});fW.NODE_ENV!=="production"&&(M0.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string}),M0.muiName="SvgIcon";var YR={};function Di(e,t){function n(r,a){return L.jsx(M0,{"data-testid":YR.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:a,...r,children:e})}return YR.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=M0.muiName,q.memo(q.forwardRef(n))}function XR(e,t=166){let n;function r(...a){const l=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=()=>{clearTimeout(n)},r}function Gi(e){return e&&e.ownerDocument||document}function sf(e){return Gi(e).defaultView||window}var pW={};function mW(e,t){if(pW.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return a=>(l,u,d,h,y,...v)=>{const x=y||u,T=n==null?void 0:n[x];if(T){const E=T(l,u,d,h,y,...v);if(E)return E}return typeof l[u]<"u"&&!l[a]?new Error(`The prop \`${x}\` of \`${e}\` can only be used together with the \`${a}\` prop.`):null}}function WR(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var gW={};function yW(e,t,n,r,a){if(gW.NODE_ENV==="production")return null;const l=a||t;return typeof e[t]<"u"?new Error(`The prop \`${l}\` is not supported. Please remove it.`):null}var vW={};function yg(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:l}=q.useRef(t!==void 0),[u,d]=q.useState(n),h=l?t:u;if(vW.NODE_ENV!=="production"){q.useEffect(()=>{l!==(t!==void 0)&&console.error([`MUI: A component is changing the ${l?"":"un"}controlled ${a} state of ${r} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
`))},[a,r,t]);const{current:v}=q.useRef(n);q.useEffect(()=>{!l&&JSON.stringify(n)!==JSON.stringify(v)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
`))},[JSON.stringify(n)])}const y=q.useCallback(v=>{l||d(v)},[]);return[h,y]}function Zl(e){const t=q.useRef(e);return El(()=>{t.current=e}),q.useRef((...n)=>(0,t.current)(...n)).current}function ai(...e){const t=q.useRef(void 0),n=q.useCallback(r=>{const a=e.map(l=>{if(l==null)return null;if(typeof l=="function"){const u=l,d=u(r);return typeof d=="function"?d:()=>{u(null)}}return l.current=r,()=>{l.current=null}});return()=>{a.forEach(l=>l==null?void 0:l())}},e);return q.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function bW(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Y2(e,t){if(!e)return t;function n(u,d){const h={};return Object.keys(d).forEach(y=>{bW(y,d[y])&&typeof u[y]=="function"&&(h[y]=(...v)=>{u[y](...v),d[y](...v)})}),h}if(typeof e=="function"||typeof t=="function")return u=>{const d=typeof t=="function"?t(u):t,h=typeof e=="function"?e({...u,...d}):e,y=At(u==null?void 0:u.className,d==null?void 0:d.className,h==null?void 0:h.className),v=n(h,d);return{...d,...h,...v,...!!y&&{className:y},...(d==null?void 0:d.style)&&(h==null?void 0:h.style)&&{style:{...d.style,...h.style}},...(d==null?void 0:d.sx)&&(h==null?void 0:h.sx)&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(h.sx)?h.sx:[h.sx]]}}};const r=t,a=n(e,r),l=At(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...a,...!!l&&{className:l},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const xW=Di(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),KR=Di(L.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),QR=Di(L.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),SW=Di(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),EW=Di(L.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),wW=Di(L.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send"),ZR=Di(L.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");var TW={};function du(e,t){return TW.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function JR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function X2(e,t){return X2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},X2(e,t)}function e_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,X2(e,t)}var t_=uT();const v3=yl(t_),n_={disabled:!1};var r_={},AW=r_.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;r_.NODE_ENV!=="production"&&p.oneOfType([p.string,p.shape({enter:p.string,exit:p.string,active:p.string}),p.shape({enter:p.string,enterDone:p.string,enterActive:p.string,exit:p.string,exitDone:p.string,exitActive:p.string})]);const b3=ou.createContext(null);var CW=function(t){return t.scrollTop},OW={},lb="unmounted",R0="exited",_0="entering",vg="entered",W2="exiting",nc=(function(e){e_(t,e);function t(r,a){var l;l=e.call(this,r,a)||this;var u=a,d=u&&!u.isMounting?r.enter:r.appear,h;return l.appearStatus=null,r.in?d?(h=R0,l.appearStatus=_0):h=vg:r.unmountOnExit||r.mountOnEnter?h=lb:h=R0,l.state={status:h},l.nextCallback=null,l}t.getDerivedStateFromProps=function(a,l){var u=a.in;return u&&l.status===lb?{status:R0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var l=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==_0&&u!==vg&&(l=_0):(u===_0||u===vg)&&(l=W2)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,l,u,d;return l=u=d=a,a!=null&&typeof a!="number"&&(l=a.exit,u=a.enter,d=a.appear!==void 0?a.appear:u),{exit:l,enter:u,appear:d}},n.updateStatus=function(a,l){if(a===void 0&&(a=!1),l!==null)if(this.cancelNextCallback(),l===_0){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:v3.findDOMNode(this);u&&CW(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===R0&&this.setState({status:lb})},n.performEnter=function(a){var l=this,u=this.props.enter,d=this.context?this.context.isMounting:a,h=this.props.nodeRef?[d]:[v3.findDOMNode(this),d],y=h[0],v=h[1],x=this.getTimeouts(),T=d?x.appear:x.enter;if(!a&&!u||n_.disabled){this.safeSetState({status:vg},function(){l.props.onEntered(y)});return}this.props.onEnter(y,v),this.safeSetState({status:_0},function(){l.props.onEntering(y,v),l.onTransitionEnd(T,function(){l.safeSetState({status:vg},function(){l.props.onEntered(y,v)})})})},n.performExit=function(){var a=this,l=this.props.exit,u=this.getTimeouts(),d=this.props.nodeRef?void 0:v3.findDOMNode(this);if(!l||n_.disabled){this.safeSetState({status:R0},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:W2},function(){a.props.onExiting(d),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:R0},function(){a.props.onExited(d)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,l){l=this.setNextCallback(l),this.setState(a,l)},n.setNextCallback=function(a){var l=this,u=!0;return this.nextCallback=function(d){u&&(u=!1,l.nextCallback=null,a(d))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:v3.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!u||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],y=h[0],v=h[1];this.props.addEndListener(y,v)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===lb)return null;var l=this.props,u=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var d=JR(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ou.createElement(b3.Provider,{value:null},typeof u=="function"?u(a,d):ou.cloneElement(ou.Children.only(u),d))},t})(ou.Component);nc.contextType=b3,nc.propTypes=OW.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,r,a,l){var u=e[t];return p.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,l)}}),children:p.oneOfType([p.func.isRequired,p.element.isRequired]).isRequired,in:p.bool,mountOnEnter:p.bool,unmountOnExit:p.bool,appear:p.bool,enter:p.bool,exit:p.bool,timeout:function(t){var n=AW;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.apply(void 0,[t].concat(a))},addEndListener:p.func,onEnter:p.func,onEntering:p.func,onEntered:p.func,onExit:p.func,onExiting:p.func,onExited:p.func}:{};function bg(){}nc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bg,onEntering:bg,onEntered:bg,onExit:bg,onExiting:bg,onExited:bg},nc.UNMOUNTED=lb,nc.EXITED=R0,nc.ENTERING=_0,nc.ENTERED=vg,nc.EXITING=W2;function MW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K2(e,t){var n=function(l){return t&&q.isValidElement(l)?t(l):l},r=Object.create(null);return e&&q.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function RW(e,t){e=e||{},t=t||{};function n(v){return v in t?t[v]:e[v]}var r=Object.create(null),a=[];for(var l in e)l in t?a.length&&(r[l]=a,a=[]):a.push(l);var u,d={};for(var h in t){if(r[h])for(u=0;u<r[h].length;u++){var y=r[h][u];d[r[h][u]]=n(y)}d[h]=n(h)}for(u=0;u<a.length;u++)d[a[u]]=n(a[u]);return d}function D0(e,t,n){return n[t]!=null?n[t]:e.props[t]}function _W(e,t){return K2(e.children,function(n){return q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:D0(n,"appear",e),enter:D0(n,"enter",e),exit:D0(n,"exit",e)})})}function DW(e,t,n){var r=K2(e.children),a=RW(t,r);return Object.keys(a).forEach(function(l){var u=a[l];if(q.isValidElement(u)){var d=l in t,h=l in r,y=t[l],v=q.isValidElement(y)&&!y.props.in;h&&(!d||v)?a[l]=q.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:D0(u,"exit",e),enter:D0(u,"enter",e)}):!h&&d&&!v?a[l]=q.cloneElement(u,{in:!1}):h&&d&&q.isValidElement(y)&&(a[l]=q.cloneElement(u,{onExited:n.bind(null,u),in:y.props.in,exit:D0(u,"exit",e),enter:D0(u,"enter",e)}))}}),a}var NW={},kW=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},zW={component:"div",childFactory:function(t){return t}},Q2=(function(e){e_(t,e);function t(r,a){var l;l=e.call(this,r,a)||this;var u=l.handleExited.bind(MW(l));return l.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,l){var u=l.children,d=l.handleExited,h=l.firstRender;return{children:h?_W(a,d):DW(a,u,d),firstRender:!1}},n.handleExited=function(a,l){var u=K2(this.props.children);a.key in u||(a.props.onExited&&a.props.onExited(l),this.mounted&&this.setState(function(d){var h=X5({},d.children);return delete h[a.key],{children:h}}))},n.render=function(){var a=this.props,l=a.component,u=a.childFactory,d=JR(a,["component","childFactory"]),h=this.state.contextValue,y=kW(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,l===null?ou.createElement(b3.Provider,{value:h},y):ou.createElement(b3.Provider,{value:h},ou.createElement(l,d,y))},t})(ou.Component);Q2.propTypes=NW.NODE_ENV!=="production"?{component:p.any,children:p.node,appear:p.bool,enter:p.bool,exit:p.bool,childFactory:p.func}:{},Q2.defaultProps=zW;const i_={};function a_(e,t){const n=q.useRef(i_);return n.current===i_&&(n.current=e(t)),n}const IW=[];function LW(e){q.useEffect(e,IW)}class x3{constructor(){j(this,"currentId",null);j(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});j(this,"disposeEffect",()=>this.clear)}static create(){return new x3}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function xg(){const e=a_(x3.create).current;return LW(e.disposeEffect),e}function VW(e){const{prototype:t={}}=e;return!!t.isReactComponent}function BW(e,t,n,r,a){const l=e[t],u=a||t;if(l==null||typeof window>"u")return null;let d;return typeof l=="function"&&!VW(l)&&(d="Did you accidentally provide a plain function component instead?"),l===q.Fragment&&(d="Did you accidentally provide a React.Fragment instead?"),d!==void 0?new Error(`Invalid ${r} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${d} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const S3=du(p.elementType,BW),o_=e=>e.scrollTop;function Jl(e,t){return n=>{if(t){const r=e.current;n===void 0?t(r):t(r,n)}}}function l_(e,t,n,r,a,l){const u=e==="exited"&&!t?r:n[e]||n.exited;return a||l?{...u,...a,...l}:u}function E3(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function rc(e){return typeof e=="string"}function s_(e,t,n){return e===void 0||rc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function u_(e,t,n){return typeof e=="function"?e(t,n):e}function sb(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function c_(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function f_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:l}=e;if(!t){const E=At(n==null?void 0:n.className,l,a==null?void 0:a.className,r==null?void 0:r.className),A={...n==null?void 0:n.style,...a==null?void 0:a.style,...r==null?void 0:r.style},R={...n,...a,...r};return E.length>0&&(R.className=E),Object.keys(A).length>0&&(R.style=A),{props:R,internalRef:void 0}}const u=sb({...a,...r}),d=c_(r),h=c_(a),y=t(u),v=At(y==null?void 0:y.className,n==null?void 0:n.className,l,a==null?void 0:a.className,r==null?void 0:r.className),x={...y==null?void 0:y.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...r==null?void 0:r.style},T={...y,...n,...h,...d};return v.length>0&&(T.className=v),Object.keys(x).length>0&&(T.style=x),{props:T,internalRef:y.ref}}function ln(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:l,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...h}=t,{component:y,slots:v={[e]:void 0},slotProps:x={[e]:void 0},...T}=l,E=v[e]||r,A=u_(x[e],a),{props:{component:R,..._},internalRef:D}=f_({className:n,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:A}),z=ai(D,A==null?void 0:A.ref,t.ref),V=e==="root"?R||y:R,P=s_(E,{...e==="root"&&!y&&!v[e]&&u,...e!=="root"&&!v[e]&&u,..._,...V&&!d&&{as:V},...V&&d&&{component:V},ref:z},a);return[E,P]}var PW={};function jW(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function d_(e,t,n,r){const a=e[t];if(a==null||!Number.isInteger(a)){const l=jW(a);return new RangeError(`Invalid ${r} \`${t}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function h_(e,t,n,r){return e[t]===void 0?null:d_(e,t,n,r)}function Z2(){return null}h_.isRequired=d_,Z2.isRequired=Z2;const p_=PW.NODE_ENV==="production"?Z2:h_;function $W(e){return Ft("MuiPaper",e)}Yt("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"]);var m_={};const UW=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,l={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Wt(l,$W,a)},HW=rt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Kt(({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)"}}]}))),ub=q.forwardRef(function(t,n){var E;const r=Jt({props:t,name:"MuiPaper"}),a=lf(),{className:l,component:u="div",elevation:d=1,square:h=!1,variant:y="elevation",...v}=r,x={...r,component:u,elevation:d,square:h,variant:y},T=UW(x);return m_.NODE_ENV!=="production"&&a.shadows[d]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${d}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${d}]\` is defined.`].join(`
`)),L.jsx(HW,{as:u,ownerState:x,className:At(T.root,l),ref:n,...v,style:{...y==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[d],...a.vars&&{"--Paper-overlay":(E=a.vars.overlays)==null?void 0:E[d]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${s3("#fff",q2(d))}, ${s3("#fff",q2(d))})`}},...v.style}})});m_.NODE_ENV!=="production"&&(ub.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,elevation:du(p_,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:p.bool,style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["elevation","outlined"]),p.string])});const yo=p.oneOfType([p.func,p.object]);var qW={};function Sg(e){try{return e.matches(":focus-visible")}catch{qW.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
`))}return!1}class w3{constructor(){j(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 w3}static use(){const t=a_(w3.create).current,[n,r]=q.useState(!1);return t.shouldMount=n,t.setShouldMount=r,q.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=FW(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function GW(){return w3.use()}function FW(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}var YW={};function g_(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:l,rippleSize:u,in:d,onExited:h,timeout:y}=e,[v,x]=q.useState(!1),T=At(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),E={width:u,height:u,top:-(u/2)+l,left:-(u/2)+a},A=At(n.child,v&&n.childLeaving,r&&n.childPulsate);return!d&&!v&&x(!0),q.useEffect(()=>{if(!d&&h!=null){const R=setTimeout(h,y);return()=>{clearTimeout(R)}}},[h,d,y]),L.jsx("span",{className:T,style:E,children:L.jsx("span",{className:A})})}YW.NODE_ENV!=="production"&&(g_.propTypes={classes:p.object.isRequired,className:p.string,in:p.bool,onExited:p.func,pulsate:p.bool,rippleSize:p.number,rippleX:p.number,rippleY:p.number,timeout:p.number.isRequired});const es=Yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var XW={};const J2=550,WW=80,KW=eb`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

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

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

  50% {
    transform: scale(0.92);
  }

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

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

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

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

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

  & .${es.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${ZW};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,y_=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:l={},className:u,...d}=r,[h,y]=q.useState([]),v=q.useRef(0),x=q.useRef(null);q.useEffect(()=>{x.current&&(x.current(),x.current=null)},[h]);const T=q.useRef(!1),E=xg(),A=q.useRef(null),R=q.useRef(null),_=q.useCallback(P=>{const{pulsate:I,rippleX:H,rippleY:X,rippleSize:se,cb:ce}=P;y(ie=>[...ie,L.jsx(eK,{classes:{ripple:At(l.ripple,es.ripple),rippleVisible:At(l.rippleVisible,es.rippleVisible),ripplePulsate:At(l.ripplePulsate,es.ripplePulsate),child:At(l.child,es.child),childLeaving:At(l.childLeaving,es.childLeaving),childPulsate:At(l.childPulsate,es.childPulsate)},timeout:J2,pulsate:I,rippleX:H,rippleY:X,rippleSize:se},v.current)]),v.current+=1,x.current=ce},[l]),D=q.useCallback((P={},I={},H=()=>{})=>{const{pulsate:X=!1,center:se=a||I.pulsate,fakeElement:ce=!1}=I;if((P==null?void 0:P.type)==="mousedown"&&T.current){T.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(T.current=!0);const ie=ce?null:R.current,ue=ie?ie.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,le,Q;if(se||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)U=Math.round(ue.width/2),le=Math.round(ue.height/2);else{const{clientX:ee,clientY:W}=P.touches&&P.touches.length>0?P.touches[0]:P;U=Math.round(ee-ue.left),le=Math.round(W-ue.top)}if(se)Q=Math.sqrt((2*ue.width**2+ue.height**2)/3),Q%2===0&&(Q+=1);else{const ee=Math.max(Math.abs((ie?ie.clientWidth:0)-U),U)*2+2,W=Math.max(Math.abs((ie?ie.clientHeight:0)-le),le)*2+2;Q=Math.sqrt(ee**2+W**2)}P!=null&&P.touches?A.current===null&&(A.current=()=>{_({pulsate:X,rippleX:U,rippleY:le,rippleSize:Q,cb:H})},E.start(WW,()=>{A.current&&(A.current(),A.current=null)})):_({pulsate:X,rippleX:U,rippleY:le,rippleSize:Q,cb:H})},[a,_,E]),z=q.useCallback(()=>{D({},{pulsate:!0})},[D]),V=q.useCallback((P,I)=>{if(E.clear(),(P==null?void 0:P.type)==="touchend"&&A.current){A.current(),A.current=null,E.start(0,()=>{V(P,I)});return}A.current=null,y(H=>H.length>0?H.slice(1):H),x.current=I},[E]);return q.useImperativeHandle(n,()=>({pulsate:z,start:D,stop:V}),[z,D,V]),L.jsx(JW,{className:At(es.root,l.root,u),ref:R,...d,children:L.jsx(Q2,{component:null,exit:!0,children:h})})});XW.NODE_ENV!=="production"&&(y_.propTypes={center:p.bool,classes:p.object,className:p.string});function tK(e){return Ft("MuiButtonBase",e)}const nK=Yt("MuiButtonBase",["root","disabled","focusVisible"]);var rK={};const iK=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,u=Wt({root:["root",t&&"disabled",n&&"focusVisible"]},tK,a);return n&&r&&(u.root+=` ${r}`),u},aK=rt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jd=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:l=!1,children:u,className:d,component:h="button",disabled:y=!1,disableRipple:v=!1,disableTouchRipple:x=!1,focusRipple:T=!1,focusVisibleClassName:E,LinkComponent:A="a",onBlur:R,onClick:_,onContextMenu:D,onDragLeave:z,onFocus:V,onFocusVisible:P,onKeyDown:I,onKeyUp:H,onMouseDown:X,onMouseLeave:se,onMouseUp:ce,onTouchEnd:ie,onTouchMove:ue,onTouchStart:U,tabIndex:le=0,TouchRippleProps:Q,touchRippleRef:ee,type:W,...oe}=r,he=q.useRef(null),be=GW(),re=ai(be.ref,ee),[F,te]=q.useState(!1);y&&F&&te(!1),q.useImperativeHandle(a,()=>({focusVisible:()=>{te(!0),he.current.focus()}}),[]);const Y=be.shouldMount&&!v&&!y;q.useEffect(()=>{F&&T&&!v&&be.pulsate()},[v,T,F,be]);const Me=uf(be,"start",X,x),Ee=uf(be,"stop",D,x),_e=uf(be,"stop",z,x),Be=uf(be,"stop",ce,x),Ue=uf(be,"stop",Mt=>{F&&Mt.preventDefault(),se&&se(Mt)},x),Ye=uf(be,"start",U,x),Xe=uf(be,"stop",ie,x),Je=uf(be,"stop",ue,x),Ve=uf(be,"stop",Mt=>{Sg(Mt.target)||te(!1),R&&R(Mt)},!1),Re=Zl(Mt=>{he.current||(he.current=Mt.currentTarget),Sg(Mt.target)&&(te(!0),P&&P(Mt)),V&&V(Mt)}),ut=()=>{const Mt=he.current;return Mt?Mt.tagName==="BUTTON"?!1:!(Mt.tagName==="A"&&Mt.href):h&&h!=="button"},Vt=Zl(Mt=>{T&&!Mt.repeat&&F&&Mt.key===" "&&be.stop(Mt,()=>{be.start(Mt)}),Mt.target===Mt.currentTarget&&ut()&&Mt.key===" "&&Mt.preventDefault(),I&&I(Mt),Mt.target===Mt.currentTarget&&ut()&&Mt.key==="Enter"&&!y&&(Mt.preventDefault(),_&&_(Mt))}),Qt=Zl(Mt=>{T&&Mt.key===" "&&F&&!Mt.defaultPrevented&&be.stop(Mt,()=>{be.pulsate(Mt)}),H&&H(Mt),_&&Mt.target===Mt.currentTarget&&ut()&&Mt.key===" "&&!Mt.defaultPrevented&&!y&&_(Mt)});let St=h;St==="button"&&(oe.href||oe.to)&&(St=A);const $t={};if(St==="button"){const Mt=!!oe.formAction;$t.type=W===void 0&&!Mt?"button":W,$t.disabled=y}else!oe.href&&!oe.to&&($t.role="button"),y&&($t["aria-disabled"]=y);const Cn=ai(n,he),vn={...r,centerRipple:l,component:h,disabled:y,disableRipple:v,disableTouchRipple:x,focusRipple:T,tabIndex:le,focusVisible:F},it=iK(vn);return L.jsxs(aK,{as:St,className:At(it.root,d),ownerState:vn,onBlur:Ve,onClick:_,onContextMenu:Ee,onFocus:Re,onKeyDown:Vt,onKeyUp:Qt,onMouseDown:Me,onMouseLeave:Ue,onMouseUp:Be,onDragLeave:_e,onTouchEnd:Xe,onTouchMove:Je,onTouchStart:Ye,ref:Cn,tabIndex:y?-1:le,type:W,...$t,...oe,children:[u,Y?L.jsx(y_,{ref:re,center:l,...Q}):null]})});function uf(e,t,n,r=!1){return Zl(a=>(n&&n(a),r||e[t](a),!0))}rK.NODE_ENV!=="production"&&(jd.propTypes={action:yo,centerRipple:p.bool,children:p.node,classes:p.object,className:p.string,component:S3,disabled:p.bool,disableRipple:p.bool,disableTouchRipple:p.bool,focusRipple:p.bool,focusVisibleClassName:p.string,formAction:p.oneOfType([p.func,p.string]),href:p.any,LinkComponent:p.elementType,onBlur:p.func,onClick:p.func,onContextMenu:p.func,onDragLeave:p.func,onFocus:p.func,onFocusVisible:p.func,onKeyDown:p.func,onKeyUp:p.func,onMouseDown:p.func,onMouseLeave:p.func,onMouseUp:p.func,onTouchEnd:p.func,onTouchMove:p.func,onTouchStart:p.func,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,TouchRippleProps:p.object,touchRippleRef:p.oneOfType([p.func,p.shape({current:p.shape({pulsate:p.func.isRequired,start:p.func.isRequired,stop:p.func.isRequired})})]),type:p.oneOfType([p.oneOf(["button","reset","submit"]),p.string])});function oK(e){return typeof e.main=="string"}function lK(e,t=[]){if(!oK(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Fr(e=[]){return([,t])=>t&&lK(t,e)}function sK(e){return Ft("MuiAlert",e)}const v_=Yt("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 uK(e){return Ft("MuiCircularProgress",e)}Yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var cK={};const hu=44,e7=eb`
  0% {
    transform: rotate(0deg);
  }

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

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

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,fK=typeof e7!="string"?k2`
        animation: ${e7} 1.4s linear infinite;
      `:null,dK=typeof t7!="string"?k2`
        animation: ${t7} 1.4s ease-in-out infinite;
      `:null,hK=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,l={root:["root",n,`color${We(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${We(n)}`,a&&"circleDisableShrink"]};return Wt(l,uK,t)},pK=rt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${We(n.color)}`]]}})(Kt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:fK||{animation:`${e7} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),mK=rt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),gK=rt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${We(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Kt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:dK||{animation:`${t7} 1.4s ease-in-out infinite`}}]}))),yK=rt("circle",{name:"MuiCircularProgress",slot:"Track"})(Kt(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),cb=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiCircularProgress"}),{className:a,color:l="primary",disableShrink:u=!1,enableTrackSlot:d=!1,size:h=40,style:y,thickness:v=3.6,value:x=0,variant:T="indeterminate",...E}=r,A={...r,color:l,disableShrink:u,size:h,thickness:v,value:x,variant:T,enableTrackSlot:d},R=hK(A),_={},D={},z={};if(T==="determinate"){const V=2*Math.PI*((hu-v)/2);_.strokeDasharray=V.toFixed(3),z["aria-valuenow"]=Math.round(x),_.strokeDashoffset=`${((100-x)/100*V).toFixed(3)}px`,D.transform="rotate(-90deg)"}return L.jsx(pK,{className:At(R.root,a),style:{width:h,height:h,...D,...y},ownerState:A,ref:n,role:"progressbar",...z,...E,children:L.jsxs(mK,{className:R.svg,ownerState:A,viewBox:`${hu/2} ${hu/2} ${hu} ${hu}`,children:[d?L.jsx(yK,{className:R.track,ownerState:A,cx:hu,cy:hu,r:(hu-v)/2,fill:"none",strokeWidth:v,"aria-hidden":"true"}):null,L.jsx(gK,{className:R.circle,style:_,ownerState:A,cx:hu,cy:hu,r:(hu-v)/2,fill:"none",strokeWidth:v})]})})});cK.NODE_ENV!=="production"&&(cb.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","error","info","success","warning"]),p.string]),disableShrink:du(p.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:p.bool,size:p.oneOfType([p.number,p.string]),style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),thickness:p.number,value:p.number,variant:p.oneOf(["determinate","indeterminate"])});function vK(e){return Ft("MuiIconButton",e)}const b_=Yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var bK={};const xK=e=>{const{classes:t,disabled:n,color:r,edge:a,size:l,loading:u}=e,d={root:["root",u&&"loading",n&&"disabled",r!=="default"&&`color${We(r)}`,a&&`edge${We(a)}`,`size${We(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Wt(d,vK,t)},SK=rt(jd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${We(n.color)}`],n.edge&&t[`edge${We(n.edge)}`],t[`size${We(n.size)}`]]}})(Kt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Kt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${b_.loading}`]:{color:"transparent"}}))),EK=rt("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Eg=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:l,className:u,color:d="default",disabled:h=!1,disableFocusRipple:y=!1,size:v="medium",id:x,loading:T=null,loadingIndicator:E,...A}=r,R=O0(x),_=E??L.jsx(cb,{"aria-labelledby":R,color:"inherit",size:16}),D={...r,edge:a,color:d,disabled:h,disableFocusRipple:y,loading:T,loadingIndicator:_,size:v},z=xK(D);return L.jsxs(SK,{id:T?R:x,className:At(z.root,u),centerRipple:!0,focusRipple:!y,disabled:h||T,ref:n,...A,ownerState:D,children:[typeof T=="boolean"&&L.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:L.jsx(EK,{className:z.loadingIndicator,ownerState:D,children:T&&_})}),l]})});bK.NODE_ENV!=="production"&&(Eg.propTypes={children:du(p.node,e=>q.Children.toArray(e.children).some(n=>q.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
`)):null),classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),p.string]),disabled:p.bool,disableFocusRipple:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),id:p.string,loading:p.bool,loadingIndicator:p.node,size:p.oneOfType([p.oneOf(["small","medium","large"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});const wK=Di(L.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"),TK=Di(L.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),AK=Di(L.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"),CK=Di(L.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"),OK=Di(L.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");var MK={};const RK=e=>{const{variant:t,color:n,severity:r,classes:a}=e,l={root:["root",`color${We(n||r)}`,`${t}${We(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Wt(l,sK,a)},_K=rt(ub,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${We(n.color||n.severity)}`]]}})(Kt(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Fr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${v_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${v_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),DK=rt("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),NK=rt("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),kK=rt("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),x_={success:L.jsx(wK,{fontSize:"inherit"}),warning:L.jsx(TK,{fontSize:"inherit"}),error:L.jsx(AK,{fontSize:"inherit"}),info:L.jsx(CK,{fontSize:"inherit"})},S_=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiAlert"}),{action:a,children:l,className:u,closeText:d="Close",color:h,components:y={},componentsProps:v={},icon:x,iconMapping:T=x_,onClose:E,role:A="alert",severity:R="success",slotProps:_={},slots:D={},variant:z="standard",...V}=r,P={...r,color:h,severity:R,variant:z,colorSeverity:h||R},I=RK(P),H={slots:{closeButton:y.CloseButton,closeIcon:y.CloseIcon,...D},slotProps:{...v,..._}},[X,se]=ln("root",{ref:n,shouldForwardComponentProp:!0,className:At(I.root,u),elementType:_K,externalForwardedProps:{...H,...V},ownerState:P,additionalProps:{role:A,elevation:0}}),[ce,ie]=ln("icon",{className:I.icon,elementType:DK,externalForwardedProps:H,ownerState:P}),[ue,U]=ln("message",{className:I.message,elementType:NK,externalForwardedProps:H,ownerState:P}),[le,Q]=ln("action",{className:I.action,elementType:kK,externalForwardedProps:H,ownerState:P}),[ee,W]=ln("closeButton",{elementType:Eg,externalForwardedProps:H,ownerState:P}),[oe,he]=ln("closeIcon",{elementType:OK,externalForwardedProps:H,ownerState:P});return L.jsxs(X,{...se,children:[x!==!1?L.jsx(ce,{...ie,children:x||T[R]||x_[R]}):null,L.jsx(ue,{...U,children:l}),a!=null?L.jsx(le,{...Q,children:a}):null,a==null&&E?L.jsx(le,{...Q,children:L.jsx(ee,{size:"small","aria-label":d,title:d,color:"inherit",onClick:E,...W,children:L.jsx(oe,{fontSize:"small",...he})})}):null]})});MK.NODE_ENV!=="production"&&(S_.propTypes={action:p.node,children:p.node,classes:p.object,className:p.string,closeText:p.string,color:p.oneOfType([p.oneOf(["error","info","success","warning"]),p.string]),components:p.shape({CloseButton:p.elementType,CloseIcon:p.elementType}),componentsProps:p.shape({closeButton:p.object,closeIcon:p.object}),icon:p.node,iconMapping:p.shape({error:p.node,info:p.node,success:p.node,warning:p.node}),onClose:p.func,role:p.string,severity:p.oneOfType([p.oneOf(["error","info","success","warning"]),p.string]),slotProps:p.shape({action:p.oneOfType([p.func,p.object]),closeButton:p.oneOfType([p.func,p.object]),closeIcon:p.oneOfType([p.func,p.object]),icon:p.oneOfType([p.func,p.object]),message:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({action:p.elementType,closeButton:p.elementType,closeIcon:p.elementType,icon:p.elementType,message:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["filled","outlined","standard"]),p.string])});function zK(e){return Ft("MuiTypography",e)}const E_=Yt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var IK={};const LK={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VK=sW(),BK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:l,classes:u}=e,d={root:["root",l,e.align!=="inherit"&&`align${We(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Wt(d,zK,u)},PK=rt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${We(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Kt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Fr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${We(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),w_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gn=q.forwardRef(function(t,n){const{color:r,...a}=Jt({props:t,name:"MuiTypography"}),l=!LK[r],u=VK({...a,...l&&{color:r}}),{align:d="inherit",className:h,component:y,gutterBottom:v=!1,noWrap:x=!1,paragraph:T=!1,variant:E="body1",variantMapping:A=w_,...R}=u,_={...u,align:d,color:r,className:h,component:y,gutterBottom:v,noWrap:x,paragraph:T,variant:E,variantMapping:A},D=y||(T?"p":A[E]||w_[E])||"span",z=BK(_);return L.jsx(PK,{as:D,ref:n,className:At(z.root,h),...R,ownerState:_,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...R.style}})});IK.NODE_ENV!=="production"&&(Gn.propTypes={align:p.oneOf(["center","inherit","justify","left","right"]),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),p.string]),component:p.elementType,gutterBottom:p.bool,noWrap:p.bool,paragraph:p.bool,style:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),p.string]),variantMapping:p.object});function T3(e,t){var r;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(n&&n instanceof ShadowRoot){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode??a.host??null}}return!1}var jK={};function cf(e,t,n,r,a){if(jK.NODE_ENV==="production")return null;const l=e[t],u=a||t;return l==null?null:l&&l.nodeType!==1?new Error(`Invalid ${r} \`${u}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var qo="top",ts="bottom",ns="right",Go="left",n7="auto",fb=[qo,ts,ns,Go],wg="start",db="end",$K="clippingParents",T_="viewport",hb="popper",UK="reference",A_=fb.reduce(function(e,t){return e.concat([t+"-"+wg,t+"-"+db])},[]),C_=[].concat(fb,[n7]).reduce(function(e,t){return e.concat([t,t+"-"+wg,t+"-"+db])},[]),HK="beforeRead",qK="read",GK="afterRead",FK="beforeMain",YK="main",XK="afterMain",WK="beforeWrite",KK="write",QK="afterWrite",ZK=[HK,qK,GK,FK,YK,XK,WK,KK,QK];function ic(e){return e?(e.nodeName||"").toLowerCase():null}function wl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function N0(e){var t=wl(e).Element;return e instanceof t||e instanceof Element}function rs(e){var t=wl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function r7(e){if(typeof ShadowRoot>"u")return!1;var t=wl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},l=t.elements[n];!rs(l)||!ic(l)||(Object.assign(l.style,r),Object.keys(a).forEach(function(u){var d=a[u];d===!1?l.removeAttribute(u):l.setAttribute(u,d===!0?"":d)}))})}function eQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],l=t.attributes[r]||{},u=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),d=u.reduce(function(h,y){return h[y]="",h},{});!rs(a)||!ic(a)||(Object.assign(a.style,d),Object.keys(l).forEach(function(h){a.removeAttribute(h)}))})}}const tQ={name:"applyStyles",enabled:!0,phase:"write",fn:JK,effect:eQ,requires:["computeStyles"]};function ac(e){return e.split("-")[0]}var k0=Math.max,A3=Math.min,Tg=Math.round;function i7(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function O_(){return!/^((?!chrome|android).)*safari/i.test(i7())}function Ag(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,l=1;t&&rs(e)&&(a=e.offsetWidth>0&&Tg(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Tg(r.height)/e.offsetHeight||1);var u=N0(e)?wl(e):window,d=u.visualViewport,h=!O_()&&n,y=(r.left+(h&&d?d.offsetLeft:0))/a,v=(r.top+(h&&d?d.offsetTop:0))/l,x=r.width/a,T=r.height/l;return{width:x,height:T,top:v,right:y+x,bottom:v+T,left:y,x:y,y:v}}function a7(e){var t=Ag(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function M_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&r7(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ff(e){return wl(e).getComputedStyle(e)}function nQ(e){return["table","td","th"].indexOf(ic(e))>=0}function $d(e){return((N0(e)?e.ownerDocument:e.document)||window.document).documentElement}function C3(e){return ic(e)==="html"?e:e.assignedSlot||e.parentNode||(r7(e)?e.host:null)||$d(e)}function R_(e){return!rs(e)||ff(e).position==="fixed"?null:e.offsetParent}function rQ(e){var t=/firefox/i.test(i7()),n=/Trident/i.test(i7());if(n&&rs(e)){var r=ff(e);if(r.position==="fixed")return null}var a=C3(e);for(r7(a)&&(a=a.host);rs(a)&&["html","body"].indexOf(ic(a))<0;){var l=ff(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function pb(e){for(var t=wl(e),n=R_(e);n&&nQ(n)&&ff(n).position==="static";)n=R_(n);return n&&(ic(n)==="html"||ic(n)==="body"&&ff(n).position==="static")?t:n||rQ(e)||t}function o7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mb(e,t,n){return k0(e,A3(t,n))}function iQ(e,t,n){var r=mb(e,t,n);return r>n?n:r}function __(){return{top:0,right:0,bottom:0,left:0}}function D_(e){return Object.assign({},__(),e)}function N_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,D_(typeof t!="number"?t:N_(t,fb))};function oQ(e){var t,n=e.state,r=e.name,a=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,d=ac(n.placement),h=o7(d),y=[Go,ns].indexOf(d)>=0,v=y?"height":"width";if(!(!l||!u)){var x=aQ(a.padding,n),T=a7(l),E=h==="y"?qo:Go,A=h==="y"?ts:ns,R=n.rects.reference[v]+n.rects.reference[h]-u[h]-n.rects.popper[v],_=u[h]-n.rects.reference[h],D=pb(l),z=D?h==="y"?D.clientHeight||0:D.clientWidth||0:0,V=R/2-_/2,P=x[E],I=z-T[v]-x[A],H=z/2-T[v]/2+V,X=mb(P,H,I),se=h;n.modifiersData[r]=(t={},t[se]=X,t.centerOffset=X-H,t)}}function lQ(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||M_(t.elements.popper,a)&&(t.elements.arrow=a))}const sQ={name:"arrow",enabled:!0,phase:"main",fn:oQ,effect:lQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cg(e){return e.split("-")[1]}var uQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cQ(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Tg(n*a)/a||0,y:Tg(r*a)/a||0}}function k_(e){var t,n=e.popper,r=e.popperRect,a=e.placement,l=e.variation,u=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,x=e.isFixed,T=u.x,E=T===void 0?0:T,A=u.y,R=A===void 0?0:A,_=typeof v=="function"?v({x:E,y:R}):{x:E,y:R};E=_.x,R=_.y;var D=u.hasOwnProperty("x"),z=u.hasOwnProperty("y"),V=Go,P=qo,I=window;if(y){var H=pb(n),X="clientHeight",se="clientWidth";if(H===wl(n)&&(H=$d(n),ff(H).position!=="static"&&d==="absolute"&&(X="scrollHeight",se="scrollWidth")),H=H,a===qo||(a===Go||a===ns)&&l===db){P=ts;var ce=x&&H===I&&I.visualViewport?I.visualViewport.height:H[X];R-=ce-r.height,R*=h?1:-1}if(a===Go||(a===qo||a===ts)&&l===db){V=ns;var ie=x&&H===I&&I.visualViewport?I.visualViewport.width:H[se];E-=ie-r.width,E*=h?1:-1}}var ue=Object.assign({position:d},y&&uQ),U=v===!0?cQ({x:E,y:R},wl(n)):{x:E,y:R};if(E=U.x,R=U.y,h){var le;return Object.assign({},ue,(le={},le[P]=z?"0":"",le[V]=D?"0":"",le.transform=(I.devicePixelRatio||1)<=1?"translate("+E+"px, "+R+"px)":"translate3d("+E+"px, "+R+"px, 0)",le))}return Object.assign({},ue,(t={},t[P]=z?R+"px":"",t[V]=D?E+"px":"",t.transform="",t))}function fQ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,l=n.adaptive,u=l===void 0?!0:l,d=n.roundOffsets,h=d===void 0?!0:d,y={placement:ac(t.placement),variation:Cg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,k_(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,k_(Object.assign({},y,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fQ,data:{}};var O3={passive:!0};function hQ(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,l=a===void 0?!0:a,u=r.resize,d=u===void 0?!0:u,h=wl(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&y.forEach(function(v){v.addEventListener("scroll",n.update,O3)}),d&&h.addEventListener("resize",n.update,O3),function(){l&&y.forEach(function(v){v.removeEventListener("scroll",n.update,O3)}),d&&h.removeEventListener("resize",n.update,O3)}}const pQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hQ,data:{}};var mQ={left:"right",right:"left",bottom:"top",top:"bottom"};function M3(e){return e.replace(/left|right|bottom|top/g,function(t){return mQ[t]})}var gQ={start:"end",end:"start"};function z_(e){return e.replace(/start|end/g,function(t){return gQ[t]})}function l7(e){var t=wl(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function s7(e){return Ag($d(e)).left+l7(e).scrollLeft}function yQ(e,t){var n=wl(e),r=$d(e),a=n.visualViewport,l=r.clientWidth,u=r.clientHeight,d=0,h=0;if(a){l=a.width,u=a.height;var y=O_();(y||!y&&t==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}return{width:l,height:u,x:d+s7(e),y:h}}function vQ(e){var t,n=$d(e),r=l7(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=k0(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=k0(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-r.scrollLeft+s7(e),h=-r.scrollTop;return ff(a||n).direction==="rtl"&&(d+=k0(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:u,x:d,y:h}}function u7(e){var t=ff(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function I_(e){return["html","body","#document"].indexOf(ic(e))>=0?e.ownerDocument.body:rs(e)&&u7(e)?e:I_(C3(e))}function gb(e,t){var n;t===void 0&&(t=[]);var r=I_(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),l=wl(r),u=a?[l].concat(l.visualViewport||[],u7(r)?r:[]):r,d=t.concat(u);return a?d:d.concat(gb(C3(u)))}function c7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bQ(e,t){var n=Ag(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function L_(e,t,n){return t===T_?c7(yQ(e,n)):N0(t)?bQ(t,n):c7(vQ($d(e)))}function xQ(e){var t=gb(C3(e)),n=["absolute","fixed"].indexOf(ff(e).position)>=0,r=n&&rs(e)?pb(e):e;return N0(r)?t.filter(function(a){return N0(a)&&M_(a,r)&&ic(a)!=="body"}):[]}function SQ(e,t,n,r){var a=t==="clippingParents"?xQ(e):[].concat(t),l=[].concat(a,[n]),u=l[0],d=l.reduce(function(h,y){var v=L_(e,y,r);return h.top=k0(v.top,h.top),h.right=A3(v.right,h.right),h.bottom=A3(v.bottom,h.bottom),h.left=k0(v.left,h.left),h},L_(e,u,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function V_(e){var t=e.reference,n=e.element,r=e.placement,a=r?ac(r):null,l=r?Cg(r):null,u=t.x+t.width/2-n.width/2,d=t.y+t.height/2-n.height/2,h;switch(a){case qo:h={x:u,y:t.y-n.height};break;case ts:h={x:u,y:t.y+t.height};break;case ns:h={x:t.x+t.width,y:d};break;case Go:h={x:t.x-n.width,y:d};break;default:h={x:t.x,y:t.y}}var y=a?o7(a):null;if(y!=null){var v=y==="y"?"height":"width";switch(l){case wg:h[y]=h[y]-(t[v]/2-n[v]/2);break;case db:h[y]=h[y]+(t[v]/2-n[v]/2);break}}return h}function yb(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,l=n.strategy,u=l===void 0?e.strategy:l,d=n.boundary,h=d===void 0?$K:d,y=n.rootBoundary,v=y===void 0?T_:y,x=n.elementContext,T=x===void 0?hb:x,E=n.altBoundary,A=E===void 0?!1:E,R=n.padding,_=R===void 0?0:R,D=D_(typeof _!="number"?_:N_(_,fb)),z=T===hb?UK:hb,V=e.rects.popper,P=e.elements[A?z:T],I=SQ(N0(P)?P:P.contextElement||$d(e.elements.popper),h,v,u),H=Ag(e.elements.reference),X=V_({reference:H,element:V,placement:a}),se=c7(Object.assign({},V,X)),ce=T===hb?se:H,ie={top:I.top-ce.top+D.top,bottom:ce.bottom-I.bottom+D.bottom,left:I.left-ce.left+D.left,right:ce.right-I.right+D.right},ue=e.modifiersData.offset;if(T===hb&&ue){var U=ue[a];Object.keys(ie).forEach(function(le){var Q=[ns,ts].indexOf(le)>=0?1:-1,ee=[qo,ts].indexOf(le)>=0?"y":"x";ie[le]+=U[ee]*Q})}return ie}function EQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,l=n.rootBoundary,u=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,y=h===void 0?C_:h,v=Cg(r),x=v?d?A_:A_.filter(function(A){return Cg(A)===v}):fb,T=x.filter(function(A){return y.indexOf(A)>=0});T.length===0&&(T=x);var E=T.reduce(function(A,R){return A[R]=yb(e,{placement:R,boundary:a,rootBoundary:l,padding:u})[ac(R)],A},{});return Object.keys(E).sort(function(A,R){return E[A]-E[R]})}function wQ(e){if(ac(e)===n7)return[];var t=M3(e);return[z_(e),t,z_(t)]}function TQ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,u=n.altAxis,d=u===void 0?!0:u,h=n.fallbackPlacements,y=n.padding,v=n.boundary,x=n.rootBoundary,T=n.altBoundary,E=n.flipVariations,A=E===void 0?!0:E,R=n.allowedAutoPlacements,_=t.options.placement,D=ac(_),z=D===_,V=h||(z||!A?[M3(_)]:wQ(_)),P=[_].concat(V).reduce(function(Me,Ee){return Me.concat(ac(Ee)===n7?EQ(t,{placement:Ee,boundary:v,rootBoundary:x,padding:y,flipVariations:A,allowedAutoPlacements:R}):Ee)},[]),I=t.rects.reference,H=t.rects.popper,X=new Map,se=!0,ce=P[0],ie=0;ie<P.length;ie++){var ue=P[ie],U=ac(ue),le=Cg(ue)===wg,Q=[qo,ts].indexOf(U)>=0,ee=Q?"width":"height",W=yb(t,{placement:ue,boundary:v,rootBoundary:x,altBoundary:T,padding:y}),oe=Q?le?ns:Go:le?ts:qo;I[ee]>H[ee]&&(oe=M3(oe));var he=M3(oe),be=[];if(l&&be.push(W[U]<=0),d&&be.push(W[oe]<=0,W[he]<=0),be.every(function(Me){return Me})){ce=ue,se=!1;break}X.set(ue,be)}if(se)for(var re=A?3:1,F=function(Ee){var _e=P.find(function(Be){var Ue=X.get(Be);if(Ue)return Ue.slice(0,Ee).every(function(Ye){return Ye})});if(_e)return ce=_e,"break"},te=re;te>0;te--){var Y=F(te);if(Y==="break")break}t.placement!==ce&&(t.modifiersData[r]._skip=!0,t.placement=ce,t.reset=!0)}}const AQ={name:"flip",enabled:!0,phase:"main",fn:TQ,requiresIfExists:["offset"],data:{_skip:!1}};function B_(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function P_(e){return[qo,ns,ts,Go].some(function(t){return e[t]>=0})}function CQ(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=yb(t,{elementContext:"reference"}),d=yb(t,{altBoundary:!0}),h=B_(u,r),y=B_(d,a,l),v=P_(h),x=P_(y);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:v,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":x})}const OQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CQ};function MQ(e,t,n){var r=ac(e),a=[Go,qo].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=l[0],d=l[1];return u=u||0,d=(d||0)*a,[Go,ns].indexOf(r)>=0?{x:d,y:u}:{x:u,y:d}}function RQ(e){var t=e.state,n=e.options,r=e.name,a=n.offset,l=a===void 0?[0,0]:a,u=C_.reduce(function(v,x){return v[x]=MQ(x,t.rects,l),v},{}),d=u[t.placement],h=d.x,y=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=y),t.modifiersData[r]=u}const _Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RQ};function DQ(e){var t=e.state,n=e.name;t.modifiersData[n]=V_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const NQ={name:"popperOffsets",enabled:!0,phase:"read",fn:DQ,data:{}};function kQ(e){return e==="x"?"y":"x"}function zQ(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,l=a===void 0?!0:a,u=n.altAxis,d=u===void 0?!1:u,h=n.boundary,y=n.rootBoundary,v=n.altBoundary,x=n.padding,T=n.tether,E=T===void 0?!0:T,A=n.tetherOffset,R=A===void 0?0:A,_=yb(t,{boundary:h,rootBoundary:y,padding:x,altBoundary:v}),D=ac(t.placement),z=Cg(t.placement),V=!z,P=o7(D),I=kQ(P),H=t.modifiersData.popperOffsets,X=t.rects.reference,se=t.rects.popper,ce=typeof R=="function"?R(Object.assign({},t.rects,{placement:t.placement})):R,ie=typeof ce=="number"?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(H){if(l){var le,Q=P==="y"?qo:Go,ee=P==="y"?ts:ns,W=P==="y"?"height":"width",oe=H[P],he=oe+_[Q],be=oe-_[ee],re=E?-se[W]/2:0,F=z===wg?X[W]:se[W],te=z===wg?-se[W]:-X[W],Y=t.elements.arrow,Me=E&&Y?a7(Y):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:__(),_e=Ee[Q],Be=Ee[ee],Ue=mb(0,X[W],Me[W]),Ye=V?X[W]/2-re-Ue-_e-ie.mainAxis:F-Ue-_e-ie.mainAxis,Xe=V?-X[W]/2+re+Ue+Be+ie.mainAxis:te+Ue+Be+ie.mainAxis,Je=t.elements.arrow&&pb(t.elements.arrow),Ve=Je?P==="y"?Je.clientTop||0:Je.clientLeft||0:0,Re=(le=ue==null?void 0:ue[P])!=null?le:0,ut=oe+Ye-Re-Ve,Vt=oe+Xe-Re,Qt=mb(E?A3(he,ut):he,oe,E?k0(be,Vt):be);H[P]=Qt,U[P]=Qt-oe}if(d){var St,$t=P==="x"?qo:Go,Cn=P==="x"?ts:ns,vn=H[I],it=I==="y"?"height":"width",Mt=vn+_[$t],Dn=vn-_[Cn],tn=[qo,Go].indexOf(D)!==-1,et=(St=ue==null?void 0:ue[I])!=null?St:0,xe=tn?Mt:vn-X[it]-se[it]-et+ie.altAxis,Le=tn?vn+X[it]+se[it]-et-ie.altAxis:Dn,at=E&&tn?iQ(xe,vn,Le):mb(E?xe:Mt,vn,E?Le:Dn);H[I]=at,U[I]=at-vn}t.modifiersData[r]=U}}const IQ={name:"preventOverflow",enabled:!0,phase:"main",fn:zQ,requiresIfExists:["offset"]};function LQ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VQ(e){return e===wl(e)||!rs(e)?l7(e):LQ(e)}function BQ(e){var t=e.getBoundingClientRect(),n=Tg(t.width)/e.offsetWidth||1,r=Tg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function PQ(e,t,n){n===void 0&&(n=!1);var r=rs(t),a=rs(t)&&BQ(t),l=$d(t),u=Ag(e,a,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!n)&&((ic(t)!=="body"||u7(l))&&(d=VQ(t)),rs(t)?(h=Ag(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):l&&(h.x=s7(l))),{x:u.left+d.scrollLeft-h.x,y:u.top+d.scrollTop-h.y,width:u.width,height:u.height}}function jQ(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function a(l){n.add(l.name);var u=[].concat(l.requires||[],l.requiresIfExists||[]);u.forEach(function(d){if(!n.has(d)){var h=t.get(d);h&&a(h)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||a(l)}),r}function $Q(e){var t=jQ(e);return ZK.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function UQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HQ(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var j_={placement:"bottom",modifiers:[],strategy:"absolute"};function $_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qQ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?j_:a;return function(d,h,y){y===void 0&&(y=l);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},j_,l),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},x=[],T=!1,E={state:v,setOptions:function(D){var z=typeof D=="function"?D(v.options):D;R(),v.options=Object.assign({},l,v.options,z),v.scrollParents={reference:N0(d)?gb(d):d.contextElement?gb(d.contextElement):[],popper:gb(h)};var V=$Q(HQ([].concat(r,v.options.modifiers)));return v.orderedModifiers=V.filter(function(P){return P.enabled}),A(),E.update()},forceUpdate:function(){if(!T){var D=v.elements,z=D.reference,V=D.popper;if($_(z,V)){v.rects={reference:PQ(z,pb(V),v.options.strategy==="fixed"),popper:a7(V)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(ie){return v.modifiersData[ie.name]=Object.assign({},ie.data)});for(var P=0;P<v.orderedModifiers.length;P++){if(v.reset===!0){v.reset=!1,P=-1;continue}var I=v.orderedModifiers[P],H=I.fn,X=I.options,se=X===void 0?{}:X,ce=I.name;typeof H=="function"&&(v=H({state:v,options:se,name:ce,instance:E})||v)}}}},update:UQ(function(){return new Promise(function(_){E.forceUpdate(),_(v)})}),destroy:function(){R(),T=!0}};if(!$_(d,h))return E;E.setOptions(y).then(function(_){!T&&y.onFirstUpdate&&y.onFirstUpdate(_)});function A(){v.orderedModifiers.forEach(function(_){var D=_.name,z=_.options,V=z===void 0?{}:z,P=_.effect;if(typeof P=="function"){var I=P({state:v,name:D,instance:E,options:V}),H=function(){};x.push(I||H)}})}function R(){x.forEach(function(_){return _()}),x=[]}return E}}var GQ=[pQ,NQ,dQ,tQ,_Q,AQ,IQ,sQ,OQ],FQ=qQ({defaultModifiers:GQ});function oc(e){var x;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...l}=e,u=a?{}:u_(n,r),{props:d,internalRef:h}=f_({...l,externalSlotProps:u}),y=ai(h,u==null?void 0:u.ref,(x=e.additionalProps)==null?void 0:x.ref);return s_(t,{...d,ref:y},r)}var YQ={};function R3(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||YQ.NODE_ENV==="test")}function Og(e){var t;return parseInt(q.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}var U_={};function XQ(e){return typeof e=="function"?e():e}const vb=q.forwardRef(function(t,n){const{children:r,container:a,disablePortal:l=!1}=t,[u,d]=q.useState(null),h=ai(q.isValidElement(r)?Og(r):null,n);if(El(()=>{l||d(XQ(a)||document.body)},[a,l]),El(()=>{if(u&&!l)return WR(n,u),()=>{WR(n,null)}},[n,u,l]),l){if(q.isValidElement(r)){const y={ref:h};return q.cloneElement(r,y)}return r}return u&&t_.createPortal(r,u)});U_.NODE_ENV!=="production"&&(vb.propTypes={children:p.node,container:p.oneOfType([cf,p.func]),disablePortal:p.bool}),U_.NODE_ENV!=="production"&&(vb.propTypes=AR(vb.propTypes));function WQ(e){return Ft("MuiPopper",e)}Yt("MuiPopper",["root"]);var f7={};function KQ(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _3(e){return typeof e=="function"?e():e}function D3(e){return e.nodeType!==void 0}function QQ(e){return!D3(e)}const ZQ=e=>{const{classes:t}=e;return Wt({root:["root"]},WQ,t)},JQ={},eZ=q.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:l,disablePortal:u,modifiers:d,open:h,placement:y,popperOptions:v,popperRef:x,slotProps:T={},slots:E={},TransitionProps:A,ownerState:R,..._}=t,D=q.useRef(null),z=ai(D,n),V=q.useRef(null),P=ai(V,x),I=q.useRef(P);El(()=>{I.current=P},[P]),q.useImperativeHandle(x,()=>V.current,[]);const H=KQ(y,l),[X,se]=q.useState(H),[ce,ie]=q.useState(_3(r));q.useEffect(()=>{V.current&&V.current.forceUpdate()}),q.useEffect(()=>{r&&ie(_3(r))},[r]),El(()=>{if(!ce||!h)return;const ee=be=>{se(be.placement)};if(f7.NODE_ENV!=="production"&&ce&&D3(ce)&&ce.nodeType===1){const be=ce.getBoundingClientRect();R3()&&be.top===0&&be.left===0&&be.right===0&&be.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}let W=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:be})=>{ee(be)}}];d!=null&&(W=W.concat(d)),v&&v.modifiers!=null&&(W=W.concat(v.modifiers));const oe=FQ(ce,D.current,{placement:H,...v,modifiers:W});I.current(oe);const he=D.current;return()=>{if(he){const{style:be}=he,re=be.position,F=be.top,te=be.left,Y=be.transform;oe.destroy(),be.position=re,be.top=F,be.left=te,be.transform=Y}else oe.destroy();I.current(null)}},[ce,u,d,h,v,H]);const ue={placement:X};A!==null&&(ue.TransitionProps=A);const U=ZQ(t),le=E.root??"div",Q=oc({elementType:le,externalSlotProps:T.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:U.root});return L.jsx(le,{...Q,children:typeof a=="function"?a(ue):a})}),H_=q.forwardRef(function(t,n){const{anchorEl:r,children:a,container:l,direction:u="ltr",disablePortal:d=!1,keepMounted:h=!1,modifiers:y,open:v,placement:x="bottom",popperOptions:T=JQ,popperRef:E,style:A,transition:R=!1,slotProps:_={},slots:D={},...z}=t,[V,P]=q.useState(!0),I=()=>{P(!1)},H=()=>{P(!0)};if(!h&&!v&&(!R||V))return null;let X;if(l)X=l;else if(r){const ie=_3(r);X=ie&&D3(ie)?Gi(ie).body:Gi(null).body}const se=!v&&h&&(!R||V)?"none":void 0,ce=R?{in:v,onEnter:I,onExited:H}:void 0;return L.jsx(vb,{disablePortal:d,container:X,children:L.jsx(eZ,{anchorEl:r,direction:u,disablePortal:d,modifiers:y,ref:n,open:R?!V:v,placement:x,popperOptions:T,popperRef:E,slotProps:_,slots:D,...z,style:{position:"fixed",top:0,left:0,display:se,...A},TransitionProps:ce,children:a})})});f7.NODE_ENV!=="production"&&(H_.propTypes={anchorEl:du(p.oneOfType([cf,p.object,p.func]),e=>{if(e.open){const t=_3(e.anchorEl);if(t&&D3(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(f7.NODE_ENV!=="production"&&R3()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else if(!t||typeof t.getBoundingClientRect!="function"||QQ(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
`))}return null}),children:p.oneOfType([p.node,p.func]),container:p.oneOfType([cf,p.func]),direction:p.oneOf(["ltr","rtl"]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:yo,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});var tZ={};const nZ=rt(H_,{name:"MuiPopper",slot:"Root"})({}),d7=q.forwardRef(function(t,n){const r=d3(),a=Jt({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:d,componentsProps:h,container:y,disablePortal:v,keepMounted:x,modifiers:T,open:E,placement:A,popperOptions:R,popperRef:_,transition:D,slots:z,slotProps:V,...P}=a,I=(z==null?void 0:z.root)??(d==null?void 0:d.Root),H={anchorEl:l,container:y,disablePortal:v,keepMounted:x,modifiers:T,open:E,placement:A,popperOptions:R,popperRef:_,transition:D,...P};return L.jsx(nZ,{as:u,direction:r?"rtl":"ltr",slots:{root:I},slotProps:V??h,...H,ref:n})});tZ.NODE_ENV!=="production"&&(d7.propTypes={anchorEl:p.oneOfType([cf,p.object,p.func]),children:p.oneOfType([p.node,p.func]),component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([cf,p.func]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:yo,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transition:p.bool});const rZ=Di(L.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function iZ(e){return Ft("MuiChip",e)}const Bn=Yt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);var q_={};const aZ=e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:l,onDelete:u,clickable:d,variant:h}=e,y={root:["root",h,n&&"disabled",`size${We(r)}`,`color${We(a)}`,d&&"clickable",d&&`clickableColor${We(a)}`,u&&"deletable",u&&`deletableColor${We(a)}`,`${h}${We(a)}`],label:["label",`label${We(r)}`],avatar:["avatar",`avatar${We(r)}`,`avatarColor${We(a)}`],icon:["icon",`icon${We(r)}`,`iconColor${We(l)}`],deleteIcon:["deleteIcon",`deleteIcon${We(r)}`,`deleteIconColor${We(a)}`,`deleteIcon${We(h)}Color${We(a)}`]};return Wt(y,iZ,t)},oZ=rt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:l,onDelete:u,size:d,variant:h}=n;return[{[`& .${Bn.avatar}`]:t.avatar},{[`& .${Bn.avatar}`]:t[`avatar${We(d)}`]},{[`& .${Bn.avatar}`]:t[`avatarColor${We(r)}`]},{[`& .${Bn.icon}`]:t.icon},{[`& .${Bn.icon}`]:t[`icon${We(d)}`]},{[`& .${Bn.icon}`]:t[`iconColor${We(a)}`]},{[`& .${Bn.deleteIcon}`]:t.deleteIcon},{[`& .${Bn.deleteIcon}`]:t[`deleteIcon${We(d)}`]},{[`& .${Bn.deleteIcon}`]:t[`deleteIconColor${We(r)}`]},{[`& .${Bn.deleteIcon}`]:t[`deleteIcon${We(h)}Color${We(r)}`]},t.root,t[`size${We(d)}`],t[`color${We(r)}`],l&&t.clickable,l&&r!=="default"&&t[`clickableColor${We(r)}`],u&&t.deletable,u&&r!=="default"&&t[`deletableColor${We(r)}`],t[h],t[`${h}${We(r)}`]]}})(Kt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Bn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Bn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Bn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Bn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Bn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Bn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Bn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Bn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Bn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Bn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Bn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Bn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Bn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Bn.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Bn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Bn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Bn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Bn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Bn.avatar}`]:{marginLeft:4},[`& .${Bn.avatarSmall}`]:{marginLeft:2},[`& .${Bn.icon}`]:{marginLeft:4},[`& .${Bn.iconSmall}`]:{marginLeft:2},[`& .${Bn.deleteIcon}`]:{marginRight:5},[`& .${Bn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Bn.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Bn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Bn.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),lZ=rt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${We(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function G_(e){return e.key==="Backspace"||e.key==="Delete"}const F_=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiChip"}),{avatar:a,className:l,clickable:u,color:d="default",component:h,deleteIcon:y,disabled:v=!1,icon:x,label:T,onClick:E,onDelete:A,onKeyDown:R,onKeyUp:_,size:D="medium",variant:z="filled",tabIndex:V,skipFocusWhenDisabled:P=!1,slots:I={},slotProps:H={},...X}=r,se=q.useRef(null),ce=ai(se,n),ie=_e=>{_e.stopPropagation(),A(_e)},ue=_e=>{_e.currentTarget===_e.target&&G_(_e)&&_e.preventDefault(),R&&R(_e)},U=_e=>{_e.currentTarget===_e.target&&A&&G_(_e)&&A(_e),_&&_(_e)},le=u!==!1&&E?!0:u,Q=le||A?jd:h||"div",ee={...r,component:Q,disabled:v,size:D,color:d,iconColor:q.isValidElement(x)&&x.props.color||d,onDelete:!!A,clickable:le,variant:z},W=aZ(ee),oe=Q===jd?{component:h||"div",focusVisibleClassName:W.focusVisible,...A&&{disableRipple:!0}}:{};let he=null;A&&(he=y&&q.isValidElement(y)?q.cloneElement(y,{className:At(y.props.className,W.deleteIcon),onClick:ie}):L.jsx(rZ,{className:W.deleteIcon,onClick:ie}));let be=null;a&&q.isValidElement(a)&&(be=q.cloneElement(a,{className:At(W.avatar,a.props.className)}));let re=null;x&&q.isValidElement(x)&&(re=q.cloneElement(x,{className:At(W.icon,x.props.className)})),q_.NODE_ENV!=="production"&&be&&re&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:I,slotProps:H},[te,Y]=ln("root",{elementType:oZ,externalForwardedProps:{...F,...X},ownerState:ee,shouldForwardComponentProp:!0,ref:ce,className:At(W.root,l),additionalProps:{disabled:le&&v?!0:void 0,tabIndex:P&&v?-1:V,...oe},getSlotProps:_e=>({..._e,onClick:Be=>{var Ue;(Ue=_e.onClick)==null||Ue.call(_e,Be),E==null||E(Be)},onKeyDown:Be=>{var Ue;(Ue=_e.onKeyDown)==null||Ue.call(_e,Be),ue(Be)},onKeyUp:Be=>{var Ue;(Ue=_e.onKeyUp)==null||Ue.call(_e,Be),U(Be)}})}),[Me,Ee]=ln("label",{elementType:lZ,externalForwardedProps:F,ownerState:ee,className:W.label});return L.jsxs(te,{as:Q,...Y,children:[be||re,L.jsx(Me,{...Ee,children:T}),he]})});q_.NODE_ENV!=="production"&&(F_.propTypes={avatar:p.element,children:yW,classes:p.object,className:p.string,clickable:p.bool,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,deleteIcon:p.element,disabled:p.bool,icon:p.element,label:p.node,onClick:p.func,onDelete:p.func,onKeyDown:p.func,onKeyUp:p.func,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),skipFocusWhenDisabled:p.bool,slotProps:p.shape({label:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({label:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,variant:p.oneOfType([p.oneOf(["filled","outlined"]),p.string])});var sZ={};function N3(e){return parseInt(e,10)||0}const uZ={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function cZ(e){for(const t in e)return!1;return!0}function Y_(e){return cZ(e)||e.outerHeightStyle===0&&!e.overflowing}const h7=q.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:l=1,style:u,value:d,...h}=t,{current:y}=q.useRef(d!=null),v=q.useRef(null),x=ai(n,v),T=q.useRef(null),E=q.useRef(null),A=q.useCallback(()=>{const V=v.current,P=E.current;if(!V||!P)return;const H=sf(V).getComputedStyle(V);if(H.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=H.width,P.value=V.value||t.placeholder||"x",P.value.slice(-1)===`
`&&(P.value+=" ");const X=H.boxSizing,se=N3(H.paddingBottom)+N3(H.paddingTop),ce=N3(H.borderBottomWidth)+N3(H.borderTopWidth),ie=P.scrollHeight;P.value="x";const ue=P.scrollHeight;let U=ie;l&&(U=Math.max(Number(l)*ue,U)),a&&(U=Math.min(Number(a)*ue,U)),U=Math.max(U,ue);const le=U+(X==="border-box"?se+ce:0),Q=Math.abs(U-ie)<=1;return{outerHeightStyle:le,overflowing:Q}},[a,l,t.placeholder]),R=Zl(()=>{const V=v.current,P=A();if(!V||!P||Y_(P))return!1;const I=P.outerHeightStyle;return T.current!=null&&T.current!==I}),_=q.useCallback(()=>{const V=v.current,P=A();if(!V||!P||Y_(P))return;const I=P.outerHeightStyle;T.current!==I&&(T.current=I,V.style.height=`${I}px`),V.style.overflow=P.overflowing?"hidden":""},[A]),D=q.useRef(-1);El(()=>{const V=XR(_),P=v==null?void 0:v.current;if(!P)return;const I=sf(P);I.addEventListener("resize",V);let H;return typeof ResizeObserver<"u"&&(H=new ResizeObserver(()=>{R()&&(H.unobserve(P),cancelAnimationFrame(D.current),_(),D.current=requestAnimationFrame(()=>{H.observe(P)}))}),H.observe(P)),()=>{V.clear(),cancelAnimationFrame(D.current),I.removeEventListener("resize",V),H&&H.disconnect()}},[A,_,R]),El(()=>{_()});const z=V=>{y||_();const P=V.target,I=P.value.length,H=P.value.endsWith(`
`),X=P.selectionStart===I;H&&X&&P.setSelectionRange(I,I),r&&r(V)};return L.jsxs(q.Fragment,{children:[L.jsx("textarea",{value:d,onChange:z,ref:x,rows:l,style:u,...h}),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:E,tabIndex:-1,style:{...uZ.shadow,...u,paddingTop:0,paddingBottom:0}})]})});sZ.NODE_ENV!=="production"&&(h7.propTypes={className:p.string,maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),onChange:p.func,placeholder:p.string,style:p.object,value:p.oneOfType([p.arrayOf(p.string),p.number,p.string])});function Ud({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}var fZ={};const bb=q.createContext(void 0);fZ.NODE_ENV!=="production"&&(bb.displayName="FormControlContext");function pu(){return q.useContext(bb)}function Hd(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function X_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function k3(e,t=!1){return e&&(X_(e.value)&&e.value!==""||t&&X_(e.defaultValue)&&e.defaultValue!=="")}function dZ(e){return e.startAdornment}function hZ(e){return Ft("MuiInputBase",e)}const Mg=Yt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var xb={},W_;const p7="mui-auto-fill",z3="mui-auto-fill-cancel",I3=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${We(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},L3=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},pZ=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:l,focused:u,formControl:d,fullWidth:h,hiddenLabel:y,multiline:v,readOnly:x,size:T,startAdornment:E,type:A}=e,R={root:["root",`color${We(n)}`,r&&"disabled",a&&"error",h&&"fullWidth",u&&"focused",d&&"formControl",T&&T!=="medium"&&`size${We(T)}`,v&&"multiline",E&&"adornedStart",l&&"adornedEnd",y&&"hiddenLabel",x&&"readOnly"],input:["input",r&&"disabled",A==="search"&&"inputTypeSearch",v&&"inputMultiline",T==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",E&&"inputAdornedStart",l&&"inputAdornedEnd",x&&"readOnly"]};return Wt(R,hZ,t)},V3=rt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:I3})(Kt(({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",[`&.${Mg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),B3=rt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:L3})(Kt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mg.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Mg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:z3,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:p7}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),K_=lW({[`@keyframes ${p7}`]:{from:{animationName:p7}},[`@keyframes ${z3}`]:{from:{animationName:z3}}}),P3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:l,autoFocus:u,className:d,color:h,components:y={},componentsProps:v={},defaultValue:x,disabled:T,disableInjectingGlobalStyles:E,endAdornment:A,error:R,fullWidth:_=!1,id:D,inputComponent:z="input",inputProps:V={},inputRef:P,margin:I,maxRows:H,minRows:X,multiline:se=!1,name:ce,onBlur:ie,onChange:ue,onClick:U,onFocus:le,onKeyDown:Q,onKeyUp:ee,placeholder:W,readOnly:oe,renderSuffix:he,rows:be,size:re,slotProps:F={},slots:te={},startAdornment:Y,type:Me="text",value:Ee,..._e}=r,Be=V.value!=null?V.value:Ee,{current:Ue}=q.useRef(Be!=null),Ye=q.useRef(),Xe=q.useCallback(wt=>{xb.NODE_ENV!=="production"&&wt&&wt.nodeName!=="INPUT"&&!wt.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
`))},[]),Je=ai(Ye,P,V.ref,Xe),[Ve,Re]=q.useState(!1),ut=pu();xb.NODE_ENV!=="production"&&q.useEffect(()=>{if(ut)return ut.registerEffect()},[ut]);const Vt=Ud({props:r,muiFormControl:ut,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Vt.focused=ut?ut.focused:Ve,q.useEffect(()=>{!ut&&T&&Ve&&(Re(!1),ie&&ie())},[ut,T,Ve,ie]);const Qt=ut&&ut.onFilled,St=ut&&ut.onEmpty,$t=q.useCallback(wt=>{k3(wt)?Qt&&Qt():St&&St()},[Qt,St]);El(()=>{Ue&&$t({value:Be})},[Be,$t,Ue]),El(()=>{if(!u)return;const wt=Ye.current;if(!wt)return;const fn=Gi(wt),Lt=Hd(fn),Ht=Lt==null||Lt===fn.body||Lt===fn.documentElement;wt===Lt?ut&&ut.onFocus?ut.onFocus():Re(!0):Ht&&wt.focus()},[u]);const Cn=wt=>{le&&le(wt),V.onFocus&&V.onFocus(wt),ut&&ut.onFocus?ut.onFocus(wt):Re(!0)},vn=wt=>{ie&&ie(wt),V.onBlur&&V.onBlur(wt),ut&&ut.onBlur?ut.onBlur(wt):Re(!1)},it=(wt,...fn)=>{if(!Ue){const Lt=wt.target||Ye.current;if(Lt==null)throw new Error(xb.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":rf(1));$t({value:Lt.value})}V.onChange&&V.onChange(wt,...fn),ue&&ue(wt,...fn)};q.useEffect(()=>{$t(Ye.current)},[]);const Mt=wt=>{Ye.current&&wt.currentTarget===wt.target&&Ye.current.focus(),U&&U(wt)};let Dn=z,tn=V;se&&Dn==="input"&&(be?(xb.NODE_ENV!=="production"&&(X||H)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),tn={type:void 0,minRows:be,maxRows:be,...tn}):tn={type:void 0,maxRows:H,minRows:X,...tn},Dn=h7);const et=wt=>{$t(wt.animationName===z3?Ye.current:{value:"x"})};q.useEffect(()=>{ut&&ut.setAdornedStart(!!Y)},[ut,Y]);const xe={...r,color:Vt.color||"primary",disabled:Vt.disabled,endAdornment:A,error:Vt.error,focused:Vt.focused,formControl:ut,fullWidth:_,hiddenLabel:Vt.hiddenLabel,multiline:se,size:Vt.size,startAdornment:Y,type:Me},Le=pZ(xe),at=te.root||y.Root||V3,dt=F.root||v.root||{},ht=te.input||y.Input||B3;return tn={...tn,...F.input??v.input},L.jsxs(q.Fragment,{children:[!E&&typeof K_=="function"&&(W_||(W_=L.jsx(K_,{}))),L.jsxs(at,{...dt,ref:n,onClick:Mt,..._e,...!rc(at)&&{ownerState:{...xe,...dt.ownerState}},className:At(Le.root,dt.className,d,oe&&"MuiInputBase-readOnly"),children:[Y,L.jsx(bb.Provider,{value:null,children:L.jsx(ht,{"aria-invalid":Vt.error,"aria-describedby":a,autoComplete:l,autoFocus:u,defaultValue:x,disabled:Vt.disabled,id:D,onAnimationStart:et,name:ce,placeholder:W,readOnly:oe,required:Vt.required,rows:be,value:Be,onKeyDown:Q,onKeyUp:ee,type:Me,...tn,...!rc(ht)&&{as:Dn,ownerState:{...xe,...tn.ownerState}},ref:Je,className:At(Le.input,tn.className,oe&&"MuiInputBase-readOnly"),onBlur:vn,onChange:it,onFocus:Cn})}),A,he?he({...Vt,startAdornment:Y}):null]})]})});xb.NODE_ENV!=="production"&&(P3.propTypes={"aria-describedby":p.string,autoComplete:p.string,autoFocus:p.bool,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableInjectingGlobalStyles:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:S3,inputProps:p.object,inputRef:yo,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onClick:p.func,onFocus:p.func,onInvalid:p.func,onKeyDown:p.func,onKeyUp:p.func,placeholder:p.string,readOnly:p.bool,renderSuffix:p.func,required:p.bool,rows:p.oneOfType([p.number,p.string]),size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any});function mZ(e){return Ft("MuiInput",e)}const Sb={...Mg,...Yt("MuiInput",["root","underline","input"])};function gZ(e){return Ft("MuiOutlinedInput",e)}const lc={...Mg,...Yt("MuiOutlinedInput",["root","notchedOutline","input"])};function yZ(e){return Ft("MuiFilledInput",e)}const z0={...Mg,...Yt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},vZ=Di(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bZ=Di(L.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function xZ(e){return Ft("MuiAvatar",e)}Yt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var SZ={};const EZ=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Wt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xZ,t)},wZ=rt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Kt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),TZ=rt("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AZ=rt(bZ,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function CZ({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,l]=q.useState(!1);return q.useEffect(()=>{if(!n&&!r)return;l(!1);let u=!0;const d=new Image;return d.onload=()=>{u&&l("loaded")},d.onerror=()=>{u&&l("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=n,r&&(d.srcset=r),()=>{u=!1}},[e,t,n,r]),a}const Q_=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiAvatar"}),{alt:a,children:l,className:u,component:d="div",slots:h={},slotProps:y={},imgProps:v,sizes:x,src:T,srcSet:E,variant:A="circular",...R}=r;let _=null;const D={...r,component:d,variant:A},z=CZ({...v,...typeof y.img=="function"?y.img(D):y.img,src:T,srcSet:E}),V=T||E,P=V&&z!=="error";D.colorDefault=!P,delete D.ownerState;const I=EZ(D),[H,X]=ln("root",{ref:n,className:At(I.root,u),elementType:wZ,externalForwardedProps:{slots:h,slotProps:y,component:d,...R},ownerState:D}),[se,ce]=ln("img",{className:I.img,elementType:TZ,externalForwardedProps:{slots:h,slotProps:{img:{...v,...y.img}}},additionalProps:{alt:a,src:T,srcSet:E,sizes:x},ownerState:D}),[ie,ue]=ln("fallback",{className:I.fallback,elementType:AZ,externalForwardedProps:{slots:h,slotProps:y},shouldForwardComponentProp:!0,ownerState:D});return P?_=L.jsx(se,{...ce}):l||l===0?_=l:V&&a?_=a[0]:_=L.jsx(ie,{...ue}),L.jsx(H,{...X,children:_})});SZ.NODE_ENV!=="production"&&(Q_.propTypes={alt:p.string,children:p.node,classes:p.object,className:p.string,component:p.elementType,imgProps:p.object,sizes:p.string,slotProps:p.shape({fallback:p.oneOfType([p.func,p.object]),img:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({fallback:p.elementType,img:p.elementType,root:p.elementType}),src:p.string,srcSet:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["circular","rounded","square"]),p.string])});function OZ(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Z_(e,t,n,r,a){const l=e[t],u=a||t;if(l==null||typeof window>"u")return null;let d;const h=l.type;return typeof h=="function"&&!OZ(h)&&(d="Did you accidentally use a plain function component for an element instead?"),d!==void 0?new Error(`Invalid ${r} \`${u}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${d} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Rg=du(p.element,Z_);Rg.isRequired=du(p.element.isRequired,Z_);var MZ={};const RZ={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},_Z={opacity:0,visibility:"hidden"},j3=q.forwardRef(function(t,n){const r=lf(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:d,easing:h,in:y,onEnter:v,onEntered:x,onEntering:T,onExit:E,onExited:A,onExiting:R,style:_,timeout:D=a,...z}=t,V=q.useRef(null),P=ai(V,Og(d),n),I=Jl(V,T),H=Jl(V,(U,le)=>{o_(U);const Q=E3({style:_,timeout:D,easing:h},{mode:"enter"});U.style.transition=r.transitions.create("opacity",Q),v&&v(U,le)}),X=Jl(V,x),se=Jl(V,R),ce=Jl(V,U=>{const le=E3({style:_,timeout:D,easing:h},{mode:"exit"});U.style.transition=r.transitions.create("opacity",le),E&&E(U)}),ie=Jl(V,U=>{U.style.transition="",A&&A(U)}),ue=U=>{l&&l(V.current,U)};return L.jsx(nc,{appear:u,in:y,nodeRef:V,onEnter:H,onEntered:X,onEntering:I,onExit:ce,onExited:ie,onExiting:se,addEndListener:ue,timeout:D,...z,children:(U,{ownerState:le,...Q})=>{const ee=l_(U,y,RZ,_Z,_,d.props.style);return q.cloneElement(d,{style:ee,ref:P,...Q})}})});MZ.NODE_ENV!=="production"&&(j3.propTypes={addEndListener:p.func,appear:p.bool,children:Rg.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});function DZ(e){return Ft("MuiBackdrop",e)}Yt("MuiBackdrop",["root","invisible"]);var NZ={};const kZ=e=>{const{classes:t,invisible:n}=e;return Wt({root:["root",n&&"invisible"]},DZ,t)},zZ=rt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),m7=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",invisible:d=!1,open:h,components:y={},componentsProps:v={},slotProps:x={},slots:T={},TransitionComponent:E,transitionDuration:A,...R}=r,_={...r,component:u,invisible:d},D=kZ(_),z={transition:E,root:y.Root,...T},V={...v,...x},P={component:u,slots:z,slotProps:V},[I,H]=ln("root",{elementType:zZ,externalForwardedProps:P,className:At(D.root,l),ownerState:_}),[X,se]=ln("transition",{elementType:j3,externalForwardedProps:P,ownerState:_});return L.jsx(X,{in:h,timeout:A,...R,...se,children:L.jsx(I,{"aria-hidden":!0,...H,ref:n,children:a})})});NZ.NODE_ENV!=="production"&&(m7.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.object}),invisible:p.bool,open:p.bool.isRequired,slotProps:p.shape({root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});const IZ=Yt("MuiBox",["root"]);var LZ={};const VZ=GR(),wi=CY({themeId:g3,defaultTheme:VZ,defaultClassName:IZ.root,generateClassName:mM.generate});LZ.NODE_ENV!=="production"&&(wi.propTypes={children:p.node,component:p.elementType,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function BZ(e){return Ft("MuiButton",e)}const I0=Yt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);var PZ={};const J_=q.createContext({});PZ.NODE_ENV!=="production"&&(J_.displayName="ButtonGroupContext");var jZ={};const eD=q.createContext(void 0);jZ.NODE_ENV!=="production"&&(eD.displayName="ButtonGroupButtonContext");var $Z={};const UZ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:l,loading:u,loadingPosition:d,classes:h}=e,y={root:["root",u&&"loading",l,`${l}${We(t)}`,`size${We(a)}`,`${l}Size${We(a)}`,`color${We(t)}`,n&&"disableElevation",r&&"fullWidth",u&&`loadingPosition${We(d)}`],startIcon:["icon","startIcon",`iconSize${We(a)}`],endIcon:["icon","endIcon",`iconSize${We(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},v=Wt(y,BZ,h);return{...h,...v}},tD=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],HZ=rt(jd,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${We(n.color)}`],t[`size${We(n.size)}`],t[`${n.variant}Size${We(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Kt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${I0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:r})=>r.startIcon||r.loading&&r.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${I0.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${I0.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${I0.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Fr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${I0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${I0.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${I0.loading}`]:{color:"transparent"}}}]}})),qZ=rt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${We(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...tD]})),GZ=rt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${We(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...tD]})),FZ=rt("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),nD=rt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),qd=q.forwardRef(function(t,n){const r=q.useContext(J_),a=q.useContext(eD),l=nb(r,t),u=Jt({props:l,name:"MuiButton"}),{children:d,color:h="primary",component:y="button",className:v,disabled:x=!1,disableElevation:T=!1,disableFocusRipple:E=!1,endIcon:A,focusVisibleClassName:R,fullWidth:_=!1,id:D,loading:z=null,loadingIndicator:V,loadingPosition:P="center",size:I="medium",startIcon:H,type:X,variant:se="text",...ce}=u,ie=O0(D),ue=V??L.jsx(cb,{"aria-labelledby":ie,color:"inherit",size:16}),U={...u,color:h,component:y,disabled:x,disableElevation:T,disableFocusRipple:E,fullWidth:_,loading:z,loadingIndicator:ue,loadingPosition:P,size:I,type:X,variant:se},le=UZ(U),Q=(H||z&&P==="start")&&L.jsx(qZ,{className:le.startIcon,ownerState:U,children:H||L.jsx(nD,{className:le.loadingIconPlaceholder,ownerState:U})}),ee=(A||z&&P==="end")&&L.jsx(GZ,{className:le.endIcon,ownerState:U,children:A||L.jsx(nD,{className:le.loadingIconPlaceholder,ownerState:U})}),W=a||"",oe=typeof z=="boolean"?L.jsx("span",{className:le.loadingWrapper,style:{display:"contents"},children:z&&L.jsx(FZ,{className:le.loadingIndicator,ownerState:U,children:ue})}):null,{root:he,...be}=le;return L.jsxs(HZ,{ownerState:U,className:At(r.className,le.root,v,W),component:y,disabled:x||z,focusRipple:!E,focusVisibleClassName:At(le.focusVisible,R),ref:n,type:X,id:z?ie:D,...ce,classes:be,children:[Q,P!=="end"&&oe,d,P==="end"&&oe,ee]})});$Z.NODE_ENV!=="production"&&(qd.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","success","error","info","warning"]),p.string]),component:p.elementType,disabled:p.bool,disableElevation:p.bool,disableFocusRipple:p.bool,disableRipple:p.bool,endIcon:p.node,focusVisibleClassName:p.string,fullWidth:p.bool,href:p.string,id:p.string,loading:p.bool,loadingIndicator:p.node,loadingPosition:p.oneOf(["center","end","start"]),size:p.oneOfType([p.oneOf(["small","medium","large"]),p.string]),startIcon:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.oneOfType([p.oneOf(["button","reset","submit"]),p.string]),variant:p.oneOfType([p.oneOf(["contained","outlined","text"]),p.string])});function YZ(e){return Ft("PrivateSwitchBase",e)}Yt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var XZ={};const WZ=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,l={root:["root",n&&"checked",r&&"disabled",a&&`edge${We(a)}`],input:["input"]};return Wt(l,YZ,t)},KZ=rt(jd,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),QZ=rt("input",{name:"MuiSwitchBase",shouldForwardProp:Ca})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$3=q.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:l,defaultChecked:u,disabled:d,disableFocusRipple:h=!1,edge:y=!1,icon:v,id:x,inputProps:T,inputRef:E,name:A,onBlur:R,onChange:_,onFocus:D,readOnly:z,required:V=!1,tabIndex:P,type:I,value:H,slots:X={},slotProps:se={},...ce}=t,[ie,ue]=yg({controlled:a,default:!!u,name:"SwitchBase",state:"checked"}),U=pu(),le=Ee=>{D&&D(Ee),U&&U.onFocus&&U.onFocus(Ee)},Q=Ee=>{R&&R(Ee),U&&U.onBlur&&U.onBlur(Ee)},ee=Ee=>{if(Ee.nativeEvent.defaultPrevented||z)return;const _e=Ee.target.checked;ue(_e),_&&_(Ee,_e)};let W=d;U&&typeof W>"u"&&(W=U.disabled);const oe=I==="checkbox"||I==="radio",he={...t,checked:ie,disabled:W,disableFocusRipple:h,edge:y},be=WZ(he),re={slots:X,slotProps:{input:T,...se}},[F,te]=ln("root",{ref:n,elementType:KZ,className:be.root,shouldForwardComponentProp:!0,externalForwardedProps:{...re,component:"span",...ce},getSlotProps:Ee=>({...Ee,onFocus:_e=>{var Be;(Be=Ee.onFocus)==null||Be.call(Ee,_e),le(_e)},onBlur:_e=>{var Be;(Be=Ee.onBlur)==null||Be.call(Ee,_e),Q(_e)}}),ownerState:he,additionalProps:{centerRipple:!0,focusRipple:!h,role:void 0,tabIndex:null}}),[Y,Me]=ln("input",{ref:E,elementType:QZ,className:be.input,externalForwardedProps:re,getSlotProps:Ee=>({...Ee,onChange:_e=>{var Be;(Be=Ee.onChange)==null||Be.call(Ee,_e),ee(_e)}}),ownerState:he,additionalProps:{autoFocus:r,checked:a,defaultChecked:u,disabled:W,id:oe?x:void 0,name:A,readOnly:z,required:V,tabIndex:P,type:I,...I==="checkbox"&&H===void 0?{}:{value:H}}});return L.jsxs(F,{...te,children:[L.jsx(Y,{...Me}),ie?l:v]})});XZ.NODE_ENV!=="production"&&($3.propTypes={autoFocus:p.bool,checked:p.bool,checkedIcon:p.node.isRequired,classes:p.object,className:p.string,defaultChecked:p.bool,disabled:p.bool,disableFocusRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node.isRequired,id:p.string,inputProps:p.object,inputRef:yo,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,readOnly:p.bool,required:p.bool,slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.object,tabIndex:p.oneOfType([p.number,p.string]),type:p.string.isRequired,value:p.any});const ZZ=Di(L.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),JZ=Di(L.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),eJ=Di(L.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function tJ(e){return Ft("MuiCheckbox",e)}const g7=Yt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var nJ={};const rJ=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,l={root:["root",n&&"indeterminate",`color${We(r)}`,`size${We(a)}`]},u=Wt(l,tJ,t);return{...t,...u}},iJ=rt($3,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${We(n.size)}`],n.color!=="default"&&t[`color${We(n.color)}`]]}})(Kt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{[`&.${g7.checked}, &.${g7.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${g7.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),aJ=L.jsx(JZ,{}),oJ=L.jsx(ZZ,{}),lJ=L.jsx(eJ,{}),rD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=aJ,color:l="primary",icon:u=oJ,indeterminate:d=!1,indeterminateIcon:h=lJ,inputProps:y,size:v="medium",disableRipple:x=!1,className:T,slots:E={},slotProps:A={},...R}=r,_=d?h:u,D=d?h:a,z={...r,disableRipple:x,color:l,indeterminate:d,size:v},V=rJ(z),P=A.input??y,[I,H]=ln("root",{ref:n,elementType:iJ,className:At(V.root,T),shouldForwardComponentProp:!0,externalForwardedProps:{slots:E,slotProps:A,...R},ownerState:z,additionalProps:{type:"checkbox",icon:q.cloneElement(_,{fontSize:_.props.fontSize??v}),checkedIcon:q.cloneElement(D,{fontSize:D.props.fontSize??v}),disableRipple:x,slots:E,slotProps:{input:Y2(typeof P=="function"?P(z):P,{"data-indeterminate":d,"aria-checked":d?"mixed":void 0})}}});return L.jsx(I,{...H,classes:V})});nJ.NODE_ENV!=="production"&&(rD.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,icon:p.node,id:p.string,indeterminate:p.bool,indeterminateIcon:p.node,inputProps:p.object,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function iD(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function sJ(e){const t=Gi(e);return t.body===e?sf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Eb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function aD(e){return parseFloat(sf(e).getComputedStyle(e).paddingRight)||0}function uJ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function oD(e,t,n,r,a){const l=[t,n,...r];[].forEach.call(e.children,u=>{const d=!l.includes(u),h=!uJ(u);d&&h&&Eb(u,a)})}function y7(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function cJ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(sJ(r)){const u=iD(sf(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${aD(r)+u}px`;const d=Gi(r).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{n.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${aD(h)+u}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=Gi(r).body;else{const u=r.parentElement,d=sf(r);l=(u==null?void 0:u.nodeName)==="HTML"&&d.getComputedStyle(u).overflowY==="scroll"?u:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:u,property:d})=>{l?u.style.setProperty(d,l):u.style.removeProperty(d)})}}function fJ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dJ{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Eb(t.modalRef,!1);const a=fJ(n);oD(n,t.mount,t.modalRef,a,!0);const l=y7(this.containers,u=>u.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=y7(this.containers,l=>l.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=cJ(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=y7(this.containers,u=>u.modals.includes(t)),l=this.containers[a];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&Eb(t.modalRef,n),oD(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(a,1);else{const u=l.modals[l.modals.length-1];u.modalRef&&Eb(u.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const v7="data-mui-focusable";function hJ(e){return e?e.hasAttribute(v7)?e:e.querySelector(`[${v7}]`):null}var b7={};const pJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mJ(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 gJ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function yJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gJ(e))}function vJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(pJ)).forEach((r,a)=>{const l=mJ(r);l===-1||!yJ(r)||(l===0?t.push(r):n.push({documentOrder:a,tabIndex:l,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function bJ(){return!0}function U3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:l=vJ,isEnabled:u=bJ,open:d}=e,h=q.useRef(!1),y=q.useRef(null),v=q.useRef(null),x=q.useRef(null),T=q.useRef(null),E=q.useRef(!1),A=q.useRef(null),R=ai(Og(t),A),_=q.useRef(null);q.useEffect(()=>{!d||!A.current||(E.current=!n)},[n,d]),q.useEffect(()=>{if(h.current=!1,!d||!A.current)return;const V=Gi(A.current),P=Hd(V),I=hJ(A.current)??A.current;return T3(A.current,P)||(I.hasAttribute("tabIndex")||(b7.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
`)),I.setAttribute("tabIndex","-1")),E.current&&I.focus()),()=>{a||(x.current&&x.current.focus&&(h.current=!0,x.current.focus()),x.current=null)}},[d]),q.useEffect(()=>{if(!d||!A.current)return;const V=Gi(A.current),P=X=>{if(_.current=X,r||!u()||X.key!=="Tab")return;Hd(V)===A.current&&X.shiftKey&&(h.current=!0,v.current&&v.current.focus())},I=()=>{var ie,ue;const X=A.current;if(X===null)return;const se=Hd(V);if(!V.hasFocus()||!u()||h.current){h.current=!1;return}if(T3(X,se)||r&&se!==y.current&&se!==v.current)return;if(se!==T.current)T.current=null;else if(T.current!==null)return;if(!E.current)return;let ce=[];if((se===y.current||se===v.current)&&(ce=l(A.current)),ce.length>0){const U=!!((ie=_.current)!=null&&ie.shiftKey&&((ue=_.current)==null?void 0:ue.key)==="Tab"),le=ce[0],Q=ce[ce.length-1];typeof le!="string"&&typeof Q!="string"&&(U?Q.focus():le.focus())}else X.focus()};V.addEventListener("focusin",I),V.addEventListener("keydown",P,!0);const H=setInterval(()=>{const X=Hd(V);X&&X.tagName==="BODY"&&I()},50);return()=>{clearInterval(H),V.removeEventListener("focusin",I),V.removeEventListener("keydown",P,!0)}},[n,r,a,u,d,l]);const D=V=>{x.current===null&&(x.current=V.relatedTarget),E.current=!0,T.current=V.target;const P=t.props.onFocus;P&&P(V)},z=V=>{x.current===null&&(x.current=V.relatedTarget),E.current=!0};return L.jsxs(q.Fragment,{children:[L.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:y,"data-testid":"sentinelStart"}),q.cloneElement(t,{ref:R,onFocus:D}),L.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:v,"data-testid":"sentinelEnd"})]})}b7.NODE_ENV!=="production"&&(U3.propTypes={children:Rg,disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableRestoreFocus:p.bool,getTabbable:p.func,isEnabled:p.func,open:p.bool.isRequired}),b7.NODE_ENV!=="production"&&(U3.propTypes=AR(U3.propTypes));function xJ(e){return typeof e=="function"?e():e}function SJ(e){return e?e.props.hasOwnProperty("in"):!1}const lD=()=>{},H3=new dJ;function EJ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:u,children:d,onClose:h,open:y,rootRef:v}=e,x=q.useRef({}),T=q.useRef(null),E=q.useRef(null),A=ai(E,v),[R,_]=q.useState(!y),D=SJ(d);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const V=()=>Gi(T.current),P=()=>(x.current.modalRef=E.current,x.current.mount=T.current,x.current),I=()=>{H3.mount(P(),{disableScrollLock:r}),E.current&&(E.current.scrollTop=0)},H=Zl(()=>{const ee=xJ(t)||V().body;H3.add(P(),ee),E.current&&I()}),X=()=>H3.isTopModal(P()),se=Zl(ee=>{T.current=ee,ee&&(y&&X()?I():E.current&&Eb(E.current,z))}),ce=q.useCallback(()=>{H3.remove(P(),z)},[z]);q.useEffect(()=>()=>{ce()},[ce]),q.useEffect(()=>{y?H():(!D||!a)&&ce()},[y,ce,D,a,H]);const ie=ee=>W=>{var oe;(oe=ee.onKeyDown)==null||oe.call(ee,W),!(W.key!=="Escape"||W.which===229||!X())&&(n||(W.stopPropagation(),h&&h(W,"escapeKeyDown")))},ue=ee=>W=>{var oe;(oe=ee.onClick)==null||oe.call(ee,W),W.target===W.currentTarget&&h&&h(W,"backdropClick")};return{getRootProps:(ee={})=>{const W=sb(e);delete W.onTransitionEnter,delete W.onTransitionExited;const oe={...W,...ee};return{role:"presentation",...oe,onKeyDown:ie(oe),ref:A}},getBackdropProps:(ee={})=>{const W=ee;return{"aria-hidden":!0,...W,onClick:ue(W),open:y}},getTransitionProps:()=>{const ee=()=>{_(!1),l&&l()},W=()=>{_(!0),u&&u(),a&&ce()};return{onEnter:u2(ee,(d==null?void 0:d.props.onEnter)??lD),onExited:u2(W,(d==null?void 0:d.props.onExited)??lD)}},rootRef:A,portalRef:se,isTopModal:X,exited:R,hasTransition:D}}function wJ(e){return Ft("MuiModal",e)}Yt("MuiModal",["root","hidden","backdrop"]);var TJ={};const AJ=e=>{const{open:t,exited:n,classes:r}=e;return Wt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wJ,r)},CJ=rt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Kt(({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"}}]}))),OJ=rt(m7,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),x7=q.forwardRef(function(t,n){const r=Jt({name:"MuiModal",props:t}),{BackdropComponent:a=OJ,BackdropProps:l,classes:u,className:d,closeAfterTransition:h=!1,children:y,container:v,component:x,components:T={},componentsProps:E={},disableAutoFocus:A=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:_=!1,disablePortal:D=!1,disableRestoreFocus:z=!1,disableScrollLock:V=!1,hideBackdrop:P=!1,keepMounted:I=!1,onClose:H,onTransitionEnter:X,onTransitionExited:se,open:ce,slotProps:ie={},slots:ue={},theme:U,...le}=r,Q={...r,closeAfterTransition:h,disableAutoFocus:A,disableEnforceFocus:R,disableEscapeKeyDown:_,disablePortal:D,disableRestoreFocus:z,disableScrollLock:V,hideBackdrop:P,keepMounted:I},{getRootProps:ee,getBackdropProps:W,getTransitionProps:oe,portalRef:he,isTopModal:be,exited:re,hasTransition:F}=EJ({...Q,rootRef:n}),te={...Q,exited:re},Y=AJ(te),Me={};if(y.props.tabIndex===void 0&&(Me.tabIndex="-1"),F){const{onEnter:Xe,onExited:Je}=oe();Me.onEnter=Xe,Me.onExited=Je}const Ee={slots:{root:T.Root,backdrop:T.Backdrop,...ue},slotProps:{...E,...ie}},[_e,Be]=ln("root",{ref:n,elementType:CJ,externalForwardedProps:{...Ee,...le,component:x},getSlotProps:ee,ownerState:te,className:At(d,Y==null?void 0:Y.root,!te.open&&te.exited&&(Y==null?void 0:Y.hidden))}),[Ue,Ye]=ln("backdrop",{ref:l==null?void 0:l.ref,elementType:a,externalForwardedProps:Ee,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:Xe=>W({...Xe,onClick:Je=>{Xe!=null&&Xe.onClick&&Xe.onClick(Je)}}),className:At(l==null?void 0:l.className,Y==null?void 0:Y.backdrop),ownerState:te});return!I&&!ce&&(!F||re)?null:L.jsx(vb,{ref:he,container:v,disablePortal:D,children:L.jsxs(_e,{...Be,children:[!P&&a?L.jsx(Ue,{...Ye}):null,L.jsx(U3,{disableEnforceFocus:R,disableAutoFocus:A,disableRestoreFocus:z,isEnabled:be,open:ce,children:q.cloneElement(y,Me)})]})})});TJ.NODE_ENV!=="production"&&(x7.propTypes={BackdropComponent:p.elementType,BackdropProps:p.object,children:Rg.isRequired,classes:p.object,className:p.string,closeAfterTransition:p.bool,component:p.elementType,components:p.shape({Backdrop:p.elementType,Root:p.elementType}),componentsProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([cf,p.func]),disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableEscapeKeyDown:p.bool,disablePortal:p.bool,disableRestoreFocus:p.bool,disableScrollLock:p.bool,hideBackdrop:p.bool,keepMounted:p.bool,onClose:p.func,onTransitionEnter:p.func,onTransitionExited:p.func,open:p.bool.isRequired,slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function MJ(e){return Ft("MuiDialog",e)}const S7=Yt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var RJ={};const E7=q.createContext({});RJ.NODE_ENV!=="production"&&(E7.displayName="DialogContext");var _J={};const DJ=rt(m7,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),NJ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:l}=e,u={root:["root"],backdrop:["backdrop"],container:["container",`scroll${We(n)}`],paper:["paper",`paperScroll${We(n)}`,`paperWidth${We(String(r))}`,a&&"paperFullWidth",l&&"paperFullScreen"]};return Wt(u,MJ,t)},kJ=rt(x7,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),zJ=rt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${We(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),IJ=rt(ub,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${We(n.scroll)}`],t[`paperWidth${We(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Kt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${S7.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${S7.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${S7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_g=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDialog"}),a=lf(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":d,"aria-modal":h=!0,BackdropComponent:y,BackdropProps:v,children:x,className:T,disableEscapeKeyDown:E=!1,fullScreen:A=!1,fullWidth:R=!1,maxWidth:_="sm",onClick:D,onClose:z,open:V,PaperComponent:P=ub,PaperProps:I={},role:H="dialog",scroll:X="paper",slots:se={},slotProps:ce={},TransitionComponent:ie=j3,transitionDuration:ue=l,TransitionProps:U,...le}=r,Q={...r,disableEscapeKeyDown:E,fullScreen:A,fullWidth:R,maxWidth:_,scroll:X},ee=NJ(Q),W=q.useRef(),oe=ut=>{W.current=ut.target===ut.currentTarget},he=ut=>{D&&D(ut),W.current&&(W.current=null,z&&z(ut,"backdropClick"))},be=O0(d),re=q.useMemo(()=>({titleId:be}),[be]),F={transition:ie,...se},te={transition:U,paper:I,backdrop:v,...ce},Y={slots:F,slotProps:te},[Me,Ee]=ln("root",{elementType:kJ,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:Q,className:At(ee.root,T),ref:n}),[_e,Be]=ln("backdrop",{elementType:DJ,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:Q,className:ee.backdrop}),[Ue,Ye]=ln("paper",{elementType:IJ,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:Q,className:ee.paper,additionalProps:{elevation:24,role:H,"aria-describedby":u,"aria-labelledby":be,"aria-modal":h,tabIndex:-1,[v7]:""}}),[Xe,Je]=ln("container",{elementType:zJ,externalForwardedProps:Y,ownerState:Q,className:ee.container}),[Ve,Re]=ln("transition",{elementType:j3,externalForwardedProps:Y,ownerState:Q,additionalProps:{appear:!0,in:V,timeout:ue,role:"presentation"}});return L.jsx(Me,{closeAfterTransition:!0,slots:{backdrop:_e},slotProps:{backdrop:{transitionDuration:ue,as:y,...Be}},disableEscapeKeyDown:E,onClose:z,open:V,onClick:he,...Ee,...le,children:L.jsx(Ve,{...Re,children:L.jsx(Xe,{onMouseDown:oe,...Je,children:L.jsx(Ue,{as:P,...Ye,children:L.jsx(E7.Provider,{value:re,children:x})})})})})});_J.NODE_ENV!=="production"&&(_g.propTypes={"aria-describedby":p.string,"aria-labelledby":p.string,"aria-modal":p.oneOfType([p.oneOf(["false","true"]),p.bool]),BackdropComponent:p.elementType,BackdropProps:p.object,children:p.node,classes:p.object,className:p.string,disableEscapeKeyDown:p.bool,fullScreen:p.bool,fullWidth:p.bool,maxWidth:p.oneOfType([p.oneOf(["xs","sm","md","lg","xl",!1]),p.string]),onClick:p.func,onClose:p.func,open:p.bool.isRequired,PaperComponent:p.elementType,PaperProps:p.object,role:p.oneOf(["alertdialog","dialog"]),scroll:p.oneOf(["body","paper"]),slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),container:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,container:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object});function LJ(e){return Ft("MuiDialogActions",e)}Yt("MuiDialogActions",["root","spacing"]);var VJ={};const BJ=e=>{const{classes:t,disableSpacing:n}=e;return Wt({root:["root",!n&&"spacing"]},LJ,t)},PJ=rt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),q3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:l=!1,...u}=r,d={...r,disableSpacing:l},h=BJ(d);return L.jsx(PJ,{className:At(h.root,a),ownerState:d,ref:n,...u})});VJ.NODE_ENV!=="production"&&(q3.propTypes={children:p.node,classes:p.object,className:p.string,disableSpacing:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function jJ(e){return Ft("MuiDialogContent",e)}Yt("MuiDialogContent",["root","dividers"]);function $J(e){return Ft("MuiDialogTitle",e)}const UJ=Yt("MuiDialogTitle",["root"]);var HJ={};const qJ=e=>{const{classes:t,dividers:n}=e;return Wt({root:["root",n&&"dividers"]},jJ,t)},GJ=rt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Kt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${UJ.root} + &`]:{paddingTop:0}}}]}))),Dg=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDialogContent"}),{className:a,dividers:l=!1,...u}=r,d={...r,dividers:l},h=qJ(d);return L.jsx(GJ,{className:At(h.root,a),ownerState:d,ref:n,...u})});HJ.NODE_ENV!=="production"&&(Dg.propTypes={children:p.node,classes:p.object,className:p.string,dividers:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var FJ={};const YJ=e=>{const{classes:t}=e;return Wt({root:["root"]},$J,t)},XJ=rt(Gn,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),G3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDialogTitle"}),{className:a,id:l,...u}=r,d=r,h=YJ(d),{titleId:y=l}=q.useContext(E7);return L.jsx(XJ,{component:"h2",className:At(h.root,a),ownerState:d,ref:n,variant:"h6",id:l??y,...u})});FJ.NODE_ENV!=="production"&&(G3.propTypes={children:p.node,classes:p.object,className:p.string,id:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function WJ(e){return Ft("MuiDivider",e)}const sD=Yt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var KJ={};const QJ=e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:l,orientation:u,textAlign:d,variant:h}=e;return Wt({root:["root",t&&"absolute",h,l&&"light",u==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&u==="vertical"&&"withChildrenVertical",d==="right"&&u!=="vertical"&&"textAlignRight",d==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},WJ,r)},ZJ=rt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Kt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),JJ=rt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Kt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),sc=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:l,className:u,orientation:d="horizontal",component:h=l||d==="vertical"?"div":"hr",flexItem:y=!1,light:v=!1,role:x=h!=="hr"?"separator":void 0,textAlign:T="center",variant:E="fullWidth",...A}=r,R={...r,absolute:a,component:h,flexItem:y,light:v,orientation:d,role:x,textAlign:T,variant:E},_=QJ(R);return L.jsx(ZJ,{as:h,className:At(_.root,u),role:x,ref:n,ownerState:R,"aria-orientation":x==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...A,children:l?L.jsx(JJ,{className:_.wrapper,ownerState:R,children:l}):null})});sc&&(sc.muiSkipListHighlight=!0),KJ.NODE_ENV!=="production"&&(sc.propTypes={absolute:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,flexItem:p.bool,light:p.bool,orientation:p.oneOf(["horizontal","vertical"]),role:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),textAlign:p.oneOf(["center","left","right"]),variant:p.oneOfType([p.oneOf(["fullWidth","inset","middle"]),p.string])});var eee={};const tee=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:l,hiddenLabel:u,multiline:d}=e,h={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",l==="small"&&`size${We(l)}`,u&&"hiddenLabel",d&&"multiline"],input:["input"]},y=Wt(h,yZ,t);return{...t,...y}},nee=rt(V3,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...I3(e,t),!n.disableUnderline&&t.underline]}})(Kt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${z0.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${z0.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${z0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${z0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${z0.disabled}, .${z0.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${z0.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Fr()).map(([u])=>{var d;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[u])==null?void 0:d.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:d})=>u.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ree=rt(B3,{name:"MuiFilledInput",slot:"Input",overridesResolver:L3})(Kt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),F3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:l={},componentsProps:u,fullWidth:d=!1,hiddenLabel:h,inputComponent:y="input",multiline:v=!1,slotProps:x,slots:T={},type:E="text",...A}=r,R={...r,disableUnderline:a,fullWidth:d,inputComponent:y,multiline:v,type:E},_=tee(r),D={root:{ownerState:R},input:{ownerState:R}},z=x??u?qa(D,x??u):D,V=T.root??l.Root??nee,P=T.input??l.Input??ree;return L.jsx(P3,{slots:{root:V,input:P},slotProps:z,fullWidth:d,inputComponent:y,multiline:v,ref:n,type:E,...A,classes:_})});eee.NODE_ENV!=="production"&&(F3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableUnderline:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,hiddenLabel:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:yo,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),F3.muiName="Input";function iee(e){return Ft("MuiFormControl",e)}Yt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var uD={};const aee=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${We(n)}`,r&&"fullWidth"]};return Wt(a,iee,t)},oee=rt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${We(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),pi=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFormControl"}),{children:a,className:l,color:u="primary",component:d="div",disabled:h=!1,error:y=!1,focused:v,fullWidth:x=!1,hiddenLabel:T=!1,margin:E="none",required:A=!1,size:R="medium",variant:_="outlined",...D}=r,z={...r,color:u,component:d,disabled:h,error:y,fullWidth:x,hiddenLabel:T,margin:E,required:A,size:R,variant:_},V=aee(z),[P,I]=q.useState(()=>{let W=!1;return a&&q.Children.forEach(a,oe=>{if(!ug(oe,["Input","Select"]))return;const he=ug(oe,["Select"])?oe.props.input:oe;he&&dZ(he.props)&&(W=!0)}),W}),[H,X]=q.useState(()=>{let W=!1;return a&&q.Children.forEach(a,oe=>{ug(oe,["Input","Select"])&&(k3(oe.props,!0)||k3(oe.props.inputProps,!0))&&(W=!0)}),W}),[se,ce]=q.useState(!1);h&&se&&ce(!1);const ie=v!==void 0&&!h?v:se;let ue;const U=q.useRef(!1);uD.NODE_ENV!=="production"&&(ue=()=>(U.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
`)),U.current=!0,()=>{U.current=!1}));const le=q.useCallback(()=>{X(!0)},[]),Q=q.useCallback(()=>{X(!1)},[]),ee=q.useMemo(()=>({adornedStart:P,setAdornedStart:I,color:u,disabled:h,error:y,filled:H,focused:ie,fullWidth:x,hiddenLabel:T,size:R,onBlur:()=>{ce(!1)},onFocus:()=>{ce(!0)},onEmpty:Q,onFilled:le,registerEffect:ue,required:A,variant:_}),[P,u,h,y,H,ie,x,T,ue,Q,le,A,R,_]);return L.jsx(bb.Provider,{value:ee,children:L.jsx(oee,{as:d,ownerState:z,className:At(V.root,l),ref:n,...D,children:a})})});uD.NODE_ENV!=="production"&&(pi.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,disabled:p.bool,error:p.bool,focused:p.bool,fullWidth:p.bool,hiddenLabel:p.bool,margin:p.oneOf(["dense","none","normal"]),required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});function lee(e){return Ft("MuiFormControlLabel",e)}const wb=Yt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var see={};const uee=e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:l}=e,u={root:["root",n&&"disabled",`labelPlacement${We(r)}`,a&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return Wt(u,lee,t)},cee=rt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wb.label}`]:t.label},t.root,t[`labelPlacement${We(n.labelPlacement)}`]]}})(Kt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${wb.disabled}`]:{cursor:"default"},[`& .${wb.label}`]:{[`&.${wb.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),fee=rt("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Kt(({theme:e})=>({[`&.${wb.error}`]:{color:(e.vars||e).palette.error.main}}))),uc=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFormControlLabel"}),{checked:a,className:l,componentsProps:u={},control:d,disabled:h,disableTypography:y,inputRef:v,label:x,labelPlacement:T="end",name:E,onChange:A,required:R,slots:_={},slotProps:D={},value:z,...V}=r,P=pu(),I=h??d.props.disabled??(P==null?void 0:P.disabled),H=R??d.props.required,X={disabled:I,required:H};["checked","name","onChange","value","inputRef"].forEach(ee=>{typeof d.props[ee]>"u"&&typeof r[ee]<"u"&&(X[ee]=r[ee])});const se=Ud({props:r,muiFormControl:P,states:["error"]}),ce={...r,disabled:I,labelPlacement:T,required:H,error:se.error},ie=uee(ce),ue={slots:_,slotProps:{...u,...D}},[U,le]=ln("typography",{elementType:Gn,externalForwardedProps:ue,ownerState:ce});let Q=x;return Q!=null&&Q.type!==Gn&&!y&&(Q=L.jsx(U,{component:"span",...le,className:At(ie.label,le==null?void 0:le.className),children:Q})),L.jsxs(cee,{className:At(ie.root,l),ownerState:ce,ref:n,...V,children:[q.cloneElement(d,X),H?L.jsxs("div",{children:[Q,L.jsxs(fee,{ownerState:ce,"aria-hidden":!0,className:ie.asterisk,children:[" ","*"]})]}):Q]})});see.NODE_ENV!=="production"&&(uc.propTypes={checked:p.bool,classes:p.object,className:p.string,componentsProps:p.shape({typography:p.object}),control:p.element.isRequired,disabled:p.bool,disableTypography:p.bool,inputRef:yo,label:p.node,labelPlacement:p.oneOf(["bottom","end","start","top"]),name:p.string,onChange:p.func,required:p.bool,slotProps:p.shape({typography:p.oneOfType([p.func,p.object])}),slots:p.shape({typography:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function dee(e){return Ft("MuiFormGroup",e)}Yt("MuiFormGroup",["root","row","error"]);var hee={};const pee=e=>{const{classes:t,row:n,error:r}=e;return Wt({root:["root",n&&"row",r&&"error"]},dee,t)},mee=rt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),cD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFormGroup"}),{className:a,row:l=!1,...u}=r,d=pu(),h=Ud({props:r,muiFormControl:d,states:["error"]}),y={...r,row:l,error:h.error},v=pee(y);return L.jsx(mee,{className:At(v.root,a),ownerState:y,ref:n,...u})});hee.NODE_ENV!=="production"&&(cD.propTypes={children:p.node,classes:p.object,className:p.string,row:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function gee(e){return Ft("MuiFormHelperText",e)}const fD=Yt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yee={},dD;const vee=e=>{const{classes:t,contained:n,size:r,disabled:a,error:l,filled:u,focused:d,required:h}=e,y={root:["root",a&&"disabled",l&&"error",r&&`size${We(r)}`,n&&"contained",d&&"focused",u&&"filled",h&&"required"]};return Wt(y,gee,t)},bee=rt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${We(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Kt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fD.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),hD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFormHelperText"}),{children:a,className:l,component:u="p",disabled:d,error:h,filled:y,focused:v,margin:x,required:T,variant:E,...A}=r,R=pu(),_=Ud({props:r,muiFormControl:R,states:["variant","size","disabled","error","filled","focused","required"]}),D={...r,component:u,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete D.ownerState;const z=vee(D);return L.jsx(bee,{as:u,className:At(z.root,l),ref:n,...A,ownerState:D,children:a===" "?dD||(dD=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});yee.NODE_ENV!=="production"&&(hD.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,disabled:p.bool,error:p.bool,filled:p.bool,focused:p.bool,margin:p.oneOf(["dense"]),required:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["filled","outlined","standard"]),p.string])});function xee(e){return Ft("MuiFormLabel",e)}const Tb=Yt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var See={};const Eee=e=>{const{classes:t,color:n,focused:r,disabled:a,error:l,filled:u,required:d}=e,h={root:["root",`color${We(n)}`,a&&"disabled",l&&"error",u&&"filled",r&&"focused",d&&"required"],asterisk:["asterisk",l&&"error"]};return Wt(h,xee,t)},wee=rt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Kt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{[`&.${Tb.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Tb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tb.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Tee=rt("span",{name:"MuiFormLabel",slot:"Asterisk"})(Kt(({theme:e})=>({[`&.${Tb.error}`]:{color:(e.vars||e).palette.error.main}}))),pD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiFormLabel"}),{children:a,className:l,color:u,component:d="label",disabled:h,error:y,filled:v,focused:x,required:T,...E}=r,A=pu(),R=Ud({props:r,muiFormControl:A,states:["color","required","focused","disabled","error","filled"]}),_={...r,color:R.color||"primary",component:d,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required},D=Eee(_);return L.jsxs(wee,{as:d,ownerState:_,className:At(D.root,l),ref:n,...E,children:[a,R.required&&L.jsxs(Tee,{ownerState:_,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]})});See.NODE_ENV!=="production"&&(pD.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["error","info","primary","secondary","success","warning"]),p.string]),component:p.elementType,disabled:p.bool,error:p.bool,filled:p.bool,focused:p.bool,required:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var mD={};const Dt=EX({createStyledComponent:rt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Jt({props:e,name:"MuiGrid"}),useTheme:lf});if(mD.NODE_ENV!=="production"&&(Dt.propTypes={children:p.node,columns:p.oneOfType([p.arrayOf(p.number),p.number,p.object]),columnSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),container:p.bool,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),offset:p.oneOfType([p.string,p.number,p.arrayOf(p.oneOfType([p.string,p.number])),p.object]),rowSpacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),size:p.oneOfType([p.string,p.bool,p.number,p.arrayOf(p.oneOfType([p.string,p.bool,p.number])),p.object]),spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),unstable_level:p.number,wrap:p.oneOf(["nowrap","wrap-reverse","wrap"])}),mD.NODE_ENV!=="production"){const e=Dt,t=mW("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}var Aee={};function Ab(e){return`scale(${e}, ${e**2})`}const Cee={entering:{opacity:1,transform:Ab(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Ab(.75)},exited:{opacity:0,transform:Ab(.75)}},Oee={opacity:0,transform:Ab(.75),visibility:"hidden"},Cb=q.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:l,easing:u,in:d,onEnter:h,onEntered:y,onEntering:v,onExit:x,onExited:T,onExiting:E,style:A,timeout:R="auto",..._}=t,D=xg(),z=q.useRef(),V=lf(),P=q.useRef(null),I=ai(P,Og(l),n),H=Jl(P,v),X=Jl(P,(le,Q)=>{o_(le);const{duration:ee,delay:W,easing:oe}=E3({style:A,timeout:R,easing:u},{mode:"enter"});let he;R==="auto"?(he=V.transitions.getAutoHeightDuration(le.clientHeight),z.current=he):he=ee,le.style.transition=[V.transitions.create("opacity",{duration:he,delay:W}),V.transitions.create("transform",{duration:he*.666,delay:W,easing:oe})].join(","),h&&h(le,Q)}),se=Jl(P,y),ce=Jl(P,E),ie=Jl(P,le=>{const{duration:Q,delay:ee,easing:W}=E3({style:A,timeout:R,easing:u},{mode:"exit"});let oe;R==="auto"?(oe=V.transitions.getAutoHeightDuration(le.clientHeight),z.current=oe):oe=Q,le.style.transition=[V.transitions.create("opacity",{duration:oe,delay:ee}),V.transitions.create("transform",{duration:oe*.666,delay:ee||oe*.333,easing:W})].join(","),le.style.opacity=0,le.style.transform=Ab(.75),x&&x(le)}),ue=Jl(P,le=>{le.style.transition="",T&&T(le)}),U=le=>{R==="auto"&&D.start(z.current||0,le),r&&r(P.current,le)};return L.jsx(nc,{appear:a,in:d,nodeRef:P,onEnter:X,onEntered:se,onEntering:H,onExit:ie,onExited:ue,onExiting:ce,addEndListener:U,timeout:R==="auto"?null:R,..._,children:(le,{ownerState:Q,...ee})=>{const W=l_(le,d,Cee,Oee,A,l.props.style);return q.cloneElement(l,{style:W,ref:I,...ee})}})});Aee.NODE_ENV!=="production"&&(Cb.propTypes={addEndListener:p.func,appear:p.bool,children:Rg.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])}),Cb&&(Cb.muiSupportAuto=!0);var Mee={};const Ree=e=>{const{classes:t,disableUnderline:n}=e,a=Wt({root:["root",!n&&"underline"],input:["input"]},mZ,t);return{...t,...a}},_ee=rt(V3,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...I3(e,t),!n.disableUnderline&&t.underline]}})(Kt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Sb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Sb.disabled}, .${Sb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Sb.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Fr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Dee=rt(B3,{name:"MuiInput",slot:"Input",overridesResolver:L3})({}),Y3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:y=!1,slotProps:v,slots:x={},type:T="text",...E}=r,A=Ree(r),_={root:{ownerState:{disableUnderline:a}}},D=v??u?qa(v??u,_):_,z=x.root??l.Root??_ee,V=x.input??l.Input??Dee;return L.jsx(P3,{slots:{root:z,input:V},slotProps:D,fullWidth:d,inputComponent:h,multiline:y,ref:n,type:T,...E,classes:A})});Mee.NODE_ENV!=="production"&&(Y3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),componentsProps:p.shape({input:p.object,root:p.object}),defaultValue:p.any,disabled:p.bool,disableUnderline:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:yo,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,root:p.object}),slots:p.shape({input:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),Y3.muiName="Input";function Nee(e){return Ft("MuiInputAdornment",e)}const gD=Yt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yD={},vD;const kee=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${We(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},zee=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:l,variant:u}=e,d={root:["root",n&&"disablePointerEvents",a&&`position${We(a)}`,u,r&&"hiddenLabel",l&&`size${We(l)}`]};return Wt(d,Nee,t)},Iee=rt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kee})(Kt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${gD.positionStart}&:not(.${gD.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),bD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiInputAdornment"}),{children:a,className:l,component:u="div",disablePointerEvents:d=!1,disableTypography:h=!1,position:y,variant:v,...x}=r,T=pu()||{};let E=v;v&&T.variant&&yD.NODE_ENV!=="production"&&v===T.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),T&&!E&&(E=T.variant);const A={...r,hiddenLabel:T.hiddenLabel,size:T.size,disablePointerEvents:d,position:y,variant:E},R=zee(A);return L.jsx(bb.Provider,{value:null,children:L.jsx(Iee,{as:u,ownerState:A,className:At(R.root,l),ref:n,...x,children:typeof a=="string"&&!h?L.jsx(Gn,{color:"textSecondary",children:a}):L.jsxs(q.Fragment,{children:[y==="start"?vD||(vD=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})});yD.NODE_ENV!=="production"&&(bD.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,disablePointerEvents:p.bool,disableTypography:p.bool,position:p.oneOf(["end","start"]).isRequired,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});function Lee(e){return Ft("MuiInputLabel",e)}Yt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var Vee={};const Bee=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:l,variant:u,required:d}=e,h={root:["root",n&&"formControl",!l&&"animated",a&&"shrink",r&&r!=="medium"&&`size${We(r)}`,u],asterisk:[d&&"asterisk"]},y=Wt(h,Lee,t);return{...t,...y}},Pee=rt(pD,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tb.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Kt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xD=q.forwardRef(function(t,n){const r=Jt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:l,shrink:u,variant:d,className:h,...y}=r,v=pu();let x=u;typeof x>"u"&&v&&(x=v.filled||v.focused||v.adornedStart);const T=Ud({props:r,muiFormControl:v,states:["size","variant","required","focused"]}),E={...r,disableAnimation:a,formControl:v,shrink:x,size:T.size,variant:T.variant,required:T.required,focused:T.focused},A=Bee(E);return L.jsx(Pee,{"data-shrink":x,ref:n,className:At(A.root,h),...y,ownerState:E,classes:A})});Vee.NODE_ENV!=="production"&&(xD.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["error","info","primary","secondary","success","warning"]),p.string]),disableAnimation:p.bool,disabled:p.bool,error:p.bool,focused:p.bool,margin:p.oneOf(["dense"]),required:p.bool,shrink:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOf(["filled","outlined","standard"])});var jee={};const mu=q.createContext({});jee.NODE_ENV!=="production"&&(mu.displayName="ListContext");function $ee(e){return Ft("MuiList",e)}Yt("MuiList",["root","padding","dense","subheader"]);var Uee={};const Hee=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return Wt({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},$ee,t)},qee=rt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiList"}),{children:a,className:l,component:u="ul",dense:d=!1,disablePadding:h=!1,subheader:y,...v}=r,x=q.useMemo(()=>({dense:d}),[d]),T={...r,component:u,dense:d,disablePadding:h},E=Hee(T);return L.jsx(mu.Provider,{value:x,children:L.jsxs(qee,{as:u,className:At(E.root,l),ref:n,ownerState:T,...v,children:[y,a]})})});Uee.NODE_ENV!=="production"&&(X3.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disablePadding:p.bool,subheader:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function Gee(e){return Ft("MuiListItem",e)}Yt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function Fee(e){return Ft("MuiListItemButton",e)}const Ng=Yt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);var SD={};const Yee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xee=e=>{const{alignItems:t,classes:n,dense:r,disabled:a,disableGutters:l,divider:u,selected:d}=e,y=Wt({root:["root",r&&"dense",!l&&"gutters",u&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",d&&"selected"]},Fee,n);return{...n,...y}},Wee=rt(jd,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Yee})(Kt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ng.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ng.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ng.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ng.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ng.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ED=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:l=!1,component:u="div",children:d,dense:h=!1,disableGutters:y=!1,divider:v=!1,focusVisibleClassName:x,selected:T=!1,className:E,...A}=r,R=q.useContext(mu),_=q.useMemo(()=>({dense:h||R.dense||!1,alignItems:a,disableGutters:y}),[a,R.dense,h,y]),D=q.useRef(null);El(()=>{l&&(D.current?D.current.focus():SD.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[l]);const z={...r,alignItems:a,dense:_.dense,disableGutters:y,divider:v,selected:T},V=Xee(z),{root:P,...I}=V,H=ai(D,n);return L.jsx(mu.Provider,{value:_,children:L.jsx(Wee,{ref:H,href:A.href||A.to,component:(A.href||A.to)&&u==="div"?"button":u,focusVisibleClassName:At(V.focusVisible,x),ownerState:z,className:At(V.root,E),...A,classes:I,children:d})})});SD.NODE_ENV!=="production"&&(ED.propTypes={alignItems:p.oneOf(["center","flex-start"]),autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disabled:p.bool,disableGutters:p.bool,divider:p.bool,focusVisibleClassName:p.string,href:p.string,selected:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function Kee(e){return Ft("MuiListItemSecondaryAction",e)}Yt("MuiListItemSecondaryAction",["root","disableGutters"]);var Qee={};const Zee=e=>{const{disableGutters:t,classes:n}=e;return Wt({root:["root",t&&"disableGutters"]},Kee,n)},Jee=rt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),w7=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...l}=r,u=q.useContext(mu),d={...r,disableGutters:u.disableGutters},h=Zee(d);return L.jsx(Jee,{className:At(h.root,a),ownerState:d,ref:n,...l})});Qee.NODE_ENV!=="production"&&(w7.propTypes={children:p.node,classes:p.object,className:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),w7.muiName="ListItemSecondaryAction";var ete={};const tte=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},nte=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:l,divider:u,hasSecondaryAction:d}=e;return Wt({root:["root",r&&"dense",!a&&"gutters",!l&&"padding",u&&"divider",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},Gee,n)},rte=rt("div",{name:"MuiListItem",slot:"Root",overridesResolver:tte})(Kt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Ng.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),ite=rt("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),wD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiListItem"}),{alignItems:a="center",children:l,className:u,component:d,components:h={},componentsProps:y={},ContainerComponent:v="li",ContainerProps:{className:x,...T}={},dense:E=!1,disableGutters:A=!1,disablePadding:R=!1,divider:_=!1,secondaryAction:D,slotProps:z={},slots:V={},...P}=r,I=q.useContext(mu),H=q.useMemo(()=>({dense:E||I.dense||!1,alignItems:a,disableGutters:A}),[a,I.dense,E,A]),X=q.useRef(null),se=q.Children.toArray(l),ce=se.length&&ug(se[se.length-1],["ListItemSecondaryAction"]),ie={...r,alignItems:a,dense:H.dense,disableGutters:A,disablePadding:R,divider:_,hasSecondaryAction:ce},ue=nte(ie),U=ai(X,n),le={slots:V,slotProps:z},[Q,ee]=ln("secondaryAction",{elementType:w7,externalForwardedProps:le,ownerState:ie,className:ue.secondaryAction}),W=V.root||h.Root||rte,oe=z.root||y.root||{},he={className:At(ue.root,oe.className,u),...P};let be=d||"li";return ce?(be=!he.component&&!d?"div":be,v==="li"&&(be==="li"?be="div":he.component==="li"&&(he.component="div")),L.jsx(mu.Provider,{value:H,children:L.jsxs(ite,{as:v,className:At(ue.container,x),ref:U,ownerState:ie,...T,children:[L.jsx(W,{...oe,...!rc(W)&&{as:be,ownerState:{...ie,...oe.ownerState}},...he,children:se}),se.pop()]})})):L.jsx(mu.Provider,{value:H,children:L.jsxs(W,{...oe,as:be,ref:U,...!rc(W)&&{ownerState:{...ie,...oe.ownerState}},...he,children:[se,D&&L.jsx(Q,{...ee,children:D})]})})});ete.NODE_ENV!=="production"&&(wD.propTypes={alignItems:p.oneOf(["center","flex-start"]),children:du(p.node,e=>{const t=q.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const a=t[r];if(ug(a,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:p.object,className:p.string,component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.object}),ContainerComponent:S3,ContainerProps:p.object,dense:p.bool,disableGutters:p.bool,disablePadding:p.bool,divider:p.bool,secondaryAction:p.node,slotProps:p.shape({root:p.object,secondaryAction:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType,secondaryAction:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});const TD=Yt("MuiListItemIcon",["root","alignItemsFlexStart"]);function ate(e){return Ft("MuiListItemText",e)}const kg=Yt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var ote={};const lte=e=>{const{classes:t,inset:n,primary:r,secondary:a,dense:l}=e;return Wt({root:["root",n&&"inset",l&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},ate,t)},ste=rt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kg.primary}`]:t.primary},{[`& .${kg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${E_.root}:where(& .${kg.primary})`]:{display:"block"},[`.${E_.root}:where(& .${kg.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),T7=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiListItemText"}),{children:a,className:l,disableTypography:u=!1,inset:d=!1,primary:h,primaryTypographyProps:y,secondary:v,secondaryTypographyProps:x,slots:T={},slotProps:E={},...A}=r,{dense:R}=q.useContext(mu);let _=h??a,D=v;const z={...r,disableTypography:u,inset:d,primary:!!_,secondary:!!D,dense:R},V=lte(z),P={slots:T,slotProps:{primary:y,secondary:x,...E}},[I,H]=ln("root",{className:At(V.root,l),elementType:ste,externalForwardedProps:{...P,...A},ownerState:z,ref:n}),[X,se]=ln("primary",{className:V.primary,elementType:Gn,externalForwardedProps:P,ownerState:z}),[ce,ie]=ln("secondary",{className:V.secondary,elementType:Gn,externalForwardedProps:P,ownerState:z});return _!=null&&_.type!==Gn&&!u&&(_=L.jsx(X,{variant:R?"body2":"body1",component:se!=null&&se.variant?void 0:"span",...se,children:_})),D!=null&&D.type!==Gn&&!u&&(D=L.jsx(ce,{variant:"body2",color:"textSecondary",...ie,children:D})),L.jsxs(I,{...H,children:[_,D]})});ote.NODE_ENV!=="production"&&(T7.propTypes={children:p.node,classes:p.object,className:p.string,disableTypography:p.bool,inset:p.bool,primary:p.node,primaryTypographyProps:p.object,secondary:p.node,secondaryTypographyProps:p.object,slotProps:p.shape({primary:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),secondary:p.oneOfType([p.func,p.object])}),slots:p.shape({primary:p.elementType,root:p.elementType,secondary:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var AD={};function A7(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function CD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function OD(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ob(e,t,n,r,a,l){let u=!1,d=a(e,t,t?n:!1);for(;d;){if(d===e.firstChild){if(u)return!1;u=!0}const h=r?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!OD(d,l)||h)d=a(e,d,n);else return d.focus(),!0}return!1}const MD=q.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:l=!1,children:u,className:d,disabledItemsFocusable:h=!1,disableListWrap:y=!1,onKeyDown:v,variant:x="selectedMenu",...T}=t,E=q.useRef(null),A=q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});El(()=>{a&&E.current.focus()},[a]),q.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(V,{direction:P})=>{const I=!E.current.style.width;if(V.clientHeight<E.current.clientHeight&&I){const H=`${iD(sf(V))}px`;E.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=H,E.current.style.width=`calc(100% + ${H})`}return E.current}}),[]);const R=V=>{const P=E.current,I=V.key;if(V.ctrlKey||V.metaKey||V.altKey){v&&v(V);return}const X=Hd(Gi(P));if(I==="ArrowDown")V.preventDefault(),Ob(P,X,y,h,A7);else if(I==="ArrowUp")V.preventDefault(),Ob(P,X,y,h,CD);else if(I==="Home")V.preventDefault(),Ob(P,null,y,h,A7);else if(I==="End")V.preventDefault(),Ob(P,null,y,h,CD);else if(I.length===1){const se=A.current,ce=I.toLowerCase(),ie=performance.now();se.keys.length>0&&(ie-se.lastTime>500?(se.keys=[],se.repeating=!0,se.previousKeyMatched=!0):se.repeating&&ce!==se.keys[0]&&(se.repeating=!1)),se.lastTime=ie,se.keys.push(ce);const ue=X&&!se.repeating&&OD(X,se);se.previousKeyMatched&&(ue||Ob(P,X,!1,h,A7,se))?V.preventDefault():se.previousKeyMatched=!1}v&&v(V)},_=ai(E,n);let D=-1;q.Children.forEach(u,(V,P)=>{if(!q.isValidElement(V)){D===P&&(D+=1,D>=u.length&&(D=-1));return}AD.NODE_ENV!=="production"&&w0.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),V.props.disabled||(x==="selectedMenu"&&V.props.selected||D===-1)&&(D=P),D===P&&(V.props.disabled||V.props.muiSkipListHighlight||V.type.muiSkipListHighlight)&&(D+=1,D>=u.length&&(D=-1))});const z=q.Children.map(u,(V,P)=>{if(P===D){const I={};return l&&(I.autoFocus=!0),V.props.tabIndex===void 0&&x==="selectedMenu"&&(I.tabIndex=0),q.cloneElement(V,I)}return V});return L.jsx(X3,{role:"menu",ref:_,className:d,onKeyDown:R,tabIndex:a?0:-1,...T,children:z})});AD.NODE_ENV!=="production"&&(MD.propTypes={autoFocus:p.bool,autoFocusItem:p.bool,children:p.node,className:p.string,disabledItemsFocusable:p.bool,disableListWrap:p.bool,onKeyDown:p.func,variant:p.oneOf(["menu","selectedMenu"])});function ute(e){return Ft("MuiPopover",e)}Yt("MuiPopover",["root","paper"]);var Mb={};function RD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _D(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function DD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rb(e){return typeof e=="function"?e():e}const cte=e=>{const{classes:t}=e;return Wt({root:["root"],paper:["paper"]},ute,t)},fte=rt(x7,{name:"MuiPopover",slot:"Root"})({}),ND=rt(ub,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kD=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:y,className:v,container:x,elevation:T=8,marginThreshold:E=16,open:A,PaperProps:R={},slots:_={},slotProps:D={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:V,transitionDuration:P="auto",TransitionProps:I={},disableScrollLock:H=!1,...X}=r,se=q.useRef(),ce={...r,anchorOrigin:u,anchorReference:h,elevation:T,marginThreshold:E,transformOrigin:z,TransitionComponent:V,transitionDuration:P,TransitionProps:I},ie=cte(ce),ue=q.useCallback(()=>{if(h==="anchorPosition")return Mb.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const Xe=Rb(l),Je=Xe&&Xe.nodeType===1?Xe:Gi(se.current).body,Ve=Je.getBoundingClientRect();if(Mb.NODE_ENV!=="production"){const Re=Je.getBoundingClientRect();R3()&&Re.top===0&&Re.left===0&&Re.right===0&&Re.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}return{top:Ve.top+RD(Ve,u.vertical),left:Ve.left+_D(Ve,u.horizontal)}},[l,u.horizontal,u.vertical,d,h]),U=q.useCallback(Xe=>({vertical:RD(Xe,z.vertical),horizontal:_D(Xe,z.horizontal)}),[z.horizontal,z.vertical]),le=q.useCallback(Xe=>{const Je={width:Xe.offsetWidth,height:Xe.offsetHeight},Ve=U(Je);if(h==="none")return{top:null,left:null,transformOrigin:DD(Ve)};const Re=ue();let ut=Re.top-Ve.vertical,Vt=Re.left-Ve.horizontal;const Qt=ut+Je.height,St=Vt+Je.width,$t=sf(Rb(l)),Cn=$t.innerHeight-E,vn=$t.innerWidth-E;if(E!==null&&ut<E){const it=ut-E;ut-=it,Ve.vertical+=it}else if(E!==null&&Qt>Cn){const it=Qt-Cn;ut-=it,Ve.vertical+=it}if(Mb.NODE_ENV!=="production"&&Je.height>Cn&&Je.height&&Cn&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Je.height-Cn}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),E!==null&&Vt<E){const it=Vt-E;Vt-=it,Ve.horizontal+=it}else if(St>vn){const it=St-vn;Vt-=it,Ve.horizontal+=it}return{top:`${Math.round(ut)}px`,left:`${Math.round(Vt)}px`,transformOrigin:DD(Ve)}},[l,h,ue,U,E]),[Q,ee]=q.useState(A),W=q.useCallback(()=>{const Xe=se.current;if(!Xe)return;const Je=le(Xe);Je.top!==null&&Xe.style.setProperty("top",Je.top),Je.left!==null&&(Xe.style.left=Je.left),Xe.style.transformOrigin=Je.transformOrigin,ee(!0)},[le]);q.useEffect(()=>(H&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,H,W]);const oe=()=>{W()},he=()=>{ee(!1)};q.useEffect(()=>{A&&W()}),q.useImperativeHandle(a,()=>A?{updatePosition:()=>{W()}}:null,[A,W]),q.useEffect(()=>{if(!A)return;const Xe=XR(()=>{W()}),Je=sf(Rb(l));return Je.addEventListener("resize",Xe),()=>{Xe.clear(),Je.removeEventListener("resize",Xe)}},[l,A,W]);let be=P;const re={slots:{transition:V,..._},slotProps:{transition:I,paper:R,...D}},[F,te]=ln("transition",{elementType:Cb,externalForwardedProps:re,ownerState:ce,getSlotProps:Xe=>({...Xe,onEntering:(Je,Ve)=>{var Re;(Re=Xe.onEntering)==null||Re.call(Xe,Je,Ve),oe()},onExited:Je=>{var Ve;(Ve=Xe.onExited)==null||Ve.call(Xe,Je),he()}}),additionalProps:{appear:!0,in:A}});P==="auto"&&!F.muiSupportAuto&&(be=void 0);const Y=x||(l?Gi(Rb(l)).body:void 0),[Me,{slots:Ee,slotProps:_e,...Be}]=ln("root",{ref:n,elementType:fte,externalForwardedProps:{...re,...X},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:Y2(typeof D.backdrop=="function"?D.backdrop(ce):D.backdrop,{invisible:!0})},container:Y,open:A},ownerState:ce,className:At(ie.root,v)}),[Ue,Ye]=ln("paper",{ref:se,className:ie.paper,elementType:ND,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:T,style:Q?void 0:{opacity:0}},ownerState:ce});return L.jsx(Me,{...Be,...!rc(Me)&&{slots:Ee,slotProps:_e,disableScrollLock:H},children:L.jsx(F,{...te,timeout:be,children:L.jsx(Ue,{...Ye,children:y})})})});Mb.NODE_ENV!=="production"&&(kD.propTypes={action:yo,anchorEl:du(p.oneOfType([cf,p.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Rb(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(Mb.NODE_ENV!=="production"&&R3()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
`))}return null}),anchorOrigin:p.shape({horizontal:p.oneOfType([p.oneOf(["center","left","right"]),p.number]).isRequired,vertical:p.oneOfType([p.oneOf(["bottom","center","top"]),p.number]).isRequired}),anchorPosition:p.shape({left:p.number.isRequired,top:p.number.isRequired}),anchorReference:p.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:p.elementType,BackdropProps:p.object,children:p.node,classes:p.object,className:p.string,container:p.oneOfType([cf,p.func]),disableScrollLock:p.bool,elevation:p_,marginThreshold:p.number,onClose:p.func,open:p.bool.isRequired,PaperProps:p.shape({component:S3}),slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transformOrigin:p.shape({horizontal:p.oneOfType([p.oneOf(["center","left","right"]),p.number]).isRequired,vertical:p.oneOfType([p.oneOf(["bottom","center","top"]),p.number]).isRequired}),TransitionComponent:p.elementType,transitionDuration:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object});function dte(e){return Ft("MuiMenu",e)}Yt("MuiMenu",["root","paper","list"]);var zD={};const hte={vertical:"top",horizontal:"right"},pte={vertical:"top",horizontal:"left"},mte=e=>{const{classes:t}=e;return Wt({root:["root"],paper:["paper"],list:["list"]},dte,t)},gte=rt(kD,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),yte=rt(ND,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vte=rt(MD,{name:"MuiMenu",slot:"List"})({outline:0}),ID=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:u,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:y,open:v,PaperProps:x={},PopoverClasses:T,transitionDuration:E="auto",TransitionProps:{onEntering:A,...R}={},variant:_="selectedMenu",slots:D={},slotProps:z={},...V}=r,P=d3(),I={...r,autoFocus:a,disableAutoFocusItem:d,MenuListProps:h,onEntering:A,PaperProps:x,transitionDuration:E,TransitionProps:R,variant:_},H=mte(I),X=a&&!d&&v,se=q.useRef(null),ce=(be,re)=>{se.current&&se.current.adjustStyleForScrollbar(be,{direction:P?"rtl":"ltr"}),A&&A(be,re)},ie=be=>{be.key==="Tab"&&(be.preventDefault(),y&&y(be,"tabKeyDown"))};let ue=-1;q.Children.map(l,(be,re)=>{q.isValidElement(be)&&(zD.NODE_ENV!=="production"&&w0.isFragment(be)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),be.props.disabled||(_==="selectedMenu"&&be.props.selected||ue===-1)&&(ue=re))});const U={slots:D,slotProps:{list:h,transition:R,paper:x,...z}},le=oc({elementType:D.root,externalSlotProps:z.root,ownerState:I,className:[H.root,u]}),[Q,ee]=ln("paper",{className:H.paper,elementType:yte,externalForwardedProps:U,shouldForwardComponentProp:!0,ownerState:I}),[W,oe]=ln("list",{className:At(H.list,h.className),elementType:vte,shouldForwardComponentProp:!0,externalForwardedProps:U,getSlotProps:be=>({...be,onKeyDown:re=>{var F;ie(re),(F=be.onKeyDown)==null||F.call(be,re)}}),ownerState:I}),he=typeof U.slotProps.transition=="function"?U.slotProps.transition(I):U.slotProps.transition;return L.jsx(gte,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?hte:pte,slots:{root:D.root,paper:Q,backdrop:D.backdrop,...D.transition&&{transition:D.transition}},slotProps:{root:le,paper:ee,backdrop:typeof z.backdrop=="function"?z.backdrop(I):z.backdrop,transition:{...he,onEntering:(...be)=>{var re;ce(...be),(re=he==null?void 0:he.onEntering)==null||re.call(he,...be)}}},open:v,ref:n,transitionDuration:E,ownerState:I,...V,classes:T,children:L.jsx(W,{actions:se,autoFocus:a&&(ue===-1||d),autoFocusItem:X,variant:_,...oe,children:l})})});zD.NODE_ENV!=="production"&&(ID.propTypes={anchorEl:p.oneOfType([cf,p.func]),autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,disableAutoFocusItem:p.bool,MenuListProps:p.object,onClose:p.func,open:p.bool.isRequired,PaperProps:p.object,PopoverClasses:p.object,slotProps:p.shape({backdrop:p.oneOfType([p.func,p.object]),list:p.oneOfType([p.func,p.object]),paper:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({backdrop:p.elementType,list:p.elementType,paper:p.elementType,root:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transitionDuration:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})]),TransitionProps:p.object,variant:p.oneOf(["menu","selectedMenu"])});function bte(e){return Ft("MuiMenuItem",e)}const _b=Yt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function xte(e){return Ft("MuiNativeSelect",e)}const C7=Yt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ste={};const Ete=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:l,error:u}=e,d={select:["select",n,r&&"disabled",a&&"multiple",u&&"error"],icon:["icon",`icon${We(n)}`,l&&"iconOpen",r&&"disabled"]};return Wt(d,xte,t)},LD=rt("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${C7.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),wte=rt(LD,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ca,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${C7.multiple}`]:t.multiple}]}})({}),VD=rt("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${C7.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Tte=rt(VD,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${We(n.variant)}`],n.open&&t.iconOpen]}})({}),BD=q.forwardRef(function(t,n){const{className:r,disabled:a,error:l,IconComponent:u,inputRef:d,variant:h="standard",...y}=t,v={...t,disabled:a,variant:h,error:l},x=Ete(v);return L.jsxs(q.Fragment,{children:[L.jsx(wte,{ownerState:v,className:At(x.select,r),disabled:a,ref:d||n,...y}),t.multiple?null:L.jsx(Tte,{as:u,ownerState:v,className:x.icon})]})});Ste.NODE_ENV!=="production"&&(BD.propTypes={children:p.node,classes:p.object,className:p.string,disabled:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:yo,multiple:p.bool,name:p.string,onChange:p.func,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});function PD(e){return Ft("MuiSelect",e)}const Db=Yt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function Ate(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function Cte(e){return e==null||typeof e=="string"&&!e.trim()}function jD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var Ote={};const O7=q.createContext(null);Ote.NODE_ENV!=="production"&&(O7.displayName="SelectFocusSourceContext");function Mte(){return q.useContext(O7)}const Rte=O7.Provider;var W3={},$D;const _te=rt(LD,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Db.select}`]:t.select},{[`&.${Db.select}`]:t[n.variant]},{[`&.${Db.error}`]:t.error},{[`&.${Db.multiple}`]:t.multiple}]}})({[`&.${Db.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Dte=rt(VD,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${We(n.variant)}`],n.open&&t.iconOpen]}})({}),Nte=rt("input",{shouldForwardProp:e=>y3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),kte=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:l,error:u}=e,d={select:["select",n,r&&"disabled",a&&"multiple",u&&"error"],icon:["icon",`icon${We(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Wt(d,PD,t)},UD=q.forwardRef(function(t,n){var Oe,nt,Ze,mt;const{"aria-describedby":r,"aria-label":a,autoFocus:l,autoWidth:u,children:d,className:h,defaultOpen:y,defaultValue:v,disabled:x,displayEmpty:T,error:E=!1,IconComponent:A,inputRef:R,labelId:_,MenuProps:D={},multiple:z,name:V,onBlur:P,onChange:I,onClose:H,onFocus:X,onKeyDown:se,onMouseDown:ce,onOpen:ie,open:ue,readOnly:U,renderValue:le,required:Q,SelectDisplayProps:ee={},tabIndex:W,type:oe,value:he,variant:be="standard",...re}=t,[F,te]=yg({controlled:he,default:v,name:"Select"}),[Y,Me]=yg({controlled:ue,default:y,name:"Select"}),Ee=q.useRef(null),_e=q.useRef(null),[Be,Ue]=q.useState(null),{current:Ye}=q.useRef(ue!=null),[Xe,Je]=q.useState(),[Ve,Re]=q.useState(null),ut=ai(n,R),Vt=q.useCallback(tt=>{_e.current=tt,tt&&Ue(tt)},[]),Qt=Be==null?void 0:Be.parentNode;q.useImperativeHandle(ut,()=>({focus:()=>{_e.current.focus()},node:Ee.current,value:F}),[F]);const St=Be!==null&&Y;q.useEffect(()=>{if(!St||!Qt||u||typeof ResizeObserver>"u")return;const tt=new ResizeObserver(()=>{Je(Qt.clientWidth)});return tt.observe(Qt),()=>{tt.disconnect()}},[St,Qt,u]),q.useEffect(()=>{y&&Y&&Be&&!Ye&&(Je(u?null:Qt.clientWidth),_e.current.focus())},[Be,u]),q.useEffect(()=>{l&&_e.current.focus()},[l]),q.useEffect(()=>{if(!_)return;const tt=Gi(_e.current).getElementById(_);if(tt){const ot=()=>{getSelection().isCollapsed&&_e.current.focus()};return tt.addEventListener("click",ot),()=>{tt.removeEventListener("click",ot)}}},[_]);const $t=(tt,ot)=>{tt?(Re(Ate(ot)),ie&&ie(ot)):(Re(null),H&&H(ot)),Ye||(Je(u?null:Qt.clientWidth),Me(tt))},Cn=tt=>{ce==null||ce(tt),tt.button===0&&(tt.preventDefault(),_e.current.focus(),$t(!0,tt))},vn=tt=>{$t(!1,tt)},it=q.Children.toArray(d),Mt=tt=>{const ot=it.find(zt=>zt.props.value===tt.target.value);ot!==void 0&&(te(ot.props.value),I&&I(tt,ot))},Dn=tt=>ot=>{let zt;if(ot.currentTarget.hasAttribute("tabindex")){if(z){zt=Array.isArray(F)?F.slice():[];const ct=F.indexOf(tt.props.value);ct===-1?zt.push(tt.props.value):zt.splice(ct,1)}else zt=tt.props.value;if(tt.props.onClick&&tt.props.onClick(ot),F!==zt&&(te(zt),I)){const ct=ot.nativeEvent||ot,Rn=new ct.constructor(ct.type,ct);Object.defineProperty(Rn,"target",{writable:!0,value:{value:zt,name:V}}),I(Rn,tt)}z||$t(!1,ot)}},tn=tt=>{U||([" ","ArrowUp","ArrowDown","Enter"].includes(tt.key)&&(tt.preventDefault(),$t(!0,tt)),se==null||se(tt))},et=tt=>{!St&&P&&(Object.defineProperty(tt,"target",{writable:!0,value:{value:F,name:V}}),P(tt))};delete re["aria-invalid"];let xe,Le;const at=[];let dt=!1,ht=!1;(k3({value:F})||T)&&(le?xe=le(F):dt=!0);const wt=it.map(tt=>{if(!q.isValidElement(tt))return null;W3.NODE_ENV!=="production"&&w0.isFragment(tt)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let ot;if(z){if(!Array.isArray(F))throw new Error(W3.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":rf(2));ot=F.some(zt=>jD(zt,tt.props.value)),ot&&dt&&at.push(tt.props.children)}else ot=jD(F,tt.props.value),ot&&dt&&(Le=tt.props.children);return ot&&(ht=!0),q.cloneElement(tt,{"aria-selected":ot?"true":"false",onClick:Dn(tt),onKeyUp:zt=>{zt.key===" "&&zt.preventDefault(),tt.props.onKeyUp&&tt.props.onKeyUp(zt)},role:"option",selected:ot,value:void 0,"data-value":tt.props.value})});W3.NODE_ENV!=="production"&&q.useEffect(()=>{if(!ht&&!z&&F!==""){const tt=it.map(ot=>ot.props.value);console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${V?`(name="${V}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${tt.filter(ot=>ot!=null).map(ot=>`\`${ot}\``).join(", ")||'""'}.`].join(`
`))}},[ht,it,z,V,F]),dt&&(z?at.length===0?xe=null:xe=at.reduce((tt,ot,zt)=>(tt.push(ot),zt<at.length-1&&tt.push(", "),tt),[]):xe=Le);let fn=Xe;!u&&Ye&&Be&&(fn=Qt.clientWidth);let Lt;typeof W<"u"?Lt=W:Lt=x?null:0;const Ht=ee.id||(V?`mui-component-select-${V}`:void 0),jn={...t,variant:be,value:F,open:St,error:E},gn=kte(jn),Pr={...D.PaperProps,...typeof((Oe=D.slotProps)==null?void 0:Oe.paper)=="function"?D.slotProps.paper(jn):(nt=D.slotProps)==null?void 0:nt.paper},vr={...D.MenuListProps,...typeof((Ze=D.slotProps)==null?void 0:Ze.list)=="function"?D.slotProps.list(jn):(mt=D.slotProps)==null?void 0:mt.list},J=O0();return L.jsxs(q.Fragment,{children:[L.jsx(_te,{as:"div",ref:Vt,tabIndex:Lt,role:"combobox","aria-controls":St?J:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":St?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[_,Ht].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":Q?"true":void 0,"aria-invalid":E?"true":void 0,onKeyDown:tn,onMouseDown:x||U?null:Cn,onBlur:et,onFocus:X,...ee,ownerState:jn,className:At(ee.className,gn.select,h),id:Ht,children:Cte(xe)?$D||($D=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):xe}),L.jsx(Nte,{"aria-invalid":E,value:Array.isArray(F)?F.join(","):F,name:V,ref:Ee,"aria-hidden":!0,onChange:Mt,tabIndex:-1,disabled:x,className:gn.nativeInput,autoFocus:l,required:Q,...re,ownerState:jn}),L.jsx(Dte,{as:A,className:gn.icon,ownerState:jn}),L.jsx(Rte,{value:Ve,children:L.jsx(ID,{id:`menu-${V||""}`,anchorEl:Qt,open:St,onClose:vn,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...D,slotProps:{...D.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:J,...vr},paper:{...Pr,style:{minWidth:fn,...Pr!=null?Pr.style:null}}},children:wt})})]})});W3.NODE_ENV!=="production"&&(UD.propTypes={"aria-describedby":p.string,"aria-label":p.string,autoFocus:p.bool,autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,disabled:p.bool,displayEmpty:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:yo,labelId:p.string,MenuProps:p.object,multiple:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onClose:p.func,onFocus:p.func,onOpen:p.func,open:p.bool,readOnly:p.bool,renderValue:p.func,required:p.bool,SelectDisplayProps:p.object,tabIndex:p.oneOfType([p.number,p.string]),type:p.any,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var zte={},HD;const Ite=rt("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ca})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Lte=rt("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ca})(Kt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function qD(e){const{children:t,classes:n,className:r,label:a,notched:l,...u}=e,d=a!=null&&a!=="",h={...e,notched:l,withLabel:d};return L.jsx(Ite,{"aria-hidden":!0,className:r,ownerState:h,...u,children:L.jsx(Lte,{ownerState:h,children:d?L.jsx("span",{children:a}):HD||(HD=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}zte.NODE_ENV!=="production"&&(qD.propTypes={children:p.node,classes:p.object,className:p.string,label:p.node,notched:p.bool.isRequired,style:p.object});var Vte={};const Bte=e=>{const{classes:t}=e,r=Wt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gZ,t);return{...t,...r}},Pte=rt(V3,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:I3})(Kt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lc.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${lc.focused} .${lc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Fr()).map(([n])=>({props:{color:n},style:{[`&.${lc.focused} .${lc.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${lc.error} .${lc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lc.disabled} .${lc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),jte=rt(qD,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Kt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),$te=rt(B3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:L3})(Kt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),K3=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:y,slots:v={},slotProps:x={},type:T="text",...E}=r,A=Bte(r),R=pu(),_=Ud({props:r,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D={...r,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:R,fullWidth:l,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:T},z=v.root??a.Root??Pte,V=v.input??a.Input??$te,[P,I]=ln("notchedOutline",{elementType:jte,className:A.notchedOutline,shouldForwardComponentProp:!0,ownerState:D,externalForwardedProps:{slots:v,slotProps:x},additionalProps:{label:d!=null&&d!==""&&_.required?L.jsxs(q.Fragment,{children:[d," ","*"]}):d}});return L.jsx(P3,{slots:{root:z,input:V},slotProps:x,renderSuffix:H=>L.jsx(P,{...I,notched:typeof y<"u"?y:!!(H.startAdornment||H.filled||H.focused)}),fullWidth:l,inputComponent:u,multiline:h,ref:n,type:T,...E,classes:{...A,notchedOutline:null}})});Vte.NODE_ENV!=="production"&&(K3.propTypes={autoComplete:p.string,autoFocus:p.bool,classes:p.object,color:p.oneOfType([p.oneOf(["primary","secondary"]),p.string]),components:p.shape({Input:p.elementType,Root:p.elementType}),defaultValue:p.any,disabled:p.bool,endAdornment:p.node,error:p.bool,fullWidth:p.bool,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:yo,label:p.node,margin:p.oneOf(["dense","none"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,notched:p.bool,onChange:p.func,placeholder:p.string,readOnly:p.bool,required:p.bool,rows:p.oneOfType([p.number,p.string]),slotProps:p.shape({input:p.object,notchedOutline:p.oneOfType([p.func,p.object]),root:p.object}),slots:p.shape({input:p.elementType,notchedOutline:p.elementType,root:p.elementType}),startAdornment:p.node,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any}),K3.muiName="Input";var Ute={};const Hte=e=>{const{classes:t}=e,r=Wt({root:["root"]},PD,t);return{...t,...r}},M7={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="variant"},qte=rt(Y3,M7)(""),Gte=rt(K3,M7)(""),Fte=rt(F3,M7)(""),L0=q.forwardRef(function(t,n){const r=Jt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:l,classes:u={},className:d,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:v=vZ,id:x,input:T,inputProps:E,label:A,labelId:R,MenuProps:_,multiple:D=!1,native:z=!1,onClose:V,onOpen:P,open:I,renderValue:H,SelectDisplayProps:X,variant:se="outlined",...ce}=r,ie=z?BD:UD,ue=pu(),U=Ud({props:r,muiFormControl:ue,states:["variant","error"]}),le=U.variant||se,Q={...r,variant:le,classes:u},ee=Hte(Q),{root:W,...oe}=ee,he=T||{standard:L.jsx(qte,{ownerState:Q}),outlined:L.jsx(Gte,{label:A,ownerState:Q}),filled:L.jsx(Fte,{ownerState:Q})}[le],be=ai(n,Og(he));return L.jsx(q.Fragment,{children:q.cloneElement(he,{inputComponent:ie,inputProps:{children:l,error:U.error,IconComponent:v,variant:le,type:void 0,multiple:D,...z?{id:x}:{autoWidth:a,defaultOpen:h,displayEmpty:y,labelId:R,MenuProps:_,onClose:V,onOpen:P,open:I,renderValue:H,SelectDisplayProps:{id:x,...X}},...E,classes:E?qa(oe,E.classes):oe,...T?T.props.inputProps:{}},...(D&&z||y)&&le==="outlined"?{notched:!0}:{},ref:be,className:At(he.props.className,d,ee.root),...!T&&{variant:le},...ce})})});Ute.NODE_ENV!=="production"&&(L0.propTypes={autoWidth:p.bool,children:p.node,classes:p.object,className:p.string,defaultOpen:p.bool,defaultValue:p.any,displayEmpty:p.bool,IconComponent:p.elementType,id:p.string,input:p.element,inputProps:p.object,label:p.node,labelId:p.string,MenuProps:p.object,multiple:p.bool,native:p.bool,onChange:p.func,onClose:p.func,onOpen:p.func,open:p.bool,renderValue:p.func,SelectDisplayProps:p.object,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.oneOfType([p.oneOf([""]),p.any]),variant:p.oneOf(["filled","outlined","standard"])}),L0.muiName="Select";var GD={};function Yte(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const Xte=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Wte=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:l,classes:u}=e,h=Wt({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",l&&"selected"]},bte,u);return{...u,...h}},Kte=rt(jd,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Xte})(Kt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_b.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_b.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_b.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${_b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sD.inset}`]:{marginLeft:52},[`& .${kg.root}`]:{marginTop:0,marginBottom:0},[`& .${kg.inset}`]:{paddingLeft:36},[`& .${TD.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${TD.root} svg`]:{fontSize:"1.25rem"}}}]}))),df=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:l="li",dense:u=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:y,role:v="menuitem",tabIndex:x,className:T,...E}=r,A=Mte(),R=q.useContext(mu),_=q.useMemo(()=>({dense:u||R.dense||!1,disableGutters:h}),[R.dense,u,h]),D=q.useRef(null);El(()=>{a&&(D.current?Yte(D.current,A):GD.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const z={...r,dense:_.dense,divider:d,disableGutters:h},V=Wte(r),P=ai(D,n),{root:I,...H}=V;let X;return r.disabled||(X=x!==void 0?x:-1),L.jsx(mu.Provider,{value:_,children:L.jsx(Kte,{ref:P,role:v,tabIndex:X,component:l,focusVisibleClassName:At(V.focusVisible,y),className:At(V.root,T),...E,ownerState:z,classes:H})})});GD.NODE_ENV!=="production"&&(df.propTypes={autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,component:p.elementType,dense:p.bool,disabled:p.bool,disableGutters:p.bool,divider:p.bool,focusVisibleClassName:p.string,role:p.string,selected:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number});const Qte=Di(L.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Zte=Di(L.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var Jte={};const ene=rt("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ca})({position:"relative",display:"flex"}),tne=rt(Qte,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),nne=rt(Zte,{name:"MuiRadioButtonIcon"})(Kt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function R7(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return L.jsxs(ene,{className:n.root,ownerState:a,children:[L.jsx(tne,{fontSize:r,className:n.background,ownerState:a}),L.jsx(nne,{fontSize:r,className:n.dot,ownerState:a})]})}Jte.NODE_ENV!=="production"&&(R7.propTypes={checked:p.bool,classes:p.object,fontSize:p.oneOf(["small","medium"])});var rne={};const _7=q.createContext(void 0);rne.NODE_ENV!=="production"&&(_7.displayName="RadioGroupContext");function ine(){return q.useContext(_7)}function ane(e){return Ft("MuiRadio",e)}const FD=Yt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var one={};const lne=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${We(n)}`,r!=="medium"&&`size${We(r)}`]};return{...t,...Wt(a,ane,t)}},sne=rt($3,{shouldForwardProp:e=>Ca(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${We(n.size)}`],t[`color${We(n.color)}`]]}})(Kt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${FD.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${FD.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function une(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const cne=L.jsx(R7,{checked:!0}),fne=L.jsx(R7,{}),hf=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:l=cne,color:u="primary",icon:d=fne,name:h,onChange:y,size:v="medium",className:x,disabled:T,disableRipple:E=!1,slots:A={},slotProps:R={},inputProps:_,...D}=r,z=pu();let V=T;z&&typeof V>"u"&&(V=z.disabled),V??(V=!1);const P={...r,disabled:V,disableRipple:E,color:u,size:v},I=lne(P),H=ine();let X=a;const se=u2(y,H&&H.onChange);let ce=h;H&&(typeof X>"u"&&(X=une(H.value,r.value)),typeof ce>"u"&&(ce=H.name));const ie=R.input??_,[ue,U]=ln("root",{ref:n,elementType:sne,className:At(I.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:A,slotProps:R,...D},getSlotProps:le=>({...le,onChange:(Q,...ee)=>{var W;(W=le.onChange)==null||W.call(le,Q,...ee),se(Q,...ee)}}),ownerState:P,additionalProps:{type:"radio",icon:q.cloneElement(d,{fontSize:d.props.fontSize??v}),checkedIcon:q.cloneElement(l,{fontSize:l.props.fontSize??v}),disabled:V,name:ce,checked:X,slots:A,slotProps:{input:typeof ie=="function"?ie(P):ie}}});return L.jsx(ue,{...U,classes:I})});one.NODE_ENV!=="production"&&(hf.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),disabled:p.bool,disableRipple:p.bool,icon:p.node,id:p.string,inputProps:p.object,inputRef:yo,name:p.string,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});function dne(e){return Ft("MuiRadioGroup",e)}Yt("MuiRadioGroup",["root","row","error"]);var hne={};const pne=e=>{const{classes:t,row:n,error:r}=e;return Wt({root:["root",n&&"row",r&&"error"]},dne,t)},Q3=q.forwardRef(function(t,n){const{actions:r,children:a,className:l,defaultValue:u,name:d,onChange:h,value:y,...v}=t,x=q.useRef(null),T=pne(t),[E,A]=yg({controlled:y,default:u,name:"RadioGroup"});q.useImperativeHandle(r,()=>({focus:()=>{let z=x.current.querySelector("input:not(:disabled):checked");z||(z=x.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const R=ai(n,x),_=O0(d),D=q.useMemo(()=>({name:_,onChange(z){A(z.target.value),h&&h(z,z.target.value)},value:E}),[_,h,A,E]);return L.jsx(_7.Provider,{value:D,children:L.jsx(cD,{role:"radiogroup",ref:R,className:At(T.root,l),...v,children:a})})});hne.NODE_ENV!=="production"&&(Q3.propTypes={children:p.node,className:p.string,defaultValue:p.any,name:p.string,onChange:p.func,value:p.any});const mne={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function gne(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const yne=2;function zg(e,t,n,r,a){return n===1?Math.min(e+t,a):Math.max(e-t,r)}function YD(e,t){return e-t}function XD(e,t){const{index:n}=e.reduce((r,a,l)=>{const u=Math.abs(t-a);return r===null||u<r.distance||u===r.distance?{distance:u,index:l}:r},null)??{};return n}function Z3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const a=n.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function J3(e,t,n){return(e-t)*100/(n-t)}function vne(e,t,n){return(n-t)*e+t}function bne(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function xne(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(bne(t)))}function WD({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(YD)}function e6({sliderRef:e,activeIndex:t,setActive:n}){var a;const r=Hd(Gi(e.current));(!T3(e.current,r)||Number(r==null?void 0:r.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function t6(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?gne(e,t):!1}const Sne={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ene=e=>e;let n6;function KD(){return n6===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?n6=CSS.supports("touch-action","none"):n6=!0),n6}function wne(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:l=!1,marks:u=!1,max:d=100,min:h=0,name:y,onChange:v,onChangeCommitted:x,orientation:T="horizontal",rootRef:E,scale:A=Ene,step:R=1,shiftStep:_=10,tabIndex:D,value:z}=e,V=q.useRef(void 0),[P,I]=q.useState(-1),[H,X]=q.useState(-1),[se,ce]=q.useState(!1),ie=q.useRef(0),ue=q.useRef(null),[U,le]=yg({controlled:z,default:n??h,name:"Slider"}),Q=v&&((et,xe,Le)=>{const at=et.nativeEvent||et,dt=new at.constructor(at.type,at);Object.defineProperty(dt,"target",{writable:!0,value:{value:xe,name:y}}),ue.current=xe,v(dt,xe,Le)}),ee=Array.isArray(U);let W=ee?U.slice().sort(YD):[U];W=W.map(et=>et==null?h:sg(et,h,d));const oe=u===!0&&R!==null?[...Array(Math.floor((d-h)/R)+1)].map((et,xe)=>({value:h+R*xe})):u||[],he=oe.map(et=>et.value),[be,re]=q.useState(-1),F=q.useRef(null),te=ai(E,F),Y=et=>xe=>{var at;const Le=Number(xe.currentTarget.getAttribute("data-index"));Sg(xe.target)&&re(Le),X(Le),(at=et==null?void 0:et.onFocus)==null||at.call(et,xe)},Me=et=>xe=>{var Le;Sg(xe.target)||re(-1),X(-1),(Le=et==null?void 0:et.onBlur)==null||Le.call(et,xe)},Ee=(et,xe)=>{const Le=Number(et.currentTarget.getAttribute("data-index")),at=W[Le],dt=he.indexOf(at);let ht=xe;if(oe&&R==null){const wt=he[he.length-1];ht>=wt?ht=wt:ht<=he[0]?ht=he[0]:ht=ht<at?he[dt-1]:he[dt+1]}if(ht=sg(ht,h,d),ee){a&&(ht=sg(ht,W[Le-1]||-1/0,W[Le+1]||1/0));const wt=ht;ht=WD({values:W,newValue:ht,index:Le});let fn=Le;a||(fn=ht.indexOf(wt)),e6({sliderRef:F,activeIndex:fn})}le(ht),re(Le),Q&&!t6(ht,U)&&Q(et,ht,Le),x&&x(et,ue.current??ht)},_e=et=>xe=>{var Le;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(xe.key)){xe.preventDefault();const at=Number(xe.currentTarget.getAttribute("data-index")),dt=W[at];let ht=null;if(R!=null){const wt=xe.shiftKey?_:R;switch(xe.key){case"ArrowUp":ht=zg(dt,wt,1,h,d);break;case"ArrowRight":ht=zg(dt,wt,l?-1:1,h,d);break;case"ArrowDown":ht=zg(dt,wt,-1,h,d);break;case"ArrowLeft":ht=zg(dt,wt,l?1:-1,h,d);break;case"PageUp":ht=zg(dt,_,1,h,d);break;case"PageDown":ht=zg(dt,_,-1,h,d);break;case"Home":ht=h;break;case"End":ht=d;break}}else if(oe){const wt=he[he.length-1],fn=he.indexOf(dt),Lt=[l?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ht=[l?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Lt.includes(xe.key)?fn===0?ht=he[0]:ht=he[fn-1]:Ht.includes(xe.key)&&(fn===he.length-1?ht=wt:ht=he[fn+1])}ht!=null&&Ee(xe,ht)}(Le=et==null?void 0:et.onKeyDown)==null||Le.call(et,xe)};El(()=>{var xe;const et=Hd(Gi(F.current));r&&T3(F.current,et)&&((xe=document.activeElement)==null||xe.blur())},[r]),r&&P!==-1&&I(-1),r&&be!==-1&&re(-1);const Be=et=>xe=>{var Le;(Le=et.onChange)==null||Le.call(et,xe),Ee(xe,xe.target.valueAsNumber)},Ue=q.useRef(void 0);let Ye=T;l&&T==="horizontal"&&(Ye+="-reverse");const Xe=({finger:et,move:xe=!1})=>{const{current:Le}=F,{width:at,height:dt,bottom:ht,left:wt}=Le.getBoundingClientRect();let fn;Ye.startsWith("vertical")?fn=(ht-et.y)/dt:fn=(et.x-wt)/at,Ye.includes("-reverse")&&(fn=1-fn);let Lt;if(Lt=vne(fn,h,d),R)Lt=xne(Lt,R,h);else{const jn=XD(he,Lt);Lt=he[jn]}Lt=sg(Lt,h,d);let Ht=0;if(ee){xe?Ht=Ue.current:Ht=XD(W,Lt),a&&(Lt=sg(Lt,W[Ht-1]||-1/0,W[Ht+1]||1/0));const jn=Lt;Lt=WD({values:W,newValue:Lt,index:Ht}),a&&xe||(Ht=Lt.indexOf(jn),Ue.current=Ht)}return{newValue:Lt,activeIndex:Ht}},Je=Zl(et=>{const xe=Z3(et,V);if(!xe)return;if(ie.current+=1,et.type==="mousemove"&&et.buttons===0){Ve(et);return}const{newValue:Le,activeIndex:at}=Xe({finger:xe,move:!0});e6({sliderRef:F,activeIndex:at,setActive:I}),le(Le),!se&&ie.current>yne&&ce(!0),Q&&!t6(Le,U)&&Q(et,Le,at)}),Ve=Zl(et=>{const xe=Z3(et,V);if(ce(!1),!xe)return;const{newValue:Le}=Xe({finger:xe,move:!0});I(-1),et.type==="touchend"&&X(-1),x&&x(et,ue.current??Le),V.current=void 0,ut()}),Re=Zl(et=>{if(r)return;KD()||et.preventDefault();const xe=et.changedTouches[0];xe!=null&&(V.current=xe.identifier);const Le=Z3(et,V);if(Le!==!1){const{newValue:dt,activeIndex:ht}=Xe({finger:Le});e6({sliderRef:F,activeIndex:ht,setActive:I}),le(dt),Q&&!t6(dt,U)&&Q(et,dt,ht)}ie.current=0;const at=Gi(F.current);at.addEventListener("touchmove",Je,{passive:!0}),at.addEventListener("touchend",Ve,{passive:!0})}),ut=q.useCallback(()=>{const et=Gi(F.current);et.removeEventListener("mousemove",Je),et.removeEventListener("mouseup",Ve),et.removeEventListener("touchmove",Je),et.removeEventListener("touchend",Ve)},[Ve,Je]);q.useEffect(()=>{const{current:et}=F;return et.addEventListener("touchstart",Re,{passive:KD()}),()=>{et.removeEventListener("touchstart",Re),ut()}},[ut,Re]),q.useEffect(()=>{r&&ut()},[r,ut]);const Vt=et=>xe=>{var dt;if((dt=et.onMouseDown)==null||dt.call(et,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const Le=Z3(xe,V);if(Le!==!1){const{newValue:ht,activeIndex:wt}=Xe({finger:Le});e6({sliderRef:F,activeIndex:wt,setActive:I}),le(ht),Q&&!t6(ht,U)&&Q(xe,ht,wt)}ie.current=0;const at=Gi(F.current);at.addEventListener("mousemove",Je,{passive:!0}),at.addEventListener("mouseup",Ve)},Qt=J3(ee?W[0]:h,h,d),St=J3(W[W.length-1],h,d)-Qt,$t=(et={})=>{const xe=sb(et),Le={onMouseDown:Vt(xe||{})},at={...xe,...Le};return{...et,ref:te,...at}},Cn=et=>xe=>{var at;(at=et.onMouseOver)==null||at.call(et,xe);const Le=Number(xe.currentTarget.getAttribute("data-index"));X(Le)},vn=et=>xe=>{var Le;(Le=et.onMouseLeave)==null||Le.call(et,xe),X(-1)},it=(et={})=>{const xe=sb(et),Le={onMouseOver:Cn(xe||{}),onMouseLeave:vn(xe||{})};return{...et,...xe,...Le}},Mt=et=>({pointerEvents:P!==-1&&P!==et?"none":void 0});let Dn;return T==="vertical"&&(Dn=l?"vertical-rl":"vertical-lr"),{active:P,axis:Ye,axisProps:Sne,dragging:se,focusedThumbIndex:be,getHiddenInputProps:(et={})=>{const xe=sb(et),Le={onChange:Be(xe||{}),onFocus:Y(xe||{}),onBlur:Me(xe||{}),onKeyDown:_e(xe||{})},at={...xe,...Le};return{tabIndex:D,"aria-labelledby":t,"aria-orientation":T,"aria-valuemax":A(d),"aria-valuemin":A(h),name:y,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...et,...at,style:{...mne,direction:l?"rtl":"ltr",width:"100%",height:"100%",writingMode:Dn}}},getRootProps:$t,getThumbProps:it,marks:oe,open:H,range:ee,rootRef:te,trackLeap:St,trackOffset:Qt,values:W,getThumbStyle:Mt}}const Tne=e=>!e||!rc(e);function Ane(e){return Ft("MuiSlider",e)}const is=Yt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var Cne={};const One=e=>{const{open:t}=e;return{offset:At(t&&is.valueLabelOpen),circle:is.valueLabelCircle,label:is.valueLabelLabel}};function QD(e){const{children:t,className:n,value:r}=e,a=One(e);return t?q.cloneElement(t,{className:t.props.className},L.jsxs(q.Fragment,{children:[t.props.children,L.jsx("span",{className:At(a.offset,n),"aria-hidden":!0,children:L.jsx("span",{className:a.circle,children:L.jsx("span",{className:a.label,children:r})})})]})):null}Cne.NODE_ENV!=="production"&&(QD.propTypes={children:p.element.isRequired,className:p.string,value:p.node});var ZD={};function JD(e){return e}const Mne=rt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${We(n.color)}`],n.size!=="medium"&&t[`size${We(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Kt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${is.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${is.dragging}`]:{[`& .${is.thumb}, & .${is.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Rne=rt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),_ne=rt("span",{name:"MuiSlider",slot:"Track"})(Kt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Dne=rt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${We(n.color)}`],n.size!=="medium"&&t[`thumbSize${We(n.size)}`]]}})(Kt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${is.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Fr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${is.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${is.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),eN=rt(QD,{name:"MuiSlider",slot:"ValueLabel"})(Kt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${is.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${is.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));ZD.NODE_ENV!=="production"&&(eN.propTypes={children:p.element.isRequired,index:p.number.isRequired,open:p.bool.isRequired,value:p.node});const Nne=rt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>y3(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Kt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),kne=rt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>y3(e)&&e!=="markLabelActive"})(Kt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),zne=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:l,classes:u,color:d,size:h}=e,y={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",l==="inverted"&&"trackInverted",l===!1&&"trackFalse",d&&`color${We(d)}`,h&&`size${We(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${We(h)}`,d&&`thumbColor${We(d)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Wt(y,Ane,u)},Ine=({children:e})=>e,tN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiSlider"}),a=d3(),{"aria-label":l,"aria-valuetext":u,"aria-labelledby":d,component:h="span",components:y={},componentsProps:v={},color:x="primary",classes:T,className:E,disableSwap:A=!1,disabled:R=!1,getAriaLabel:_,getAriaValueText:D,marks:z=!1,max:V=100,min:P=0,name:I,onChange:H,onChangeCommitted:X,orientation:se="horizontal",shiftStep:ce=10,size:ie="medium",step:ue=1,scale:U=JD,slotProps:le,slots:Q,tabIndex:ee,track:W="normal",value:oe,valueLabelDisplay:he="off",valueLabelFormat:be=JD,...re}=r,F={...r,isRtl:a,max:V,min:P,classes:T,disabled:R,disableSwap:A,orientation:se,marks:z,color:x,size:ie,step:ue,shiftStep:ce,scale:U,track:W,valueLabelDisplay:he,valueLabelFormat:be},{axisProps:te,getRootProps:Y,getHiddenInputProps:Me,getThumbProps:Ee,open:_e,active:Be,axis:Ue,focusedThumbIndex:Ye,range:Xe,dragging:Je,marks:Ve,values:Re,trackOffset:ut,trackLeap:Vt,getThumbStyle:Qt}=wne({...F,rootRef:n});F.marked=Ve.length>0&&Ve.some(Ze=>Ze.label),F.dragging=Je,F.focusedThumbIndex=Ye;const St=zne(F),$t=(Q==null?void 0:Q.root)??y.Root??Mne,Cn=(Q==null?void 0:Q.rail)??y.Rail??Rne,vn=(Q==null?void 0:Q.track)??y.Track??_ne,it=(Q==null?void 0:Q.thumb)??y.Thumb??Dne,Mt=(Q==null?void 0:Q.valueLabel)??y.ValueLabel??eN,Dn=(Q==null?void 0:Q.mark)??y.Mark??Nne,tn=(Q==null?void 0:Q.markLabel)??y.MarkLabel??kne,et=(Q==null?void 0:Q.input)??y.Input??"input",xe=(le==null?void 0:le.root)??v.root,Le=(le==null?void 0:le.rail)??v.rail,at=(le==null?void 0:le.track)??v.track,dt=(le==null?void 0:le.thumb)??v.thumb,ht=(le==null?void 0:le.valueLabel)??v.valueLabel,wt=(le==null?void 0:le.mark)??v.mark,fn=(le==null?void 0:le.markLabel)??v.markLabel,Lt=(le==null?void 0:le.input)??v.input,Ht=oc({elementType:$t,getSlotProps:Y,externalSlotProps:xe,externalForwardedProps:re,additionalProps:{...Tne($t)&&{as:h}},ownerState:{...F,...xe==null?void 0:xe.ownerState},className:[St.root,E]}),jn=oc({elementType:Cn,externalSlotProps:Le,ownerState:F,className:St.rail}),gn=oc({elementType:vn,externalSlotProps:at,additionalProps:{style:{...te[Ue].offset(ut),...te[Ue].leap(Vt)}},ownerState:{...F,...at==null?void 0:at.ownerState},className:St.track}),Pr=oc({elementType:it,getSlotProps:Ee,externalSlotProps:dt,ownerState:{...F,...dt==null?void 0:dt.ownerState},className:St.thumb}),vr=oc({elementType:Mt,externalSlotProps:ht,ownerState:{...F,...ht==null?void 0:ht.ownerState},className:St.valueLabel}),J=oc({elementType:Dn,externalSlotProps:wt,ownerState:F,className:St.mark}),Oe=oc({elementType:tn,externalSlotProps:fn,ownerState:F,className:St.markLabel}),nt=oc({elementType:et,getSlotProps:Me,externalSlotProps:Lt,ownerState:F});return L.jsxs($t,{...Ht,children:[L.jsx(Cn,{...jn}),L.jsx(vn,{...gn}),Ve.filter(Ze=>Ze.value>=P&&Ze.value<=V).map((Ze,mt)=>{const tt=J3(Ze.value,P,V),ot=te[Ue].offset(tt);let zt;return W===!1?zt=Re.includes(Ze.value):zt=W==="normal"&&(Xe?Ze.value>=Re[0]&&Ze.value<=Re[Re.length-1]:Ze.value<=Re[0])||W==="inverted"&&(Xe?Ze.value<=Re[0]||Ze.value>=Re[Re.length-1]:Ze.value>=Re[0]),L.jsxs(q.Fragment,{children:[L.jsx(Dn,{"data-index":mt,...J,...!rc(Dn)&&{markActive:zt},style:{...ot,...J.style},className:At(J.className,zt&&St.markActive)}),Ze.label!=null?L.jsx(tn,{"aria-hidden":!0,"data-index":mt,...Oe,...!rc(tn)&&{markLabelActive:zt},style:{...ot,...Oe.style},className:At(St.markLabel,Oe.className,zt&&St.markLabelActive),children:Ze.label}):null]},mt)}),Re.map((Ze,mt)=>{const tt=J3(Ze,P,V),ot=te[Ue].offset(tt),zt=he==="off"?Ine:Mt;return L.jsx(zt,{...!rc(zt)&&{valueLabelFormat:be,valueLabelDisplay:he,value:typeof be=="function"?be(U(Ze),mt):be,index:mt,open:_e===mt||Be===mt||he==="on",disabled:R},...vr,children:L.jsx(it,{"data-index":mt,...Pr,className:At(St.thumb,Pr.className,Be===mt&&St.active,Ye===mt&&St.focusVisible),style:{...ot,...Qt(mt),...Pr.style},children:L.jsx(et,{"data-index":mt,"aria-label":_?_(mt):l,"aria-valuenow":U(Ze),"aria-labelledby":d,"aria-valuetext":D?D(U(Ze),mt):u,value:Re[mt],...nt})})},mt)})]})});ZD.NODE_ENV!=="production"&&(tN.propTypes={"aria-label":du(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":du(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.node,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});function Lne(e){return Ft("MuiTooltip",e)}const mi=Yt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var r6={};function Vne(e){return Math.round(e*1e5)/1e5}const Bne=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:l}=e,u={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${We(l.split("-")[0])}`],arrow:["arrow"]};return Wt(u,Lne,t)},Pne=rt(d7,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Kt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${mi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mi.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mi.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mi.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mi.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mi.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mi.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),jne=rt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${We(n.placement.split("-")[0])}`]]}})(Kt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${mi.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mi.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mi.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mi.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Vne(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mi.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mi.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mi.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mi.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mi.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mi.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mi.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mi.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mi.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mi.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$ne=rt("span",{name:"MuiTooltip",slot:"Arrow"})(Kt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let i6=!1;const nN=new x3;let Nb={x:0,y:0};function a6(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:l,classes:u,components:d={},componentsProps:h={},describeChild:y=!1,disableFocusListener:v=!1,disableHoverListener:x=!1,disableInteractive:T=!1,disableTouchListener:E=!1,enterDelay:A=100,enterNextDelay:R=0,enterTouchDelay:_=700,followCursor:D=!1,id:z,leaveDelay:V=0,leaveTouchDelay:P=1500,onClose:I,onOpen:H,open:X,placement:se="bottom",PopperComponent:ce,PopperProps:ie={},slotProps:ue={},slots:U={},title:le,TransitionComponent:Q,TransitionProps:ee,...W}=r,oe=q.isValidElement(l)?l:L.jsx("span",{children:l}),he=lf(),be=d3(),[re,F]=q.useState(),[te,Y]=q.useState(null),Me=q.useRef(!1),Ee=T||D,_e=xg(),Be=xg(),Ue=xg(),Ye=xg(),[Xe,Je]=yg({controlled:X,default:!1,name:"Tooltip",state:"open"});let Ve=Xe;if(r6.NODE_ENV!=="production"){const{current:ct}=q.useRef(X!==void 0);q.useEffect(()=>{re&&re.disabled&&!ct&&le!==""&&re.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
`))},[le,re,ct])}const Re=O0(z),ut=q.useRef(),Vt=Zl(()=>{ut.current!==void 0&&(document.body.style.WebkitUserSelect=ut.current,ut.current=void 0),Ye.clear()});q.useEffect(()=>Vt,[Vt]);const Qt=ct=>{nN.clear(),i6=!0,Je(!0),H&&!Ve&&H(ct)},St=Zl(ct=>{nN.start(800+V,()=>{i6=!1}),Je(!1),I&&Ve&&I(ct),_e.start(he.transitions.duration.shortest,()=>{Me.current=!1})}),$t=ct=>{Me.current&&ct.type!=="touchstart"||(re&&re.removeAttribute("title"),Be.clear(),Ue.clear(),A||i6&&R?Be.start(i6?R:A,()=>{Qt(ct)}):Qt(ct))},Cn=ct=>{Be.clear(),Ue.start(V,()=>{St(ct)})},[,vn]=q.useState(!1),it=ct=>{const Rn=(ct==null?void 0:ct.target)??re;if(!Rn||!Sg(Rn)){vn(!1);const si=ct??new Event("blur");!ct&&Rn&&(Object.defineProperty(si,"target",{value:Rn}),Object.defineProperty(si,"currentTarget",{value:Rn})),Cn(si)}},Mt=ct=>{re||F(ct.currentTarget),Sg(ct.target)&&(vn(!0),$t(ct))},Dn=ct=>{Me.current=!0;const Rn=oe.props;Rn.onTouchStart&&Rn.onTouchStart(ct)},tn=ct=>{Dn(ct),Ue.clear(),_e.clear(),Vt(),ut.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ye.start(_,()=>{document.body.style.WebkitUserSelect=ut.current,$t(ct)})},et=ct=>{oe.props.onTouchEnd&&oe.props.onTouchEnd(ct),Vt(),Ue.start(P,()=>{St(ct)})};q.useEffect(()=>{if(!Ve)return;function ct(Rn){Rn.key==="Escape"&&St(Rn)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[St,Ve]);const xe=ai(Og(oe),F,n);!le&&le!==0&&(Ve=!1);const Le=q.useRef(),at=ct=>{const Rn=oe.props;Rn.onMouseMove&&Rn.onMouseMove(ct),Nb={x:ct.clientX,y:ct.clientY},Le.current&&Le.current.update()},dt={},ht=typeof le=="string";y?(dt.title=!Ve&&ht&&!x?le:null,dt["aria-describedby"]=Ve?Re:null):(dt["aria-label"]=ht?le:null,dt["aria-labelledby"]=Ve&&!ht?Re:null);const wt={...dt,...W,...oe.props,className:At(W.className,oe.props.className),onTouchStart:Dn,ref:xe,...D?{onMouseMove:at}:{}};r6.NODE_ENV!=="production"&&(wt["data-mui-internal-clone-element"]=!0,q.useEffect(()=>{re&&!re.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
`))},[re]));const fn={};E||(wt.onTouchStart=tn,wt.onTouchEnd=et),x||(wt.onMouseOver=a6($t,wt.onMouseOver),wt.onMouseLeave=a6(Cn,wt.onMouseLeave),Ee||(fn.onMouseOver=$t,fn.onMouseLeave=Cn)),v||(wt.onFocus=a6(Mt,wt.onFocus),wt.onBlur=a6(it,wt.onBlur),Ee||(fn.onFocus=Mt,fn.onBlur=it)),r6.NODE_ENV!=="production"&&oe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${oe.props.title}\` or the Tooltip component.`].join(`
`));const Lt={...r,isRtl:be,arrow:a,disableInteractive:Ee,placement:se,PopperComponentProp:ce,touch:Me.current},Ht=typeof ue.popper=="function"?ue.popper(Lt):ue.popper,jn=q.useMemo(()=>{var Rn,si;let ct=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Rn=ie.popperOptions)!=null&&Rn.modifiers&&(ct=ct.concat(ie.popperOptions.modifiers)),(si=Ht==null?void 0:Ht.popperOptions)!=null&&si.modifiers&&(ct=ct.concat(Ht.popperOptions.modifiers)),{...ie.popperOptions,...Ht==null?void 0:Ht.popperOptions,modifiers:ct}},[te,ie.popperOptions,Ht==null?void 0:Ht.popperOptions]),gn=Bne(Lt),Pr=typeof ue.transition=="function"?ue.transition(Lt):ue.transition,vr={slots:{popper:d.Popper,transition:d.Transition??Q,tooltip:d.Tooltip,arrow:d.Arrow,...U},slotProps:{arrow:ue.arrow??h.arrow,popper:{...ie,...Ht??h.popper},tooltip:ue.tooltip??h.tooltip,transition:{...ee,...Pr??h.transition}}},[J,Oe]=ln("popper",{elementType:Pne,externalForwardedProps:vr,ownerState:Lt,className:At(gn.popper,ie==null?void 0:ie.className)}),[nt,Ze]=ln("transition",{elementType:Cb,externalForwardedProps:vr,ownerState:Lt}),[mt,tt]=ln("tooltip",{elementType:jne,className:gn.tooltip,externalForwardedProps:vr,ownerState:Lt}),[ot,zt]=ln("arrow",{elementType:$ne,className:gn.arrow,externalForwardedProps:vr,ownerState:Lt,ref:Y});return L.jsxs(q.Fragment,{children:[q.cloneElement(oe,wt),L.jsx(J,{as:ce??d7,placement:se,anchorEl:D?{getBoundingClientRect:()=>({top:Nb.y,left:Nb.x,right:Nb.x,bottom:Nb.y,width:0,height:0})}:re,popperRef:Le,open:re?Ve:!1,id:Re,transition:!0,...fn,...Oe,popperOptions:jn,children:({TransitionProps:ct})=>L.jsx(nt,{timeout:he.transitions.duration.shorter,...ct,...Ze,children:L.jsxs(mt,{...tt,children:[le,a?L.jsx(ot,{...zt}):null]})})})]})});r6.NODE_ENV!=="production"&&(rN.propTypes={arrow:p.bool,children:Rg.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.oneOfType([p.func,p.object]),popper:p.oneOfType([p.func,p.object]),tooltip:p.oneOfType([p.func,p.object]),transition:p.oneOfType([p.func,p.object])}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});function Une(e){return Ft("MuiSwitch",e)}const vo=Yt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Hne={};const qne=e=>{const{classes:t,edge:n,size:r,color:a,checked:l,disabled:u}=e,d={root:["root",n&&`edge${We(n)}`,`size${We(r)}`],switchBase:["switchBase",`color${We(a)}`,l&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=Wt(d,Une,t);return{...t,...h}},Gne=rt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${We(n.edge)}`],t[`size${We(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${vo.thumb}`]:{width:16,height:16},[`& .${vo.switchBase}`]:{padding:4,[`&.${vo.checked}`]:{transform:"translateX(16px)"}}}}]}),Fne=rt($3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${vo.input}`]:t.input},n.color!=="default"&&t[`color${We(n.color)}`]]}})(Kt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${vo.checked}`]:{transform:"translateX(20px)"},[`&.${vo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${vo.checked} + .${vo.track}`]:{opacity:.5},[`&.${vo.disabled} + .${vo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${vo.input}`]:{left:"-100%",width:"300%"}})),Kt(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Fr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${vo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${vo.checked} + .${vo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Yne=rt("span",{name:"MuiSwitch",slot:"Track"})(Kt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Xne=rt("span",{name:"MuiSwitch",slot:"Thumb"})(Kt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),iN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiSwitch"}),{className:a,color:l="primary",edge:u=!1,size:d="medium",sx:h,slots:y={},slotProps:v={},...x}=r,T={...r,color:l,edge:u,size:d},E=qne(T),A=v.input,R={slots:y,slotProps:v},[_,D]=ln("root",{className:At(E.root,a),elementType:Gne,externalForwardedProps:R,ownerState:T,additionalProps:{sx:h}}),[z,V]=ln("thumb",{className:E.thumb,elementType:Xne,externalForwardedProps:R,ownerState:T}),P=L.jsx(z,{...V}),[I,H]=ln("track",{className:E.track,elementType:Yne,externalForwardedProps:R,ownerState:T});return L.jsxs(_,{...D,children:[L.jsx(Fne,{type:"checkbox",icon:P,checkedIcon:P,ref:n,ownerState:T,...x,classes:{...E,root:E.switchBase},slots:{...y.switchBase&&{root:y.switchBase},...y.input&&{input:y.input}},slotProps:{...v.switchBase&&{root:typeof v.switchBase=="function"?v.switchBase(T):v.switchBase},input:Y2(typeof A=="function"?A(T):A,{role:"switch"})}}),L.jsx(I,{...H})]})});Hne.NODE_ENV!=="production"&&(iN.propTypes={checked:p.bool,checkedIcon:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["default","primary","secondary","error","info","success","warning"]),p.string]),defaultChecked:p.bool,disabled:p.bool,disableRipple:p.bool,edge:p.oneOf(["end","start",!1]),icon:p.node,id:p.string,inputProps:p.object,inputRef:yo,onChange:p.func,required:p.bool,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),switchBase:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object])}),slots:p.shape({input:p.elementType,root:p.elementType,switchBase:p.elementType,thumb:p.elementType,track:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.any});var Wne={};const D7=q.createContext();Wne.NODE_ENV!=="production"&&(D7.displayName="TableContext");function Kne(e){return Ft("MuiTable",e)}Yt("MuiTable",["root","stickyHeader"]);var Qne={};const Zne=e=>{const{classes:t,stickyHeader:n}=e;return Wt({root:["root",n&&"stickyHeader"]},Kne,t)},Jne=rt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Kt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),aN="table",oN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTable"}),{className:a,component:l=aN,padding:u="normal",size:d="medium",stickyHeader:h=!1,...y}=r,v={...r,component:l,padding:u,size:d,stickyHeader:h},x=Zne(v),T=q.useMemo(()=>({padding:u,size:d,stickyHeader:h}),[u,d,h]);return L.jsx(D7.Provider,{value:T,children:L.jsx(Jne,{as:l,role:l===aN?null:"table",ref:n,className:At(x.root,a),ownerState:v,...y})})});Qne.NODE_ENV!=="production"&&(oN.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,padding:p.oneOf(["checkbox","none","normal"]),size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),stickyHeader:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});var ere={};const kb=q.createContext();ere.NODE_ENV!=="production"&&(kb.displayName="Tablelvl2Context");function tre(e){return Ft("MuiTableBody",e)}Yt("MuiTableBody",["root"]);var nre={};const rre=e=>{const{classes:t}=e;return Wt({root:["root"]},tre,t)},ire=rt("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),are={variant:"body"},lN="tbody",sN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTableBody"}),{className:a,component:l=lN,...u}=r,d={...r,component:l},h=rre(d);return L.jsx(kb.Provider,{value:are,children:L.jsx(ire,{className:At(h.root,a),as:l,ref:n,role:l===lN?null:"rowgroup",ownerState:d,...u})})});nre.NODE_ENV!=="production"&&(sN.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function ore(e){return Ft("MuiTableCell",e)}const lre=Yt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var sre={};const ure=e=>{const{classes:t,variant:n,align:r,padding:a,size:l,stickyHeader:u}=e,d={root:["root",n,u&&"stickyHeader",r!=="inherit"&&`align${We(r)}`,a!=="normal"&&`padding${We(a)}`,`size${We(l)}`]};return Wt(d,ore,t)},cre=rt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${We(n.size)}`],n.padding!=="normal"&&t[`padding${We(n.padding)}`],n.align!=="inherit"&&t[`align${We(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Kt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${lre.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),N7=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:l,component:u,padding:d,scope:h,size:y,sortDirection:v,variant:x,...T}=r,E=q.useContext(D7),A=q.useContext(kb),R=A&&A.variant==="head";let _;u?_=u:_=R?"th":"td";let D=h;_==="td"?D=void 0:!D&&R&&(D="col");const z=x||A&&A.variant,V={...r,align:a,component:_,padding:d||(E&&E.padding?E.padding:"normal"),size:y||(E&&E.size?E.size:"medium"),sortDirection:v,stickyHeader:z==="head"&&E&&E.stickyHeader,variant:z},P=ure(V);let I=null;return v&&(I=v==="asc"?"ascending":"descending"),L.jsx(cre,{as:_,ref:n,className:At(P.root,l),"aria-sort":I,scope:D,ownerState:V,...T})});sre.NODE_ENV!=="production"&&(N7.propTypes={align:p.oneOf(["center","inherit","justify","left","right"]),children:p.node,classes:p.object,className:p.string,component:p.elementType,padding:p.oneOf(["checkbox","none","normal"]),scope:p.string,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),sortDirection:p.oneOf(["asc","desc",!1]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),variant:p.oneOfType([p.oneOf(["body","footer","head"]),p.string])});function fre(e){return Ft("MuiTableContainer",e)}Yt("MuiTableContainer",["root"]);var dre={};const hre=e=>{const{classes:t}=e;return Wt({root:["root"]},fre,t)},pre=rt("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),uN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTableContainer"}),{className:a,component:l="div",...u}=r,d={...r,component:l},h=hre(d);return L.jsx(pre,{ref:n,as:l,className:At(h.root,a),ownerState:d,...u})});dre.NODE_ENV!=="production"&&(uN.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function mre(e){return Ft("MuiTableHead",e)}Yt("MuiTableHead",["root"]);var gre={};const yre=e=>{const{classes:t}=e;return Wt({root:["root"]},mre,t)},vre=rt("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),bre={variant:"head"},cN="thead",fN=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTableHead"}),{className:a,component:l=cN,...u}=r,d={...r,component:l},h=yre(d);return L.jsx(kb.Provider,{value:bre,children:L.jsx(vre,{as:l,className:At(h.root,a),ref:n,role:l===cN?null:"rowgroup",ownerState:d,...u})})});gre.NODE_ENV!=="production"&&(fN.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function xre(e){return Ft("MuiTableRow",e)}const dN=Yt("MuiTableRow",["root","selected","hover","head","footer"]);var Sre={};const Ere=e=>{const{classes:t,selected:n,hover:r,head:a,footer:l}=e;return Wt({root:["root",n&&"selected",r&&"hover",a&&"head",l&&"footer"]},xre,t)},wre=rt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Kt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${dN.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dN.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),hN="tr",k7=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTableRow"}),{className:a,component:l=hN,hover:u=!1,selected:d=!1,...h}=r,y=q.useContext(kb),v={...r,component:l,hover:u,selected:d,head:y&&y.variant==="head",footer:y&&y.variant==="footer"},x=Ere(v);return L.jsx(wre,{as:l,ref:n,className:At(x.root,a),role:l===hN?null:"row",ownerState:v,...h})});Sre.NODE_ENV!=="production"&&(k7.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,hover:p.bool,selected:p.bool,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])});function Tre(e){return Ft("MuiTextField",e)}Yt("MuiTextField",["root"]);var pN={};const Are={standard:Y3,filled:F3,outlined:K3},Cre=e=>{const{classes:t}=e;return Wt({root:["root"]},Tre,t)},Ore=rt(pi,{name:"MuiTextField",slot:"Root"})({}),Fo=q.forwardRef(function(t,n){const r=Jt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:l=!1,children:u,className:d,color:h="primary",defaultValue:y,disabled:v=!1,error:x=!1,FormHelperTextProps:T,fullWidth:E=!1,helperText:A,id:R,InputLabelProps:_,inputProps:D,InputProps:z,inputRef:V,label:P,maxRows:I,minRows:H,multiline:X=!1,name:se,onBlur:ce,onChange:ie,onFocus:ue,placeholder:U,required:le=!1,rows:Q,select:ee=!1,SelectProps:W,slots:oe={},slotProps:he={},type:be,value:re,variant:F="outlined",...te}=r,Y={...r,autoFocus:l,color:h,disabled:v,error:x,fullWidth:E,multiline:X,required:le,select:ee,variant:F},Me=Cre(Y);pN.NODE_ENV!=="production"&&ee&&!u&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Ee=O0(R),_e=A&&Ee?`${Ee}-helper-text`:void 0,Be=P&&Ee?`${Ee}-label`:void 0,Ue=Are[F],Ye={slots:oe,slotProps:{input:z,inputLabel:_,htmlInput:D,formHelperText:T,select:W,...he}},Xe={},Je=Ye.slotProps.inputLabel;F==="outlined"&&(Je&&typeof Je.shrink<"u"&&(Xe.notched=Je.shrink),Xe.label=P),ee&&((!W||!W.native)&&(Xe.id=void 0),Xe["aria-describedby"]=void 0);const[Ve,Re]=ln("root",{elementType:Ore,shouldForwardComponentProp:!0,externalForwardedProps:{...Ye,...te},ownerState:Y,className:At(Me.root,d),ref:n,additionalProps:{disabled:v,error:x,fullWidth:E,required:le,color:h,variant:F}}),[ut,Vt]=ln("input",{elementType:Ue,externalForwardedProps:Ye,additionalProps:Xe,ownerState:Y}),[Qt,St]=ln("inputLabel",{elementType:xD,externalForwardedProps:Ye,ownerState:Y}),[$t,Cn]=ln("htmlInput",{elementType:"input",externalForwardedProps:Ye,ownerState:Y}),[vn,it]=ln("formHelperText",{elementType:hD,externalForwardedProps:Ye,ownerState:Y}),[Mt,Dn]=ln("select",{elementType:L0,externalForwardedProps:Ye,ownerState:Y}),tn=L.jsx(ut,{"aria-describedby":_e,autoComplete:a,autoFocus:l,defaultValue:y,fullWidth:E,multiline:X,name:se,rows:Q,maxRows:I,minRows:H,type:be,value:re,id:Ee,inputRef:V,onBlur:ce,onChange:ie,onFocus:ue,placeholder:U,inputProps:Cn,slots:{input:oe.htmlInput?$t:void 0},...Vt});return L.jsxs(Ve,{...Re,children:[P!=null&&P!==""&&L.jsx(Qt,{htmlFor:Ee,id:Be,...St,children:P}),ee?L.jsx(Mt,{"aria-describedby":_e,id:Ee,labelId:Be,value:re,input:tn,...Dn,children:u}):tn,A&&L.jsx(vn,{id:_e,...it,children:A})]})});pN.NODE_ENV!=="production"&&(Fo.propTypes={autoComplete:p.string,autoFocus:p.bool,children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),defaultValue:p.any,disabled:p.bool,error:p.bool,FormHelperTextProps:p.object,fullWidth:p.bool,helperText:p.node,id:p.string,InputLabelProps:p.object,inputProps:p.object,InputProps:p.object,inputRef:yo,label:p.node,margin:p.oneOf(["dense","none","normal"]),maxRows:p.oneOfType([p.number,p.string]),minRows:p.oneOfType([p.number,p.string]),multiline:p.bool,name:p.string,onBlur:p.func,onChange:p.func,onFocus:p.func,placeholder:p.string,required:p.bool,rows:p.oneOfType([p.number,p.string]),select:p.bool,SelectProps:p.object,size:p.oneOfType([p.oneOf(["medium","small"]),p.string]),slotProps:p.shape({formHelperText:p.oneOfType([p.func,p.object]),htmlInput:p.oneOfType([p.func,p.object]),input:p.oneOfType([p.func,p.object]),inputLabel:p.oneOfType([p.func,p.object]),select:p.oneOfType([p.func,p.object])}),slots:p.shape({formHelperText:p.elementType,htmlInput:p.elementType,input:p.elementType,inputLabel:p.elementType,root:p.elementType,select:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),type:p.string,value:p.any,variant:p.oneOf(["filled","outlined","standard"])});const Mre=({model:e,fontSize:t="small"})=>{if(!e)return L.jsx(ZR,{fontSize:t});switch(e){case"OPENAI":return L.jsx(M0,{fontSize:t,viewBox:"0 0 24 24",children:L.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.78.78 0 0 0 .78 0l5.843-3.369v2.332a.074.074 0 0 1-.028.057l-4.832 2.795a4.504 4.504 0 0 1-6.153-1.645zm-.856-8.246a4.476 4.476 0 0 1 2.346-1.973l-.004.162v5.517a.787.787 0 0 0 .392.681l5.843 3.369-2.02 1.168a.069.069 0 0 1-.066 0l-4.827-2.79a4.504 4.504 0 0 1-1.664-6.134zm16.008 3.73-5.843-3.369 2.02-1.168a.07.07 0 0 1 .066 0l4.827 2.79a4.494 4.494 0 0 1-1.12 8.107v-5.517a.795.795 0 0 0-.397-.681zm2.253-3.395a4.47 4.47 0 0 1-.535.983l-.142-.085-4.779-2.759a.78.78 0 0 0-.78 0L8.927 11.9V9.569a.07.07 0 0 1 .028-.057l4.827-2.79a4.504 4.504 0 0 1 6.682 2.771zm-12.35 3.369-2.02-1.168a.067.067 0 0 1-.037-.052V7.967a4.504 4.504 0 0 1 7.37-3.454l-.142.081-4.779 2.759a.795.795 0 0 0-.392.681zm1.069-2.332 2.606-1.507 2.606 1.507v3.014l-2.606 1.507-2.606-1.507z"})});case"ANTHROPIC_CLAUDE":return L.jsxs(M0,{fontSize:t,viewBox:"0 0 24 24",children:[L.jsx("path",{d:"M15.5 2.25a4.25 4.25 0 0 0-4.25 4.25h-2.5A6.75 6.75 0 0 1 15.5 0h2.5v2.25zM2.25 8.5A4.25 4.25 0 0 0 6.5 12.75v2.5A6.75 6.75 0 0 1 0 8.5v-2.5h2.25zM8.5 21.75a4.25 4.25 0 0 0 4.25-4.25h2.5A6.75 6.75 0 0 1 8.5 24H6v-2.25zM21.75 15.5a4.25 4.25 0 0 0-4.25-4.25v-2.5A6.75 6.75 0 0 1 24 15.5V18h-2.25z"}),L.jsx("path",{d:"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})]});case"GOOGLE_GEMINI":return L.jsx(M0,{fontSize:t,viewBox:"0 0 24 24",children:L.jsx("path",{d:"M4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8-8-3.59-8-8m8-10c-5.51 0-10 4.49-10 10s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2m2.5 10c0 1.38-1.12 2.5-2.5 2.5S9.5 13.38 9.5 12 10.62 9.5 12 9.5s2.5 1.12 2.5 2.5M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"})});default:return L.jsx(ZR,{fontSize:t})}},Rre=({enabledModels:e})=>{const t=fu("settings"),n=fu("chat"),r=t.state,a=(d,h)=>{const y=t.state,v={...y,llm:{...y.llm,models:{...y.llm.models,[d]:{...y.llm.models[d],version:h,enabled:!0}}}};t.saveSettings(v),n.updateWelcomeMessage()},l=d=>{const h=Uv[d],y=h.labels;return h.options.map(v=>{const x=v;return{label:y[x],value:x}})},u=d=>{const h=Uv[d],y=r.llm.models[d].version,v=h.options;return!y||!v.includes(y)?h.default:y};return L.jsx(wi,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1},children:e.map(d=>L.jsxs(wi,{sx:{display:"flex",alignItems:"center",gap:1},children:[L.jsxs(Gn,{variant:"body2",sx:{minWidth:100},children:[d.name,":"]}),L.jsx(pi,{size:"small",sx:{minWidth:200},children:L.jsx(L0,{value:u(d.modelKey),onChange:h=>a(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}},children:l(d.modelKey).map(h=>L.jsx(df,{value:h.value,children:h.label},h.value))})})]},d.modelKey))})};function j0e(){}function $0e(){}function mN(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,l=!1;for(;!l;){r===-1&&(r=n.length,l=!0);const u=n.slice(a,r).trim();(u||!l)&&t.push(u),a=r+1,r=n.indexOf(",",a)}return t}function _re(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Dre=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nre=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kre={};function gN(e,t){return(kre.jsx?Nre:Dre).test(e)}const zre=/[ \t\n\f\r]/g;function Ire(e){return typeof e=="object"?e.type==="text"?yN(e.value):!1:yN(e)}function yN(e){return e.replace(zre,"")===""}class zb{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zb.prototype.normal={},zb.prototype.property={},zb.prototype.space=void 0;function vN(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new zb(n,r,t)}function Ib(e){return e.toLowerCase()}class Yo{constructor(t,n){this.attribute=n,this.property=t}}Yo.prototype.attribute="",Yo.prototype.booleanish=!1,Yo.prototype.boolean=!1,Yo.prototype.commaOrSpaceSeparated=!1,Yo.prototype.commaSeparated=!1,Yo.prototype.defined=!1,Yo.prototype.mustUseProperty=!1,Yo.prototype.number=!1,Yo.prototype.overloadedBoolean=!1,Yo.prototype.property="",Yo.prototype.spaceSeparated=!1,Yo.prototype.space=void 0;let Lre=0;const Tn=V0(),Ni=V0(),z7=V0(),vt=V0(),kr=V0(),Ig=V0(),Tl=V0();function V0(){return 2**++Lre}const I7=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tn,booleanish:Ni,commaOrSpaceSeparated:Tl,commaSeparated:Ig,number:vt,overloadedBoolean:z7,spaceSeparated:kr},Symbol.toStringTag,{value:"Module"})),L7=Object.keys(I7);class V7 extends Yo{constructor(t,n,r,a){let l=-1;if(super(t,n),bN(this,"space",a),typeof r=="number")for(;++l<L7.length;){const u=L7[l];bN(this,L7[l],(r&I7[u])===I7[u])}}}V7.prototype.defined=!0;function bN(e,t,n){n&&(e[t]=n)}function Lg(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const l=new V7(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Ib(r)]=r,n[Ib(l.attribute)]=r}return new zb(t,n,e.space)}const xN=Lg({properties:{ariaActiveDescendant:null,ariaAtomic:Ni,ariaAutoComplete:null,ariaBusy:Ni,ariaChecked:Ni,ariaColCount:vt,ariaColIndex:vt,ariaColSpan:vt,ariaControls:kr,ariaCurrent:null,ariaDescribedBy:kr,ariaDetails:null,ariaDisabled:Ni,ariaDropEffect:kr,ariaErrorMessage:null,ariaExpanded:Ni,ariaFlowTo:kr,ariaGrabbed:Ni,ariaHasPopup:null,ariaHidden:Ni,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kr,ariaLevel:vt,ariaLive:null,ariaModal:Ni,ariaMultiLine:Ni,ariaMultiSelectable:Ni,ariaOrientation:null,ariaOwns:kr,ariaPlaceholder:null,ariaPosInSet:vt,ariaPressed:Ni,ariaReadOnly:Ni,ariaRelevant:null,ariaRequired:Ni,ariaRoleDescription:kr,ariaRowCount:vt,ariaRowIndex:vt,ariaRowSpan:vt,ariaSelected:Ni,ariaSetSize:vt,ariaSort:null,ariaValueMax:vt,ariaValueMin:vt,ariaValueNow:vt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function SN(e,t){return t in e?e[t]:t}function EN(e,t){return SN(e,t.toLowerCase())}const Vre=Lg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ig,acceptCharset:kr,accessKey:kr,action:null,allow:null,allowFullScreen:Tn,allowPaymentRequest:Tn,allowUserMedia:Tn,alt:null,as:null,async:Tn,autoCapitalize:null,autoComplete:kr,autoFocus:Tn,autoPlay:Tn,blocking:kr,capture:null,charSet:null,checked:Tn,cite:null,className:kr,cols:vt,colSpan:null,content:null,contentEditable:Ni,controls:Tn,controlsList:kr,coords:vt|Ig,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tn,defer:Tn,dir:null,dirName:null,disabled:Tn,download:z7,draggable:Ni,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tn,formTarget:null,headers:kr,height:vt,hidden:z7,high:vt,href:null,hrefLang:null,htmlFor:kr,httpEquiv:kr,id:null,imageSizes:null,imageSrcSet:null,inert:Tn,inputMode:null,integrity:null,is:null,isMap:Tn,itemId:null,itemProp:kr,itemRef:kr,itemScope:Tn,itemType:kr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tn,low:vt,manifest:null,max:null,maxLength:vt,media:null,method:null,min:null,minLength:vt,multiple:Tn,muted:Tn,name:null,nonce:null,noModule:Tn,noValidate:Tn,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:Tn,optimum:vt,pattern:null,ping:kr,placeholder:null,playsInline:Tn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tn,referrerPolicy:null,rel:kr,required:Tn,reversed:Tn,rows:vt,rowSpan:vt,sandbox:kr,scope:null,scoped:Tn,seamless:Tn,selected:Tn,shadowRootClonable:Tn,shadowRootDelegatesFocus:Tn,shadowRootMode:null,shape:null,size:vt,sizes:null,slot:null,span:vt,spellCheck:Ni,src:null,srcDoc:null,srcLang:null,srcSet:null,start:vt,step:null,style:null,tabIndex:vt,target:null,title:null,translate:null,type:null,typeMustMatch:Tn,useMap:null,value:Ni,width:vt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kr,axis:null,background:null,bgColor:null,border:vt,borderColor:null,bottomMargin:vt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Tn,declare:Tn,event:null,face:null,frame:null,frameBorder:null,hSpace:vt,leftMargin:vt,link:null,longDesc:null,lowSrc:null,marginHeight:vt,marginWidth:vt,noResize:Tn,noHref:Tn,noShade:Tn,noWrap:Tn,object:null,profile:null,prompt:null,rev:null,rightMargin:vt,rules:null,scheme:null,scrolling:Ni,standby:null,summary:null,text:null,topMargin:vt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:vt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tn,disableRemotePlayback:Tn,prefix:null,property:null,results:vt,security:null,unselectable:null},space:"html",transform:EN}),Bre=Lg({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:Tl,accentHeight:vt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:vt,amplitude:vt,arabicForm:null,ascent:vt,attributeName:null,attributeType:null,azimuth:vt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:vt,by:null,calcMode:null,capHeight:vt,className:kr,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:vt,diffuseConstant:vt,direction:null,display:null,dur:null,divisor:vt,dominantBaseline:null,download:Tn,dx:null,dy:null,edgeMode:null,editable:null,elevation:vt,enableBackground:null,end:null,event:null,exponent:vt,externalResourcesRequired:null,fill:null,fillOpacity:vt,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:Ig,g2:Ig,glyphName:Ig,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:vt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:vt,horizOriginX:vt,horizOriginY:vt,id:null,ideographic:vt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:vt,k:vt,k1:vt,k2:vt,k3:vt,k4:vt,kernelMatrix:Tl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:vt,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:vt,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:vt,overlineThickness:vt,paintOrder:null,panose1:null,path:null,pathLength:vt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:vt,pointsAtY:vt,pointsAtZ:vt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tl,rev:Tl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tl,requiredFeatures:Tl,requiredFonts:Tl,requiredFormats:Tl,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:vt,specularExponent:vt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:vt,strikethroughThickness:vt,string:null,stroke:null,strokeDashArray:Tl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:vt,strokeOpacity:vt,strokeWidth:null,style:null,surfaceScale:vt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tl,tabIndex:vt,tableValues:null,target:null,targetX:vt,targetY:vt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:vt,underlineThickness:vt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:vt,values:null,vAlphabetic:vt,vMathematical:vt,vectorEffect:null,vHanging:vt,vIdeographic:vt,version:null,vertAdvY:vt,vertOriginX:vt,vertOriginY:vt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:vt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:SN}),wN=Lg({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()}}),TN=Lg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:EN}),AN=Lg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Pre={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"},jre=/[A-Z]/g,CN=/-[a-z]/g,$re=/^data[-\w.:]+$/i;function ON(e,t){const n=Ib(t);let r=t,a=Yo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$re.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(CN,Hre);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!CN.test(l)){let u=l.replace(jre,Ure);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=V7}return new a(r,t)}function Ure(e){return"-"+e.toLowerCase()}function Hre(e){return e.charAt(1).toUpperCase()}const MN=vN([xN,Vre,wN,TN,AN],"html"),o6=vN([xN,Bre,wN,TN,AN],"svg");function RN(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qre(e){return e.join(" ").trim()}var Vg={},B7,_N;function Gre(){if(_N)return B7;_N=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
`,y="/",v="*",x="",T="comment",E="declaration";function A(_,D){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];D=D||{};var z=1,V=1;function P(Q){var ee=Q.match(t);ee&&(z+=ee.length);var W=Q.lastIndexOf(h);V=~W?Q.length-W:V+Q.length}function I(){var Q={line:z,column:V};return function(ee){return ee.position=new H(Q),ce(),ee}}function H(Q){this.start=Q,this.end={line:z,column:V},this.source=D.source}H.prototype.content=_;function X(Q){var ee=new Error(D.source+":"+z+":"+V+": "+Q);if(ee.reason=Q,ee.filename=D.source,ee.line=z,ee.column=V,ee.source=_,!D.silent)throw ee}function se(Q){var ee=Q.exec(_);if(ee){var W=ee[0];return P(W),_=_.slice(W.length),ee}}function ce(){se(n)}function ie(Q){var ee;for(Q=Q||[];ee=ue();)ee!==!1&&Q.push(ee);return Q}function ue(){var Q=I();if(!(y!=_.charAt(0)||v!=_.charAt(1))){for(var ee=2;x!=_.charAt(ee)&&(v!=_.charAt(ee)||y!=_.charAt(ee+1));)++ee;if(ee+=2,x===_.charAt(ee-1))return X("End of comment missing");var W=_.slice(2,ee-2);return V+=2,P(W),_=_.slice(ee),V+=2,Q({type:T,comment:W})}}function U(){var Q=I(),ee=se(r);if(ee){if(ue(),!se(a))return X("property missing ':'");var W=se(l),oe=Q({type:E,property:R(ee[0].replace(e,x)),value:W?R(W[0].replace(e,x)):x});return se(u),oe}}function le(){var Q=[];ie(Q);for(var ee;ee=U();)ee!==!1&&(Q.push(ee),ie(Q));return Q}return ce(),le()}function R(_){return _?_.replace(d,x):x}return B7=A,B7}var DN;function Fre(){if(DN)return Vg;DN=1;var e=Vg&&Vg.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=n;const t=e(Gre());function n(r,a){let l=null;if(!r||typeof r!="string")return l;const u=(0,t.default)(r),d=typeof a=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:y,value:v}=h;d?a(y,v,h):v&&(l=l||{},l[y]=v)}),l}return Vg}var Lb={},NN;function Yre(){if(NN)return Lb;NN=1,Object.defineProperty(Lb,"__esModule",{value:!0}),Lb.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(y){return!y||n.test(y)||e.test(y)},u=function(y,v){return v.toUpperCase()},d=function(y,v){return"".concat(v,"-")},h=function(y,v){return v===void 0&&(v={}),l(y)?y:(y=y.toLowerCase(),v.reactCompat?y=y.replace(a,d):y=y.replace(r,d),y.replace(t,u))};return Lb.camelCase=h,Lb}var Vb,kN;function Xre(){if(kN)return Vb;kN=1;var e=Vb&&Vb.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Fre()),n=Yre();function r(a,l){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(d,h){d&&h&&(u[(0,n.camelCase)(d,l)]=h)}),u}return r.default=r,Vb=r,Vb}var Wre=Xre();const Kre=yl(Wre),zN=IN("end"),P7=IN("start");function IN(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function LN(e){const t=P7(e),n=zN(e);if(t&&n)return{start:t,end:n}}function Bb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?VN(e.position):"start"in e||"end"in e?VN(e):"line"in e||"column"in e?j7(e):""}function j7(e){return BN(e&&e.line)+":"+BN(e&&e.column)}function VN(e){return j7(e&&e.start)+"-"+j7(e&&e.end)}function BN(e){return e&&typeof e=="number"?e:1}class Fa extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?a=t:!l.cause&&t&&(u=!0,a=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const h=r.indexOf(":");h===-1?l.ruleId=r:(l.source=r.slice(0,h),l.ruleId=r.slice(h+1))}if(!l.place&&l.ancestors&&l.ancestors){const h=l.ancestors[l.ancestors.length-1];h&&(l.place=h.position)}const d=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=d?d.line:void 0,this.name=Bb(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fa.prototype.file="",Fa.prototype.name="",Fa.prototype.reason="",Fa.prototype.message="",Fa.prototype.stack="",Fa.prototype.column=void 0,Fa.prototype.line=void 0,Fa.prototype.ancestors=void 0,Fa.prototype.cause=void 0,Fa.prototype.fatal=void 0,Fa.prototype.place=void 0,Fa.prototype.ruleId=void 0,Fa.prototype.source=void 0;const $7={}.hasOwnProperty,Qre=new Map,Zre=/[A-Z]/g,Jre=new Set(["table","tbody","thead","tfoot","tr"]),eie=new Set(["td","th"]),PN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tie(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=uie(n,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");r=sie(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?o6:MN,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=jN(a,e,void 0);return l&&typeof l!="string"?l:a.create(e,a.Fragment,{children:l||void 0},void 0)}function jN(e,t,n){if(t.type==="element")return nie(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return rie(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return aie(e,t,n);if(t.type==="mdxjsEsm")return iie(e,t);if(t.type==="root")return oie(e,t,n);if(t.type==="text")return lie(e,t)}function nie(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=o6,e.schema=a),e.ancestors.push(t);const l=UN(e,t.tagName,!1),u=cie(e,t);let d=H7(e,t);return Jre.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!Ire(h):!0})),$N(e,u,l,t),U7(u,d),e.ancestors.pop(),e.schema=r,e.create(t,l,u,n)}function rie(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Pb(e,t.position)}function iie(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pb(e,t.position)}function aie(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=o6,e.schema=a),e.ancestors.push(t);const l=t.name===null?e.Fragment:UN(e,t.name,!0),u=fie(e,t),d=H7(e,t);return $N(e,u,l,t),U7(u,d),e.ancestors.pop(),e.schema=r,e.create(t,l,u,n)}function oie(e,t,n){const r={};return U7(r,H7(e,t)),e.create(t,e.Fragment,r,n)}function lie(e,t){return t.value}function $N(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function U7(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function sie(e,t,n){return r;function r(a,l,u,d){const y=Array.isArray(u.children)?n:t;return d?y(l,u,d):y(l,u)}}function uie(e,t){return n;function n(r,a,l,u){const d=Array.isArray(l.children),h=P7(r);return t(a,l,u,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function cie(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&$7.call(t.properties,a)){const l=die(e,a,t.properties[a]);if(l){const[u,d]=l;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&eie.has(t.tagName)?r=d:n[u]=d}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function fie(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const u=l.expression;u.type;const d=u.properties[0];d.type,Object.assign(n,e.evaluater.evaluateExpression(d.argument))}else Pb(e,t.position);else{const a=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const d=r.value.data.estree.body[0];d.type,l=e.evaluater.evaluateExpression(d.expression)}else Pb(e,t.position);else l=r.value===null?!0:r.value;n[a]=l}return n}function H7(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Qre;for(;++r<t.children.length;){const l=t.children[r];let u;if(e.passKeys){const h=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(h){const y=a.get(h)||0;u=h+"-"+y,a.set(h,y+1)}}const d=jN(e,l,u);d!==void 0&&n.push(d)}return n}function die(e,t,n){const r=ON(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_re(n):qre(n)),r.property==="style"){let a=typeof n=="object"?n:hie(e,String(n));return e.stylePropertyNameCase==="css"&&(a=pie(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Pre[r.property]||r.property:r.attribute,n]}}function hie(e,t){try{return Kre(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Fa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=PN+"#cannot-parse-style-attribute",a}}function UN(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let l=-1,u;for(;++l<a.length;){const d=gN(a[l])?{type:"Identifier",name:a[l]}:{type:"Literal",value:a[l]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(l&&d.type==="Literal"),optional:!1}:d}r=u}else r=gN(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return $7.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Pb(e)}function Pb(e,t){const n=new Fa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=PN+"#cannot-handle-mdx-estrees-without-createevaluater",n}function pie(e){const t={};let n;for(n in e)$7.call(e,n)&&(t[mie(n)]=e[n]);return t}function mie(e){let t=e.replace(Zre,gie);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function gie(e){return"-"+e.toLowerCase()}const q7={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"]},yie={};function G7(e,t){const n=yie,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return HN(e,r,a)}function HN(e,t,n){if(vie(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qN(e.children,t,n)}return Array.isArray(e)?qN(e,t,n):""}function qN(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=HN(e[a],t,n);return r.join("")}function vie(e){return!!(e&&typeof e=="object")}const GN=document.createElement("i");function F7(e){const t="&"+e+";";GN.innerHTML=t;const n=GN.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Al(e,t,n,r){const a=e.length;let l=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<r.length;)u=r.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function as(e,t){return e.length>0?(Al(e,e.length,0,t),e):t}const FN={}.hasOwnProperty;function YN(e){const t={};let n=-1;for(;++n<e.length;)bie(t,e[n]);return t}function bie(e,t){let n;for(n in t){const a=(FN.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){FN.call(a,u)||(a[u]=[]);const d=l[u];xie(a[u],Array.isArray(d)?d:d?[d]:[])}}}function xie(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Al(e,0,0,r)}function XN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function gu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bo=Gd(/[A-Za-z]/),Ya=Gd(/[\dA-Za-z]/),Sie=Gd(/[#-'*+\--9=?A-Z^-~]/);function l6(e){return e!==null&&(e<32||e===127)}const Y7=Gd(/\d/),Eie=Gd(/[\dA-Fa-f]/),wie=Gd(/[!-/:-@[-`{-~]/);function jt(e){return e!==null&&e<-2}function Mr(e){return e!==null&&(e<0||e===32)}function Pn(e){return e===-2||e===-1||e===32}const s6=Gd(new RegExp("\\p{P}|\\p{S}","u")),B0=Gd(/\s/);function Gd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bg(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&Ya(e.charCodeAt(n+1))&&Ya(e.charCodeAt(n+2)))a=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const d=e.charCodeAt(n+1);l<56320&&d>56319&&d<57344?(u=String.fromCharCode(l,d),a=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function zn(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(h){return Pn(h)?(e.enter(n),d(h)):t(h)}function d(h){return Pn(h)&&l++<a?(e.consume(h),d):(e.exit(n),t(h))}}const Tie={tokenize:Aie};function Aie(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),zn(e,t,"linePrefix")}function a(d){return e.enter("paragraph"),l(d)}function l(d){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return jt(d)?(e.consume(d),e.exit("chunkText"),l):(e.consume(d),u)}}const Cie={tokenize:Oie},WN={tokenize:Mie};function Oie(e){const t=this,n=[];let r=0,a,l,u;return d;function d(V){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,h,y)(V)}return y(V)}function h(V){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&z();const P=t.events.length;let I=P,H;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){H=t.events[I][1].end;break}D(r);let X=P;for(;X<t.events.length;)t.events[X][1].end={...H},X++;return Al(t.events,I+1,0,t.events.slice(P)),t.events.length=X,y(V)}return d(V)}function y(V){if(r===n.length){if(!a)return T(V);if(a.currentConstruct&&a.currentConstruct.concrete)return A(V);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(WN,v,x)(V)}function v(V){return a&&z(),D(r),T(V)}function x(V){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,A(V)}function T(V){return t.containerState={},e.attempt(WN,E,A)(V)}function E(V){return r++,n.push([t.currentConstruct,t.containerState]),T(V)}function A(V){if(V===null){a&&z(),D(0),e.consume(V);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:l}),R(V)}function R(V){if(V===null){_(e.exit("chunkFlow"),!0),D(0),e.consume(V);return}return jt(V)?(e.consume(V),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,d):(e.consume(V),R)}function _(V,P){const I=t.sliceStream(V);if(P&&I.push(null),V.previous=l,l&&(l.next=V),l=V,a.defineSkip(V.start),a.write(I),t.parser.lazy[V.start.line]){let H=a.events.length;for(;H--;)if(a.events[H][1].start.offset<u&&(!a.events[H][1].end||a.events[H][1].end.offset>u))return;const X=t.events.length;let se=X,ce,ie;for(;se--;)if(t.events[se][0]==="exit"&&t.events[se][1].type==="chunkFlow"){if(ce){ie=t.events[se][1].end;break}ce=!0}for(D(r),H=X;H<t.events.length;)t.events[H][1].end={...ie},H++;Al(t.events,se+1,0,t.events.slice(X)),t.events.length=H}}function D(V){let P=n.length;for(;P-- >V;){const I=n[P];t.containerState=I[1],I[0].exit.call(t,e)}n.length=V}function z(){a.write([null]),l=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Mie(e,t,n){return zn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Pg(e){if(e===null||Mr(e)||B0(e))return 1;if(s6(e))return 2}function u6(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const l=e[a].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const X7={name:"attention",resolveAll:Rie,tokenize:_ie};function Rie(e,t){let n=-1,r,a,l,u,d,h,y,v;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const x={...e[r][1].end},T={...e[n][1].start};KN(x,-h),KN(T,h),u={type:h>1?"strongSequence":"emphasisSequence",start:x,end:{...e[r][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:T},l={type:h>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:h>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[r][1].end={...u.start},e[n][1].start={...d.end},y=[],e[r][1].end.offset-e[r][1].start.offset&&(y=as(y,[["enter",e[r][1],t],["exit",e[r][1],t]])),y=as(y,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",l,t]]),y=as(y,u6(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),y=as(y,[["exit",l,t],["enter",d,t],["exit",d,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(v=2,y=as(y,[["enter",e[n][1],t],["exit",e[n][1],t]])):v=0,Al(e,r-1,n-r+3,y),n=r+y.length-v-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function _ie(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Pg(r);let l;return u;function u(h){return l=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===l)return e.consume(h),d;const y=e.exit("attentionSequence"),v=Pg(h),x=!v||v===2&&a||n.includes(h),T=!a||a===2&&v||n.includes(r);return y._open=!!(l===42?x:x&&(a||!T)),y._close=!!(l===42?T:T&&(v||!x)),t(h)}}function KN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Die={name:"autolink",tokenize:Nie};function Nie(e,t,n){let r=0;return a;function a(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(E){return bo(E)?(e.consume(E),u):E===64?n(E):y(E)}function u(E){return E===43||E===45||E===46||Ya(E)?(r=1,d(E)):y(E)}function d(E){return E===58?(e.consume(E),r=0,h):(E===43||E===45||E===46||Ya(E))&&r++<32?(e.consume(E),d):(r=0,y(E))}function h(E){return E===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):E===null||E===32||E===60||l6(E)?n(E):(e.consume(E),h)}function y(E){return E===64?(e.consume(E),v):Sie(E)?(e.consume(E),y):n(E)}function v(E){return Ya(E)?x(E):n(E)}function x(E){return E===46?(e.consume(E),r=0,v):E===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.exit("autolink"),t):T(E)}function T(E){if((E===45||Ya(E))&&r++<63){const A=E===45?T:x;return e.consume(E),A}return n(E)}}const jb={partial:!0,tokenize:kie};function kie(e,t,n){return r;function r(l){return Pn(l)?zn(e,a,"linePrefix")(l):a(l)}function a(l){return l===null||jt(l)?t(l):n(l)}}const QN={continuation:{tokenize:Iie},exit:Lie,name:"blockQuote",tokenize:zie};function zie(e,t,n){const r=this;return a;function a(u){if(u===62){const d=r.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Pn(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Iie(e,t,n){const r=this;return a;function a(u){return Pn(u)?zn(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(QN,t,n)(u)}}function Lie(e){e.exit("blockQuote")}const ZN={name:"characterEscape",tokenize:Vie};function Vie(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),a}function a(l){return wie(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const JN={name:"characterReference",tokenize:Bie};function Bie(e,t,n){const r=this;let a=0,l,u;return d;function d(x){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),h}function h(x){return x===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(x),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),l=31,u=Ya,v(x))}function y(x){return x===88||x===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(x),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=Eie,v):(e.enter("characterReferenceValue"),l=7,u=Y7,v(x))}function v(x){if(x===59&&a){const T=e.exit("characterReferenceValue");return u===Ya&&!F7(r.sliceSerialize(T))?n(x):(e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(x)&&a++<l?(e.consume(x),v):n(x)}}const ek={partial:!0,tokenize:jie},tk={concrete:!0,name:"codeFenced",tokenize:Pie};function Pie(e,t,n){const r=this,a={partial:!0,tokenize:I};let l=0,u=0,d;return h;function h(H){return y(H)}function y(H){const X=r.events[r.events.length-1];return l=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=H,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(H)}function v(H){return H===d?(u++,e.consume(H),v):u<3?n(H):(e.exit("codeFencedFenceSequence"),Pn(H)?zn(e,x,"whitespace")(H):x(H))}function x(H){return H===null||jt(H)?(e.exit("codeFencedFence"),r.interrupt?t(H):e.check(ek,R,P)(H)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(H))}function T(H){return H===null||jt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x(H)):Pn(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),zn(e,E,"whitespace")(H)):H===96&&H===d?n(H):(e.consume(H),T)}function E(H){return H===null||jt(H)?x(H):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(H))}function A(H){return H===null||jt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(H)):H===96&&H===d?n(H):(e.consume(H),A)}function R(H){return e.attempt(a,P,_)(H)}function _(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),D}function D(H){return l>0&&Pn(H)?zn(e,z,"linePrefix",l+1)(H):z(H)}function z(H){return H===null||jt(H)?e.check(ek,R,P)(H):(e.enter("codeFlowValue"),V(H))}function V(H){return H===null||jt(H)?(e.exit("codeFlowValue"),z(H)):(e.consume(H),V)}function P(H){return e.exit("codeFenced"),t(H)}function I(H,X,se){let ce=0;return ie;function ie(ee){return H.enter("lineEnding"),H.consume(ee),H.exit("lineEnding"),ue}function ue(ee){return H.enter("codeFencedFence"),Pn(ee)?zn(H,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):U(ee)}function U(ee){return ee===d?(H.enter("codeFencedFenceSequence"),le(ee)):se(ee)}function le(ee){return ee===d?(ce++,H.consume(ee),le):ce>=u?(H.exit("codeFencedFenceSequence"),Pn(ee)?zn(H,Q,"whitespace")(ee):Q(ee)):se(ee)}function Q(ee){return ee===null||jt(ee)?(H.exit("codeFencedFence"),X(ee)):se(ee)}}}function jie(e,t,n){const r=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const W7={name:"codeIndented",tokenize:Uie},$ie={partial:!0,tokenize:Hie};function Uie(e,t,n){const r=this;return a;function a(y){return e.enter("codeIndented"),zn(e,l,"linePrefix",5)(y)}function l(y){const v=r.events[r.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?u(y):n(y)}function u(y){return y===null?h(y):jt(y)?e.attempt($ie,u,h)(y):(e.enter("codeFlowValue"),d(y))}function d(y){return y===null||jt(y)?(e.exit("codeFlowValue"),u(y)):(e.consume(y),d)}function h(y){return e.exit("codeIndented"),t(y)}}function Hie(e,t,n){const r=this;return a;function a(u){return r.parser.lazy[r.now().line]?n(u):jt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):zn(e,l,"linePrefix",5)(u)}function l(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):jt(u)?a(u):n(u)}}const qie={name:"codeText",previous:Fie,resolve:Gie,tokenize:Yie};function Gie(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Fie(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Yie(e,t,n){let r=0,a,l;return u;function u(x){return e.enter("codeText"),e.enter("codeTextSequence"),d(x)}function d(x){return x===96?(e.consume(x),r++,d):(e.exit("codeTextSequence"),h(x))}function h(x){return x===null?n(x):x===32?(e.enter("space"),e.consume(x),e.exit("space"),h):x===96?(l=e.enter("codeTextSequence"),a=0,v(x)):jt(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):(e.enter("codeTextData"),y(x))}function y(x){return x===null||x===32||x===96||jt(x)?(e.exit("codeTextData"),h(x)):(e.consume(x),y)}function v(x){return x===96?(e.consume(x),a++,v):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(x)):(l.type="codeTextData",y(x))}}class Xie{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&$b(this.left,r),l.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),$b(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$b(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);$b(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$b(this.left,n.reverse())}}}function $b(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function nk(e){const t={};let n=-1,r,a,l,u,d,h,y;const v=new Xie(e);for(;++n<v.length;){for(;n in t;)n=t[n];if(r=v.get(n),n&&r[1].type==="chunkFlow"&&v.get(n-1)[1].type==="listItemPrefix"&&(h=r[1]._tokenizer.events,l=0,l<h.length&&h[l][1].type==="lineEndingBlank"&&(l+=2),l<h.length&&h[l][1].type==="content"))for(;++l<h.length&&h[l][1].type!=="content";)h[l][1].type==="chunkText"&&(h[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Wie(v,n)),n=t[n],y=!0);else if(r[1]._container){for(l=n,a=void 0;l--;)if(u=v.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(v.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(r[1].end={...v.get(a)[1].start},d=v.slice(a,n),d.unshift(r),v.splice(a,n-a+1,d))}}return Al(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!y}function Wie(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const l=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,h=[],y={};let v,x,T=-1,E=n,A=0,R=0;const _=[R];for(;E;){for(;e.get(++a)[1]!==E;);l.push(a),E._tokenizer||(v=r.sliceStream(E),E.next||v.push(null),x&&u.defineSkip(E.start),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(v),E._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),x=E,E=E.next}for(E=n;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(R=T+1,_.push(R),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(u.events=[],E?(E._tokenizer=void 0,E.previous=void 0):_.pop(),T=_.length;T--;){const D=d.slice(_[T],_[T+1]),z=l.pop();h.push([z,z+D.length-1]),e.splice(z,2,D)}for(h.reverse(),T=-1;++T<h.length;)y[A+h[T][0]]=A+h[T][1],A+=h[T][1]-h[T][0]-1;return y}const Kie={resolve:Zie,tokenize:Jie},Qie={partial:!0,tokenize:eae};function Zie(e){return nk(e),e}function Jie(e,t){let n;return r;function r(d){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(d)}function a(d){return d===null?l(d):jt(d)?e.check(Qie,u,l)(d):(e.consume(d),a)}function l(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function eae(e,t,n){const r=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),zn(e,l,"linePrefix")}function l(u){if(u===null||jt(u))return n(u);const d=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function rk(e,t,n,r,a,l,u,d,h){const y=h||Number.POSITIVE_INFINITY;let v=0;return x;function x(D){return D===60?(e.enter(r),e.enter(a),e.enter(l),e.consume(D),e.exit(l),T):D===null||D===32||D===41||l6(D)?n(D):(e.enter(r),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),R(D))}function T(D){return D===62?(e.enter(l),e.consume(D),e.exit(l),e.exit(a),e.exit(r),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===62?(e.exit("chunkString"),e.exit(d),T(D)):D===null||D===60||jt(D)?n(D):(e.consume(D),D===92?A:E)}function A(D){return D===60||D===62||D===92?(e.consume(D),E):E(D)}function R(D){return!v&&(D===null||D===41||Mr(D))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(r),t(D)):v<y&&D===40?(e.consume(D),v++,R):D===41?(e.consume(D),v--,R):D===null||D===32||D===40||l6(D)?n(D):(e.consume(D),D===92?_:R)}function _(D){return D===40||D===41||D===92?(e.consume(D),R):R(D)}}function ik(e,t,n,r,a,l){const u=this;let d=0,h;return y;function y(E){return e.enter(r),e.enter(a),e.consume(E),e.exit(a),e.enter(l),v}function v(E){return d>999||E===null||E===91||E===93&&!h||E===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?n(E):E===93?(e.exit(l),e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):jt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===null||E===91||E===93||jt(E)||d++>999?(e.exit("chunkString"),v(E)):(e.consume(E),h||(h=!Pn(E)),E===92?T:x)}function T(E){return E===91||E===92||E===93?(e.consume(E),d++,x):x(E)}}function ak(e,t,n,r,a,l){let u;return d;function d(T){return T===34||T===39||T===40?(e.enter(r),e.enter(a),e.consume(T),e.exit(a),u=T===40?41:T,h):n(T)}function h(T){return T===u?(e.enter(a),e.consume(T),e.exit(a),e.exit(r),t):(e.enter(l),y(T))}function y(T){return T===u?(e.exit(l),h(u)):T===null?n(T):jt(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),zn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===u||T===null||jt(T)?(e.exit("chunkString"),y(T)):(e.consume(T),T===92?x:v)}function x(T){return T===u||T===92?(e.consume(T),v):v(T)}}function Ub(e,t){let n;return r;function r(a){return jt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Pn(a)?zn(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const tae={name:"definition",tokenize:rae},nae={partial:!0,tokenize:iae};function rae(e,t,n){const r=this;let a;return l;function l(E){return e.enter("definition"),u(E)}function u(E){return ik.call(r,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function d(E){return a=gu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),h):n(E)}function h(E){return Mr(E)?Ub(e,y)(E):y(E)}function y(E){return rk(e,v,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function v(E){return e.attempt(nae,x,x)(E)}function x(E){return Pn(E)?zn(e,T,"whitespace")(E):T(E)}function T(E){return E===null||jt(E)?(e.exit("definition"),r.parser.defined.push(a),t(E)):n(E)}}function iae(e,t,n){return r;function r(d){return Mr(d)?Ub(e,a)(d):n(d)}function a(d){return ak(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return Pn(d)?zn(e,u,"whitespace")(d):u(d)}function u(d){return d===null||jt(d)?t(d):n(d)}}const aae={name:"hardBreakEscape",tokenize:oae};function oae(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),a}function a(l){return jt(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const lae={name:"headingAtx",resolve:sae,tokenize:uae};function sae(e,t){let n=e.length-2,r=3,a,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Al(e,r,n-r+1,[["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t]])),e}function uae(e,t,n){let r=0;return a;function a(v){return e.enter("atxHeading"),l(v)}function l(v){return e.enter("atxHeadingSequence"),u(v)}function u(v){return v===35&&r++<6?(e.consume(v),u):v===null||Mr(v)?(e.exit("atxHeadingSequence"),d(v)):n(v)}function d(v){return v===35?(e.enter("atxHeadingSequence"),h(v)):v===null||jt(v)?(e.exit("atxHeading"),t(v)):Pn(v)?zn(e,d,"whitespace")(v):(e.enter("atxHeadingText"),y(v))}function h(v){return v===35?(e.consume(v),h):(e.exit("atxHeadingSequence"),d(v))}function y(v){return v===null||v===35||Mr(v)?(e.exit("atxHeadingText"),d(v)):(e.consume(v),y)}}const cae=["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"],ok=["pre","script","style","textarea"],fae={concrete:!0,name:"htmlFlow",resolveTo:pae,tokenize:mae},dae={partial:!0,tokenize:yae},hae={partial:!0,tokenize:gae};function pae(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 mae(e,t,n){const r=this;let a,l,u,d,h;return y;function y(Y){return v(Y)}function v(Y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Y),x}function x(Y){return Y===33?(e.consume(Y),T):Y===47?(e.consume(Y),l=!0,R):Y===63?(e.consume(Y),a=3,r.interrupt?t:re):bo(Y)?(e.consume(Y),u=String.fromCharCode(Y),_):n(Y)}function T(Y){return Y===45?(e.consume(Y),a=2,E):Y===91?(e.consume(Y),a=5,d=0,A):bo(Y)?(e.consume(Y),a=4,r.interrupt?t:re):n(Y)}function E(Y){return Y===45?(e.consume(Y),r.interrupt?t:re):n(Y)}function A(Y){const Me="CDATA[";return Y===Me.charCodeAt(d++)?(e.consume(Y),d===Me.length?r.interrupt?t:U:A):n(Y)}function R(Y){return bo(Y)?(e.consume(Y),u=String.fromCharCode(Y),_):n(Y)}function _(Y){if(Y===null||Y===47||Y===62||Mr(Y)){const Me=Y===47,Ee=u.toLowerCase();return!Me&&!l&&ok.includes(Ee)?(a=1,r.interrupt?t(Y):U(Y)):cae.includes(u.toLowerCase())?(a=6,Me?(e.consume(Y),D):r.interrupt?t(Y):U(Y)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Y):l?z(Y):V(Y))}return Y===45||Ya(Y)?(e.consume(Y),u+=String.fromCharCode(Y),_):n(Y)}function D(Y){return Y===62?(e.consume(Y),r.interrupt?t:U):n(Y)}function z(Y){return Pn(Y)?(e.consume(Y),z):ie(Y)}function V(Y){return Y===47?(e.consume(Y),ie):Y===58||Y===95||bo(Y)?(e.consume(Y),P):Pn(Y)?(e.consume(Y),V):ie(Y)}function P(Y){return Y===45||Y===46||Y===58||Y===95||Ya(Y)?(e.consume(Y),P):I(Y)}function I(Y){return Y===61?(e.consume(Y),H):Pn(Y)?(e.consume(Y),I):V(Y)}function H(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?n(Y):Y===34||Y===39?(e.consume(Y),h=Y,X):Pn(Y)?(e.consume(Y),H):se(Y)}function X(Y){return Y===h?(e.consume(Y),h=null,ce):Y===null||jt(Y)?n(Y):(e.consume(Y),X)}function se(Y){return Y===null||Y===34||Y===39||Y===47||Y===60||Y===61||Y===62||Y===96||Mr(Y)?I(Y):(e.consume(Y),se)}function ce(Y){return Y===47||Y===62||Pn(Y)?V(Y):n(Y)}function ie(Y){return Y===62?(e.consume(Y),ue):n(Y)}function ue(Y){return Y===null||jt(Y)?U(Y):Pn(Y)?(e.consume(Y),ue):n(Y)}function U(Y){return Y===45&&a===2?(e.consume(Y),W):Y===60&&a===1?(e.consume(Y),oe):Y===62&&a===4?(e.consume(Y),F):Y===63&&a===3?(e.consume(Y),re):Y===93&&a===5?(e.consume(Y),be):jt(Y)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(dae,te,le)(Y)):Y===null||jt(Y)?(e.exit("htmlFlowData"),le(Y)):(e.consume(Y),U)}function le(Y){return e.check(hae,Q,te)(Y)}function Q(Y){return e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),ee}function ee(Y){return Y===null||jt(Y)?le(Y):(e.enter("htmlFlowData"),U(Y))}function W(Y){return Y===45?(e.consume(Y),re):U(Y)}function oe(Y){return Y===47?(e.consume(Y),u="",he):U(Y)}function he(Y){if(Y===62){const Me=u.toLowerCase();return ok.includes(Me)?(e.consume(Y),F):U(Y)}return bo(Y)&&u.length<8?(e.consume(Y),u+=String.fromCharCode(Y),he):U(Y)}function be(Y){return Y===93?(e.consume(Y),re):U(Y)}function re(Y){return Y===62?(e.consume(Y),F):Y===45&&a===2?(e.consume(Y),re):U(Y)}function F(Y){return Y===null||jt(Y)?(e.exit("htmlFlowData"),te(Y)):(e.consume(Y),F)}function te(Y){return e.exit("htmlFlow"),t(Y)}}function gae(e,t,n){const r=this;return a;function a(u){return jt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function yae(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(jb,t,n)}}const vae={name:"htmlText",tokenize:bae};function bae(e,t,n){const r=this;let a,l,u;return d;function d(re){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(re),h}function h(re){return re===33?(e.consume(re),y):re===47?(e.consume(re),I):re===63?(e.consume(re),V):bo(re)?(e.consume(re),se):n(re)}function y(re){return re===45?(e.consume(re),v):re===91?(e.consume(re),l=0,A):bo(re)?(e.consume(re),z):n(re)}function v(re){return re===45?(e.consume(re),E):n(re)}function x(re){return re===null?n(re):re===45?(e.consume(re),T):jt(re)?(u=x,oe(re)):(e.consume(re),x)}function T(re){return re===45?(e.consume(re),E):x(re)}function E(re){return re===62?W(re):re===45?T(re):x(re)}function A(re){const F="CDATA[";return re===F.charCodeAt(l++)?(e.consume(re),l===F.length?R:A):n(re)}function R(re){return re===null?n(re):re===93?(e.consume(re),_):jt(re)?(u=R,oe(re)):(e.consume(re),R)}function _(re){return re===93?(e.consume(re),D):R(re)}function D(re){return re===62?W(re):re===93?(e.consume(re),D):R(re)}function z(re){return re===null||re===62?W(re):jt(re)?(u=z,oe(re)):(e.consume(re),z)}function V(re){return re===null?n(re):re===63?(e.consume(re),P):jt(re)?(u=V,oe(re)):(e.consume(re),V)}function P(re){return re===62?W(re):V(re)}function I(re){return bo(re)?(e.consume(re),H):n(re)}function H(re){return re===45||Ya(re)?(e.consume(re),H):X(re)}function X(re){return jt(re)?(u=X,oe(re)):Pn(re)?(e.consume(re),X):W(re)}function se(re){return re===45||Ya(re)?(e.consume(re),se):re===47||re===62||Mr(re)?ce(re):n(re)}function ce(re){return re===47?(e.consume(re),W):re===58||re===95||bo(re)?(e.consume(re),ie):jt(re)?(u=ce,oe(re)):Pn(re)?(e.consume(re),ce):W(re)}function ie(re){return re===45||re===46||re===58||re===95||Ya(re)?(e.consume(re),ie):ue(re)}function ue(re){return re===61?(e.consume(re),U):jt(re)?(u=ue,oe(re)):Pn(re)?(e.consume(re),ue):ce(re)}function U(re){return re===null||re===60||re===61||re===62||re===96?n(re):re===34||re===39?(e.consume(re),a=re,le):jt(re)?(u=U,oe(re)):Pn(re)?(e.consume(re),U):(e.consume(re),Q)}function le(re){return re===a?(e.consume(re),a=void 0,ee):re===null?n(re):jt(re)?(u=le,oe(re)):(e.consume(re),le)}function Q(re){return re===null||re===34||re===39||re===60||re===61||re===96?n(re):re===47||re===62||Mr(re)?ce(re):(e.consume(re),Q)}function ee(re){return re===47||re===62||Mr(re)?ce(re):n(re)}function W(re){return re===62?(e.consume(re),e.exit("htmlTextData"),e.exit("htmlText"),t):n(re)}function oe(re){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(re),e.exit("lineEnding"),he}function he(re){return Pn(re)?zn(e,be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):be(re)}function be(re){return e.enter("htmlTextData"),u(re)}}const K7={name:"labelEnd",resolveAll:wae,resolveTo:Tae,tokenize:Aae},xae={tokenize:Cae},Sae={tokenize:Oae},Eae={tokenize:Mae};function wae(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Al(e,0,e.length,n),e}function Tae(e,t){let n=e.length,r=0,a,l,u,d;for(;n--;)if(a=e[n][1],l){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(l=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(u=n);const h={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},y={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},v={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",h,t],["enter",y,t]],d=as(d,e.slice(l+1,l+r+3)),d=as(d,[["enter",v,t]]),d=as(d,u6(t.parser.constructs.insideSpan.null,e.slice(l+r+4,u-3),t)),d=as(d,[["exit",v,t],e[u-2],e[u-1],["exit",y,t]]),d=as(d,e.slice(u+1)),d=as(d,[["exit",h,t]]),Al(e,l,e.length,d),e}function Aae(e,t,n){const r=this;let a=r.events.length,l,u;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){l=r.events[a][1];break}return d;function d(T){return l?l._inactive?x(T):(u=r.parser.defined.includes(gu(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):n(T)}function h(T){return T===40?e.attempt(xae,v,u?v:x)(T):T===91?e.attempt(Sae,v,u?y:x)(T):u?v(T):x(T)}function y(T){return e.attempt(Eae,v,x)(T)}function v(T){return t(T)}function x(T){return l._balanced=!0,n(T)}}function Cae(e,t,n){return r;function r(x){return e.enter("resource"),e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),a}function a(x){return Mr(x)?Ub(e,l)(x):l(x)}function l(x){return x===41?v(x):rk(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function u(x){return Mr(x)?Ub(e,h)(x):v(x)}function d(x){return n(x)}function h(x){return x===34||x===39||x===40?ak(e,y,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):v(x)}function y(x){return Mr(x)?Ub(e,v)(x):v(x)}function v(x){return x===41?(e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),e.exit("resource"),t):n(x)}}function Oae(e,t,n){const r=this;return a;function a(d){return ik.call(r,e,l,u,"reference","referenceMarker","referenceString")(d)}function l(d){return r.parser.defined.includes(gu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function u(d){return n(d)}}function Mae(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),a}function a(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Rae={name:"labelStartImage",resolveAll:K7.resolveAll,tokenize:_ae};function _ae(e,t,n){const r=this;return a;function a(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),l}function l(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):n(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(d):t(d)}}const Dae={name:"labelStartLink",resolveAll:K7.resolveAll,tokenize:Nae};function Nae(e,t,n){const r=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Q7={name:"lineEnding",tokenize:kae};function kae(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),zn(e,t,"linePrefix")}}const c6={name:"thematicBreak",tokenize:zae};function zae(e,t,n){let r=0,a;return l;function l(y){return e.enter("thematicBreak"),u(y)}function u(y){return a=y,d(y)}function d(y){return y===a?(e.enter("thematicBreakSequence"),h(y)):r>=3&&(y===null||jt(y))?(e.exit("thematicBreak"),t(y)):n(y)}function h(y){return y===a?(e.consume(y),r++,h):(e.exit("thematicBreakSequence"),Pn(y)?zn(e,d,"whitespace")(y):d(y))}}const Xo={continuation:{tokenize:Bae},exit:jae,name:"list",tokenize:Vae},Iae={partial:!0,tokenize:$ae},Lae={partial:!0,tokenize:Pae};function Vae(e,t,n){const r=this,a=r.events[r.events.length-1];let l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return d;function d(E){const A=r.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!r.containerState.marker||E===r.containerState.marker:Y7(E)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(c6,n,y)(E):y(E);if(!r.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(E)}return n(E)}function h(E){return Y7(E)&&++u<10?(e.consume(E),h):(!r.interrupt||u<2)&&(r.containerState.marker?E===r.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),y(E)):n(E)}function y(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||E,e.check(jb,r.interrupt?n:v,e.attempt(Iae,T,x))}function v(E){return r.containerState.initialBlankLine=!0,l++,T(E)}function x(E){return Pn(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),T):n(E)}function T(E){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function Bae(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jb,a,l);function a(d){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zn(e,t,"listItemIndent",r.containerState.size+1)(d)}function l(d){return r.containerState.furtherBlankLines||!Pn(d)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(d)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lae,t,u)(d))}function u(d){return r.containerState._closeFlow=!0,r.interrupt=void 0,zn(e,e.attempt(Xo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Pae(e,t,n){const r=this;return zn(e,a,"listItemIndent",r.containerState.size+1);function a(l){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(l):n(l)}}function jae(e){e.exit(this.containerState.type)}function $ae(e,t,n){const r=this;return zn(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(l){const u=r.events[r.events.length-1];return!Pn(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const lk={name:"setextUnderline",resolveTo:Uae,tokenize:Hae};function Uae(e,t){let n=e.length,r,a,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",l?(e.splice(a,0,["enter",u,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function Hae(e,t,n){const r=this;let a;return l;function l(y){let v=r.events.length,x;for(;v--;)if(r.events[v][1].type!=="lineEnding"&&r.events[v][1].type!=="linePrefix"&&r.events[v][1].type!=="content"){x=r.events[v][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||x)?(e.enter("setextHeadingLine"),a=y,u(y)):n(y)}function u(y){return e.enter("setextHeadingLineSequence"),d(y)}function d(y){return y===a?(e.consume(y),d):(e.exit("setextHeadingLineSequence"),Pn(y)?zn(e,h,"lineSuffix")(y):h(y))}function h(y){return y===null||jt(y)?(e.exit("setextHeadingLine"),t(y)):n(y)}}const qae={tokenize:Gae};function Gae(e){const t=this,n=e.attempt(jb,r,e.attempt(this.parser.constructs.flowInitial,a,zn(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Kie,a)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Fae={resolveAll:uk()},Yae=sk("string"),Xae=sk("text");function sk(e){return{resolveAll:uk(e==="text"?Wae:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],l=n.attempt(a,u,d);return u;function u(v){return y(v)?l(v):d(v)}function d(v){if(v===null){n.consume(v);return}return n.enter("data"),n.consume(v),h}function h(v){return y(v)?(n.exit("data"),l(v)):(n.consume(v),h)}function y(v){if(v===null)return!0;const x=a[v];let T=-1;if(x)for(;++T<x.length;){const E=x[T];if(!E.previous||E.previous.call(r,r.previous))return!0}return!1}}}function uk(e){return t;function t(n,r){let a=-1,l;for(;++a<=n.length;)l===void 0?n[a]&&n[a][1].type==="data"&&(l=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==l+2&&(n[l][1].end=n[a-1][1].end,n.splice(l+2,a-l-2),a=l+2),l=void 0);return e?e(n,r):n}}function Wae(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let l=a.length,u=-1,d=0,h;for(;l--;){const y=a[l];if(typeof y=="string"){for(u=y.length;y.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(y===-2)h=!0,d++;else if(y!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(d=0),d){const y={type:n===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:r.start._bufferIndex+u,_index:r.start._index+l,line:r.end.line,column:r.end.column-d,offset:r.end.offset-d},end:{...r.end}};r.end={...y.start},r.start.offset===r.end.offset?Object.assign(r,y):(e.splice(n,0,["enter",y,t],["exit",y,t]),n+=2)}n++}return e}const Kae=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:tae},disable:{null:[]},document:{42:Xo,43:Xo,45:Xo,48:Xo,49:Xo,50:Xo,51:Xo,52:Xo,53:Xo,54:Xo,55:Xo,56:Xo,57:Xo,62:QN},flow:{35:lae,42:c6,45:[lk,c6],60:fae,61:lk,95:c6,96:tk,126:tk},flowInitial:{[-2]:W7,[-1]:W7,32:W7},insideSpan:{null:[X7,Fae]},string:{38:JN,92:ZN},text:{[-5]:Q7,[-4]:Q7,[-3]:Q7,33:Rae,38:JN,42:X7,60:[Die,vae],91:Dae,92:[aae,ZN],93:K7,95:X7,96:qie}},Symbol.toStringTag,{value:"Module"}));function Qae(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},l=[];let u=[],d=[];const h={attempt:X(I),check:X(H),consume:z,enter:V,exit:P,interrupt:X(H,{interrupt:!0})},y={code:null,containerState:{},defineSkip:R,events:[],now:A,parser:e,previous:null,sliceSerialize:T,sliceStream:E,write:x};let v=t.tokenize.call(y,h);return t.resolveAll&&l.push(t),y;function x(ue){return u=as(u,ue),_(),u[u.length-1]!==null?[]:(se(t,0),y.events=u6(l,y.events,y),y.events)}function T(ue,U){return Jae(E(ue),U)}function E(ue){return Zae(u,ue)}function A(){const{_bufferIndex:ue,_index:U,line:le,column:Q,offset:ee}=r;return{_bufferIndex:ue,_index:U,line:le,column:Q,offset:ee}}function R(ue){a[ue.line]=ue.column,ie()}function _(){let ue;for(;r._index<u.length;){const U=u[r._index];if(typeof U=="string")for(ue=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ue&&r._bufferIndex<U.length;)D(U.charCodeAt(r._bufferIndex));else D(U)}}function D(ue){v=v(ue)}function z(ue){jt(ue)?(r.line++,r.column=1,r.offset+=ue===-3?2:1,ie()):ue!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),y.previous=ue}function V(ue,U){const le=U||{};return le.type=ue,le.start=A(),y.events.push(["enter",le,y]),d.push(le),le}function P(ue){const U=d.pop();return U.end=A(),y.events.push(["exit",U,y]),U}function I(ue,U){se(ue,U.from)}function H(ue,U){U.restore()}function X(ue,U){return le;function le(Q,ee,W){let oe,he,be,re;return Array.isArray(Q)?te(Q):"tokenize"in Q?te([Q]):F(Q);function F(_e){return Be;function Be(Ue){const Ye=Ue!==null&&_e[Ue],Xe=Ue!==null&&_e.null,Je=[...Array.isArray(Ye)?Ye:Ye?[Ye]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return te(Je)(Ue)}}function te(_e){return oe=_e,he=0,_e.length===0?W:Y(_e[he])}function Y(_e){return Be;function Be(Ue){return re=ce(),be=_e,_e.partial||(y.currentConstruct=_e),_e.name&&y.parser.constructs.disable.null.includes(_e.name)?Ee():_e.tokenize.call(U?Object.assign(Object.create(y),U):y,h,Me,Ee)(Ue)}}function Me(_e){return ue(be,re),ee}function Ee(_e){return re.restore(),++he<oe.length?Y(oe[he]):W}}}function se(ue,U){ue.resolveAll&&!l.includes(ue)&&l.push(ue),ue.resolve&&Al(y.events,U,y.events.length-U,ue.resolve(y.events.slice(U),y)),ue.resolveTo&&(y.events=ue.resolveTo(y.events,y))}function ce(){const ue=A(),U=y.previous,le=y.currentConstruct,Q=y.events.length,ee=Array.from(d);return{from:Q,restore:W};function W(){r=ue,y.previous=U,y.currentConstruct=le,y.events.length=Q,d=ee,ie()}}function ie(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Zae(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,l=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(r,l)];else{if(u=e.slice(n,a),r>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(r):u.shift()}l>0&&u.push(e[a].slice(0,l))}return u}function Jae(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(l)}a=l===-2,r.push(u)}return r.join("")}function eoe(e){const r={constructs:YN([Kae,...(e||{}).extensions||[]]),content:a(Tie),defined:[],document:a(Cie),flow:a(qae),lazy:{},string:a(Yae),text:a(Xae)};return r;function a(l){return u;function u(d){return Qae(r,l,d)}}}function toe(e){for(;!nk(e););return e}const ck=/[\0\t\n\r]/g;function noe(){let e=1,t="",n=!0,r;return a;function a(l,u,d){const h=[];let y,v,x,T,E;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),x=0,t="",n&&(l.charCodeAt(0)===65279&&x++,n=void 0);x<l.length;){if(ck.lastIndex=x,y=ck.exec(l),T=y&&y.index!==void 0?y.index:l.length,E=l.charCodeAt(T),!y){t=l.slice(x);break}if(E===10&&x===T&&r)h.push(-3),r=void 0;else switch(r&&(h.push(-5),r=void 0),x<T&&(h.push(l.slice(x,T)),e+=T-x),E){case 0:{h.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,h.push(-2);e++<v;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:r=!0,e=1}x=T+1}return d&&(r&&h.push(-5),t&&h.push(t),h.push(null)),h}}const roe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ioe(e){return e.replace(roe,aoe)}function aoe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return XN(n.slice(l?2:1),l?16:10)}return F7(n)||e}const fk={}.hasOwnProperty;function ooe(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),loe(n)(toe(eoe(n).document().write(noe()(e,t,!0))))}function loe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Cn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:l(Vt),blockQuote:l(Xe),characterEscape:ce,characterReference:ce,codeFenced:l(Je),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Je,u),codeText:l(Ve,u),codeTextData:ce,data:ce,codeFlowValue:ce,definition:l(Re),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ut),hardBreakEscape:l(Qt),hardBreakTrailing:l(Qt),htmlFlow:l(St,u),htmlFlowData:ce,htmlText:l(St,u),htmlTextData:ce,image:l($t),label:u,link:l(Cn),listItem:l(it),listItemValue:T,listOrdered:l(vn,x),listUnordered:l(vn),paragraph:l(Mt),reference:Y,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Vt),strong:l(Dn),thematicBreak:l(et)},exit:{atxHeading:h(),atxHeadingSequence:I,autolink:h(),autolinkEmail:Ye,autolinkProtocol:Ue,blockQuote:h(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:_e,characterReference:Be,codeFenced:h(_),codeFencedFence:R,codeFencedFenceInfo:E,codeFencedFenceMeta:A,codeFlowValue:ie,codeIndented:h(D),codeText:h(ee),codeTextData:ie,data:ie,definition:h(),definitionDestinationString:P,definitionLabelString:z,definitionTitleString:V,emphasis:h(),hardBreakEscape:h(U),hardBreakTrailing:h(U),htmlFlow:h(le),htmlFlowData:ie,htmlText:h(Q),htmlTextData:ie,image:h(oe),label:be,labelText:he,lineEnding:ue,link:h(W),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Me,resourceDestinationString:re,resourceTitleString:F,resource:te,setextHeading:h(se),setextHeadingLineSequence:X,setextHeadingText:H,strong:h(),thematicBreak:h()}};dk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(xe){let Le={type:"root",children:[]};const at={stack:[Le],tokenStack:[],config:t,enter:d,exit:y,buffer:u,resume:v,data:n},dt=[];let ht=-1;for(;++ht<xe.length;)if(xe[ht][1].type==="listOrdered"||xe[ht][1].type==="listUnordered")if(xe[ht][0]==="enter")dt.push(ht);else{const wt=dt.pop();ht=a(xe,wt,ht)}for(ht=-1;++ht<xe.length;){const wt=t[xe[ht][0]];fk.call(wt,xe[ht][1].type)&&wt[xe[ht][1].type].call(Object.assign({sliceSerialize:xe[ht][2].sliceSerialize},at),xe[ht][1])}if(at.tokenStack.length>0){const wt=at.tokenStack[at.tokenStack.length-1];(wt[1]||hk).call(at,void 0,wt[0])}for(Le.position={start:Fd(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:Fd(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},ht=-1;++ht<t.transforms.length;)Le=t.transforms[ht](Le)||Le;return Le}function a(xe,Le,at){let dt=Le-1,ht=-1,wt=!1,fn,Lt,Ht,jn;for(;++dt<=at;){const gn=xe[dt];switch(gn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gn[0]==="enter"?ht++:ht--,jn=void 0;break}case"lineEndingBlank":{gn[0]==="enter"&&(fn&&!jn&&!ht&&!Ht&&(Ht=dt),jn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jn=void 0}if(!ht&&gn[0]==="enter"&&gn[1].type==="listItemPrefix"||ht===-1&&gn[0]==="exit"&&(gn[1].type==="listUnordered"||gn[1].type==="listOrdered")){if(fn){let Pr=dt;for(Lt=void 0;Pr--;){const vr=xe[Pr];if(vr[1].type==="lineEnding"||vr[1].type==="lineEndingBlank"){if(vr[0]==="exit")continue;Lt&&(xe[Lt][1].type="lineEndingBlank",wt=!0),vr[1].type="lineEnding",Lt=Pr}else if(!(vr[1].type==="linePrefix"||vr[1].type==="blockQuotePrefix"||vr[1].type==="blockQuotePrefixWhitespace"||vr[1].type==="blockQuoteMarker"||vr[1].type==="listItemIndent"))break}Ht&&(!Lt||Ht<Lt)&&(fn._spread=!0),fn.end=Object.assign({},Lt?xe[Lt][1].start:gn[1].end),xe.splice(Lt||dt,0,["exit",fn,gn[2]]),dt++,at++}if(gn[1].type==="listItemPrefix"){const Pr={type:"listItem",_spread:!1,start:Object.assign({},gn[1].start),end:void 0};fn=Pr,xe.splice(dt,0,["enter",Pr,gn[2]]),dt++,at++,Ht=void 0,jn=!0}}}return xe[Le][1]._spread=wt,at}function l(xe,Le){return at;function at(dt){d.call(this,xe(dt),dt),Le&&Le.call(this,dt)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(xe,Le,at){this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push([Le,at||void 0]),xe.position={start:Fd(Le.start),end:void 0}}function h(xe){return Le;function Le(at){xe&&xe.call(this,at),y.call(this,at)}}function y(xe,Le){const at=this.stack.pop(),dt=this.tokenStack.pop();if(dt)dt[0].type!==xe.type&&(Le?Le.call(this,xe,dt[0]):(dt[1]||hk).call(this,xe,dt[0]));else throw new Error("Cannot close `"+xe.type+"` ("+Bb({start:xe.start,end:xe.end})+"): it’s not open");at.position.end=Fd(xe.end)}function v(){return G7(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function T(xe){if(this.data.expectingFirstListItemValue){const Le=this.stack[this.stack.length-2];Le.start=Number.parseInt(this.sliceSerialize(xe),10),this.data.expectingFirstListItemValue=void 0}}function E(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.lang=xe}function A(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.meta=xe}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function D(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.value=xe.replace(/(\r?\n|\r)$/g,"")}function z(xe){const Le=this.resume(),at=this.stack[this.stack.length-1];at.label=Le,at.identifier=gu(this.sliceSerialize(xe)).toLowerCase()}function V(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.title=xe}function P(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.url=xe}function I(xe){const Le=this.stack[this.stack.length-1];if(!Le.depth){const at=this.sliceSerialize(xe).length;Le.depth=at}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function X(xe){const Le=this.stack[this.stack.length-1];Le.depth=this.sliceSerialize(xe).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(xe){const at=this.stack[this.stack.length-1].children;let dt=at[at.length-1];(!dt||dt.type!=="text")&&(dt=tn(),dt.position={start:Fd(xe.start),end:void 0},at.push(dt)),this.stack.push(dt)}function ie(xe){const Le=this.stack.pop();Le.value+=this.sliceSerialize(xe),Le.position.end=Fd(xe.end)}function ue(xe){const Le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const at=Le.children[Le.children.length-1];at.position.end=Fd(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Le.type)&&(ce.call(this,xe),ie.call(this,xe))}function U(){this.data.atHardBreak=!0}function le(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.value=xe}function Q(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.value=xe}function ee(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.value=xe}function W(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const Le=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=Le,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function oe(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const Le=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=Le,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function he(xe){const Le=this.sliceSerialize(xe),at=this.stack[this.stack.length-2];at.label=ioe(Le),at.identifier=gu(Le).toLowerCase()}function be(){const xe=this.stack[this.stack.length-1],Le=this.resume(),at=this.stack[this.stack.length-1];if(this.data.inReference=!0,at.type==="link"){const dt=xe.children;at.children=dt}else at.alt=Le}function re(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.url=xe}function F(){const xe=this.resume(),Le=this.stack[this.stack.length-1];Le.title=xe}function te(){this.data.inReference=void 0}function Y(){this.data.referenceType="collapsed"}function Me(xe){const Le=this.resume(),at=this.stack[this.stack.length-1];at.label=Le,at.identifier=gu(this.sliceSerialize(xe)).toLowerCase(),this.data.referenceType="full"}function Ee(xe){this.data.characterReferenceType=xe.type}function _e(xe){const Le=this.sliceSerialize(xe),at=this.data.characterReferenceType;let dt;at?(dt=XN(Le,at==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):dt=F7(Le);const ht=this.stack[this.stack.length-1];ht.value+=dt}function Be(xe){const Le=this.stack.pop();Le.position.end=Fd(xe.end)}function Ue(xe){ie.call(this,xe);const Le=this.stack[this.stack.length-1];Le.url=this.sliceSerialize(xe)}function Ye(xe){ie.call(this,xe);const Le=this.stack[this.stack.length-1];Le.url="mailto:"+this.sliceSerialize(xe)}function Xe(){return{type:"blockquote",children:[]}}function Je(){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 ut(){return{type:"emphasis",children:[]}}function Vt(){return{type:"heading",depth:0,children:[]}}function Qt(){return{type:"break"}}function St(){return{type:"html",value:""}}function $t(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function vn(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function it(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function Mt(){return{type:"paragraph",children:[]}}function Dn(){return{type:"strong",children:[]}}function tn(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function Fd(e){return{line:e.line,column:e.column,offset:e.offset}}function dk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dk(e,r):soe(e,r)}}function soe(e,t){let n;for(n in t)if(fk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function hk(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Bb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Bb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Bb({start:t.start,end:t.end})+") is still open")}function uoe(e){const t=this;t.parser=n;function n(r){return ooe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function coe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function foe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function doe(e,t){const n=t.value?t.value+`
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};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 hoe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function poe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function moe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Bg(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let u,d=e.footnoteCounts.get(r);d===void 0?(d=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=l+1,d+=1,e.footnoteCounts.set(r,d);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const y={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,y),e.applyData(t,y)}function goe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yoe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pk(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),l=a[0];l&&l.type==="text"?l.value="["+l.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=r:a.push({type:"text",value:r}),a}function voe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pk(e,t);const a={src:Bg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,l),e.applyData(t,l)}function boe(e,t){const n={src:Bg(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xoe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Soe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pk(e,t);const a={href:Bg(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const l={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Eoe(e,t){const n={href:Bg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function woe(e,t,n){const r=e.all(t),a=n?Toe(n):mk(t),l={},u=[];if(typeof t.checked=="boolean"){const v=r[0];let x;v&&v.type==="element"&&v.tagName==="p"?x=v:(x={type:"element",tagName:"p",properties:{},children:[]},r.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;for(;++d<r.length;){const v=r[d];(a||d!==0||v.type!=="element"||v.tagName!=="p")&&u.push({type:"text",value:`
`}),v.type==="element"&&v.tagName==="p"&&!a?u.push(...v.children):u.push(v)}const h=r[r.length-1];h&&(a||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
`});const y={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,y),e.applyData(t,y)}function Toe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=mk(n[r])}return t}function mk(e){const t=e.spread;return t??e.children.length>1}function Aoe(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const u=r[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Coe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ooe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Moe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Roe(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},d=P7(t.children[1]),h=zN(t.children[t.children.length-1]);d&&h&&(u.position={start:d,end:h}),a.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)}function _oe(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,d=u?u.length:t.children.length;let h=-1;const y=[];for(;++h<d;){const x=t.children[h],T={},E=u?u[h]:void 0;E&&(T.align=E);let A={type:"element",tagName:l,properties:T,children:[]};x&&(A.children=e.all(x),e.patch(x,A),A=e.applyData(x,A)),y.push(A)}const v={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(t,v),e.applyData(t,v)}function Doe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const gk=9,yk=32;function Noe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const l=[];for(;r;)l.push(vk(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return l.push(vk(t.slice(a),a>0,!1)),l.join("")}function vk(e,t,n){let r=0,a=e.length;if(t){let l=e.codePointAt(r);for(;l===gk||l===yk;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(a-1);for(;l===gk||l===yk;)a--,l=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function koe(e,t){const n={type:"text",value:Noe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zoe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ioe={blockquote:coe,break:foe,code:doe,delete:hoe,emphasis:poe,footnoteReference:moe,heading:goe,html:yoe,imageReference:voe,image:boe,inlineCode:xoe,linkReference:Soe,link:Eoe,listItem:woe,list:Aoe,paragraph:Coe,root:Ooe,strong:Moe,table:Roe,tableCell:Doe,tableRow:_oe,text:koe,thematicBreak:zoe,toml:f6,yaml:f6,definition:f6,footnoteDefinition:f6};function f6(){}const bk=-1,d6=0,Hb=1,h6=2,Z7=3,J7=4,e8=5,t8=6,xk=7,Sk=8,Loe=typeof self=="object"?self:globalThis,Ek=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Loe[e](t)},Voe=(e,t)=>{const n=(a,l)=>(e.set(l,a),a),r=a=>{if(e.has(a))return e.get(a);const[l,u]=t[a];switch(l){case d6:case bk:return n(u,a);case Hb:{const d=n([],a);for(const h of u)d.push(r(h));return d}case h6:{const d=n({},a);for(const[h,y]of u)d[r(h)]=r(y);return d}case Z7:return n(new Date(u),a);case J7:{const{source:d,flags:h}=u;return n(new RegExp(d,h),a)}case e8:{const d=n(new Map,a);for(const[h,y]of u)d.set(r(h),r(y));return d}case t8:{const d=n(new Set,a);for(const h of u)d.add(r(h));return d}case xk:{const{name:d,message:h}=u;return n(Ek(d,h),a)}case Sk:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return n(new DataView(d),u)}}return n(Ek(l,u),a)};return r},wk=e=>Voe(new Map,e)(0),jg="",{toString:Boe}={},{keys:Poe}=Object,qb=e=>{const t=typeof e;if(t!=="object"||!e)return[d6,t];const n=Boe.call(e).slice(8,-1);switch(n){case"Array":return[Hb,jg];case"Object":return[h6,jg];case"Date":return[Z7,jg];case"RegExp":return[J7,jg];case"Map":return[e8,jg];case"Set":return[t8,jg];case"DataView":return[Hb,n]}return n.includes("Array")?[Hb,n]:n.includes("Error")?[xk,n]:[h6,n]},p6=([e,t])=>e===d6&&(t==="function"||t==="symbol"),joe=(e,t,n,r)=>{const a=(u,d)=>{const h=r.push(u)-1;return n.set(d,h),h},l=u=>{if(n.has(u))return n.get(u);let[d,h]=qb(u);switch(d){case d6:{let v=u;switch(h){case"bigint":d=Sk,v=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);v=null;break;case"undefined":return a([bk],u)}return a([d,v],u)}case Hb:{if(h){let T=u;return h==="DataView"?T=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(u)),a([h,[...T]],u)}const v=[],x=a([d,v],u);for(const T of u)v.push(l(T));return x}case h6:{if(h)switch(h){case"BigInt":return a([h,u.toString()],u);case"Boolean":case"Number":case"String":return a([h,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const v=[],x=a([d,v],u);for(const T of Poe(u))(e||!p6(qb(u[T])))&&v.push([l(T),l(u[T])]);return x}case Z7:return a([d,u.toISOString()],u);case J7:{const{source:v,flags:x}=u;return a([d,{source:v,flags:x}],u)}case e8:{const v=[],x=a([d,v],u);for(const[T,E]of u)(e||!(p6(qb(T))||p6(qb(E))))&&v.push([l(T),l(E)]);return x}case t8:{const v=[],x=a([d,v],u);for(const T of u)(e||!p6(qb(T)))&&v.push(l(T));return x}}const{message:y}=u;return a([d,{name:h,message:y}],u)};return l},Tk=(e,{json:t,lossy:n}={})=>{const r=[];return joe(!(t||n),!!t,new Map,r)(e),r},Gb=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wk(Tk(e,t)):structuredClone(e):(e,t)=>wk(Tk(e,t));function $oe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Uoe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Hoe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||$oe,r=e.options.footnoteBackLabel||Uoe,a=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const y=e.footnoteById.get(e.footnoteOrder[h]);if(!y)continue;const v=e.all(y),x=String(y.identifier).toUpperCase(),T=Bg(x.toLowerCase());let E=0;const A=[],R=e.footnoteCounts.get(x);for(;R!==void 0&&++E<=R;){A.length>0&&A.push({type:"text",value:" "});let z=typeof n=="string"?n:n(h,E);typeof z=="string"&&(z={type:"text",value:z}),A.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(h,E),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const _=v[v.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const z=_.children[_.children.length-1];z&&z.type==="text"?z.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...A)}else v.push(...A);const D={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(v,!0)};e.patch(y,D),d.push(D)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Gb(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
`}]}}const Fb=(function(e){if(e==null)return Yoe;if(typeof e=="function")return m6(e);if(typeof e=="object")return Array.isArray(e)?qoe(e):Goe(e);if(typeof e=="string")return Foe(e);throw new Error("Expected function, string, or object as test")});function qoe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Fb(e[n]);return m6(r);function r(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function Goe(e){const t=e;return m6(n);function n(r){const a=r;let l;for(l in e)if(a[l]!==t[l])return!1;return!0}}function Foe(e){return m6(t);function t(n){return n&&n.type===e}}function m6(e){return t;function t(n,r,a){return!!(Xoe(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Yoe(){return!0}function Xoe(e){return e!==null&&typeof e=="object"&&"type"in e}function Q0e(e){return e}const Ak=[],Woe=!0,n8=!1,Ck="skip";function r8(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const l=Fb(a),u=r?-1:1;d(e,void 0,[])();function d(h,y,v){const x=h&&typeof h=="object"?h:{};if(typeof x.type=="string"){const E=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(E?"<"+E+">":""))+")"})}return T;function T(){let E=Ak,A,R,_;if((!t||l(h,y,v[v.length-1]||void 0))&&(E=Koe(n(h,v)),E[0]===n8))return E;if("children"in h&&h.children){const D=h;if(D.children&&E[0]!==Ck)for(R=(r?D.children.length:-1)+u,_=v.concat(D);R>-1&&R<D.children.length;){const z=D.children[R];if(A=d(z,R,_)(),A[0]===n8)return A;R=typeof A[1]=="number"?A[1]:R+u}}return E}}}function Koe(e){return Array.isArray(e)?e:typeof e=="number"?[Woe,e]:e==null?Ak:[e]}function i8(e,t,n,r){let a,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,a=n):(l=t,u=n,a=r),r8(e,l,d,a);function d(h,y){const v=y[y.length-1],x=v?v.children.indexOf(h):void 0;return u(h,x,v)}}const a8={}.hasOwnProperty,Qoe={};function Zoe(e,t){const n=t||Qoe,r=new Map,a=new Map,l=new Map,u={...Ioe,...n.handlers},d={all:y,applyData:ele,definitionById:r,footnoteById:a,footnoteCounts:l,footnoteOrder:[],handlers:u,one:h,options:n,patch:Joe,wrap:nle};return i8(e,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const x=v.type==="definition"?r:a,T=String(v.identifier).toUpperCase();x.has(T)||x.set(T,v)}}),d;function h(v,x){const T=v.type,E=d.handlers[T];if(a8.call(d.handlers,T)&&E)return E(d,v,x);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in v){const{children:R,..._}=v,D=Gb(_);return D.children=d.all(v),D}return Gb(v)}return(d.options.unknownHandler||tle)(d,v,x)}function y(v){const x=[];if("children"in v){const T=v.children;let E=-1;for(;++E<T.length;){const A=d.one(T[E],v);if(A){if(E&&T[E-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Ok(A.value)),!Array.isArray(A)&&A.type==="element")){const R=A.children[0];R&&R.type==="text"&&(R.value=Ok(R.value))}Array.isArray(A)?x.push(...A):x.push(A)}}}return x}}function Joe(e,t){e.position&&(t.position=LN(e))}function ele(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Gb(l)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function tle(e,t){const n=t.data||{},r="value"in t&&!(a8.call(n,"hProperties")||a8.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nle(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Ok(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mk(e,t){const n=Zoe(e,t),r=n.one(e,void 0),a=Hoe(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&l.children.push({type:"text",value:`
`},a),l}function rle(e,t){return e&&"run"in e?async function(n,r){const a=Mk(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Mk(n,{file:r,...e||t})}}function Rk(e){if(e)throw e}var o8,_k;function ile(){if(_k)return o8;_k=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(y){return typeof Array.isArray=="function"?Array.isArray(y):t.call(y)==="[object Array]"},l=function(y){if(!y||t.call(y)!=="[object Object]")return!1;var v=e.call(y,"constructor"),x=y.constructor&&y.constructor.prototype&&e.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!v&&!x)return!1;var T;for(T in y);return typeof T>"u"||e.call(y,T)},u=function(y,v){n&&v.name==="__proto__"?n(y,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):y[v.name]=v.newValue},d=function(y,v){if(v==="__proto__")if(e.call(y,v)){if(r)return r(y,v).value}else return;return y[v]};return o8=function h(){var y,v,x,T,E,A,R=arguments[0],_=1,D=arguments.length,z=!1;for(typeof R=="boolean"&&(z=R,R=arguments[1]||{},_=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});_<D;++_)if(y=arguments[_],y!=null)for(v in y)x=d(R,v),T=d(y,v),R!==T&&(z&&T&&(l(T)||(E=a(T)))?(E?(E=!1,A=x&&a(x)?x:[]):A=x&&l(x)?x:{},u(R,{name:v,newValue:h(z,A,T)})):typeof T<"u"&&u(R,{name:v,newValue:T}));return R},o8}var ale=ile();const l8=yl(ale);function s8(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 ole(){const e=[],t={run:n,use:r};return t;function n(...a){let l=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...a);function d(h,...y){const v=e[++l];let x=-1;if(h){u(h);return}for(;++x<a.length;)(y[x]===null||y[x]===void 0)&&(y[x]=a[x]);a=y,v?lle(v,d)(...y):u(null,...y)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function lle(e,t){let n;return r;function r(...u){const d=e.length>u.length;let h;d&&u.push(a);try{h=e.apply(this,u)}catch(y){const v=y;if(d&&n)throw v;return a(v)}d||(h&&h.then&&typeof h.then=="function"?h.then(l,a):h instanceof Error?a(h):l(h))}function a(u,...d){n||(n=!0,t(u,...d))}function l(u){a(null,u)}}const cc={basename:sle,dirname:ule,extname:cle,join:fle,sep:"/"};function sle(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yb(e);let n=0,r=-1,a=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(l){n=a+1;break}}else r<0&&(l=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,d=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(l){n=a+1;break}}else u<0&&(l=!0,u=a+1),d>-1&&(e.codePointAt(a)===t.codePointAt(d--)?d<0&&(r=a):(d=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function ule(e){if(Yb(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function cle(e){Yb(e);let t=e.length,n=-1,r=0,a=-1,l=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),d===46?a<0?a=t:l!==1&&(l=1):a>-1&&(l=-1)}return a<0||n<0||l===0||l===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function fle(...e){let t=-1,n;for(;++t<e.length;)Yb(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":dle(n)}function dle(e){Yb(e);const t=e.codePointAt(0)===47;let n=hle(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hle(e,t){let n="",r=0,a=-1,l=0,u=-1,d,h;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(a===u-1||l===1))if(a!==u-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",r=0):(n=n.slice(0,h),r=n.length-1-n.lastIndexOf("/")),a=u,l=0;continue}}else if(n.length>0){n="",r=0,a=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),r=u-a-1;a=u,l=0}else d===46&&l>-1?l++:l=-1}return n}function Yb(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ple={cwd:mle};function mle(){return"/"}function u8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gle(e){if(typeof e=="string")e=new URL(e);else if(!u8(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 yle(e)}function yle(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const c8=["history","path","basename","stem","extname","dirname"];class Dk{constructor(t){let n;t?u8(t)?n={path:t}:typeof t=="string"||vle(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ple.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<c8.length;){const l=c8[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let a;for(a in n)c8.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?cc.basename(this.path):void 0}set basename(t){d8(t,"basename"),f8(t,"basename"),this.path=cc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?cc.dirname(this.path):void 0}set dirname(t){Nk(this.basename,"dirname"),this.path=cc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?cc.extname(this.path):void 0}set extname(t){if(f8(t,"extname"),Nk(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=cc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){u8(t)&&(t=gle(t)),d8(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?cc.basename(this.path,this.extname):void 0}set stem(t){d8(t,"stem"),f8(t,"stem"),this.path=cc.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Fa(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function f8(e,t){if(e&&e.includes(cc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cc.sep+"`")}function d8(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Nk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vle(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ble=(function(e){const r=this.constructor.prototype,a=r[e],l=function(){return a.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),xle={}.hasOwnProperty;class h8 extends ble{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=ole()}copy(){const t=new h8;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(l8(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(g8("data",this.frozen),this.namespace[t]=n,this):xle.call(this.namespace,t)&&this.namespace[t]||void 0:t?(g8("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[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=g6(t),r=this.parser||this.Parser;return p8("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),p8("process",this.parser||this.Parser),m8("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(l,u){const d=g6(t),h=r.parse(d);r.run(h,d,function(v,x,T){if(v||!x||!T)return y(v);const E=x,A=r.stringify(E,T);wle(A)?T.value=A:T.result=A,y(v,T)});function y(v,x){v||!x?u(v):l?l(x):n(void 0,x)}}}processSync(t){let n=!1,r;return this.freeze(),p8("processSync",this.parser||this.Parser),m8("processSync",this.compiler||this.Compiler),this.process(t,a),zk("processSync","process",n),r;function a(l,u){n=!0,Rk(l),r=u}}run(t,n,r){kk(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(u,d){const h=g6(n);a.run(t,h,y);function y(v,x,T){const E=x||t;v?d(v):u?u(E):r(void 0,E,T)}}}runSync(t,n){let r=!1,a;return this.run(t,n,l),zk("runSync","run",r),a;function l(u,d){Rk(u),a=d,r=!0}}stringify(t,n){this.freeze();const r=g6(n),a=this.compiler||this.Compiler;return m8("stringify",a),kk(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(g8("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(y){if(typeof y=="function")h(y,[]);else if(typeof y=="object")if(Array.isArray(y)){const[v,...x]=y;h(v,x)}else u(y);else throw new TypeError("Expected usable value, not `"+y+"`")}function u(y){if(!("plugins"in y)&&!("settings"in y))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(y.plugins),y.settings&&(a.settings=l8(!0,a.settings,y.settings))}function d(y){let v=-1;if(y!=null)if(Array.isArray(y))for(;++v<y.length;){const x=y[v];l(x)}else throw new TypeError("Expected a list of plugins, not `"+y+"`")}function h(y,v){let x=-1,T=-1;for(;++x<r.length;)if(r[x][0]===y){T=x;break}if(T===-1)r.push([y,...v]);else if(v.length>0){let[E,...A]=v;const R=r[T][1];s8(R)&&s8(E)&&(E=l8(!0,R,E)),r[T]=[y,E,...A]}}}}const Sle=new h8().freeze();function p8(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function m8(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function g8(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 kk(e){if(!s8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function g6(e){return Ele(e)?e:new Dk(e)}function Ele(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wle(e){return typeof e=="string"||Tle(e)}function Tle(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ale="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ik=[],Lk={allowDangerousHtml:!0},Cle=/^(https?|ircs?|mailto|xmpp)$/i,Ole=[{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 Mle(e){const t=Rle(e),n=_le(e);return Dle(t.runSync(t.parse(n),n),e)}function Rle(e){const t=e.rehypePlugins||Ik,n=e.remarkPlugins||Ik,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lk}:Lk;return Sle().use(uoe).use(n).use(rle,r).use(t)}function _le(e){const t=e.children||"",n=new Dk;return typeof t=="string"&&(n.value=t),n}function Dle(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,l=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||Nle;for(const v of Ole)Object.hasOwn(t,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+Ale+v.id,void 0);return i8(e,y),tie(e,{Fragment:L.Fragment,components:a,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function y(v,x,T){if(v.type==="raw"&&T&&typeof x=="number")return u?T.children.splice(x,1):T.children[x]={type:"text",value:v.value},x;if(v.type==="element"){let E;for(E in q7)if(Object.hasOwn(q7,E)&&Object.hasOwn(v.properties,E)){const A=v.properties[E],R=q7[E];(R===null||R.includes(v.tagName))&&(v.properties[E]=h(String(A||""),E,v))}}if(v.type==="element"){let E=n?!n.includes(v.tagName):l?l.includes(v.tagName):!1;if(!E&&r&&typeof x=="number"&&(E=!r(v,x,T)),E&&T&&typeof x=="number")return d&&v.children?T.children.splice(x,1,...v.children):T.children.splice(x,1),x}}}function Nle(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Cle.test(e.slice(0,t))?e:""}const Vk=/[#.]/g;function kle(e,t){const n=e||"",r={};let a=0,l,u;for(;a<n.length;){Vk.lastIndex=a;const d=Vk.exec(n),h=n.slice(a,d?d.index:n.length);h&&(l?l==="#"?r.id=h:Array.isArray(r.className)?r.className.push(h):r.className=[h]:u=h,a+=h.length),d&&(l=d[0],a++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function Bk(e,t,n){const r=n?Vle(n):void 0;function a(l,u,...d){let h;if(l==null){h={type:"root",children:[]};const y=u;d.unshift(y)}else{h=kle(l,t);const y=h.tagName.toLowerCase(),v=r?r.get(y):void 0;if(h.tagName=v||y,zle(u))d.unshift(u);else for(const[x,T]of Object.entries(u))Ile(e,h.properties,x,T)}for(const y of d)y8(h.children,y);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return a}function zle(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const l=a;for(const u of l)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Ile(e,t,n,r){const a=ON(e,n);let l;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;l=r}else typeof r=="boolean"?l=r:typeof r=="string"?a.spaceSeparated?l=RN(r):a.commaSeparated?l=mN(r):a.commaOrSpaceSeparated?l=RN(mN(r).join(" ")):l=Pk(a,a.property,r):Array.isArray(r)?l=[...r]:l=a.property==="style"?Lle(r):String(r);if(Array.isArray(l)){const u=[];for(const d of l)u.push(Pk(a,a.property,d));l=u}a.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[a.property]=l}}function y8(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 n of t)y8(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?y8(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Pk(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ib(n)===Ib(t)))return!0}return n}function Lle(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Vle(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Ble=["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"],Ple=Bk(MN,"div"),jle=Bk(o6,"g",Ble),v8={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function $le(e,t){return jk(e,{})||{type:"root",children:[]}}function jk(e,t){const n=Ule(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Ule(e,t){switch(e.nodeType){case 1:return Fle(e,t);case 3:return qle(e);case 8:return Gle(e);case 9:return $k(e,t);case 10:return Hle();case 11:return $k(e,t);default:return}}function $k(e,t){return{type:"root",children:Uk(e,t)}}function Hle(){return{type:"doctype"}}function qle(e){return{type:"text",value:e.nodeValue||""}}function Gle(e){return{type:"comment",value:e.nodeValue||""}}function Fle(e,t){const n=e.namespaceURI,r=n===v8.svg?jle:Ple,a=n===v8.html?e.tagName.toLowerCase():e.tagName,l=n===v8.html&&a==="template"?e.content:e,u=e.getAttributeNames(),d={};let h=-1;for(;++h<u.length;)d[u[h]]=e.getAttribute(u[h])||"";return r(a,d,Uk(l,t))}function Uk(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const l=jk(n[a],t);l!==void 0&&r.push(l)}return r}new DOMParser;function Yle(e,t){const n=Xle(e);return $le(n)}function Xle(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Hk=(function(e,t,n){const r=Fb(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),P0=(function(e){if(e==null)return Qle;if(typeof e=="string")return Kle(e);if(typeof e=="object")return Wle(e);if(typeof e=="function")return b8(e);throw new Error("Expected function, string, or array as `test`")});function Wle(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=P0(e[n]);return b8(r);function r(...a){let l=-1;for(;++l<t.length;)if(t[l].apply(this,a))return!0;return!1}}function Kle(e){return b8(t);function t(n){return n.tagName===e}}function b8(e){return t;function t(n,r,a){return!!(Zle(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Qle(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Zle(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const qk=/\n/g,Gk=/[\t ]+/g,x8=P0("br"),Fk=P0(ose),Jle=P0("p"),Yk=P0("tr"),ese=P0(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",ase,lse]),Xk=P0(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function tse(e,t){const n=t||{},r="children"in e?e.children:[],a=Xk(e),l=Qk(e,{whitespace:n.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...Kk(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<r.length;)u.push(...Wk(r[d],e,{whitespace:l,breakBefore:d?void 0:a,breakAfter:d<r.length-1?x8(r[d+1]):a}));const h=[];let y;for(d=-1;++d<u.length;){const v=u[d];typeof v=="number"?y!==void 0&&v>y&&(y=v):v&&(y!==void 0&&y>-1&&h.push(`
`.repeat(y)||" "),y=-1,h.push(v))}return h.join("")}function Wk(e,t,n){return e.type==="element"?nse(e,t,n):e.type==="text"?n.whitespace==="normal"?Kk(e,n):rse(e):[]}function nse(e,t,n){const r=Qk(e,n),a=e.children||[];let l=-1,u=[];if(ese(e))return u;let d,h;for(x8(e)||Yk(e)&&Hk(t,e,Yk)?h=`
`:Jle(e)?(d=2,h=2):Xk(e)&&(d=1,h=1);++l<a.length;)u=u.concat(Wk(a[l],e,{whitespace:r,breakBefore:l?void 0:d,breakAfter:l<a.length-1?x8(a[l+1]):h}));return Fk(e)&&Hk(t,e,Fk)&&u.push("	"),d&&u.unshift(d),h&&u.push(h),u}function Kk(e,t){const n=String(e.value),r=[],a=[];let l=0;for(;l<=n.length;){qk.lastIndex=l;const h=qk.exec(n),y=h&&"index"in h?h.index:n.length;r.push(ise(n.slice(l,y).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?t.breakBefore:!0,y===n.length?t.breakAfter:!0)),l=y+1}let u=-1,d;for(;++u<r.length;)r[u].charCodeAt(r[u].length-1)===8203||u<r.length-1&&r[u+1].charCodeAt(0)===8203?(a.push(r[u]),d=void 0):r[u]?(typeof d=="number"&&a.push(d),a.push(r[u]),d=0):(u===0||u===r.length-1)&&a.push(0);return a}function rse(e){return[String(e.value)]}function ise(e,t,n){const r=[];let a=0,l;for(;a<e.length;){Gk.lastIndex=a;const u=Gk.exec(e);l=u?u.index:e.length,!a&&!l&&u&&!t&&r.push(""),a!==l&&r.push(e.slice(a,l)),a=u?l+u[0].length:l}return a!==l&&!n&&r.push(""),r.join(" ")}function Qk(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function ase(e){return!!(e.properties||{}).hidden}function ose(e){return e.tagName==="td"||e.tagName==="th"}function lse(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class gt extends Error{constructor(t,n){var r="KaTeX parse error: "+t,a,l,u=n&&n.loc;if(u&&u.start<=u.end){var d=u.lexer.input;a=u.start,l=u.end,a===d.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var h=d.slice(a,l).replace(/[^]/g,"$&̲"),y;a>15?y="…"+d.slice(a-15,a):y=d.slice(0,a);var v;l+15<d.length?v=d.slice(l,l+15)+"…":v=d.slice(l),r+=y+h+v}super(r),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,gt.prototype),this.position=a,a!=null&&l!=null&&(this.length=l-a),this.rawMessage=t}}var sse=/([A-Z])/g,use=e=>e.replace(sse,"-$1").toLowerCase(),cse={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},fse=/[&><"']/g,Xa=e=>String(e).replace(fse,t=>cse[t]),y6=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?y6(e.body[0]):e:e.type==="font"?y6(e.body):e,dse=new Set(["mathord","textord","atom"]),pf=e=>dse.has(y6(e).type),hse=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},S8={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function pse(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function mse(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return pse(t)}function gse(e,t,n,r){var a=n[t];e[t]=a!==void 0?r.processor?r.processor(a):a:mse(r)}let E8=class{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(S8)){var r=S8[n];r&&gse(this,n,t,r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new gt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=hse(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}};class Yd{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return fc[yse[this.id]]}sub(){return fc[vse[this.id]]}fracNum(){return fc[bse[this.id]]}fracDen(){return fc[xse[this.id]]}cramp(){return fc[Sse[this.id]]}text(){return fc[Ese[this.id]]}isTight(){return this.size>=2}}var w8=0,v6=1,$g=2,mf=3,Xb=4,os=5,Ug=6,xo=7,fc=[new Yd(w8,0,!1),new Yd(v6,0,!0),new Yd($g,1,!1),new Yd(mf,1,!0),new Yd(Xb,2,!1),new Yd(os,2,!0),new Yd(Ug,3,!1),new Yd(xo,3,!0)],yse=[Xb,os,Xb,os,Ug,xo,Ug,xo],vse=[os,os,os,os,xo,xo,xo,xo],bse=[$g,mf,Xb,os,Ug,xo,Ug,xo],xse=[mf,mf,os,os,xo,xo,xo,xo],Sse=[v6,v6,mf,mf,os,os,xo,xo],Ese=[w8,v6,$g,mf,$g,mf,$g,mf],hn={DISPLAY:fc[w8],TEXT:fc[$g],SCRIPT:fc[Xb],SCRIPTSCRIPT:fc[Ug]},T8=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function wse(e){for(var t=0;t<T8.length;t++)for(var n=T8[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var b6=[];T8.forEach(e=>e.blocks.forEach(t=>b6.push(...t)));function Zk(e){for(var t=0;t<b6.length;t+=2)if(e>=b6[t]&&e<=b6[t+1])return!0;return!1}var Fi=e=>e+" "+e,Hg=80,Tse=function(t,n){return"M95,"+(622+t+n)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Ase=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Cse=function(t,n){return"M983 "+(10+t+n)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Ose=function(t,n){return"M424,"+(2398+t+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
h400000v`+(40+t)+"h-400000z"},Mse=function(t,n){return"M473,"+(2713+t+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Rse=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},_se=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Dse=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=Tse(n,Hg);break;case"sqrtSize1":a=Ase(n,Hg);break;case"sqrtSize2":a=Cse(n,Hg);break;case"sqrtSize3":a=Ose(n,Hg);break;case"sqrtSize4":a=Mse(n,Hg);break;case"sqrtTall":a=_se(n,Hg,r)}return a},Nse=function(t,n){switch(t){case"⎜":return Fi("M291 0 H417 V"+n+" H291z");case"∣":return Fi("M145 0 H188 V"+n+" H145z");case"∥":return Fi("M145 0 H188 V"+n+" H145z")+Fi("M367 0 H410 V"+n+" H367z");case"⎟":return Fi("M457 0 H583 V"+n+" H457z");case"⎢":return Fi("M319 0 H403 V"+n+" H319z");case"⎥":return Fi("M263 0 H347 V"+n+" H263z");case"⎪":return Fi("M384 0 H504 V"+n+" H384z");case"⏐":return Fi("M312 0 H355 V"+n+" H312z");case"‖":return Fi("M257 0 H300 V"+n+" H257z")+Fi("M478 0 H521 V"+n+" H478z");default:return""}},Jk={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Fi("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Fi("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Fi("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Fi("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Fi("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Fi("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Fi("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Fi("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},kse=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function zse(e){return"toText"in e}let qg=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(zse(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}};var A8={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Ise={ex:!0,em:!0,mu:!0},ez=function(t){return typeof t!="string"&&(t=t.unit),t in A8||t in Ise||t==="ex"},oi=function(t,n){var r;if(t.unit in A8)r=A8[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new gt("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},bt=function(t){return+t.toFixed(4)+"em"},Xd=function(t){return t.filter(n=>n).join(" ")},C8=function(t){var n="";for(var r of Object.keys(t)){var a=t[r];a!==void 0&&(n+=use(r)+":"+a+";")}return n},tz=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},nz=function(t){var n=document.createElement(t);n.className=Xd(this.classes),Object.assign(n.style,this.style);for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},Lse=/[\s"'>/=\x00-\x1f]/,rz=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Xa(Xd(this.classes))+'"');var r=C8(this.style);r&&(n+=' style="'+Xa(r)+'"');for(var a of Object.keys(this.attributes)){if(Lse.test(a))throw new gt("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Xa(this.attributes[a])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class Gg{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,tz.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return nz.call(this,"span")}toMarkup(){return rz.call(this,"span")}}class x6{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,tz.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return nz.call(this,"a")}toMarkup(){return rz.call(this,"a")}}class Vse{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Xa(this.src)+'"'+(' alt="'+Xa(this.alt)+'"'),n=C8(this.style);return n&&(t+=' style="'+Xa(n)+'"'),t+="'/>",t}}var Bse={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Cl{constructor(t,n,r,a,l,u,d,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=l||0,this.width=u||0,this.classes=d||[],this.style=h||{},this.maxFontSize=0;var y=wse(this.text.charCodeAt(0));y&&this.classes.push(y+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Bse[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=bt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Xd(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Xa(Xd(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+bt(this.italic)+";"),r+=C8(this.style),r&&(t=!0,n+=' style="'+Xa(r)+'"');var a=Xa(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class gf{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Xa(this.attributes[n])+'"';t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class Wd{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",Jk[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Xa(this.alternate)+'"/>':'<path d="'+Xa(Jk[this.pathName])+'"/>'}}class O8{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r of Object.keys(this.attributes))n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Xa(this.attributes[n])+'"';return t+="/>",t}}function Pse(e){if(e instanceof Cl)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function jse(e){if(e instanceof Gg)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var $se=e=>e instanceof Gg||e instanceof x6||e instanceof qg,dc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},S6={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},iz={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Use(e,t){dc[e]=t}function M8(e,t,n){if(!dc[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=dc[t][r];if(!a&&e[0]in iz&&(r=iz[e[0]].charCodeAt(0),a=dc[t][r]),!a&&n==="text"&&Zk(r)&&(a=dc[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var R8={};function Hse(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!R8[t]){var n=R8[t]={cssEmPerMu:S6.quad[t]/18};for(var r in S6)S6.hasOwnProperty(r)&&(n[r]=S6[r][t])}return R8[t]}var Yr={math:{},text:{}};function k(e,t,n,r,a,l){Yr[e][a]={font:t,group:n,replace:r},l&&r&&(Yr[e][r]=Yr[e][a])}var B="math",st="text",K="main",de="ams",Xr="accent-token",Nt="bin",So="close",Fg="inner",en="mathord",ki="op-token",Ol="open",Wb="punct",me="rel",yf="spacing",Ce="textord";k(B,K,me,"≡","\\equiv",!0),k(B,K,me,"≺","\\prec",!0),k(B,K,me,"≻","\\succ",!0),k(B,K,me,"∼","\\sim",!0),k(B,K,me,"⊥","\\perp"),k(B,K,me,"⪯","\\preceq",!0),k(B,K,me,"⪰","\\succeq",!0),k(B,K,me,"≃","\\simeq",!0),k(B,K,me,"∣","\\mid",!0),k(B,K,me,"≪","\\ll",!0),k(B,K,me,"≫","\\gg",!0),k(B,K,me,"≍","\\asymp",!0),k(B,K,me,"∥","\\parallel"),k(B,K,me,"⋈","\\bowtie",!0),k(B,K,me,"⌣","\\smile",!0),k(B,K,me,"⊑","\\sqsubseteq",!0),k(B,K,me,"⊒","\\sqsupseteq",!0),k(B,K,me,"≐","\\doteq",!0),k(B,K,me,"⌢","\\frown",!0),k(B,K,me,"∋","\\ni",!0),k(B,K,me,"∝","\\propto",!0),k(B,K,me,"⊢","\\vdash",!0),k(B,K,me,"⊣","\\dashv",!0),k(B,K,me,"∋","\\owns"),k(B,K,Wb,".","\\ldotp"),k(B,K,Wb,"⋅","\\cdotp"),k(B,K,Wb,"⋅","·"),k(st,K,Ce,"⋅","·"),k(B,K,Ce,"#","\\#"),k(st,K,Ce,"#","\\#"),k(B,K,Ce,"&","\\&"),k(st,K,Ce,"&","\\&"),k(B,K,Ce,"ℵ","\\aleph",!0),k(B,K,Ce,"∀","\\forall",!0),k(B,K,Ce,"ℏ","\\hbar",!0),k(B,K,Ce,"∃","\\exists",!0),k(B,K,Ce,"∇","\\nabla",!0),k(B,K,Ce,"♭","\\flat",!0),k(B,K,Ce,"ℓ","\\ell",!0),k(B,K,Ce,"♮","\\natural",!0),k(B,K,Ce,"♣","\\clubsuit",!0),k(B,K,Ce,"℘","\\wp",!0),k(B,K,Ce,"♯","\\sharp",!0),k(B,K,Ce,"♢","\\diamondsuit",!0),k(B,K,Ce,"ℜ","\\Re",!0),k(B,K,Ce,"♡","\\heartsuit",!0),k(B,K,Ce,"ℑ","\\Im",!0),k(B,K,Ce,"♠","\\spadesuit",!0),k(B,K,Ce,"§","\\S",!0),k(st,K,Ce,"§","\\S"),k(B,K,Ce,"¶","\\P",!0),k(st,K,Ce,"¶","\\P"),k(B,K,Ce,"†","\\dag"),k(st,K,Ce,"†","\\dag"),k(st,K,Ce,"†","\\textdagger"),k(B,K,Ce,"‡","\\ddag"),k(st,K,Ce,"‡","\\ddag"),k(st,K,Ce,"‡","\\textdaggerdbl"),k(B,K,So,"⎱","\\rmoustache",!0),k(B,K,Ol,"⎰","\\lmoustache",!0),k(B,K,So,"⟯","\\rgroup",!0),k(B,K,Ol,"⟮","\\lgroup",!0),k(B,K,Nt,"∓","\\mp",!0),k(B,K,Nt,"⊖","\\ominus",!0),k(B,K,Nt,"⊎","\\uplus",!0),k(B,K,Nt,"⊓","\\sqcap",!0),k(B,K,Nt,"∗","\\ast"),k(B,K,Nt,"⊔","\\sqcup",!0),k(B,K,Nt,"◯","\\bigcirc",!0),k(B,K,Nt,"∙","\\bullet",!0),k(B,K,Nt,"‡","\\ddagger"),k(B,K,Nt,"≀","\\wr",!0),k(B,K,Nt,"⨿","\\amalg"),k(B,K,Nt,"&","\\And"),k(B,K,me,"⟵","\\longleftarrow",!0),k(B,K,me,"⇐","\\Leftarrow",!0),k(B,K,me,"⟸","\\Longleftarrow",!0),k(B,K,me,"⟶","\\longrightarrow",!0),k(B,K,me,"⇒","\\Rightarrow",!0),k(B,K,me,"⟹","\\Longrightarrow",!0),k(B,K,me,"↔","\\leftrightarrow",!0),k(B,K,me,"⟷","\\longleftrightarrow",!0),k(B,K,me,"⇔","\\Leftrightarrow",!0),k(B,K,me,"⟺","\\Longleftrightarrow",!0),k(B,K,me,"↦","\\mapsto",!0),k(B,K,me,"⟼","\\longmapsto",!0),k(B,K,me,"↗","\\nearrow",!0),k(B,K,me,"↩","\\hookleftarrow",!0),k(B,K,me,"↪","\\hookrightarrow",!0),k(B,K,me,"↘","\\searrow",!0),k(B,K,me,"↼","\\leftharpoonup",!0),k(B,K,me,"⇀","\\rightharpoonup",!0),k(B,K,me,"↙","\\swarrow",!0),k(B,K,me,"↽","\\leftharpoondown",!0),k(B,K,me,"⇁","\\rightharpoondown",!0),k(B,K,me,"↖","\\nwarrow",!0),k(B,K,me,"⇌","\\rightleftharpoons",!0),k(B,de,me,"≮","\\nless",!0),k(B,de,me,"","\\@nleqslant"),k(B,de,me,"","\\@nleqq"),k(B,de,me,"⪇","\\lneq",!0),k(B,de,me,"≨","\\lneqq",!0),k(B,de,me,"","\\@lvertneqq"),k(B,de,me,"⋦","\\lnsim",!0),k(B,de,me,"⪉","\\lnapprox",!0),k(B,de,me,"⊀","\\nprec",!0),k(B,de,me,"⋠","\\npreceq",!0),k(B,de,me,"⋨","\\precnsim",!0),k(B,de,me,"⪹","\\precnapprox",!0),k(B,de,me,"≁","\\nsim",!0),k(B,de,me,"","\\@nshortmid"),k(B,de,me,"∤","\\nmid",!0),k(B,de,me,"⊬","\\nvdash",!0),k(B,de,me,"⊭","\\nvDash",!0),k(B,de,me,"⋪","\\ntriangleleft"),k(B,de,me,"⋬","\\ntrianglelefteq",!0),k(B,de,me,"⊊","\\subsetneq",!0),k(B,de,me,"","\\@varsubsetneq"),k(B,de,me,"⫋","\\subsetneqq",!0),k(B,de,me,"","\\@varsubsetneqq"),k(B,de,me,"≯","\\ngtr",!0),k(B,de,me,"","\\@ngeqslant"),k(B,de,me,"","\\@ngeqq"),k(B,de,me,"⪈","\\gneq",!0),k(B,de,me,"≩","\\gneqq",!0),k(B,de,me,"","\\@gvertneqq"),k(B,de,me,"⋧","\\gnsim",!0),k(B,de,me,"⪊","\\gnapprox",!0),k(B,de,me,"⊁","\\nsucc",!0),k(B,de,me,"⋡","\\nsucceq",!0),k(B,de,me,"⋩","\\succnsim",!0),k(B,de,me,"⪺","\\succnapprox",!0),k(B,de,me,"≆","\\ncong",!0),k(B,de,me,"","\\@nshortparallel"),k(B,de,me,"∦","\\nparallel",!0),k(B,de,me,"⊯","\\nVDash",!0),k(B,de,me,"⋫","\\ntriangleright"),k(B,de,me,"⋭","\\ntrianglerighteq",!0),k(B,de,me,"","\\@nsupseteqq"),k(B,de,me,"⊋","\\supsetneq",!0),k(B,de,me,"","\\@varsupsetneq"),k(B,de,me,"⫌","\\supsetneqq",!0),k(B,de,me,"","\\@varsupsetneqq"),k(B,de,me,"⊮","\\nVdash",!0),k(B,de,me,"⪵","\\precneqq",!0),k(B,de,me,"⪶","\\succneqq",!0),k(B,de,me,"","\\@nsubseteqq"),k(B,de,Nt,"⊴","\\unlhd"),k(B,de,Nt,"⊵","\\unrhd"),k(B,de,me,"↚","\\nleftarrow",!0),k(B,de,me,"↛","\\nrightarrow",!0),k(B,de,me,"⇍","\\nLeftarrow",!0),k(B,de,me,"⇏","\\nRightarrow",!0),k(B,de,me,"↮","\\nleftrightarrow",!0),k(B,de,me,"⇎","\\nLeftrightarrow",!0),k(B,de,me,"△","\\vartriangle"),k(B,de,Ce,"ℏ","\\hslash"),k(B,de,Ce,"▽","\\triangledown"),k(B,de,Ce,"◊","\\lozenge"),k(B,de,Ce,"Ⓢ","\\circledS"),k(B,de,Ce,"®","\\circledR"),k(st,de,Ce,"®","\\circledR"),k(B,de,Ce,"∡","\\measuredangle",!0),k(B,de,Ce,"∄","\\nexists"),k(B,de,Ce,"℧","\\mho"),k(B,de,Ce,"Ⅎ","\\Finv",!0),k(B,de,Ce,"⅁","\\Game",!0),k(B,de,Ce,"‵","\\backprime"),k(B,de,Ce,"▲","\\blacktriangle"),k(B,de,Ce,"▼","\\blacktriangledown"),k(B,de,Ce,"■","\\blacksquare"),k(B,de,Ce,"⧫","\\blacklozenge"),k(B,de,Ce,"★","\\bigstar"),k(B,de,Ce,"∢","\\sphericalangle",!0),k(B,de,Ce,"∁","\\complement",!0),k(B,de,Ce,"ð","\\eth",!0),k(st,K,Ce,"ð","ð"),k(B,de,Ce,"╱","\\diagup"),k(B,de,Ce,"╲","\\diagdown"),k(B,de,Ce,"□","\\square"),k(B,de,Ce,"□","\\Box"),k(B,de,Ce,"◊","\\Diamond"),k(B,de,Ce,"¥","\\yen",!0),k(st,de,Ce,"¥","\\yen",!0),k(B,de,Ce,"✓","\\checkmark",!0),k(st,de,Ce,"✓","\\checkmark"),k(B,de,Ce,"ℶ","\\beth",!0),k(B,de,Ce,"ℸ","\\daleth",!0),k(B,de,Ce,"ℷ","\\gimel",!0),k(B,de,Ce,"ϝ","\\digamma",!0),k(B,de,Ce,"ϰ","\\varkappa"),k(B,de,Ol,"┌","\\@ulcorner",!0),k(B,de,So,"┐","\\@urcorner",!0),k(B,de,Ol,"└","\\@llcorner",!0),k(B,de,So,"┘","\\@lrcorner",!0),k(B,de,me,"≦","\\leqq",!0),k(B,de,me,"⩽","\\leqslant",!0),k(B,de,me,"⪕","\\eqslantless",!0),k(B,de,me,"≲","\\lesssim",!0),k(B,de,me,"⪅","\\lessapprox",!0),k(B,de,me,"≊","\\approxeq",!0),k(B,de,Nt,"⋖","\\lessdot"),k(B,de,me,"⋘","\\lll",!0),k(B,de,me,"≶","\\lessgtr",!0),k(B,de,me,"⋚","\\lesseqgtr",!0),k(B,de,me,"⪋","\\lesseqqgtr",!0),k(B,de,me,"≑","\\doteqdot"),k(B,de,me,"≓","\\risingdotseq",!0),k(B,de,me,"≒","\\fallingdotseq",!0),k(B,de,me,"∽","\\backsim",!0),k(B,de,me,"⋍","\\backsimeq",!0),k(B,de,me,"⫅","\\subseteqq",!0),k(B,de,me,"⋐","\\Subset",!0),k(B,de,me,"⊏","\\sqsubset",!0),k(B,de,me,"≼","\\preccurlyeq",!0),k(B,de,me,"⋞","\\curlyeqprec",!0),k(B,de,me,"≾","\\precsim",!0),k(B,de,me,"⪷","\\precapprox",!0),k(B,de,me,"⊲","\\vartriangleleft"),k(B,de,me,"⊴","\\trianglelefteq"),k(B,de,me,"⊨","\\vDash",!0),k(B,de,me,"⊪","\\Vvdash",!0),k(B,de,me,"⌣","\\smallsmile"),k(B,de,me,"⌢","\\smallfrown"),k(B,de,me,"≏","\\bumpeq",!0),k(B,de,me,"≎","\\Bumpeq",!0),k(B,de,me,"≧","\\geqq",!0),k(B,de,me,"⩾","\\geqslant",!0),k(B,de,me,"⪖","\\eqslantgtr",!0),k(B,de,me,"≳","\\gtrsim",!0),k(B,de,me,"⪆","\\gtrapprox",!0),k(B,de,Nt,"⋗","\\gtrdot"),k(B,de,me,"⋙","\\ggg",!0),k(B,de,me,"≷","\\gtrless",!0),k(B,de,me,"⋛","\\gtreqless",!0),k(B,de,me,"⪌","\\gtreqqless",!0),k(B,de,me,"≖","\\eqcirc",!0),k(B,de,me,"≗","\\circeq",!0),k(B,de,me,"≜","\\triangleq",!0),k(B,de,me,"∼","\\thicksim"),k(B,de,me,"≈","\\thickapprox"),k(B,de,me,"⫆","\\supseteqq",!0),k(B,de,me,"⋑","\\Supset",!0),k(B,de,me,"⊐","\\sqsupset",!0),k(B,de,me,"≽","\\succcurlyeq",!0),k(B,de,me,"⋟","\\curlyeqsucc",!0),k(B,de,me,"≿","\\succsim",!0),k(B,de,me,"⪸","\\succapprox",!0),k(B,de,me,"⊳","\\vartriangleright"),k(B,de,me,"⊵","\\trianglerighteq"),k(B,de,me,"⊩","\\Vdash",!0),k(B,de,me,"∣","\\shortmid"),k(B,de,me,"∥","\\shortparallel"),k(B,de,me,"≬","\\between",!0),k(B,de,me,"⋔","\\pitchfork",!0),k(B,de,me,"∝","\\varpropto"),k(B,de,me,"◀","\\blacktriangleleft"),k(B,de,me,"∴","\\therefore",!0),k(B,de,me,"∍","\\backepsilon"),k(B,de,me,"▶","\\blacktriangleright"),k(B,de,me,"∵","\\because",!0),k(B,de,me,"⋘","\\llless"),k(B,de,me,"⋙","\\gggtr"),k(B,de,Nt,"⊲","\\lhd"),k(B,de,Nt,"⊳","\\rhd"),k(B,de,me,"≂","\\eqsim",!0),k(B,K,me,"⋈","\\Join"),k(B,de,me,"≑","\\Doteq",!0),k(B,de,Nt,"∔","\\dotplus",!0),k(B,de,Nt,"∖","\\smallsetminus"),k(B,de,Nt,"⋒","\\Cap",!0),k(B,de,Nt,"⋓","\\Cup",!0),k(B,de,Nt,"⩞","\\doublebarwedge",!0),k(B,de,Nt,"⊟","\\boxminus",!0),k(B,de,Nt,"⊞","\\boxplus",!0),k(B,de,Nt,"⋇","\\divideontimes",!0),k(B,de,Nt,"⋉","\\ltimes",!0),k(B,de,Nt,"⋊","\\rtimes",!0),k(B,de,Nt,"⋋","\\leftthreetimes",!0),k(B,de,Nt,"⋌","\\rightthreetimes",!0),k(B,de,Nt,"⋏","\\curlywedge",!0),k(B,de,Nt,"⋎","\\curlyvee",!0),k(B,de,Nt,"⊝","\\circleddash",!0),k(B,de,Nt,"⊛","\\circledast",!0),k(B,de,Nt,"⋅","\\centerdot"),k(B,de,Nt,"⊺","\\intercal",!0),k(B,de,Nt,"⋒","\\doublecap"),k(B,de,Nt,"⋓","\\doublecup"),k(B,de,Nt,"⊠","\\boxtimes",!0),k(B,de,me,"⇢","\\dashrightarrow",!0),k(B,de,me,"⇠","\\dashleftarrow",!0),k(B,de,me,"⇇","\\leftleftarrows",!0),k(B,de,me,"⇆","\\leftrightarrows",!0),k(B,de,me,"⇚","\\Lleftarrow",!0),k(B,de,me,"↞","\\twoheadleftarrow",!0),k(B,de,me,"↢","\\leftarrowtail",!0),k(B,de,me,"↫","\\looparrowleft",!0),k(B,de,me,"⇋","\\leftrightharpoons",!0),k(B,de,me,"↶","\\curvearrowleft",!0),k(B,de,me,"↺","\\circlearrowleft",!0),k(B,de,me,"↰","\\Lsh",!0),k(B,de,me,"⇈","\\upuparrows",!0),k(B,de,me,"↿","\\upharpoonleft",!0),k(B,de,me,"⇃","\\downharpoonleft",!0),k(B,K,me,"⊶","\\origof",!0),k(B,K,me,"⊷","\\imageof",!0),k(B,de,me,"⊸","\\multimap",!0),k(B,de,me,"↭","\\leftrightsquigarrow",!0),k(B,de,me,"⇉","\\rightrightarrows",!0),k(B,de,me,"⇄","\\rightleftarrows",!0),k(B,de,me,"↠","\\twoheadrightarrow",!0),k(B,de,me,"↣","\\rightarrowtail",!0),k(B,de,me,"↬","\\looparrowright",!0),k(B,de,me,"↷","\\curvearrowright",!0),k(B,de,me,"↻","\\circlearrowright",!0),k(B,de,me,"↱","\\Rsh",!0),k(B,de,me,"⇊","\\downdownarrows",!0),k(B,de,me,"↾","\\upharpoonright",!0),k(B,de,me,"⇂","\\downharpoonright",!0),k(B,de,me,"⇝","\\rightsquigarrow",!0),k(B,de,me,"⇝","\\leadsto"),k(B,de,me,"⇛","\\Rrightarrow",!0),k(B,de,me,"↾","\\restriction"),k(B,K,Ce,"‘","`"),k(B,K,Ce,"$","\\$"),k(st,K,Ce,"$","\\$"),k(st,K,Ce,"$","\\textdollar"),k(B,K,Ce,"%","\\%"),k(st,K,Ce,"%","\\%"),k(B,K,Ce,"_","\\_"),k(st,K,Ce,"_","\\_"),k(st,K,Ce,"_","\\textunderscore"),k(B,K,Ce,"∠","\\angle",!0),k(B,K,Ce,"∞","\\infty",!0),k(B,K,Ce,"′","\\prime"),k(B,K,Ce,"△","\\triangle"),k(B,K,Ce,"Γ","\\Gamma",!0),k(B,K,Ce,"Δ","\\Delta",!0),k(B,K,Ce,"Θ","\\Theta",!0),k(B,K,Ce,"Λ","\\Lambda",!0),k(B,K,Ce,"Ξ","\\Xi",!0),k(B,K,Ce,"Π","\\Pi",!0),k(B,K,Ce,"Σ","\\Sigma",!0),k(B,K,Ce,"Υ","\\Upsilon",!0),k(B,K,Ce,"Φ","\\Phi",!0),k(B,K,Ce,"Ψ","\\Psi",!0),k(B,K,Ce,"Ω","\\Omega",!0),k(B,K,Ce,"A","Α"),k(B,K,Ce,"B","Β"),k(B,K,Ce,"E","Ε"),k(B,K,Ce,"Z","Ζ"),k(B,K,Ce,"H","Η"),k(B,K,Ce,"I","Ι"),k(B,K,Ce,"K","Κ"),k(B,K,Ce,"M","Μ"),k(B,K,Ce,"N","Ν"),k(B,K,Ce,"O","Ο"),k(B,K,Ce,"P","Ρ"),k(B,K,Ce,"T","Τ"),k(B,K,Ce,"X","Χ"),k(B,K,Ce,"¬","\\neg",!0),k(B,K,Ce,"¬","\\lnot"),k(B,K,Ce,"⊤","\\top"),k(B,K,Ce,"⊥","\\bot"),k(B,K,Ce,"∅","\\emptyset"),k(B,de,Ce,"∅","\\varnothing"),k(B,K,en,"α","\\alpha",!0),k(B,K,en,"β","\\beta",!0),k(B,K,en,"γ","\\gamma",!0),k(B,K,en,"δ","\\delta",!0),k(B,K,en,"ϵ","\\epsilon",!0),k(B,K,en,"ζ","\\zeta",!0),k(B,K,en,"η","\\eta",!0),k(B,K,en,"θ","\\theta",!0),k(B,K,en,"ι","\\iota",!0),k(B,K,en,"κ","\\kappa",!0),k(B,K,en,"λ","\\lambda",!0),k(B,K,en,"μ","\\mu",!0),k(B,K,en,"ν","\\nu",!0),k(B,K,en,"ξ","\\xi",!0),k(B,K,en,"ο","\\omicron",!0),k(B,K,en,"π","\\pi",!0),k(B,K,en,"ρ","\\rho",!0),k(B,K,en,"σ","\\sigma",!0),k(B,K,en,"τ","\\tau",!0),k(B,K,en,"υ","\\upsilon",!0),k(B,K,en,"ϕ","\\phi",!0),k(B,K,en,"χ","\\chi",!0),k(B,K,en,"ψ","\\psi",!0),k(B,K,en,"ω","\\omega",!0),k(B,K,en,"ε","\\varepsilon",!0),k(B,K,en,"ϑ","\\vartheta",!0),k(B,K,en,"ϖ","\\varpi",!0),k(B,K,en,"ϱ","\\varrho",!0),k(B,K,en,"ς","\\varsigma",!0),k(B,K,en,"φ","\\varphi",!0),k(B,K,Nt,"∗","*",!0),k(B,K,Nt,"+","+"),k(B,K,Nt,"−","-",!0),k(B,K,Nt,"⋅","\\cdot",!0),k(B,K,Nt,"∘","\\circ",!0),k(B,K,Nt,"÷","\\div",!0),k(B,K,Nt,"±","\\pm",!0),k(B,K,Nt,"×","\\times",!0),k(B,K,Nt,"∩","\\cap",!0),k(B,K,Nt,"∪","\\cup",!0),k(B,K,Nt,"∖","\\setminus",!0),k(B,K,Nt,"∧","\\land"),k(B,K,Nt,"∨","\\lor"),k(B,K,Nt,"∧","\\wedge",!0),k(B,K,Nt,"∨","\\vee",!0),k(B,K,Ce,"√","\\surd"),k(B,K,Ol,"⟨","\\langle",!0),k(B,K,Ol,"∣","\\lvert"),k(B,K,Ol,"∥","\\lVert"),k(B,K,So,"?","?"),k(B,K,So,"!","!"),k(B,K,So,"⟩","\\rangle",!0),k(B,K,So,"∣","\\rvert"),k(B,K,So,"∥","\\rVert"),k(B,K,me,"=","="),k(B,K,me,":",":"),k(B,K,me,"≈","\\approx",!0),k(B,K,me,"≅","\\cong",!0),k(B,K,me,"≥","\\ge"),k(B,K,me,"≥","\\geq",!0),k(B,K,me,"←","\\gets"),k(B,K,me,">","\\gt",!0),k(B,K,me,"∈","\\in",!0),k(B,K,me,"","\\@not"),k(B,K,me,"⊂","\\subset",!0),k(B,K,me,"⊃","\\supset",!0),k(B,K,me,"⊆","\\subseteq",!0),k(B,K,me,"⊇","\\supseteq",!0),k(B,de,me,"⊈","\\nsubseteq",!0),k(B,de,me,"⊉","\\nsupseteq",!0),k(B,K,me,"⊨","\\models"),k(B,K,me,"←","\\leftarrow",!0),k(B,K,me,"≤","\\le"),k(B,K,me,"≤","\\leq",!0),k(B,K,me,"<","\\lt",!0),k(B,K,me,"→","\\rightarrow",!0),k(B,K,me,"→","\\to"),k(B,de,me,"≱","\\ngeq",!0),k(B,de,me,"≰","\\nleq",!0),k(B,K,yf," ","\\ "),k(B,K,yf," ","\\space"),k(B,K,yf," ","\\nobreakspace"),k(st,K,yf," ","\\ "),k(st,K,yf," "," "),k(st,K,yf," ","\\space"),k(st,K,yf," ","\\nobreakspace"),k(B,K,yf,"","\\nobreak"),k(B,K,yf,"","\\allowbreak"),k(B,K,Wb,",",","),k(B,K,Wb,";",";"),k(B,de,Nt,"⊼","\\barwedge",!0),k(B,de,Nt,"⊻","\\veebar",!0),k(B,K,Nt,"⊙","\\odot",!0),k(B,K,Nt,"⊕","\\oplus",!0),k(B,K,Nt,"⊗","\\otimes",!0),k(B,K,Ce,"∂","\\partial",!0),k(B,K,Nt,"⊘","\\oslash",!0),k(B,de,Nt,"⊚","\\circledcirc",!0),k(B,de,Nt,"⊡","\\boxdot",!0),k(B,K,Nt,"△","\\bigtriangleup"),k(B,K,Nt,"▽","\\bigtriangledown"),k(B,K,Nt,"†","\\dagger"),k(B,K,Nt,"⋄","\\diamond"),k(B,K,Nt,"⋆","\\star"),k(B,K,Nt,"◃","\\triangleleft"),k(B,K,Nt,"▹","\\triangleright"),k(B,K,Ol,"{","\\{"),k(st,K,Ce,"{","\\{"),k(st,K,Ce,"{","\\textbraceleft"),k(B,K,So,"}","\\}"),k(st,K,Ce,"}","\\}"),k(st,K,Ce,"}","\\textbraceright"),k(B,K,Ol,"{","\\lbrace"),k(B,K,So,"}","\\rbrace"),k(B,K,Ol,"[","\\lbrack",!0),k(st,K,Ce,"[","\\lbrack",!0),k(B,K,So,"]","\\rbrack",!0),k(st,K,Ce,"]","\\rbrack",!0),k(B,K,Ol,"(","\\lparen",!0),k(B,K,So,")","\\rparen",!0),k(st,K,Ce,"<","\\textless",!0),k(st,K,Ce,">","\\textgreater",!0),k(B,K,Ol,"⌊","\\lfloor",!0),k(B,K,So,"⌋","\\rfloor",!0),k(B,K,Ol,"⌈","\\lceil",!0),k(B,K,So,"⌉","\\rceil",!0),k(B,K,Ce,"\\","\\backslash"),k(B,K,Ce,"∣","|"),k(B,K,Ce,"∣","\\vert"),k(st,K,Ce,"|","\\textbar",!0),k(B,K,Ce,"∥","\\|"),k(B,K,Ce,"∥","\\Vert"),k(st,K,Ce,"∥","\\textbardbl"),k(st,K,Ce,"~","\\textasciitilde"),k(st,K,Ce,"\\","\\textbackslash"),k(st,K,Ce,"^","\\textasciicircum"),k(B,K,me,"↑","\\uparrow",!0),k(B,K,me,"⇑","\\Uparrow",!0),k(B,K,me,"↓","\\downarrow",!0),k(B,K,me,"⇓","\\Downarrow",!0),k(B,K,me,"↕","\\updownarrow",!0),k(B,K,me,"⇕","\\Updownarrow",!0),k(B,K,ki,"∐","\\coprod"),k(B,K,ki,"⋁","\\bigvee"),k(B,K,ki,"⋀","\\bigwedge"),k(B,K,ki,"⨄","\\biguplus"),k(B,K,ki,"⋂","\\bigcap"),k(B,K,ki,"⋃","\\bigcup"),k(B,K,ki,"∫","\\int"),k(B,K,ki,"∫","\\intop"),k(B,K,ki,"∬","\\iint"),k(B,K,ki,"∭","\\iiint"),k(B,K,ki,"∏","\\prod"),k(B,K,ki,"∑","\\sum"),k(B,K,ki,"⨂","\\bigotimes"),k(B,K,ki,"⨁","\\bigoplus"),k(B,K,ki,"⨀","\\bigodot"),k(B,K,ki,"∮","\\oint"),k(B,K,ki,"∯","\\oiint"),k(B,K,ki,"∰","\\oiiint"),k(B,K,ki,"⨆","\\bigsqcup"),k(B,K,ki,"∫","\\smallint"),k(st,K,Fg,"…","\\textellipsis"),k(B,K,Fg,"…","\\mathellipsis"),k(st,K,Fg,"…","\\ldots",!0),k(B,K,Fg,"…","\\ldots",!0),k(B,K,Fg,"⋯","\\@cdots",!0),k(B,K,Fg,"⋱","\\ddots",!0),k(B,K,Ce,"⋮","\\varvdots"),k(st,K,Ce,"⋮","\\varvdots"),k(B,K,Xr,"ˊ","\\acute"),k(B,K,Xr,"ˋ","\\grave"),k(B,K,Xr,"¨","\\ddot"),k(B,K,Xr,"~","\\tilde"),k(B,K,Xr,"ˉ","\\bar"),k(B,K,Xr,"˘","\\breve"),k(B,K,Xr,"ˇ","\\check"),k(B,K,Xr,"^","\\hat"),k(B,K,Xr,"⃗","\\vec"),k(B,K,Xr,"˙","\\dot"),k(B,K,Xr,"˚","\\mathring"),k(B,K,en,"","\\@imath"),k(B,K,en,"","\\@jmath"),k(B,K,Ce,"ı","ı"),k(B,K,Ce,"ȷ","ȷ"),k(st,K,Ce,"ı","\\i",!0),k(st,K,Ce,"ȷ","\\j",!0),k(st,K,Ce,"ß","\\ss",!0),k(st,K,Ce,"æ","\\ae",!0),k(st,K,Ce,"œ","\\oe",!0),k(st,K,Ce,"ø","\\o",!0),k(st,K,Ce,"Æ","\\AE",!0),k(st,K,Ce,"Œ","\\OE",!0),k(st,K,Ce,"Ø","\\O",!0),k(st,K,Xr,"ˊ","\\'"),k(st,K,Xr,"ˋ","\\`"),k(st,K,Xr,"ˆ","\\^"),k(st,K,Xr,"˜","\\~"),k(st,K,Xr,"ˉ","\\="),k(st,K,Xr,"˘","\\u"),k(st,K,Xr,"˙","\\."),k(st,K,Xr,"¸","\\c"),k(st,K,Xr,"˚","\\r"),k(st,K,Xr,"ˇ","\\v"),k(st,K,Xr,"¨",'\\"'),k(st,K,Xr,"˝","\\H"),k(st,K,Xr,"◯","\\textcircled");var az={"--":!0,"---":!0,"``":!0,"''":!0};k(st,K,Ce,"–","--",!0),k(st,K,Ce,"–","\\textendash"),k(st,K,Ce,"—","---",!0),k(st,K,Ce,"—","\\textemdash"),k(st,K,Ce,"‘","`",!0),k(st,K,Ce,"‘","\\textquoteleft"),k(st,K,Ce,"’","'",!0),k(st,K,Ce,"’","\\textquoteright"),k(st,K,Ce,"“","``",!0),k(st,K,Ce,"“","\\textquotedblleft"),k(st,K,Ce,"”","''",!0),k(st,K,Ce,"”","\\textquotedblright"),k(B,K,Ce,"°","\\degree",!0),k(st,K,Ce,"°","\\degree"),k(st,K,Ce,"°","\\textdegree",!0),k(B,K,Ce,"£","\\pounds"),k(B,K,Ce,"£","\\mathsterling",!0),k(st,K,Ce,"£","\\pounds"),k(st,K,Ce,"£","\\textsterling",!0),k(B,de,Ce,"✠","\\maltese"),k(st,de,Ce,"✠","\\maltese");for(var oz='0123456789/@."',_8=0;_8<oz.length;_8++){var lz=oz.charAt(_8);k(B,K,Ce,lz,lz)}for(var sz='0123456789!@*()-=+";:?/.,',D8=0;D8<sz.length;D8++){var uz=sz.charAt(D8);k(st,K,Ce,uz,uz)}for(var E6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",N8=0;N8<E6.length;N8++){var w6=E6.charAt(N8);k(B,K,en,w6,w6),k(st,K,Ce,w6,w6)}k(B,de,Ce,"C","ℂ"),k(st,de,Ce,"C","ℂ"),k(B,de,Ce,"H","ℍ"),k(st,de,Ce,"H","ℍ"),k(B,de,Ce,"N","ℕ"),k(st,de,Ce,"N","ℕ"),k(B,de,Ce,"P","ℙ"),k(st,de,Ce,"P","ℙ"),k(B,de,Ce,"Q","ℚ"),k(st,de,Ce,"Q","ℚ"),k(B,de,Ce,"R","ℝ"),k(st,de,Ce,"R","ℝ"),k(B,de,Ce,"Z","ℤ"),k(st,de,Ce,"Z","ℤ"),k(B,K,en,"h","ℎ"),k(st,K,en,"h","ℎ");for(var sn,Eo=0;Eo<E6.length;Eo++){var gi=E6.charAt(Eo);sn=String.fromCharCode(55349,56320+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56372+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56424+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56580+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56684+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56736+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56788+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56840+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56944+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),Eo<26&&(sn=String.fromCharCode(55349,56632+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn),sn=String.fromCharCode(55349,56476+Eo),k(B,K,en,gi,sn),k(st,K,Ce,gi,sn))}sn="𝕜",k(B,K,en,"k",sn),k(st,K,Ce,"k",sn);for(var j0=0;j0<10;j0++){var Kd=j0.toString();sn=String.fromCharCode(55349,57294+j0),k(B,K,en,Kd,sn),k(st,K,Ce,Kd,sn),sn=String.fromCharCode(55349,57314+j0),k(B,K,en,Kd,sn),k(st,K,Ce,Kd,sn),sn=String.fromCharCode(55349,57324+j0),k(B,K,en,Kd,sn),k(st,K,Ce,Kd,sn),sn=String.fromCharCode(55349,57334+j0),k(B,K,en,Kd,sn),k(st,K,Ce,Kd,sn)}for(var k8="ÐÞþ",z8=0;z8<k8.length;z8++){var T6=k8.charAt(z8);k(B,K,en,T6,T6),k(st,K,Ce,T6,T6)}var I8={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},cz={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},fz={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},qse={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},$0={mathClass:"",textClass:"",font:""},dz={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},hz={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},pz={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},L8={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},V8={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},mz={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},B8={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},gz=[I8,I8,cz,cz,fz,fz,qse,$0,$0,$0,dz,dz,hz,hz,pz,pz,L8,L8,V8,V8,mz,mz,$0,$0,B8,B8],Gse=[I8,$0,L8,V8,B8],Fse=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return gz[a]}else if(120782<=r&&r<=120831){var l=Math.floor((r-120782)/10);return Gse[l]}else{if(r===120485||r===120486)return gz[0];if(120486<r&&r<120782)return $0;throw new gt("Unsupported character: "+e)}},A6=function(t,n,r){if(Yr[r][t]){var a=Yr[r][t].replace;a&&(t=a)}return{value:t,metrics:M8(t,n,r)}},wo=function(t,n,r,a,l){var u=A6(t,n,r),d=u.metrics;t=u.value;var h;if(d){var y=d.italic;(r==="text"||a&&a.font==="mathit")&&(y=0),h=new Cl(t,d.height,d.depth,y,d.skew,d.width,l)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),h=new Cl(t,0,0,0,0,0,l);if(a){h.maxFontSize=a.sizeMultiplier,a.style.isTight()&&h.classes.push("mtight");var v=a.getColor();v&&(h.style.color=v)}return h},P8=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&A6(t,"Main-Bold",n).metrics?wo(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||Yr[n][t].font==="main"?wo(t,"Main-Regular",n,r,a):wo(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},Yse=function(t,n,r){return r!=="textord"&&A6(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},C6=function(t,n,r){var a=t.mode,l=t.text,u=["mord"],{font:d,fontFamily:h,fontWeight:y,fontShape:v}=n,x=a==="math"||a==="text"&&!!d,T=x?d:h,E="",A="";if(l.charCodeAt(0)===55349){var R=Fse(l);E=R.font,A=R[a+"Class"]}if(E)return wo(l,E,a,n,u.concat(A));if(T){var _,D;if(T==="boldsymbol"){var z=Yse(l,a,r);_=z.fontName,D=[z.fontClass]}else x?(_=$8[d].fontName,D=[d]):(_=O6(h,y,v),D=[h,y,v]);if(A6(l,_,a).metrics)return wo(l,_,a,n,u.concat(D));if(az.hasOwnProperty(l)&&_.slice(0,10)==="Typewriter"){for(var V=[],P=0;P<l.length;P++)V.push(wo(l[P],_,a,n,u.concat(D)));return vf(V)}}if(r==="mathord")return wo(l,"Math-Italic",a,n,u.concat(["mathnormal"]));if(r==="textord"){var I=Yr[a][l]&&Yr[a][l].font;if(I==="ams"){var H=O6("amsrm",y,v);return wo(l,H,a,n,u.concat("amsrm",y,v))}else if(I==="main"||!I){var X=O6("textrm",y,v);return wo(l,X,a,n,u.concat(y,v))}else{var se=O6(I,y,v);return wo(l,se,a,n,u.concat(se,y,v))}}else throw new Error("unexpected type: "+r+" in makeOrd")},Xse=(e,t)=>{if(Xd(e.classes)!==Xd(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},yz=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Cl&&r instanceof Cl&&Xse(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},j8=function(t){for(var n=0,r=0,a=0,l=0;l<t.children.length;l++){var u=t.children[l];u.height>n&&(n=u.height),u.depth>r&&(r=u.depth),u.maxFontSize>a&&(a=u.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},ft=function(t,n,r,a){var l=new Gg(t,n,r,a);return j8(l),l},Qd=(e,t,n,r)=>new Gg(e,t,n,r),Yg=function(t,n,r){var a=ft([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=bt(a.height),a.maxFontSize=1,a},Wse=function(t,n,r,a){var l=new x6(t,n,r,a);return j8(l),l},vf=function(t){var n=new qg(t);return j8(n),n},Xg=function(t,n){return t instanceof qg?ft([],[t],n):t},Kse=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,l=a,u=1;u<n.length;u++){var d=-n[u].shift-l-n[u].elem.depth,h=d-(n[u-1].elem.height+n[u-1].elem.depth);l=l+d,r.push({type:"kern",size:h}),r.push(n[u])}return{children:r,depth:a}}var y;if(t.positionType==="top"){for(var v=t.positionData,x=0;x<t.children.length;x++){var T=t.children[x];v-=T.type==="kern"?T.size:T.elem.height+T.elem.depth}y=v}else if(t.positionType==="bottom")y=-t.positionData;else{var E=t.children[0];if(E.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")y=-E.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")y=-E.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:y}},nr=function(t,n){for(var{children:r,depth:a}=Kse(t),l=0,u=0;u<r.length;u++){var d=r[u];if(d.type==="elem"){var h=d.elem;l=Math.max(l,h.maxFontSize,h.height)}}l+=2;var y=ft(["pstrut"],[]);y.style.height=bt(l);for(var v=[],x=a,T=a,E=a,A=0;A<r.length;A++){var R=r[A];if(R.type==="kern")E+=R.size;else{var _=R.elem,D=R.wrapperClasses||[],z=R.wrapperStyle||{},V=ft(D,[y,_],void 0,z);V.style.top=bt(-l-E-_.depth),R.marginLeft&&(V.style.marginLeft=R.marginLeft),R.marginRight&&(V.style.marginRight=R.marginRight),v.push(V),E+=_.height+_.depth}x=Math.min(x,E),T=Math.max(T,E)}var P=ft(["vlist"],v);P.style.height=bt(T);var I;if(x<0){var H=ft([],[]),X=ft(["vlist"],[H]);X.style.height=bt(-x);var se=ft(["vlist-s"],[new Cl("​")]);I=[ft(["vlist-r"],[P,se]),ft(["vlist-r"],[X])]}else I=[ft(["vlist-r"],[P])];var ce=ft(["vlist-t"],I);return I.length===2&&ce.classes.push("vlist-t2"),ce.height=T,ce.depth=-x,ce},vz=(e,t)=>{var n=ft(["mspace"],[],t),r=oi(e,t);return n.style.marginRight=bt(r),n},O6=(e,t,n)=>{var r,a;switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return t==="textbf"&&n==="textit"?a="BoldItalic":t==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",r+"-"+a},$8={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},bz={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},xz=function(t,n){var[r,a,l]=bz[t],u=new Wd(r),d=new gf([u],{width:bt(a),height:bt(l),style:"width:"+bt(a),viewBox:"0 0 "+1e3*a+" "+1e3*l,preserveAspectRatio:"xMinYMin"}),h=Qd(["overlay"],[d],n);return h.height=l,h.style.height=bt(l),h.style.width=bt(a),h},li={number:3,unit:"mu"},U0={number:4,unit:"mu"},bf={number:5,unit:"mu"},Qse={mord:{mop:li,mbin:U0,mrel:bf,minner:li},mop:{mord:li,mop:li,mrel:bf,minner:li},mbin:{mord:U0,mop:U0,mopen:U0,minner:U0},mrel:{mord:bf,mop:bf,mopen:bf,minner:bf},mopen:{},mclose:{mop:li,mbin:U0,mrel:bf,minner:li},mpunct:{mord:li,mop:li,mrel:bf,mopen:li,mclose:li,mpunct:li,minner:li},minner:{mord:li,mop:li,mbin:U0,mrel:bf,mopen:li,mpunct:li,minner:li}},Zse={mord:{mop:li},mop:{mord:li,mop:li},mbin:{},mrel:{},mopen:{},mclose:{mop:li},mpunct:{},minner:{mop:li}},Sz={},M6={},R6={};function Rt(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:u}=e,d={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},h=0;h<n.length;++h)Sz[n[h]]=d;t&&(l&&(M6[t]=l),u&&(R6[t]=u))}function H0(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Rt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var _6=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zi=function(t){return t.type==="ordgroup"?t.body:[t]},Jse=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),eue=new Set(["rightmost","mrel","mclose","mpunct"]),tue={display:hn.DISPLAY,text:hn.TEXT,script:hn.SCRIPT,scriptscript:hn.SCRIPTSCRIPT},nue={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Yi=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var l=[],u=0;u<t.length;u++){var d=rr(t[u],n);if(d instanceof qg){var h=d.children;l.push(...h)}else l.push(d)}if(yz(l),!r)return l;var y=n;if(t.length===1){var v=t[0];v.type==="sizing"?y=n.havingSize(v.size):v.type==="styling"&&(y=n.havingStyle(tue[v.style]))}var x=ft([a[0]||"leftmost"],[],n),T=ft([a[1]||"rightmost"],[],n),E=r==="root";return U8(l,(A,R)=>{var _=R.classes[0],D=A.classes[0];_==="mbin"&&eue.has(D)?R.classes[0]="mord":D==="mbin"&&Jse.has(_)&&(A.classes[0]="mord")},{node:x},T,E),U8(l,(A,R)=>{var _,D,z=q8(R),V=q8(A),P=z&&V?A.hasClass("mtight")?(_=Zse[z])==null?void 0:_[V]:(D=Qse[z])==null?void 0:D[V]:null;if(P)return vz(P,y)},{node:x},T,E),l},U8=function(t,n,r,a,l){a&&t.push(a);for(var u=0;u<t.length;u++){var d=t[u],h=Ez(d);if(h){U8(h.children,n,r,null,l);continue}var y=!d.hasClass("mspace");if(y){var v=n(d,r.node);v&&(r.insertAfter?r.insertAfter(v):(t.unshift(v),u++))}y?r.node=d:l&&d.hasClass("newline")&&(r.node=ft(["leftmost"])),r.insertAfter=(x=>T=>{t.splice(x+1,0,T),u++})(u)}a&&t.pop()},Ez=function(t){return t instanceof qg||t instanceof x6||t instanceof Gg&&t.hasClass("enclosing")?t:null},H8=function(t,n){var r=Ez(t);if(r){var a=r.children;if(a.length){if(n==="right")return H8(a[a.length-1],"right");if(n==="left")return H8(a[0],"left")}}return t},q8=function(t,n){if(!t)return null;n&&(t=H8(t,n));var r=t.classes[0];return nue[r]||null},Kb=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return ft(n.concat(r))},rr=function(t,n,r){if(!t)return ft();if(M6[t.type]){var a=M6[t.type](t,n);if(r&&n.size!==r.size){a=ft(n.sizingClasses(r),[a],n);var l=n.sizeMultiplier/r.sizeMultiplier;a.height*=l,a.depth*=l}return a}else throw new gt("Got group of unknown type: '"+t.type+"'")};function D6(e,t){var n=ft(["base"],e,t),r=ft(["strut"]);return r.style.height=bt(n.height+n.depth),n.depth&&(r.style.verticalAlign=bt(-n.depth)),n.children.unshift(r),n}function G8(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Yi(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var l=[],u=[],d=0;d<r.length;d++)if(u.push(r[d]),r[d].hasClass("mbin")||r[d].hasClass("mrel")||r[d].hasClass("allowbreak")){for(var h=!1;d<r.length-1&&r[d+1].hasClass("mspace")&&!r[d+1].hasClass("newline");)d++,u.push(r[d]),r[d].hasClass("nobreak")&&(h=!0);h||(l.push(D6(u,t)),u=[])}else r[d].hasClass("newline")&&(u.pop(),u.length>0&&(l.push(D6(u,t)),u=[]),l.push(r[d]));u.length>0&&l.push(D6(u,t));var y;n?(y=D6(Yi(n,t,!0),t),y.classes=["tag"],l.push(y)):a&&l.push(a);var v=ft(["katex-html"],l);if(v.setAttribute("aria-hidden","true"),y){var x=y.children[0];x.style.height=bt(v.height+v.depth),v.depth&&(x.style.verticalAlign=bt(-v.depth))}return v}function wz(e){return new qg(e)}class yt{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Xd(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Ii&&this.children[r+1]instanceof Ii){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Ii;)a+=this.children[++r].toText();t.appendChild(new Ii(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Xa(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Xa(Xd(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Ii{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Xa(this.toText())}toText(){return this.text}}class Tz{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",bt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+bt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var rue=new Set(["\\imath","\\jmath"]),iue=new Set(["mrow","mtable"]),ls=function(t,n,r){return Yr[n][t]&&Yr[n][t].replace&&t.charCodeAt(0)!==55349&&!(az.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Yr[n][t].replace),new Ii(t)},F8=function(t){return t.length===1?t[0]:new yt("mrow",t)},aue={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},Y8=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var r=e.mode,a=aue[n];if(a)return typeof a=="function"?a(e):a;var l=e.text;if(rue.has(l))return null;if(Yr[r][l]){var u=Yr[r][l].replace;u&&(l=u)}var d=$8[n].fontName;return M8(l,d,r)?$8[n].variant:null};function X8(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ii&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Ii&&n.text===","}else return!1}var Ml=function(t,n,r){if(t.length===1){var a=Rr(t[0],n);return r&&a instanceof yt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var l=[],u,d=0;d<t.length;d++){var h=Rr(t[d],n);if(h instanceof yt&&u instanceof yt){if(h.type==="mtext"&&u.type==="mtext"&&h.getAttribute("mathvariant")===u.getAttribute("mathvariant")){u.children.push(...h.children);continue}else if(h.type==="mn"&&u.type==="mn"){u.children.push(...h.children);continue}else if(X8(h)&&u.type==="mn"){u.children.push(...h.children);continue}else if(h.type==="mn"&&X8(u))h.children=[...u.children,...h.children],l.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(u.type==="mn"||X8(u))){var y=h.children[0];y instanceof yt&&y.type==="mn"&&(y.children=[...u.children,...y.children],l.pop())}else if(u.type==="mi"&&u.children.length===1){var v=u.children[0];if(v instanceof Ii&&v.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var x=h.children[0];x instanceof Ii&&x.text.length>0&&(x.text=x.text.slice(0,1)+"̸"+x.text.slice(1),l.pop())}}}l.push(h),u=h}return l},Zd=function(t,n,r){return F8(Ml(t,n,r))},Rr=function(t,n){if(!t)return new yt("mrow");if(R6[t.type])return R6[t.type](t,n);throw new gt("Got group of unknown type: '"+t.type+"'")};function Az(e,t,n,r,a){var l=Ml(e,n),u;l.length===1&&l[0]instanceof yt&&iue.has(l[0].type)?u=l[0]:u=new yt("mrow",l);var d=new yt("annotation",[new Ii(t)]);d.setAttribute("encoding","application/x-tex");var h=new yt("semantics",[u,d]),y=new yt("math",[h]);y.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&y.setAttribute("display","block");var v=a?"katex":"katex-mathml";return ft([v],[y])}var oue=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Cz=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Oz=function(t,n){return n.size<2?t:oue[t-1][n.size-1]};class xf{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||xf.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Cz[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new xf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Oz(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Cz[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Oz(xf.BASESIZE,t);return this.size===n&&this.textSize===xf.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==xf.BASESIZE?["sizing","reset-size"+this.size,"size"+xf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Hse(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}xf.BASESIZE=6;var Mz=function(t){return new xf({style:t.displayMode?hn.DISPLAY:hn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Rz=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=ft(r,[t])}return t},lue=function(t,n,r){var a=Mz(r),l;if(r.output==="mathml")return Az(t,n,a,r.displayMode,!0);if(r.output==="html"){var u=G8(t,a);l=ft(["katex"],[u])}else{var d=Az(t,n,a,r.displayMode,!1),h=G8(t,a);l=ft(["katex"],[d,h])}return Rz(l,r)},sue=function(t,n,r){var a=Mz(r),l=G8(t,a),u=ft(["katex"],[l]);return Rz(u,r)},uue={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},N6=function(t){var n=new yt("mo",[new Ii(uue[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},cue={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fue=new Set(["widehat","widecheck","widetilde","utilde"]),k6=function(t,n){function r(){var d=4e5,h=t.label.slice(1);if(fue.has(h)&&"base"in t){var y=t.base.type==="ordgroup"?t.base.body.length:1,v,x,T;if(y>5)h==="widehat"||h==="widecheck"?(v=420,d=2364,T=.42,x=h+"4"):(v=312,d=2340,T=.34,x="tilde4");else{var E=[1,1,2,2,3,3][y];h==="widehat"||h==="widecheck"?(d=[0,1062,2364,2364,2364][E],v=[0,239,300,360,420][E],T=[0,.24,.3,.3,.36,.42][E],x=h+E):(d=[0,600,1033,2339,2340][E],v=[0,260,286,306,312][E],T=[0,.26,.286,.3,.306,.34][E],x="tilde"+E)}var A=new Wd(x),R=new gf([A],{width:"100%",height:bt(T),viewBox:"0 0 "+d+" "+v,preserveAspectRatio:"none"});return{span:Qd([],[R],n),minWidth:0,height:T}}else{var _=[],D=cue[h];if(!D)throw new Error('No SVG data for "'+h+'".');var[z,V,P]=D,I=P/1e3,H=z.length,X,se;if(H===1){if(D.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');X=["hide-tail"],se=[D[3]]}else if(H===2)X=["halfarrow-left","halfarrow-right"],se=["xMinYMin","xMaxYMin"];else if(H===3)X=["brace-left","brace-center","brace-right"],se=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+H+" children.");for(var ce=0;ce<H;ce++){var ie=new Wd(z[ce]),ue=new gf([ie],{width:"400em",height:bt(I),viewBox:"0 0 "+d+" "+P,preserveAspectRatio:se[ce]+" slice"}),U=Qd([X[ce]],[ue],n);if(H===1)return{span:U,minWidth:V,height:I};U.style.height=bt(I),_.push(U)}return{span:ft(["stretchy"],_,n),minWidth:V,height:I}}}var{span:a,minWidth:l,height:u}=r();return a.height=u,a.style.height=bt(u),l>0&&(a.style.minWidth=bt(l)),a},due=function(t,n,r,a,l){var u,d=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(u=ft(["stretchy",n],[],l),n==="fbox"){var h=l.color&&l.getColor();h&&(u.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new O8({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new O8({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new gf(y,{width:"100%",height:bt(d)});u=Qd([],[v],l)}return u.height=d,u.style.height=bt(d),u},hue={bin:1,close:1,inner:1,open:1,punct:1,rel:1},pue={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function mue(e){return e in hue}function An(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function z6(e){var t=I6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function I6(e){return e&&(e.type==="atom"||pue.hasOwnProperty(e.type))?e:null}var _z=e=>{if(e instanceof Cl)return e;if($se(e)&&e.children.length===1)return _z(e.children[0])},W8=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=An(e.base,"accent"),n=r.base,e.base=n,a=jse(rr(e,t)),e.base=r):(r=An(e,"accent"),n=r.base);var l=rr(n,t.havingCrampedStyle()),u=r.isShifty&&pf(n),d=0;if(u){var h,y;d=(h=(y=_z(l))==null?void 0:y.skew)!=null?h:0}var v=r.label==="\\c",x=v?l.height+l.depth:Math.min(l.height,t.fontMetrics().xHeight),T;if(r.isStretchy)T=k6(r,t),T=nr({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+bt(2*d)+")",marginLeft:bt(2*d)}:void 0}]});else{var E,A;r.label==="\\vec"?(E=xz("vec",t),A=bz.vec[1]):(E=C6({mode:r.mode,text:r.label},t,"textord"),E=Pse(E),E.italic=0,A=E.width,v&&(x+=E.depth)),T=ft(["accent-body"],[E]);var R=r.label==="\\textcircled";R&&(T.classes.push("accent-full"),x=l.height);var _=d;R||(_-=A/2),T.style.left=bt(_),r.label==="\\textcircled"&&(T.style.top=".2em"),T=nr({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-x},{type:"elem",elem:T}]})}var D=ft(["mord","accent"],[T],t);return a?(a.children[0]=D,a.height=Math.max(D.height,a.height),a.classes[0]="mord",a):D},Dz=(e,t)=>{var n=e.isStretchy?N6(e.label):new yt("mo",[ls(e.label,e.mode)]),r=new yt("mover",[Rr(e.base,t),n]);return r.setAttribute("accent","true"),r},gue=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Rt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=_6(t[0]),r=!gue.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:W8,mathmlBuilder:Dz}),Rt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:W8,mathmlBuilder:Dz}),Rt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=rr(e.base,t),r=k6(e,t),a=e.label==="\\utilde"?.12:0,l=nr({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return ft(["mord","accentunder"],[l],t)},mathmlBuilder:(e,t)=>{var n=N6(e.label),r=new yt("munder",[Rr(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var L6=e=>{var t=new yt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Rt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=Xg(rr(e.body,r,t),t),l=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(l+"-arrow-pad");var u;e.below&&(r=t.havingStyle(n.sub()),u=Xg(rr(e.below,r,t),t),u.classes.push(l+"-arrow-pad"));var d=k6(e,t),h=-t.fontMetrics().axisHeight+.5*d.height,y=-t.fontMetrics().axisHeight-.5*d.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(y-=a.depth);var v;if(u){var x=-t.fontMetrics().axisHeight+u.height+.5*d.height+.111;v=nr({positionType:"individualShift",children:[{type:"elem",elem:a,shift:y},{type:"elem",elem:d,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:u,shift:x}]})}else v=nr({positionType:"individualShift",children:[{type:"elem",elem:a,shift:y},{type:"elem",elem:d,shift:h,wrapperClasses:["svg-align"]}]});return ft(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var n=N6(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=L6(Rr(e.body,t));if(e.below){var l=L6(Rr(e.below,t));r=new yt("munderover",[n,l,a])}else r=new yt("mover",[n,a])}else if(e.below){var u=L6(Rr(e.below,t));r=new yt("munder",[n,u])}else r=L6(),r=new yt("mover",[n,r]);return r}});function Nz(e,t){var n=Yi(e.body,t,!0);return ft([e.mclass],n,t)}function kz(e,t){var n,r=Ml(e.body,t);return e.mclass==="minner"?n=new yt("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new yt("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new yt("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Rt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:zi(a),isCharacterBox:pf(a)}},htmlBuilder:Nz,mathmlBuilder:kz});var V6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Rt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:V6(t[0]),body:zi(t[1]),isCharacterBox:pf(t[1])}}}),Rt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],l=t[0],u;r!=="\\stackrel"?u=V6(a):u="mrel";var d={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:zi(a)},h={type:"supsub",mode:l.mode,base:d,sup:r==="\\underset"?null:l,sub:r==="\\underset"?l:null};return{type:"mclass",mode:n.mode,mclass:u,body:[h],isCharacterBox:pf(h)}},htmlBuilder:Nz,mathmlBuilder:kz}),Rt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:V6(t[0]),body:zi(t[0])}},htmlBuilder(e,t){var n=Yi(e.body,t,!0),r=ft([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ml(e.body,t),r=new yt("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var yue={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zz=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Iz=e=>e.type==="textord"&&e.text==="@",vue=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function bue(e,t,n){var r=yue[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),l={type:"atom",text:r,mode:"math",family:"rel"},u=n.callFunction("\\Big",[l],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[a,u,d]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var y={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[y],[])}default:return{type:"textord",text:" ",mode:"math"}}}function xue(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new gt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],l=0;l<t.length;l++){for(var u=t[l],d=zz(),h=0;h<u.length;h++)if(!Iz(u[h]))d.body.push(u[h]);else{r.push(d),h+=1;var y=z6(u[h]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(y))if("<>AV".includes(y))for(var x=0;x<2;x++){for(var T=!0,E=h+1;E<u.length;E++){if(vue(u[E],y)){T=!1,h=E;break}if(Iz(u[E]))throw new gt("Missing a "+y+" character to complete a CD arrow.",u[E]);v[x].body.push(u[E])}if(T)throw new gt("Missing a "+y+" character to complete a CD arrow.",u[h])}else throw new gt('Expected one of "<>AV=|." after @',u[h]);var A=bue(y,v,e),R={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};r.push(R),d=zz()}l%2===0?r.push(d):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Rt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Xg(rr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=bt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new yt("mrow",[Rr(e.label,t)]);return n=new yt("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new yt("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Rt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Xg(rr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new yt("mrow",[Rr(e.fragment,t)])}}),Rt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=An(t[0],"ordgroup"),a=r.body,l="",u=0;u<a.length;u++){var d=An(a[u],"textord");l+=d.text}var h=parseInt(l),y;if(isNaN(h))throw new gt("\\@char has non-numeric argument "+l);if(h<0||h>=1114111)throw new gt("\\@char with invalid code point "+l);return h<=65535?y=String.fromCharCode(h):(h-=65536,y=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:y}}});var Lz=(e,t)=>{var n=Yi(e.body,t.withColor(e.color),!1);return vf(n)},Vz=(e,t)=>{var n=Ml(e.body,t.withColor(e.color)),r=new yt("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Rt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=An(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:zi(a)}},htmlBuilder:Lz,mathmlBuilder:Vz}),Rt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=An(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var l=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:l}},htmlBuilder:Lz,mathmlBuilder:Vz}),Rt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,l=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:l,size:a&&An(a,"size").value}},htmlBuilder(e,t){var n=ft(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=bt(oi(e.size,t)))),n},mathmlBuilder(e,t){var n=new yt("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",bt(oi(e.size,t)))),n}});var K8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bz=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new gt("Expected a control sequence",e);return t},Sue=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Pz=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Rt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(K8[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=K8[r.text]),An(t.parseFunction(),"internal");throw new gt("Invalid token after macro prefix",r)}}),Rt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new gt("Expected a control sequence",r);for(var l=0,u,d=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),d[l].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new gt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==l+1)throw new gt('Argument number "'+r.text+'" out of order');l++,d.push([])}else{if(r.text==="EOF")throw new gt("Expected a macro definition");d[l].push(r.text)}var{tokens:h}=t.gullet.consumeArg();return u&&h.unshift(u),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(a,{tokens:h,numArgs:l,delimiters:d},n===K8[n]),{type:"internal",mode:t.mode}}}),Rt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bz(t.gullet.popToken());t.gullet.consumeSpaces();var a=Sue(t);return Pz(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Rt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bz(t.gullet.popToken()),a=t.gullet.popToken(),l=t.gullet.popToken();return Pz(t,r,l,n==="\\\\globalfuture"),t.gullet.pushToken(l),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Qb=function(t,n,r){var a=Yr.math[t]&&Yr.math[t].replace,l=M8(a||t,n,r);if(!l)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return l},Q8=function(t,n,r,a){var l=r.havingBaseStyle(n),u=ft(a.concat(l.sizingClasses(r)),[t],r),d=l.sizeMultiplier/r.sizeMultiplier;return u.height*=d,u.depth*=d,u.maxFontSize=l.sizeMultiplier,u},jz=function(t,n,r){var a=n.havingBaseStyle(r),l=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=bt(l),t.height-=l,t.depth+=l},Eue=function(t,n,r,a,l,u){var d=wo(t,"Main-Regular",l,a),h=Q8(d,n,a,u);return jz(h,a,n),h},wue=function(t,n,r,a){return wo(t,"Size"+n+"-Regular",r,a)},$z=function(t,n,r,a,l,u){var d=wue(t,n,l,a),h=Q8(ft(["delimsizing","size"+n],[d],a),hn.TEXT,a,u);return r&&jz(h,a,hn.TEXT),h},Z8=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var l=ft(["delimsizinginner",a],[ft([],[wo(t,n,r)])]);return{type:"elem",elem:l}},J8=function(t,n,r){var a=dc["Size4-Regular"][t.charCodeAt(0)]?dc["Size4-Regular"][t.charCodeAt(0)][4]:dc["Size1-Regular"][t.charCodeAt(0)][4],l=new Wd("inner",Nse(t,Math.round(1e3*n))),u=new gf([l],{width:bt(a),height:bt(n),style:"width:"+bt(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Qd([],[u],r);return d.height=n,d.style.height=bt(n),d.style.width=bt(a),{type:"elem",elem:d}},eA=.008,B6={type:"kern",size:-1*eA},Tue=new Set(["|","\\lvert","\\rvert","\\vert"]),Aue=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Uz=function(t,n,r,a,l,u){var d,h,y,v,x="",T=0;d=y=v=t,h=null;var E="Size1-Regular";t==="\\uparrow"?y=v="⏐":t==="\\Uparrow"?y=v="‖":t==="\\downarrow"?d=y="⏐":t==="\\Downarrow"?d=y="‖":t==="\\updownarrow"?(d="\\uparrow",y="⏐",v="\\downarrow"):t==="\\Updownarrow"?(d="\\Uparrow",y="‖",v="\\Downarrow"):Tue.has(t)?(y="∣",x="vert",T=333):Aue.has(t)?(y="∥",x="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",v="⎣",E="Size4-Regular",x="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",v="⎦",E="Size4-Regular",x="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",v="⎣",E="Size4-Regular",x="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=v="⎢",E="Size4-Regular",x="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",v="⎦",E="Size4-Regular",x="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=v="⎥",E="Size4-Regular",x="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",v="⎝",E="Size4-Regular",x="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",v="⎠",E="Size4-Regular",x="rparen",T=875):t==="\\{"||t==="\\lbrace"?(d="⎧",h="⎨",v="⎩",y="⎪",E="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(d="⎫",h="⎬",v="⎭",y="⎪",E="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(d="⎧",v="⎩",y="⎪",E="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(d="⎫",v="⎭",y="⎪",E="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(d="⎧",v="⎭",y="⎪",E="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(d="⎫",v="⎩",y="⎪",E="Size4-Regular");var A=Qb(d,E,l),R=A.height+A.depth,_=Qb(y,E,l),D=_.height+_.depth,z=Qb(v,E,l),V=z.height+z.depth,P=0,I=1;if(h!==null){var H=Qb(h,E,l);P=H.height+H.depth,I=2}var X=R+V+P,se=Math.max(0,Math.ceil((n-X)/(I*D))),ce=X+se*I*D,ie=a.fontMetrics().axisHeight;r&&(ie*=a.sizeMultiplier);var ue=ce/2-ie,U=[];if(x.length>0){var le=ce-R-V,Q=Math.round(ce*1e3),ee=kse(x,Math.round(le*1e3)),W=new Wd(x,ee),oe=bt(T/1e3),he=bt(Q/1e3),be=new gf([W],{width:oe,height:he,viewBox:"0 0 "+T+" "+Q}),re=Qd([],[be],a);re.height=Q/1e3,re.style.width=oe,re.style.height=he,U.push({type:"elem",elem:re})}else{if(U.push(Z8(v,E,l)),U.push(B6),h===null){var F=ce-R-V+2*eA;U.push(J8(y,F,a))}else{var te=(ce-R-V-P)/2+2*eA;U.push(J8(y,te,a)),U.push(B6),U.push(Z8(h,E,l)),U.push(B6),U.push(J8(y,te,a))}U.push(B6),U.push(Z8(d,E,l))}var Y=a.havingBaseStyle(hn.TEXT),Me=nr({positionType:"bottom",positionData:ue,children:U});return Q8(ft(["delimsizing","mult"],[Me],Y),hn.TEXT,a,u)},tA=80,nA=.08,rA=function(t,n,r,a,l){var u=Dse(t,a,r),d=new Wd(t,u),h=new gf([d],{width:"400em",height:bt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qd(["hide-tail"],[h],l)},Cue=function(t,n){var r=n.havingBaseSizing(),a=Yz("\\surd",t*r.sizeMultiplier,Fz,r),l=r.sizeMultiplier,u=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h,y,v,x;return a.type==="small"?(v=1e3+1e3*u+tA,t<1?l=1:t<1.4&&(l=.7),h=(1+u+nA)/l,y=(1+u)/l,d=rA("sqrtMain",h,v,u,n),d.style.minWidth="0.853em",x=.833/l):a.type==="large"?(v=(1e3+tA)*Zb[a.size],y=(Zb[a.size]+u)/l,h=(Zb[a.size]+u+nA)/l,d=rA("sqrtSize"+a.size,h,v,u,n),d.style.minWidth="1.02em",x=1/l):(h=t+u+nA,y=t+u,v=Math.floor(1e3*t+u)+tA,d=rA("sqrtTall",h,v,u,n),d.style.minWidth="0.742em",x=1.056),d.height=y,d.style.height=bt(h),{span:d,advanceWidth:x,ruleWidth:(n.fontMetrics().sqrtRuleThickness+u)*l}},Hz=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Oue=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),qz=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Zb=[0,1.2,1.8,2.4,3],Gz=function(t,n,r,a,l){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Hz.has(t)||qz.has(t))return $z(t,n,!1,r,a,l);if(Oue.has(t))return Uz(t,Zb[n],!1,r,a,l);throw new gt("Illegal delimiter: '"+t+"'")},Mue=[{type:"small",style:hn.SCRIPTSCRIPT},{type:"small",style:hn.SCRIPT},{type:"small",style:hn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Rue=[{type:"small",style:hn.SCRIPTSCRIPT},{type:"small",style:hn.SCRIPT},{type:"small",style:hn.TEXT},{type:"stack"}],Fz=[{type:"small",style:hn.SCRIPTSCRIPT},{type:"small",style:hn.SCRIPT},{type:"small",style:hn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],_ue=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},Yz=function(t,n,r,a){for(var l=Math.min(2,3-a.style.size),u=l;u<r.length;u++){var d=r[u];if(d.type==="stack")break;var h=Qb(t,_ue(d),"math"),y=h.height+h.depth;if(d.type==="small"){var v=a.havingBaseStyle(d.style);y*=v.sizeMultiplier}if(y>n)return d}return r[r.length-1]},iA=function(t,n,r,a,l,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;qz.has(t)?d=Mue:Hz.has(t)?d=Fz:d=Rue;var h=Yz(t,n,d,a);return h.type==="small"?Eue(t,h.style,r,a,l,u):h.type==="large"?$z(t,h.size,r,a,l,u):Uz(t,n,r,a,l,u)},aA=function(t,n,r,a,l,u){var d=a.fontMetrics().axisHeight*a.sizeMultiplier,h=901,y=5/a.fontMetrics().ptPerEm,v=Math.max(n-d,r+d),x=Math.max(v/500*h,2*v-y);return iA(t,x,!0,a,l,u)},Xz={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Due=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Wz(e){return"isMiddle"in e}function P6(e,t){var n=I6(e);if(n&&Due.has(n.text))return n;throw n?new gt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new gt("Invalid delimiter type '"+e.type+"'",e)}Rt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=P6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Xz[e.funcName].size,mclass:Xz[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ft([e.mclass]):Gz(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ls(e.delim,e.mode));var n=new yt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=bt(Zb[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Kz(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Rt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new gt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:P6(t[0],e).text,color:n}}}),Rt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=P6(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var l=An(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,t)=>{Kz(e);for(var n=Yi(e.body,t,!0,["mopen","mclose"]),r=0,a=0,l=!1,u=0;u<n.length;u++){var d=n[u];Wz(d)?l=!0:(r=Math.max(n[u].height,r),a=Math.max(n[u].depth,a))}r*=t.sizeMultiplier,a*=t.sizeMultiplier;var h;if(e.left==="."?h=Kb(t,["mopen"]):h=aA(e.left,r,a,t,e.mode,["mopen"]),n.unshift(h),l)for(var y=1;y<n.length;y++){var v=n[y];if(Wz(v)){var x=v.isMiddle;n[y]=aA(x.delim,r,a,x.options,e.mode,[])}}var T;if(e.right===".")T=Kb(t,["mclose"]);else{var E=e.rightColor?t.withColor(e.rightColor):t;T=aA(e.right,r,a,E,e.mode,["mclose"])}return n.push(T),ft(["minner"],n,t)},mathmlBuilder:(e,t)=>{Kz(e);var n=Ml(e.body,t);if(e.left!=="."){var r=new yt("mo",[ls(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new yt("mo",[ls(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return F8(n)}}),Rt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=P6(t[0],e);if(!e.parser.leftrightDepth)throw new gt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=Kb(t,[]):(n=Gz(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?ls("|","text"):ls(e.delim,e.mode),r=new yt("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var j6=(e,t)=>{var n=Xg(rr(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,l,u,d=pf(e.body);if(r==="sout")l=ft(["stretchy","sout"]),l.height=t.fontMetrics().defaultRuleThickness/a,u=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var h=oi({number:.6,unit:"pt"},t),y=oi({number:.35,unit:"ex"},t),v=t.havingBaseSizing();a=a/v.sizeMultiplier;var x=n.height+n.depth+h+y;n.style.paddingLeft=bt(x/2+h);var T=Math.floor(1e3*x*a),E=Rse(T),A=new gf([new Wd("phase",E)],{width:"400em",height:bt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});l=Qd(["hide-tail"],[A],t),l.style.height=bt(x),u=n.depth+h+y}else{/cancel/.test(r)?d||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var R,_,D=0;/box/.test(r)?(D=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(r==="colorbox"?0:D),_=R):r==="angl"?(D=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*D,_=Math.max(0,.25-n.depth)):(R=d?.2:0,_=R),l=due(n,r,R,_,t),/fbox|boxed|fcolorbox/.test(r)?(l.style.borderStyle="solid",l.style.borderWidth=bt(D)):r==="angl"&&D!==.049&&(l.style.borderTopWidth=bt(D),l.style.borderRightWidth=bt(D)),u=n.depth+_,e.backgroundColor&&(l.style.backgroundColor=e.backgroundColor,e.borderColor&&(l.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=nr({positionType:"individualShift",children:[{type:"elem",elem:l,shift:u},{type:"elem",elem:n,shift:0}]});else{var V=/cancel|phase/.test(r)?["svg-align"]:[];z=nr({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:l,shift:u,wrapperClasses:V}]})}return/cancel/.test(r)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(r)&&!d?ft(["mord","cancel-lap"],[z],t):ft(["mord"],[z],t)},$6=(e,t)=>{var n,r=new yt(e.label.includes("colorbox")?"mpadded":"menclose",[Rr(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+bt(a)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Rt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=An(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,body:u}},htmlBuilder:j6,mathmlBuilder:$6}),Rt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:r,funcName:a}=e,l=An(t[0],"color-token").color,u=An(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:u,borderColor:l,body:d}},htmlBuilder:j6,mathmlBuilder:$6}),Rt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Rt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:j6,mathmlBuilder:$6}),Rt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:j6,mathmlBuilder:$6}),Rt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Qz={};function hc(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:l,mathmlBuilder:u}=e,d={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},h=0;h<n.length;++h)Qz[n[h]]=d;l&&(M6[t]=l),u&&(R6[t]=u)}var Zz={};function ae(e,t){Zz[e]=t}class Wo{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Wo(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Rl{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Rl(n,Wo.range(this,t))}}function Jz(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var U6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new gt("{"+e.envName+"} can be used only in display mode.")},Nue=new Set(["gather","gather*"]);function oA(e){if(!e.includes("ed"))return!e.includes("*")}function Jd(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:l,arraystretch:u,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:v,maxNumCols:x,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var E=e.gullet.expandMacroAsText("\\arraystretch");if(E==null)u=1;else if(u=parseFloat(E),!u||u<0)throw new gt("Invalid \\arraystretch: "+E)}e.gullet.beginGroup();var A=[],R=[A],_=[],D=[],z=h!=null?[]:void 0;function V(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function P(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Rl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(V(),D.push(Jz(e));;){var I=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var H={type:"ordgroup",mode:e.mode,body:I};n&&(H={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[H]}),A.push(H);var X=e.fetch().text;if(X==="&"){if(x&&A.length===x){if(y||d)throw new gt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(X==="\\end"){P(),A.length===1&&H.type==="styling"&&H.body.length===1&&H.body[0].type==="ordgroup"&&H.body[0].body.length===0&&(R.length>1||!v)&&R.pop(),D.length<R.length+1&&D.push([]);break}else if(X==="\\\\"){e.consume();var se=void 0;e.gullet.future().text!==" "&&(se=e.parseSizeGroup(!0)),_.push(se?se.value:null),P(),D.push(Jz(e)),A=[],R.push(A),V()}else throw new gt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:u,body:R,cols:l,rowGaps:_,hskipBeforeAndAfter:r,hLinesBeforeRow:D,colSeparationType:d,tags:z,leqno:T}}function lA(e){return e.slice(0,1)==="d"?"display":"text"}var pc=function(t,n){var r,a,l=t.body.length,u=t.hLinesBeforeRow,d=0,h=new Array(l),y=[],v=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),x=1/n.fontMetrics().ptPerEm,T=5*x;if(t.colSeparationType&&t.colSeparationType==="small"){var E=n.havingStyle(hn.SCRIPT).sizeMultiplier;T=.2778*(E/n.sizeMultiplier)}var A=t.colSeparationType==="CD"?oi({number:3,unit:"ex"},n):12*x,R=3*x,_=t.arraystretch*A,D=.7*_,z=.3*_,V=0;function P(at){for(var dt=0;dt<at.length;++dt)dt>0&&(V+=.25),y.push({pos:V,isDashed:at[dt]})}for(P(u[0]),r=0;r<t.body.length;++r){var I=t.body[r],H=D,X=z;d<I.length&&(d=I.length);var se={cells:new Array(I.length),height:0,depth:0,pos:0};for(a=0;a<I.length;++a){var ce=rr(I[a],n);X<ce.depth&&(X=ce.depth),H<ce.height&&(H=ce.height),se.cells[a]=ce}var ie=t.rowGaps[r],ue=0;ie&&(ue=oi(ie,n),ue>0&&(ue+=z,X<ue&&(X=ue),ue=0)),t.addJot&&r<t.body.length-1&&(X+=R),se.height=H,se.depth=X,V+=H,se.pos=V,V+=X+ue,h[r]=se,P(u[r+1])}var U=V/2+n.fontMetrics().axisHeight,le=t.cols||[],Q=[],ee,W,oe=[];if(t.tags&&t.tags.some(at=>at))for(r=0;r<l;++r){var he=h[r],be=he.pos-U,re=t.tags[r],F=void 0;re===!0?F=ft(["eqn-num"],[],n):re===!1?F=ft([],[],n):F=ft([],Yi(re,n,!0),n),F.depth=he.depth,F.height=he.height,oe.push({type:"elem",elem:F,shift:be})}for(a=0,W=0;a<d||W<le.length;++a,++W){for(var te,Y=le[W],Me=!0;((Ee=Y)==null?void 0:Ee.type)==="separator";){var Ee;if(Me||(ee=ft(["arraycolsep"],[]),ee.style.width=bt(n.fontMetrics().doubleRuleSep),Q.push(ee)),Y.separator==="|"||Y.separator===":"){var _e=Y.separator==="|"?"solid":"dashed",Be=ft(["vertical-separator"],[],n);Be.style.height=bt(V),Be.style.borderRightWidth=bt(v),Be.style.borderRightStyle=_e,Be.style.margin="0 "+bt(-v/2);var Ue=V-U;Ue&&(Be.style.verticalAlign=bt(-Ue)),Q.push(Be)}else throw new gt("Invalid separator type: "+Y.separator);W++,Y=le[W],Me=!1}if(!(a>=d)){var Ye=void 0;if(a>0||t.hskipBeforeAndAfter){var Xe,Je;Ye=(Xe=(Je=Y)==null?void 0:Je.pregap)!=null?Xe:T,Ye!==0&&(ee=ft(["arraycolsep"],[]),ee.style.width=bt(Ye),Q.push(ee))}var Ve=[];for(r=0;r<l;++r){var Re=h[r],ut=Re.cells[a];if(ut){var Vt=Re.pos-U;ut.depth=Re.depth,ut.height=Re.height,Ve.push({type:"elem",elem:ut,shift:Vt})}}var Qt=nr({positionType:"individualShift",children:Ve}),St=ft(["col-align-"+(((te=Y)==null?void 0:te.align)||"c")],[Qt]);if(Q.push(St),a<d-1||t.hskipBeforeAndAfter){var $t,Cn;Ye=($t=(Cn=Y)==null?void 0:Cn.postgap)!=null?$t:T,Ye!==0&&(ee=ft(["arraycolsep"],[]),ee.style.width=bt(Ye),Q.push(ee))}}}var vn=ft(["mtable"],Q);if(y.length>0){for(var it=Yg("hline",n,v),Mt=Yg("hdashline",n,v),Dn=[{type:"elem",elem:vn,shift:0}];y.length>0;){var tn=y.pop(),et=tn.pos-U;tn.isDashed?Dn.push({type:"elem",elem:Mt,shift:et}):Dn.push({type:"elem",elem:it,shift:et})}vn=nr({positionType:"individualShift",children:Dn})}if(oe.length===0)return ft(["mord"],[vn],n);var xe=nr({positionType:"individualShift",children:oe}),Le=ft(["tag"],[xe],n);return vf([vn,Le])},kue={c:"center ",l:"left ",r:"right "},mc=function(t,n){for(var r=[],a=new yt("mtd",[],["mtr-glue"]),l=new yt("mtd",[],["mml-eqn-num"]),u=0;u<t.body.length;u++){for(var d=t.body[u],h=[],y=0;y<d.length;y++)h.push(new yt("mtd",[Rr(d[y],n)]));t.tags&&t.tags[u]&&(h.unshift(a),h.push(a),t.leqno?h.unshift(l):h.push(l)),r.push(new yt("mtr",h))}var v=new yt("mtable",r),x=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",bt(x));var T="",E="";if(t.cols&&t.cols.length>0){var A=t.cols,R="",_=!1,D=0,z=A.length;A[0].type==="separator"&&(T+="top ",D=1),A[A.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var V=D;V<z;V++){var P=A[V];P.type==="align"?(E+=kue[P.align],_&&(R+="none "),_=!0):P.type==="separator"&&_&&(R+=P.separator==="|"?"solid ":"dashed ",_=!1)}v.setAttribute("columnalign",E.trim()),/[sd]/.test(R)&&v.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var I=t.cols||[],H="",X=1;X<I.length;X++)H+=X%2?"0em ":"1em ";v.setAttribute("columnspacing",H.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var se="",ce=t.hLinesBeforeRow;T+=ce[0].length>0?"left ":"",T+=ce[ce.length-1].length>0?"right ":"";for(var ie=1;ie<ce.length-1;ie++)se+=ce[ie].length===0?"none ":ce[ie][0]?"dashed ":"solid ";return/[sd]/.test(se)&&v.setAttribute("rowlines",se.trim()),T!==""&&(v=new yt("menclose",[v]),v.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(v=new yt("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},eI=function(t,n){t.envName.includes("ed")||U6(t);var r=[],a=t.envName.includes("at")?"alignat":"align",l=t.envName==="split",u=Jd(t.parser,{cols:r,addJot:!0,autoTag:l?void 0:oA(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:l?2:void 0,leqno:t.parser.settings.leqno},"display"),d=0,h=0,y={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var v="",x=0;x<n[0].body.length;x++){var T=An(n[0].body[x],"textord");v+=T.text}d=Number(v),h=d*2}var E=!h;u.body.forEach(function(D){for(var z=1;z<D.length;z+=2){var V=An(D[z],"styling"),P=An(V.body[0],"ordgroup");P.body.unshift(y)}if(E)h<D.length&&(h=D.length);else{var I=D.length/2;if(d<I)throw new gt("Too many math in a row: "+("expected "+d+", but got "+I),D[0])}});for(var A=0;A<h;++A){var R="r",_=0;A%2===1?R="l":A>0&&E&&(_=1),r[A]={type:"align",align:R,pregap:_,postgap:0}}return u.colSeparationType=E?"align":"alignat",u};hc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=I6(t[0]),r=n?[t[0]]:An(t[0],"ordgroup").body,a=r.map(function(u){var d=z6(u),h=d.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new gt("Unknown column alignment: "+h,u)}),l={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Jd(e.parser,l,lA(e.envName))},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,!"lcr".includes(n))throw new gt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var l=Jd(e.parser,r,lA(e.envName)),u=Math.max(0,...l.body.map(d=>d.length));return l.cols=new Array(u).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[l],left:t[0],right:t[1],rightColor:void 0}:l},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Jd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=I6(t[0]),r=n?[t[0]]:An(t[0],"ordgroup").body,a=r.map(function(d){var h=z6(d),y=h.text;if("lc".includes(y))return{type:"align",align:y};throw new gt("Unknown column alignment: "+y,d)});if(a.length>1)throw new gt("{subarray} can contain only one column");var l={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},u=Jd(e.parser,l,"script");if(u.body.length>0&&u.body[0].length>1)throw new gt("{subarray} can contain only one column");return u},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Jd(e.parser,t,lA(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:eI,htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Nue.has(e.envName)&&U6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:oA(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Jd(e.parser,t,"display")},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:eI,htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){U6(e);var t={autoTag:oA(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Jd(e.parser,t,"display")},htmlBuilder:pc,mathmlBuilder:mc}),hc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return U6(e),xue(e.parser)},htmlBuilder:pc,mathmlBuilder:mc}),ae("\\nonumber","\\gdef\\@eqnsw{0}"),ae("\\notag","\\nonumber"),Rt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new gt(e.funcName+" valid only within array environment")}});var tI=Qz;Rt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new gt("Invalid environment name",a);for(var l="",u=0;u<a.body.length;++u)l+=An(a.body[u],"textord").text;if(r==="\\begin"){if(!tI.hasOwnProperty(l))throw new gt("No such environment: "+l,a);var d=tI[l],{args:h,optArgs:y}=n.parseArguments("\\begin{"+l+"}",d),v={mode:n.mode,envName:l,parser:n},x=d.handler(v,h,y);n.expect("\\end",!1);var T=n.nextToken,E=An(n.parseFunction(),"environment");if(E.name!==l)throw new gt("Mismatch: \\begin{"+l+"} matched by \\end{"+E.name+"}",T);return x}return{type:"environment",mode:n.mode,name:l,nameGroup:a}}});var nI=(e,t)=>{var n=e.font,r=t.withFont(n);return rr(e.body,r)},rI=(e,t)=>{var n=e.font,r=t.withFont(n);return Rr(e.body,r)},iI={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Rt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=_6(t[0]),l=r;return l in iI&&(l=iI[l]),{type:"font",mode:n.mode,font:l.slice(1),body:a}},htmlBuilder:nI,mathmlBuilder:rI}),Rt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:V6(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:pf(r)}}}),Rt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:l}=n,u=n.parseExpression(!0,a);return{type:"font",mode:l,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:u}}},htmlBuilder:nI,mathmlBuilder:rI});var zue=(e,t)=>{var n=t.style,r=n.fracNum(),a=n.fracDen(),l;l=t.havingStyle(r);var u=rr(e.numer,l,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;u.height=u.height<d?d:u.height,u.depth=u.depth<h?h:u.depth}l=t.havingStyle(a);var y=rr(e.denom,l,t),v,x,T;e.hasBarLine?(e.barSize?(x=oi(e.barSize,t),v=Yg("frac-line",t,x)):v=Yg("frac-line",t),x=v.height,T=v.height):(v=null,x=0,T=t.fontMetrics().defaultRuleThickness);var E,A,R;n.size===hn.DISPLAY.size?(E=t.fontMetrics().num1,x>0?A=3*T:A=7*T,R=t.fontMetrics().denom1):(x>0?(E=t.fontMetrics().num2,A=T):(E=t.fontMetrics().num3,A=3*T),R=t.fontMetrics().denom2);var _;if(v){var z=t.fontMetrics().axisHeight;E-u.depth-(z+.5*x)<A&&(E+=A-(E-u.depth-(z+.5*x))),z-.5*x-(y.height-R)<A&&(R+=A-(z-.5*x-(y.height-R)));var V=-(z-.5*x);_=nr({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:v,shift:V},{type:"elem",elem:u,shift:-E}]})}else{var D=E-u.depth-(y.height-R);D<A&&(E+=.5*(A-D),R+=.5*(A-D)),_=nr({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:u,shift:-E}]})}l=t.havingStyle(n),_.height*=l.sizeMultiplier/t.sizeMultiplier,_.depth*=l.sizeMultiplier/t.sizeMultiplier;var P;n.size===hn.DISPLAY.size?P=t.fontMetrics().delim1:n.size===hn.SCRIPTSCRIPT.size?P=t.havingStyle(hn.SCRIPT).fontMetrics().delim2:P=t.fontMetrics().delim2;var I,H;return e.leftDelim==null?I=Kb(t,["mopen"]):I=iA(e.leftDelim,P,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?H=ft([]):e.rightDelim==null?H=Kb(t,["mclose"]):H=iA(e.rightDelim,P,!0,t.havingStyle(n),e.mode,["mclose"]),ft(["mord"].concat(l.sizingClasses(t)),[I,ft(["mfrac"],[_]),H],t)},Iue=(e,t)=>{var n=new yt("mfrac",[Rr(e.numer,t),Rr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=oi(e.barSize,t);n.setAttribute("linethickness",bt(r))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var l=new yt("mo",[new Ii(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}if(a.push(n),e.rightDelim!=null){var u=new yt("mo",[new Ii(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),a.push(u)}return F8(a)}return n},aI=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Rt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=t[1],u,d=null,h=null;switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,d="(",h=")";break;case"\\\\bracefrac":u=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":u=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var y=r==="\\cfrac",v=null;return y||r.startsWith("\\d")?v="display":r.startsWith("\\t")&&(v="text"),aI({type:"genfrac",mode:n.mode,numer:a,denom:l,continued:y,hasBarLine:u,leftDelim:d,rightDelim:h,barSize:null},v)},htmlBuilder:zue,mathmlBuilder:Iue}),Rt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var oI=["display","text","script","scriptscript"],lI=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Rt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],l=_6(t[0]),u=l.type==="atom"&&l.family==="open"?lI(l.text):null,d=_6(t[1]),h=d.type==="atom"&&d.family==="close"?lI(d.text):null,y=An(t[2],"size"),v,x=null;y.isBlank?v=!0:(x=y.value,v=x.number>0);var T=null,E=t[3];if(E.type==="ordgroup"){if(E.body.length>0){var A=An(E.body[0],"textord");T=oI[Number(A.text)]}}else E=An(E,"textord"),T=oI[Number(E.text)];return aI({type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:v,barSize:x,leftDelim:u,rightDelim:h},T)}}),Rt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:An(t[0],"size").value,token:a}}}),Rt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],l=An(t[1],"infix").size;if(!l)throw new Error("\\\\abovefrac expected size, but got "+String(l));var u=t[2],d=l.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:u,continued:!1,hasBarLine:d,barSize:l,leftDelim:null,rightDelim:null}}});var sI=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?rr(e.sup,t.havingStyle(n.sup()),t):rr(e.sub,t.havingStyle(n.sub()),t),a=An(e.base,"horizBrace")):a=An(e,"horizBrace");var l=rr(a.base,t.havingBaseStyle(hn.DISPLAY)),u=k6(a,t),d;if(a.isOver?d=nr({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:u,wrapperClasses:["svg-align"]}]}):d=nr({positionType:"bottom",positionData:l.depth+.1+u.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:l}]}),r){var h=ft(["minner",a.isOver?"mover":"munder"],[d],t);a.isOver?d=nr({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:r}]}):d=nr({positionType:"bottom",positionData:h.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:h}]})}return ft(["minner",a.isOver?"mover":"munder"],[d],t)},Lue=(e,t)=>{var n=N6(e.label);return new yt(e.isOver?"mover":"munder",[Rr(e.base,t),n])};Rt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:sI,mathmlBuilder:Lue}),Rt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=An(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:zi(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Yi(e.body,t,!1);return Wse(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Zd(e.body,t);return n instanceof yt||(n=new yt("mrow",[n])),n.setAttribute("href",e.href),n}}),Rt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=An(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],l=0;l<r.length;l++){var u=r[l];u==="~"&&(u="\\textasciitilde"),a.push({type:"textord",mode:"text",text:u})}var d={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:zi(d)}}}),Rt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:zi(t[0])}},htmlBuilder(e,t){var n=Yi(e.body,t.withFont(""),!1);return vf(n)},mathmlBuilder(e,t){return new yt("mrow",Ml(e.body,t.withFont("")))}}),Rt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,l=An(t[0],"raw").string,u=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,h={};switch(r){case"\\htmlClass":h.class=l,d={command:"\\htmlClass",class:l};break;case"\\htmlId":h.id=l,d={command:"\\htmlId",id:l};break;case"\\htmlStyle":h.style=l,d={command:"\\htmlStyle",style:l};break;case"\\htmlData":{for(var y=l.split(","),v=0;v<y.length;v++){var x=y[v],T=x.indexOf("=");if(T<0)throw new gt("\\htmlData key/value '"+x+"' missing equals sign");var E=x.slice(0,T),A=x.slice(T+1);h["data-"+E.trim()]=A}d={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(d)?{type:"html",mode:n.mode,attributes:h,body:zi(u)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Yi(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=ft(r,n,t);for(var l in e.attributes)l!=="class"&&e.attributes.hasOwnProperty(l)&&a.setAttribute(l,e.attributes[l]);return a},mathmlBuilder:(e,t)=>Zd(e.body,t)}),Rt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:zi(t[0]),mathml:zi(t[1])}},htmlBuilder:(e,t)=>{var n=Yi(e.html,t,!1);return vf(n)},mathmlBuilder:(e,t)=>Zd(e.mathml,t)});var sA=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new gt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!ez(r))throw new gt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Rt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},l={number:.9,unit:"em"},u={number:0,unit:"em"},d="";if(n[0])for(var h=An(n[0],"raw").string,y=h.split(","),v=0;v<y.length;v++){var x=y[v].split("=");if(x.length===2){var T=x[1].trim();switch(x[0].trim()){case"alt":d=T;break;case"width":a=sA(T);break;case"height":l=sA(T);break;case"totalheight":u=sA(T);break;default:throw new gt("Invalid key: '"+x[0]+"' in \\includegraphics.")}}}var E=An(t[0],"url").url;return d===""&&(d=E,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:E})?{type:"includegraphics",mode:r.mode,alt:d,width:a,height:l,totalheight:u,src:E}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=oi(e.height,t),r=0;e.totalheight.number>0&&(r=oi(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=oi(e.width,t));var l={height:bt(n+r)};a>0&&(l.width=bt(a)),r>0&&(l.verticalAlign=bt(-r));var u=new Vse(e.src,e.alt,l);return u.height=n,u.depth=r,u},mathmlBuilder:(e,t)=>{var n=new yt("mglyph",[]);n.setAttribute("alt",e.alt);var r=oi(e.height,t),a=0;if(e.totalheight.number>0&&(a=oi(e.totalheight,t)-r,n.setAttribute("valign",bt(-a))),n.setAttribute("height",bt(r+a)),e.width.number>0){var l=oi(e.width,t);n.setAttribute("width",bt(l))}return n.setAttribute("src",e.src),n}}),Rt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=An(t[0],"size");if(n.settings.strict){var l=r[1]==="m",u=a.value.unit==="mu";l?(u||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):u&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return vz(e.dimension,t)},mathmlBuilder(e,t){var n=oi(e.dimension,t);return new Tz(n)}}),Rt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ft([],[rr(e.body,t)]),n=ft(["inner"],[n],t)):n=ft(["inner"],[rr(e.body,t)]);var r=ft(["fix"],[]),a=ft([e.alignment],[n,r],t),l=ft(["strut"]);return l.style.height=bt(a.height+a.depth),a.depth&&(l.style.verticalAlign=bt(-a.depth)),a.children.unshift(l),a=ft(["thinbox"],[a],t),ft(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new yt("mpadded",[Rr(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),Rt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var l=n==="\\("?"\\)":"$",u=r.parseExpression(!1,l);return r.expect(l),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",resetFont:!0,body:u}}}),Rt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new gt("Mismatched "+e.funcName)}});var uI=(e,t)=>{switch(t.style.size){case hn.DISPLAY.size:return e.display;case hn.TEXT.size:return e.text;case hn.SCRIPT.size:return e.script;case hn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Rt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:zi(t[0]),text:zi(t[1]),script:zi(t[2]),scriptscript:zi(t[3])}},htmlBuilder:(e,t)=>{var n=uI(e,t),r=Yi(n,t,!1);return vf(r)},mathmlBuilder:(e,t)=>{var n=uI(e,t);return Zd(n,t)}});var cI=(e,t,n,r,a,l,u)=>{e=ft([],[e]);var d=n&&pf(n),h,y;if(t){var v=rr(t,r.havingStyle(a.sup()),r);y={elem:v,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-v.depth)}}if(n){var x=rr(n,r.havingStyle(a.sub()),r);h={elem:x,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-x.height)}}var T;if(y&&h){var E=r.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+u;T=nr({positionType:"bottom",positionData:E,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-l)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:bt(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else if(h){var A=e.height-u;T=nr({positionType:"top",positionData:A,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:bt(-l)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(y){var R=e.depth+u;T=nr({positionType:"bottom",positionData:R,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:bt(l)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}else return e;var _=[T];if(h&&l!==0&&!d){var D=ft(["mspace"],[],r);D.style.marginRight=bt(l),_.unshift(D)}return ft(["mop","op-limits"],_,r)},fI=new Set(["\\smallint"]),Wg=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=An(e.base,"op"),a=!0):l=An(e,"op");var u=t.style,d=!1;u.size===hn.DISPLAY.size&&l.symbol&&!fI.has(l.name)&&(d=!0);var h,y;if(l.symbol){var v=d?"Size2-Regular":"Size1-Regular",x="";if((l.name==="\\oiint"||l.name==="\\oiiint")&&(x=l.name.slice(1),l.name=x==="oiint"?"\\iint":"\\iiint"),h=wo(l.name,v,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),y=h.italic,x.length>0){var T=xz(x+"Size"+(d?"2":"1"),t);h=nr({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]}),l.name="\\"+x,h.classes.unshift("mop"),h.italic=y}}else if(l.body){var E=Yi(l.body,t,!0);E.length===1&&E[0]instanceof Cl?(h=E[0],h.classes[0]="mop"):h=ft(["mop"],E,t)}else{for(var A=[],R=1;R<l.name.length;R++)A.push(P8(l.name[R],l.mode,t));h=ft(["mop"],A,t)}var _=0,D=0;if((h instanceof Cl||l.name==="\\oiint"||l.name==="\\oiiint")&&!l.suppressBaseShift){var z;_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,D=(z=h.italic)!=null?z:0}return a?cI(h,n,r,t,u,D,_):(_&&(h.style.position="relative",h.style.top=bt(_)),h)},Jb=(e,t)=>{var n;if(e.symbol)n=new yt("mo",[ls(e.name,e.mode)]),fI.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new yt("mo",Ml(e.body,t));else{n=new yt("mi",[new Ii(e.name.slice(1))]);var r=new yt("mo",[ls("⁡","text")]);e.parentIsSupSub?n=new yt("mrow",[n,r]):n=wz([n,r])}return n},Vue={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Rt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return a.length===1&&(a=Vue[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Wg,mathmlBuilder:Jb}),Rt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:zi(r)}},htmlBuilder:Wg,mathmlBuilder:Jb});var Bue={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Rt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wg,mathmlBuilder:Jb}),Rt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wg,mathmlBuilder:Jb}),Rt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Bue[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Wg,mathmlBuilder:Jb});var dI=(e,t)=>{var n,r,a=!1,l;e.type==="supsub"?(n=e.sup,r=e.sub,l=An(e.base,"operatorname"),a=!0):l=An(e,"operatorname");var u;if(l.body.length>0){for(var d=l.body.map(x=>{var T="text"in x?x.text:void 0;return typeof T=="string"?{type:"textord",mode:x.mode,text:T}:x}),h=Yi(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var v=h[y];v instanceof Cl&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}u=ft(["mop"],h,t)}else u=ft(["mop"],[],t);return a?cI(u,n,r,t,t.style,0,0):u},Pue=(e,t)=>{for(var n=Ml(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var l=n[a];if(!(l instanceof Tz))if(l instanceof yt)switch(l.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var u=l.children[0];l.children.length===1&&u instanceof Ii?u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var d=n.map(v=>v.toText()).join("");n=[new Ii(d)]}var h=new yt("mi",n);h.setAttribute("mathvariant","normal");var y=new yt("mo",[ls("⁡","text")]);return e.parentIsSupSub?new yt("mrow",[h,y]):wz([h,y])};Rt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:zi(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:dI,mathmlBuilder:Pue}),ae("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),H0({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?vf(Yi(e.body,t,!1)):ft(["mord"],Yi(e.body,t,!0),t)},mathmlBuilder(e,t){return Zd(e.body,t,!0)}}),Rt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=rr(e.body,t.havingCrampedStyle()),r=Yg("overline-line",t),a=t.fontMetrics().defaultRuleThickness,l=nr({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]});return ft(["mord","overline"],[l],t)},mathmlBuilder(e,t){var n=new yt("mo",[new Ii("‾")]);n.setAttribute("stretchy","true");var r=new yt("mover",[Rr(e.body,t),n]);return r.setAttribute("accent","true"),r}}),Rt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:zi(r)}},htmlBuilder:(e,t)=>{var n=Yi(e.body,t.withPhantom(),!1);return vf(n)},mathmlBuilder:(e,t)=>{var n=Ml(e.body,t);return new yt("mphantom",n)}}),ae("\\hphantom","\\smash{\\phantom{#1}}"),Rt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ft(["inner"],[rr(e.body,t.withPhantom())]),r=ft(["fix"],[]);return ft(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ml(zi(e.body),t),r=new yt("mphantom",n),a=new yt("mpadded",[r]);return a.setAttribute("width","0px"),a}}),Rt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=An(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=rr(e.body,t),r=oi(e.dy,t);return nr({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new yt("mpadded",[Rr(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),Rt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Rt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],l=An(t[0],"size"),u=An(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&An(a,"size").value,width:l.value,height:u.value}},htmlBuilder(e,t){var n=ft(["mord","rule"],[],t),r=oi(e.width,t),a=oi(e.height,t),l=e.shift?oi(e.shift,t):0;return n.style.borderRightWidth=bt(r),n.style.borderTopWidth=bt(a),n.style.bottom=bt(l),n.width=r,n.height=a+l,n.depth=-l,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=oi(e.width,t),r=oi(e.height,t),a=e.shift?oi(e.shift,t):0,l=t.color&&t.getColor()||"black",u=new yt("mspace");u.setAttribute("mathbackground",l),u.setAttribute("width",bt(n)),u.setAttribute("height",bt(r));var d=new yt("mpadded",[u]);return a>=0?d.setAttribute("height",bt(a)):(d.setAttribute("height",bt(a)),d.setAttribute("depth",bt(-a))),d.setAttribute("voffset",bt(a)),d}});function hI(e,t,n){for(var r=Yi(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,l=0;l<r.length;l++){var u=r[l].classes.indexOf("sizing");u<0?Array.prototype.push.apply(r[l].classes,t.sizingClasses(n)):r[l].classes[u+1]==="reset-size"+t.size&&(r[l].classes[u+1]="reset-size"+n.size),r[l].height*=a,r[l].depth*=a}return vf(r)}var pI=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],jue=(e,t)=>{var n=t.havingSize(e.size);return hI(e.body,n,t)};Rt({type:"sizing",names:pI,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:pI.indexOf(r)+1,body:l}},htmlBuilder:jue,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ml(e.body,n),a=new yt("mstyle",r);return a.setAttribute("mathsize",bt(n.sizeMultiplier)),a}}),Rt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,l=!1,u=n[0]&&An(n[0],"ordgroup");if(u)for(var d,h=0;h<u.body.length;++h){var y=u.body[h];if(d=z6(y).text,d==="t")a=!0;else if(d==="b")l=!0;else{a=!1,l=!1;break}}else a=!0,l=!0;var v=t[0];return{type:"smash",mode:r.mode,body:v,smashHeight:a,smashDepth:l}},htmlBuilder:(e,t)=>{var n=ft([],[rr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return ft(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);var a=nr({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return ft(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new yt("mpadded",[Rr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Rt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],l=t[0];return{type:"sqrt",mode:r.mode,body:l,index:a}},htmlBuilder(e,t){var n=rr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Xg(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,l=a;t.style.id<hn.TEXT.id&&(l=t.fontMetrics().xHeight);var u=a+l/4,d=n.height+n.depth+u+a,{span:h,ruleWidth:y,advanceWidth:v}=Cue(d,t),x=h.height-y;x>n.height+n.depth+u&&(u=(u+x-n.height-n.depth)/2);var T=h.height-n.height-u-y;n.style.paddingLeft=bt(v);var E=nr({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+T)},{type:"elem",elem:h},{type:"kern",size:y}]});if(e.index){var A=t.havingStyle(hn.SCRIPTSCRIPT),R=rr(e.index,A,t),_=.6*(E.height-E.depth),D=nr({positionType:"shift",positionData:-_,children:[{type:"elem",elem:R}]}),z=ft(["root"],[D]);return ft(["mord","sqrt"],[z,E],t)}else return ft(["mord","sqrt"],[E],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new yt("mroot",[Rr(n,t),Rr(r,t)]):new yt("msqrt",[Rr(n,t)])}});var uA={display:hn.DISPLAY,text:hn.TEXT,script:hn.SCRIPT,scriptscript:hn.SCRIPTSCRIPT};function $ue(e){return e in uA}Rt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,l=a.parseExpression(!0,n),u=r.slice(1,r.length-5);if(!$ue(u))throw new Error("Unknown style: "+u);return{type:"styling",mode:a.mode,style:u,body:l}},htmlBuilder(e,t){var n=uA[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont("")),hI(e.body,r,t)},mathmlBuilder(e,t){var n=uA[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(""));var a=Ml(e.body,r),l=new yt("mstyle",a),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=u[e.style];return l.setAttribute("scriptlevel",d[0]),l.setAttribute("displaystyle",d[1]),l}});var Uue=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===hn.DISPLAY.size||r.alwaysHandleSupSub);return a?Wg:null}else if(r.type==="operatorname"){var l=r.alwaysHandleSupSub&&(n.style.size===hn.DISPLAY.size||r.limits);return l?dI:null}else{if(r.type==="accent")return pf(r.base)?W8:null;if(r.type==="horizBrace"){var u=!t.sub;return u===r.isOver?sI:null}else return null}else return null};H0({type:"supsub",htmlBuilder(e,t){var n=Uue(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:l}=e,u=rr(r,t),d,h,y=t.fontMetrics(),v=0,x=0,T=r&&pf(r);if(a){var E=t.havingStyle(t.style.sup());d=rr(a,E,t),T||(v=u.height-E.fontMetrics().supDrop*E.sizeMultiplier/t.sizeMultiplier)}if(l){var A=t.havingStyle(t.style.sub());h=rr(l,A,t),T||(x=u.depth+A.fontMetrics().subDrop*A.sizeMultiplier/t.sizeMultiplier)}var R;t.style===hn.DISPLAY?R=y.sup1:t.style.cramped?R=y.sup3:R=y.sup2;var _=t.sizeMultiplier,D=bt(.5/y.ptPerEm/_),z=null;if(h){var V=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(u instanceof Cl||V){var P;z=bt(-((P=u.italic)!=null?P:0))}}var I;if(d&&h){v=Math.max(v,R,d.depth+.25*y.xHeight),x=Math.max(x,y.sub2);var H=y.defaultRuleThickness,X=4*H;if(v-d.depth-(h.height-x)<X){x=X-(v-d.depth)+h.height;var se=.8*y.xHeight-(v-d.depth);se>0&&(v+=se,x-=se)}var ce=[{type:"elem",elem:h,shift:x,marginRight:D,marginLeft:z},{type:"elem",elem:d,shift:-v,marginRight:D}];I=nr({positionType:"individualShift",children:ce})}else if(h){x=Math.max(x,y.sub1,h.height-.8*y.xHeight);var ie=[{type:"elem",elem:h,marginLeft:z,marginRight:D}];I=nr({positionType:"shift",positionData:x,children:ie})}else if(d)v=Math.max(v,R,d.depth+.25*y.xHeight),I=nr({positionType:"shift",positionData:-v,children:[{type:"elem",elem:d,marginRight:D}]});else throw new Error("supsub must have either sup or sub.");var ue=q8(u,"right")||"mord";return ft([ue],[u,ft(["msupsub"],[I])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var l=[Rr(e.base,t)];e.sub&&l.push(Rr(e.sub,t)),e.sup&&l.push(Rr(e.sup,t));var u;if(n)u=r?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===hn.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===hn.DISPLAY||y.limits)?u="munderover":u="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===hn.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===hn.DISPLAY)?u="munder":u="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===hn.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===hn.DISPLAY)?u="mover":u="msup"}return new yt(u,l)}}),H0({type:"atom",htmlBuilder(e,t){return P8(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new yt("mo",[ls(e.text,e.mode)]);if(e.family==="bin"){var r=Y8(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var mI={mi:"italic",mn:"normal",mtext:"normal"};H0({type:"mathord",htmlBuilder(e,t){return C6(e,t,"mathord")},mathmlBuilder(e,t){var n=new yt("mi",[ls(e.text,e.mode,t)]),r=Y8(e,t)||"italic";return r!==mI[n.type]&&n.setAttribute("mathvariant",r),n}}),H0({type:"textord",htmlBuilder(e,t){return C6(e,t,"textord")},mathmlBuilder(e,t){var n=ls(e.text,e.mode,t),r=Y8(e,t)||"normal",a;return e.mode==="text"?a=new yt("mtext",[n]):/[0-9]/.test(e.text)?a=new yt("mn",[n]):e.text==="\\prime"?a=new yt("mo",[n]):a=new yt("mi",[n]),r!==mI[a.type]&&a.setAttribute("mathvariant",r),a}});var cA={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},fA={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};H0({type:"spacing",htmlBuilder(e,t){if(fA.hasOwnProperty(e.text)){var n=fA[e.text].className||"";if(e.mode==="text"){var r=C6(e,t,"textord");return r.classes.push(n),r}else return ft(["mspace",n],[P8(e.text,e.mode,t)],t)}else{if(cA.hasOwnProperty(e.text))return ft(["mspace",cA[e.text]],[],t);throw new gt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(fA.hasOwnProperty(e.text))n=new yt("mtext",[new Ii(" ")]);else{if(cA.hasOwnProperty(e.text))return new yt("mspace");throw new gt('Unknown type of space "'+e.text+'"')}return n}});var gI=()=>{var e=new yt("mtd",[]);return e.setAttribute("width","50%"),e};H0({type:"tag",mathmlBuilder(e,t){var n=new yt("mtable",[new yt("mtr",[gI(),new yt("mtd",[Zd(e.body,t)]),gI(),new yt("mtd",[Zd(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var yI={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},vI={"\\textbf":"textbf","\\textmd":"textmd"},Hue={"\\textit":"textit","\\textup":"textup"},bI=(e,t)=>{var n=e.font;if(n){if(yI[n])return t.withTextFontFamily(yI[n]);if(vI[n])return t.withTextFontWeight(vI[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Hue[n])};Rt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:zi(a),font:r}},htmlBuilder(e,t){var n=bI(e,t),r=Yi(e.body,n,!0);return ft(["mord","text"],r,n)},mathmlBuilder(e,t){var n=bI(e,t);return Zd(e.body,n)}}),Rt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=rr(e.body,t),r=Yg("underline-line",t),a=t.fontMetrics().defaultRuleThickness,l=nr({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]});return ft(["mord","underline"],[l],t)},mathmlBuilder(e,t){var n=new yt("mo",[new Ii("‾")]);n.setAttribute("stretchy","true");var r=new yt("munder",[Rr(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),Rt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=rr(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return nr({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new yt("mpadded",[Rr(e.body,t)],["vcenter"]);return new yt("mrow",[n])}}),Rt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new gt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=xI(e),r=[],a=t.havingStyle(t.style.text()),l=0;l<n.length;l++){var u=n[l];u==="~"&&(u="\\textasciitilde"),r.push(wo(u,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return ft(["mord","text"].concat(a.sizingClasses(t)),yz(r),a)},mathmlBuilder(e,t){var n=new Ii(xI(e)),r=new yt("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var xI=e=>e.body.replace(/ /g,e.star?"␣":" "),eh=Sz,SI=`[ \r
	]`,que="\\\\[a-zA-Z@]+",Gue="\\\\[^\uD800-\uDFFF]",Fue="("+que+")"+SI+"*",Yue=`\\\\(
|[ \r	]+
?)[ \r	]*`,dA="[̀-ͯ]",Xue=new RegExp(dA+"+$"),Wue="("+SI+"+)|"+(Yue+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(dA+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(dA+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Fue)+("|"+Gue+")");class EI{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Wue,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Rl("EOF",new Wo(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new gt("Unexpected character: '"+t[n]+"'",new Rl(t[n],new Wo(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var l=t.indexOf(`
`,this.tokenRegex.lastIndex);return l===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=l+1,this.lex()}return new Rl(a,new Wo(this,n,this.tokenRegex.lastIndex))}}class Kue{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new gt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var l=this.undefStack[this.undefStack.length-1];l&&!l.hasOwnProperty(t)&&(l[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Que=Zz;ae("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),ae("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),ae("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),ae("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),ae("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),ae("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ae("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var wI={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ae("\\char",function(e){var t=e.popToken(),n,r=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new gt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=wI[t.text],r==null||r>=n)throw new gt("Invalid base-"+n+" digit "+t.text);for(var a;(a=wI[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var hA=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new gt("\\newcommand's first argument must be a macro name");var l=a[0].text,u=e.isDefined(l);if(u&&!t)throw new gt("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!u&&!n)throw new gt("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var d=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var h="",y=e.expandNextToken();y.text!=="]"&&y.text!=="EOF";)h+=y.text,y=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new gt("Invalid number of arguments: "+h);d=parseInt(h),a=e.consumeArg().tokens}return u&&r||e.macros.set(l,{tokens:a,numArgs:d}),""};ae("\\newcommand",e=>hA(e,!1,!0,!1)),ae("\\renewcommand",e=>hA(e,!0,!1,!1)),ae("\\providecommand",e=>hA(e,!0,!0,!0)),ae("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),ae("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),ae("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),eh[n],Yr.math[n],Yr.text[n]),""}),ae("\\bgroup","{"),ae("\\egroup","}"),ae("~","\\nobreakspace"),ae("\\lq","`"),ae("\\rq","'"),ae("\\aa","\\r a"),ae("\\AA","\\r A"),ae("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),ae("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ae("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),ae("ℬ","\\mathscr{B}"),ae("ℰ","\\mathscr{E}"),ae("ℱ","\\mathscr{F}"),ae("ℋ","\\mathscr{H}"),ae("ℐ","\\mathscr{I}"),ae("ℒ","\\mathscr{L}"),ae("ℳ","\\mathscr{M}"),ae("ℛ","\\mathscr{R}"),ae("ℭ","\\mathfrak{C}"),ae("ℌ","\\mathfrak{H}"),ae("ℨ","\\mathfrak{Z}"),ae("\\Bbbk","\\Bbb{k}"),ae("\\llap","\\mathllap{\\textrm{#1}}"),ae("\\rlap","\\mathrlap{\\textrm{#1}}"),ae("\\clap","\\mathclap{\\textrm{#1}}"),ae("\\mathstrut","\\vphantom{(}"),ae("\\underbar","\\underline{\\text{#1}}"),ae("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),ae("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),ae("\\ne","\\neq"),ae("≠","\\neq"),ae("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),ae("∉","\\notin"),ae("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),ae("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),ae("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),ae("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),ae("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),ae("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),ae("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),ae("⟂","\\perp"),ae("‼","\\mathclose{!\\mkern-0.8mu!}"),ae("∌","\\notni"),ae("⌜","\\ulcorner"),ae("⌝","\\urcorner"),ae("⌞","\\llcorner"),ae("⌟","\\lrcorner"),ae("©","\\copyright"),ae("®","\\textregistered"),ae("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),ae("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),ae("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),ae("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),ae("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),ae("⋮","\\vdots"),ae("\\varGamma","\\mathit{\\Gamma}"),ae("\\varDelta","\\mathit{\\Delta}"),ae("\\varTheta","\\mathit{\\Theta}"),ae("\\varLambda","\\mathit{\\Lambda}"),ae("\\varXi","\\mathit{\\Xi}"),ae("\\varPi","\\mathit{\\Pi}"),ae("\\varSigma","\\mathit{\\Sigma}"),ae("\\varUpsilon","\\mathit{\\Upsilon}"),ae("\\varPhi","\\mathit{\\Phi}"),ae("\\varPsi","\\mathit{\\Psi}"),ae("\\varOmega","\\mathit{\\Omega}"),ae("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ae("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),ae("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ae("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ae("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ae("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),ae("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),ae("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var TI={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Zue=new Set(["bin","rel"]);ae("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in TI?t=TI[n]:(n.slice(0,4)==="\\not"||n in Yr.math&&Zue.has(Yr.math[n].group))&&(t="\\dotsb"),t});var pA={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ae("\\dotso",function(e){var t=e.future().text;return t in pA?"\\ldots\\,":"\\ldots"}),ae("\\dotsc",function(e){var t=e.future().text;return t in pA&&t!==","?"\\ldots\\,":"\\ldots"}),ae("\\cdots",function(e){var t=e.future().text;return t in pA?"\\@cdots\\,":"\\@cdots"}),ae("\\dotsb","\\cdots"),ae("\\dotsm","\\cdots"),ae("\\dotsi","\\!\\cdots"),ae("\\dotsx","\\ldots\\,"),ae("\\DOTSI","\\relax"),ae("\\DOTSB","\\relax"),ae("\\DOTSX","\\relax"),ae("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ae("\\,","\\tmspace+{3mu}{.1667em}"),ae("\\thinspace","\\,"),ae("\\>","\\mskip{4mu}"),ae("\\:","\\tmspace+{4mu}{.2222em}"),ae("\\medspace","\\:"),ae("\\;","\\tmspace+{5mu}{.2777em}"),ae("\\thickspace","\\;"),ae("\\!","\\tmspace-{3mu}{.1667em}"),ae("\\negthinspace","\\!"),ae("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ae("\\negthickspace","\\tmspace-{5mu}{.277em}"),ae("\\enspace","\\kern.5em "),ae("\\enskip","\\hskip.5em\\relax"),ae("\\quad","\\hskip1em\\relax"),ae("\\qquad","\\hskip2em\\relax"),ae("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ae("\\tag@paren","\\tag@literal{({#1})}"),ae("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new gt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ae("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ae("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ae("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ae("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ae("\\newline","\\\\\\relax"),ae("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var AI=bt(dc["Main-Regular"][84][1]-.7*dc["Main-Regular"][65][1]);ae("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+AI+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),ae("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+AI+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),ae("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ae("\\@hspace","\\hskip #1\\relax"),ae("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ae("\\ordinarycolon",":"),ae("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ae("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ae("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ae("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ae("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ae("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ae("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ae("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ae("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ae("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ae("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ae("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ae("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ae("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ae("∷","\\dblcolon"),ae("∹","\\eqcolon"),ae("≔","\\coloneqq"),ae("≕","\\eqqcolon"),ae("⩴","\\Coloneqq"),ae("\\ratio","\\vcentcolon"),ae("\\coloncolon","\\dblcolon"),ae("\\colonequals","\\coloneqq"),ae("\\coloncolonequals","\\Coloneqq"),ae("\\equalscolon","\\eqqcolon"),ae("\\equalscoloncolon","\\Eqqcolon"),ae("\\colonminus","\\coloneq"),ae("\\coloncolonminus","\\Coloneq"),ae("\\minuscolon","\\eqcolon"),ae("\\minuscoloncolon","\\Eqcolon"),ae("\\coloncolonapprox","\\Colonapprox"),ae("\\coloncolonsim","\\Colonsim"),ae("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ae("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ae("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ae("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ae("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ae("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ae("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ae("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ae("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ae("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ae("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ae("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ae("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ae("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),ae("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),ae("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),ae("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),ae("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),ae("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),ae("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),ae("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),ae("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),ae("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),ae("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),ae("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),ae("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),ae("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),ae("\\imath","\\html@mathml{\\@imath}{ı}"),ae("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),ae("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ae("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ae("⟦","\\llbracket"),ae("⟧","\\rrbracket"),ae("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ae("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ae("⦃","\\lBrace"),ae("⦄","\\rBrace"),ae("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),ae("⦵","\\minuso"),ae("\\darr","\\downarrow"),ae("\\dArr","\\Downarrow"),ae("\\Darr","\\Downarrow"),ae("\\lang","\\langle"),ae("\\rang","\\rangle"),ae("\\uarr","\\uparrow"),ae("\\uArr","\\Uparrow"),ae("\\Uarr","\\Uparrow"),ae("\\N","\\mathbb{N}"),ae("\\R","\\mathbb{R}"),ae("\\Z","\\mathbb{Z}"),ae("\\alef","\\aleph"),ae("\\alefsym","\\aleph"),ae("\\Alpha","\\mathrm{A}"),ae("\\Beta","\\mathrm{B}"),ae("\\bull","\\bullet"),ae("\\Chi","\\mathrm{X}"),ae("\\clubs","\\clubsuit"),ae("\\cnums","\\mathbb{C}"),ae("\\Complex","\\mathbb{C}"),ae("\\Dagger","\\ddagger"),ae("\\diamonds","\\diamondsuit"),ae("\\empty","\\emptyset"),ae("\\Epsilon","\\mathrm{E}"),ae("\\Eta","\\mathrm{H}"),ae("\\exist","\\exists"),ae("\\harr","\\leftrightarrow"),ae("\\hArr","\\Leftrightarrow"),ae("\\Harr","\\Leftrightarrow"),ae("\\hearts","\\heartsuit"),ae("\\image","\\Im"),ae("\\infin","\\infty"),ae("\\Iota","\\mathrm{I}"),ae("\\isin","\\in"),ae("\\Kappa","\\mathrm{K}"),ae("\\larr","\\leftarrow"),ae("\\lArr","\\Leftarrow"),ae("\\Larr","\\Leftarrow"),ae("\\lrarr","\\leftrightarrow"),ae("\\lrArr","\\Leftrightarrow"),ae("\\Lrarr","\\Leftrightarrow"),ae("\\Mu","\\mathrm{M}"),ae("\\natnums","\\mathbb{N}"),ae("\\Nu","\\mathrm{N}"),ae("\\Omicron","\\mathrm{O}"),ae("\\plusmn","\\pm"),ae("\\rarr","\\rightarrow"),ae("\\rArr","\\Rightarrow"),ae("\\Rarr","\\Rightarrow"),ae("\\real","\\Re"),ae("\\reals","\\mathbb{R}"),ae("\\Reals","\\mathbb{R}"),ae("\\Rho","\\mathrm{P}"),ae("\\sdot","\\cdot"),ae("\\sect","\\S"),ae("\\spades","\\spadesuit"),ae("\\sub","\\subset"),ae("\\sube","\\subseteq"),ae("\\supe","\\supseteq"),ae("\\Tau","\\mathrm{T}"),ae("\\thetasym","\\vartheta"),ae("\\weierp","\\wp"),ae("\\Zeta","\\mathrm{Z}"),ae("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ae("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ae("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ae("\\bra","\\mathinner{\\langle{#1}|}"),ae("\\ket","\\mathinner{|{#1}\\rangle}"),ae("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ae("\\Bra","\\left\\langle#1\\right|"),ae("\\Ket","\\left|#1\\right\\rangle");var CI=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.consumeArg().tokens,u=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var h=x=>T=>{e&&(T.macros.set("|",u),a.length&&T.macros.set("\\|",d));var E=x;if(!x&&a.length){var A=T.future();A.text==="|"&&(T.popToken(),E=!0)}return{tokens:E?a:r,numArgs:0}};t.macros.set("|",h(!1)),a.length&&t.macros.set("\\|",h(!0));var y=t.consumeArg().tokens,v=t.expandTokens([...l,...y,...n]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};ae("\\bra@ket",CI(!1)),ae("\\bra@set",CI(!0)),ae("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),ae("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),ae("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),ae("\\angln","{\\angl n}"),ae("\\blue","\\textcolor{##6495ed}{#1}"),ae("\\orange","\\textcolor{##ffa500}{#1}"),ae("\\pink","\\textcolor{##ff00af}{#1}"),ae("\\red","\\textcolor{##df0030}{#1}"),ae("\\green","\\textcolor{##28ae7b}{#1}"),ae("\\gray","\\textcolor{gray}{#1}"),ae("\\purple","\\textcolor{##9d38bd}{#1}"),ae("\\blueA","\\textcolor{##ccfaff}{#1}"),ae("\\blueB","\\textcolor{##80f6ff}{#1}"),ae("\\blueC","\\textcolor{##63d9ea}{#1}"),ae("\\blueD","\\textcolor{##11accd}{#1}"),ae("\\blueE","\\textcolor{##0c7f99}{#1}"),ae("\\tealA","\\textcolor{##94fff5}{#1}"),ae("\\tealB","\\textcolor{##26edd5}{#1}"),ae("\\tealC","\\textcolor{##01d1c1}{#1}"),ae("\\tealD","\\textcolor{##01a995}{#1}"),ae("\\tealE","\\textcolor{##208170}{#1}"),ae("\\greenA","\\textcolor{##b6ffb0}{#1}"),ae("\\greenB","\\textcolor{##8af281}{#1}"),ae("\\greenC","\\textcolor{##74cf70}{#1}"),ae("\\greenD","\\textcolor{##1fab54}{#1}"),ae("\\greenE","\\textcolor{##0d923f}{#1}"),ae("\\goldA","\\textcolor{##ffd0a9}{#1}"),ae("\\goldB","\\textcolor{##ffbb71}{#1}"),ae("\\goldC","\\textcolor{##ff9c39}{#1}"),ae("\\goldD","\\textcolor{##e07d10}{#1}"),ae("\\goldE","\\textcolor{##a75a05}{#1}"),ae("\\redA","\\textcolor{##fca9a9}{#1}"),ae("\\redB","\\textcolor{##ff8482}{#1}"),ae("\\redC","\\textcolor{##f9685d}{#1}"),ae("\\redD","\\textcolor{##e84d39}{#1}"),ae("\\redE","\\textcolor{##bc2612}{#1}"),ae("\\maroonA","\\textcolor{##ffbde0}{#1}"),ae("\\maroonB","\\textcolor{##ff92c6}{#1}"),ae("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ae("\\maroonD","\\textcolor{##ca337c}{#1}"),ae("\\maroonE","\\textcolor{##9e034e}{#1}"),ae("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ae("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ae("\\purpleC","\\textcolor{##aa87ff}{#1}"),ae("\\purpleD","\\textcolor{##7854ab}{#1}"),ae("\\purpleE","\\textcolor{##543b78}{#1}"),ae("\\mintA","\\textcolor{##f5f9e8}{#1}"),ae("\\mintB","\\textcolor{##edf2df}{#1}"),ae("\\mintC","\\textcolor{##e0e5cc}{#1}"),ae("\\grayA","\\textcolor{##f6f7f7}{#1}"),ae("\\grayB","\\textcolor{##f0f1f2}{#1}"),ae("\\grayC","\\textcolor{##e3e5e6}{#1}"),ae("\\grayD","\\textcolor{##d6d8da}{#1}"),ae("\\grayE","\\textcolor{##babec2}{#1}"),ae("\\grayF","\\textcolor{##888d93}{#1}"),ae("\\grayG","\\textcolor{##626569}{#1}"),ae("\\grayH","\\textcolor{##3b3e40}{#1}"),ae("\\grayI","\\textcolor{##21242c}{#1}"),ae("\\kaBlue","\\textcolor{##314453}{#1}"),ae("\\kaGreen","\\textcolor{##71B307}{#1}");var OI={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Jue{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Kue(Que,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new EI(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new Rl("EOF",r.loc)),this.pushTokens(a),new Rl("",Wo.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),l,u=0,d=0;do{if(l=this.popToken(),n.push(l),l.text==="{")++u;else if(l.text==="}"){if(--u,u===-1)throw new gt("Extra }",l)}else if(l.text==="EOF")throw new gt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[d]:"}")+"'",l);if(t&&r)if((u===0||u===1&&t[d]==="{")&&l.text===t[d]){if(++d,d===t.length){n.splice(-d,d);break}}else d=0}while(u!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:l}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new gt("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var l=this.popToken();if(r[a]!==l.text)throw new gt("Use of the macro doesn't match its definition",l)}}for(var u=[],d=0;d<t;d++)u.push(this.consumeArg(n&&n[d+1]).tokens);return u}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new gt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new gt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var l=a.tokens,u=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){l=l.slice();for(var d=l.length-1;d>=0;--d){var h=l[d];if(h.text==="#"){if(d===0)throw new gt("Incomplete placeholder at end of macro body",h);if(h=l[--d],h.text==="#")l.splice(d+1,1);else if(/^[1-9]$/.test(h.text))l.splice(d,2,...u[+h.text-1]);else throw new gt("Not a valid argument number",h)}}}return this.pushTokens(l),l.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Rl(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var l=0;if(a.includes("#"))for(var u=a.replace(/##/g,"");u.includes("#"+(l+1));)++l;for(var d=new EI(a,this.settings),h=[],y=d.lex();y.text!=="EOF";)h.push(y),y=d.lex();h.reverse();var v={tokens:h,numArgs:l};return v}return a}isDefined(t){return this.macros.has(t)||eh.hasOwnProperty(t)||Yr.math.hasOwnProperty(t)||Yr.text.hasOwnProperty(t)||OI.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:eh.hasOwnProperty(t)&&!eh[t].primitive}}var MI=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,H6=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),mA={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},RI={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class q6{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Jue(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new gt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Rl("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(q6.endOfExpression.has(a.text)||n&&a.text===n||t&&eh[a.text]&&eh[a.text].infix)break;var l=this.parseAtom(n);if(l){if(l.type==="internal")continue}else break;r.push(l)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++){var l=t[a];if(l.type==="infix"){if(n!==-1)throw new gt("only one infix operator per group",l.token);n=a,r=l.replaceWith}}if(n!==-1&&r){var u,d,h=t.slice(0,n),y=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?u=h[0]:u={type:"ordgroup",mode:this.mode,body:h},y.length===1&&y[0].type==="ordgroup"?d=y[0]:d={type:"ordgroup",mode:this.mode,body:y};var v;return r==="\\\\abovefrac"?v=this.callFunction(r,[u,t[n],d],[]):v=this.callFunction(r,[u,d],[]),[v]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var l;a=this.parseGroup(t)}while(((l=a)==null?void 0:l.type)==="internal");if(!a)throw new gt("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},l={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return l}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var l=this.fetch();if(l.text==="\\limits"||l.text==="\\nolimits"){if(n&&n.type==="op"){var u=l.text==="\\limits";n.limits=u,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=l.text==="\\limits");else throw new gt("Limit controls must follow a math operator",l);this.consume()}else if(l.text==="^"){if(r)throw new gt("Double superscript",l);r=this.handleSupSubscript("superscript")}else if(l.text==="_"){if(a)throw new gt("Double subscript",l);a=this.handleSupSubscript("subscript")}else if(l.text==="'"){if(r)throw new gt("Double superscript",l);var d={type:"textord",mode:this.mode,text:"\\prime"},h=[d];for(this.consume();this.fetch().text==="'";)h.push(d),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:h}}else if(H6[l.text]){var y=MI.test(l.text),v=[];for(v.push(new Rl(H6[l.text])),this.consume();;){var x=this.fetch().text;if(!H6[x]||MI.test(x)!==y)break;v.unshift(new Rl(H6[x])),this.consume()}var T=this.subparse(v);y?a={type:"ordgroup",mode:"math",body:T}:r={type:"ordgroup",mode:"math",body:T}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,l=eh[a];if(!l)return null;if(this.consume(),n&&n!=="atom"&&!l.allowedInArgument)throw new gt("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!l.allowedInText)throw new gt("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&l.allowedInMath===!1)throw new gt("Can't use function '"+a+"' in math mode",r);var{args:u,optArgs:d}=this.parseArguments(a,l);return this.callFunction(a,u,d,r,t)}callFunction(t,n,r,a,l){var u={funcName:t,parser:this,token:a,breakOnTokenText:l},d=eh[t];if(d&&d.handler)return d.handler(u,n,r);throw new gt("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],l=[],u=0;u<r;u++){var d=n.argTypes&&n.argTypes[u],h=u<n.numOptionalArgs;("primitive"in n&&n.primitive&&d==null||n.type==="sqrt"&&u===1&&l[0]==null)&&(d="primitive");var y=this.parseGroupOfType("argument to '"+t+"'",d,h);if(h)l.push(y);else if(y!=null)a.push(y);else throw new gt("Null argument, please report this as a bug")}return{args:a,optArgs:l}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var l=this.parseStringGroup("raw",r);return l!=null?{type:"raw",mode:"text",string:l.text}:null}case"primitive":{if(r)throw new gt("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new gt("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new gt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",l;(l=this.fetch()).text!=="EOF";)a+=l.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,l="",u;(u=this.fetch()).text!=="EOF"&&t.test(l+u.text);)a=u,l+=a.text,this.consume();if(l==="")throw new gt("Invalid "+n+": '"+r.text+"'",r);return r.range(a,l)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new gt("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new gt("Invalid size: '"+n.text+"'",n);var l={number:+(a[1]+a[2]),unit:a[3]};if(!ez(l))throw new gt("Invalid unit: '"+l.unit+"'",n);return{type:"size",mode:this.mode,value:l,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var l=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var u={type:"ordgroup",mode:this.mode,loc:r.loc,body:l};return n&&this.switchMode(a),u}parseGroup(t,n){var r=this.fetch(),a=r.text,l;if(a==="{"||a==="\\begingroup"){this.consume();var u=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,u),h=this.fetch();this.expect(u),this.gullet.endGroup(),l={type:"ordgroup",mode:this.mode,loc:Wo.range(r,h),body:d,semisimple:a==="\\begingroup"||void 0}}else if(l=this.parseFunction(n,t)||this.parseSymbol(),l==null&&a[0]==="\\"&&!OI.hasOwnProperty(a)){if(this.settings.throwOnError)throw new gt("Undefined control sequence: "+a,r);l=this.formatUnsupportedCmd(a),this.consume()}return l}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r];if(a.type==="textord"){var l=a.text,u=t[r+1];if(!(!u||u.type!=="textord")){if(l==="-"&&u.text==="-"){var d=t[r+2];r+1<n&&d&&d.type==="textord"&&d.text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:Wo.range(a,d),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:Wo.range(a,u),text:"--"}),n-=1)}(l==="'"||l==="`")&&u.text===l&&(t.splice(r,2,{type:"textord",mode:"text",loc:Wo.range(a,u),text:l+l}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new gt(`\\verb assertion failed --
                    please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}RI.hasOwnProperty(n[0])&&!Yr[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=RI[n[0]]+n.slice(1));var l=Xue.exec(n);l&&(n=n.substring(0,l.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var u;if(Yr[this.mode][n]){this.settings.strict&&this.mode==="math"&&k8.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var d=Yr[this.mode][n].group,h=Wo.range(t),y;mue(d)?y={type:"atom",mode:this.mode,family:d,loc:h,text:n}:y={type:d,mode:this.mode,loc:h,text:n},u=y}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Zk(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:Wo.range(t),text:n};else return null;if(this.consume(),l)for(var v=0;v<l[0].length;v++){var x=l[0][v];if(!mA[x])throw new gt("Unknown accent ' "+x+"'",t);var T=mA[x][this.mode]||mA[x].text;if(!T)throw new gt("Accent "+x+" unsupported in "+this.mode+" mode",t);u={type:"accent",mode:this.mode,loc:Wo.range(t),label:T,isStretchy:!1,isShifty:!0,base:u}}return u}}q6.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var gA=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new q6(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new gt("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Rl("\\df@tag")])}]}return a},_I=function(t,n,r){n.textContent="";var a=yA(t,r).toNode();n.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_I=function(){throw new gt("KaTeX doesn't work in quirks mode.")});var ece=function(t,n){var r=yA(t,n).toMarkup();return r},tce=function(t,n){var r=new E8(n);return gA(t,r)},DI=function(t,n,r){if(r.throwOnError||!(t instanceof gt))throw t;var a=ft(["katex-error"],[new Cl(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},yA=function(t,n){var r=new E8(n);try{var a=gA(t,r);return lue(a,t,r)}catch(l){return DI(l,t,r)}},nce=function(t,n){var r=new E8(n);try{var a=gA(t,r);return sue(a,t,r)}catch(l){return DI(l,t,r)}},rce="0.16.47",ice={Span:Gg,Anchor:x6,SymbolNode:Cl,SvgNode:gf,PathNode:Wd,LineNode:O8},NI={version:rce,render:_I,renderToString:ece,ParseError:gt,SETTINGS_SCHEMA:S8,__parse:tce,__renderToDomTree:yA,__renderToHTMLTree:nce,__setFontMetrics:Use,__defineSymbol:k,__defineFunction:Rt,__defineMacro:ae,__domTree:ice};const ace={},oce=[];function lce(e){const t=e||ace;return function(n,r){r8(n,"element",function(a,l){const u=Array.isArray(a.properties.className)?a.properties.className:oce,d=u.includes("language-math"),h=u.includes("math-display"),y=u.includes("math-inline");let v=h;if(!d&&!h&&!y)return;let x=l[l.length-1],T=a;if(a.tagName==="code"&&d&&x&&x.type==="element"&&x.tagName==="pre"&&(T=x,x=l[l.length-2],v=!0),!x)return;const E=tse(T,{whitespace:"pre"});let A;try{A=NI.renderToString(E,{...t,displayMode:v,throwOnError:!0})}catch(_){const D=_,z=D.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...l,a],cause:D,place:a.position,ruleId:z,source:"rehype-katex"});try{A=NI.renderToString(E,{...t,displayMode:v,strict:"ignore",throwOnError:!1})}catch{A=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(_)},children:[{type:"text",value:E}]}]}}typeof A=="string"&&(A=Yle(A).children);const R=x.children.indexOf(T);return x.children.splice(R,1,...A),Ck})}}const q0=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],kI={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...q0,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...q0],h2:[["className","sr-only"]],img:[...q0,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...q0,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...q0],table:[...q0],ul:[...q0,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},th={}.hasOwnProperty;function sce(e,t){let n={type:"root",children:[]};const r={schema:t?{...kI,...t}:kI,stack:[]},a=zI(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function zI(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return uce(e,n);case"doctype":return cce(e,n);case"element":return fce(e,n);case"root":return dce(e,n);case"text":return hce(e,n)}}}function uce(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),l={type:"comment",value:r<0?n:n.slice(0,r)};return e4(l,t),l}}function cce(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return e4(n,t),n}}function fce(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=II(e,t.children),a=pce(e,t.properties);e.stack.pop();let l=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(l=!0,e.schema.ancestors&&th.call(e.schema.ancestors,n))){const d=e.schema.ancestors[n];let h=-1;for(l=!1;++h<d.length;)e.stack.includes(d[h])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const u={type:"element",tagName:n,properties:a,children:r};return e4(u,t),u}function dce(e,t){const r={type:"root",children:II(e,t.children)};return e4(r,t),r}function hce(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return e4(r,t),r}function II(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const l=zI(e,r[a]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function pce(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,l=r&&th.call(r,n)?r[n]:void 0,u=r&&th.call(r,"*")?r["*"]:void 0,d=t&&typeof t=="object"?t:{},h={};let y;for(y in d)if(th.call(d,y)){const v=d[y];let x=LI(e,BI(l,y),y,v);x==null&&(x=LI(e,BI(u,y),y,v)),x!=null&&(h[y]=x)}if(a&&th.call(a,n)){const v=a[n];for(y in v)th.call(v,y)&&!th.call(h,y)&&(h[y]=v[y])}return h}function LI(e,t,n,r){return t?Array.isArray(r)?mce(e,t,n,r):VI(e,t,n,r):void 0}function mce(e,t,n,r){let a=-1;const l=[];for(;++a<r.length;){const u=VI(e,t,n,r[a]);(typeof u=="number"||typeof u=="string")&&l.push(u)}return l}function VI(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&gce(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,l=0;for(;++l<t.length;){const u=t[l];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(r))){a=!0;break}}else if(u===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function gce(e,t,n){const r=e.schema.protocols&&th.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),l=a.indexOf(":"),u=a.indexOf("?"),d=a.indexOf("#"),h=a.indexOf("/");if(l<0||h>-1&&l>h||u>-1&&l>u||d>-1&&l>d)return!0;let y=-1;for(;++y<r.length;){const v=r[y];if(l===v.length&&a.slice(0,v.length)===v)return!0}return!1}function e4(e,t){const n=LN(t);t.data&&(e.data=Gb(t.data)),n&&(e.position=n)}function BI(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],l=typeof a=="string"?a:a[0];if(l===t)return a;l==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function yce(e){return function(t){return sce(t,e)}}function PI(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function vce(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bce(e,t,n){const a=Fb((n||{}).ignore||[]),l=xce(t);let u=-1;for(;++u<l.length;)r8(e,"text",d);function d(y,v){let x=-1,T;for(;++x<v.length;){const E=v[x],A=T?T.children:void 0;if(a(E,A?A.indexOf(E):void 0,T))return;T=E}if(T)return h(y,v)}function h(y,v){const x=v[v.length-1],T=l[u][0],E=l[u][1];let A=0;const _=x.children.indexOf(y);let D=!1,z=[];T.lastIndex=0;let V=T.exec(y.value);for(;V;){const P=V.index,I={index:V.index,input:V.input,stack:[...v,y]};let H=E(...V,I);if(typeof H=="string"&&(H=H.length>0?{type:"text",value:H}:void 0),H===!1?T.lastIndex=P+1:(A!==P&&z.push({type:"text",value:y.value.slice(A,P)}),Array.isArray(H)?z.push(...H):H&&z.push(H),A=P+V[0].length,D=!0),!T.global)break;V=T.exec(y.value)}return D?(A<y.value.length&&z.push({type:"text",value:y.value.slice(A)}),x.children.splice(_,1,...z)):z=[y],_+z.length}}function xce(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Sce(a[0]),Ece(a[1])])}return t}function Sce(e){return typeof e=="string"?new RegExp(vce(e),"g"):e}function Ece(e){return typeof e=="function"?e:function(){return e}}const vA="phrasing",bA=["autolink","link","image","label"];function wce(){return{transforms:[_ce],enter:{literalAutolink:Ace,literalAutolinkEmail:xA,literalAutolinkHttp:xA,literalAutolinkWww:xA},exit:{literalAutolink:Rce,literalAutolinkEmail:Mce,literalAutolinkHttp:Cce,literalAutolinkWww:Oce}}}function Tce(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vA,notInConstruct:bA},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vA,notInConstruct:bA},{character:":",before:"[ps]",after:"\\/",inConstruct:vA,notInConstruct:bA}]}}function Ace(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xA(e){this.config.enter.autolinkProtocol.call(this,e)}function Cce(e){this.config.exit.autolinkProtocol.call(this,e)}function Oce(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Mce(e){this.config.exit.autolinkEmail.call(this,e)}function Rce(e){this.exit(e)}function _ce(e){bce(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Dce],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Nce]],{ignore:["link","linkReference"]})}function Dce(e,t,n,r,a){let l="";if(!jI(a)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!kce(n)))return!1;const u=zce(n+r);if(!u[0])return!1;const d={type:"link",title:null,url:l+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function Nce(e,t,n,r){return!jI(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kce(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function zce(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=PI(e,"(");let l=PI(e,")");for(;r!==-1&&a>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function jI(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||B0(n)||s6(n))&&(!t||n!==47)}$I.peek=Hce;function Ice(){this.buffer()}function Lce(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Vce(){this.buffer()}function Bce(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Pce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jce(e){this.exit(e)}function $ce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Uce(e){this.exit(e)}function Hce(){return"["}function $I(e,t,n,r){const a=n.createTracker(r);let l=a.move("[^");const u=n.enter("footnoteReference"),d=n.enter("reference");return l+=a.move(n.safe(n.associationId(e),{after:"]",before:l})),d(),u(),l+=a.move("]"),l}function qce(){return{enter:{gfmFootnoteCallString:Ice,gfmFootnoteCall:Lce,gfmFootnoteDefinitionLabelString:Vce,gfmFootnoteDefinition:Bce},exit:{gfmFootnoteCallString:Pce,gfmFootnoteCall:jce,gfmFootnoteDefinitionLabelString:$ce,gfmFootnoteDefinition:Uce}}}function Gce(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:$I},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,l,u){const d=l.createTracker(u);let h=d.move("[^");const y=l.enter("footnoteDefinition"),v=l.enter("label");return h+=d.move(l.safe(l.associationId(r),{before:h,after:"]"})),v(),h+=d.move("]:"),r.children&&r.children.length>0&&(d.shift(4),h+=d.move((t?`
`:" ")+l.indentLines(l.containerFlow(r,d.current()),t?UI:Fce))),y(),h}}function Fce(e,t,n){return t===0?e:UI(e,t,n)}function UI(e,t,n){return(n?"":"    ")+e}const Yce=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];HI.peek=Zce;function Xce(){return{canContainEols:["delete"],enter:{strikethrough:Kce},exit:{strikethrough:Qce}}}function Wce(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yce}],handlers:{delete:HI}}}function Kce(e){this.enter({type:"delete",children:[]},e)}function Qce(e){this.exit(e)}function HI(e,t,n,r){const a=n.createTracker(r),l=n.enter("strikethrough");let u=a.move("~~");return u+=n.containerPhrasing(e,{...a.current(),before:u,after:"~"}),u+=a.move("~~"),l(),u}function Zce(){return"~"}function Jce(e){return e.length}function efe(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Jce,l=[],u=[],d=[],h=[];let y=0,v=-1;for(;++v<e.length;){const R=[],_=[];let D=-1;for(e[v].length>y&&(y=e[v].length);++D<e[v].length;){const z=tfe(e[v][D]);if(n.alignDelimiters!==!1){const V=a(z);_[D]=V,(h[D]===void 0||V>h[D])&&(h[D]=V)}R.push(z)}u[v]=R,d[v]=_}let x=-1;if(typeof r=="object"&&"length"in r)for(;++x<y;)l[x]=qI(r[x]);else{const R=qI(r);for(;++x<y;)l[x]=R}x=-1;const T=[],E=[];for(;++x<y;){const R=l[x];let _="",D="";R===99?(_=":",D=":"):R===108?_=":":R===114&&(D=":");let z=n.alignDelimiters===!1?1:Math.max(1,h[x]-_.length-D.length);const V=_+"-".repeat(z)+D;n.alignDelimiters!==!1&&(z=_.length+z+D.length,z>h[x]&&(h[x]=z),E[x]=z),T[x]=V}u.splice(1,0,T),d.splice(1,0,E),v=-1;const A=[];for(;++v<u.length;){const R=u[v],_=d[v];x=-1;const D=[];for(;++x<y;){const z=R[x]||"";let V="",P="";if(n.alignDelimiters!==!1){const I=h[x]-(_[x]||0),H=l[x];H===114?V=" ".repeat(I):H===99?I%2?(V=" ".repeat(I/2+.5),P=" ".repeat(I/2-.5)):(V=" ".repeat(I/2),P=V):P=" ".repeat(I)}n.delimiterStart!==!1&&!x&&D.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||x)&&D.push(" "),n.alignDelimiters!==!1&&D.push(V),D.push(z),n.alignDelimiters!==!1&&D.push(P),n.padding!==!1&&D.push(" "),(n.delimiterEnd!==!1||x!==y-1)&&D.push("|")}A.push(n.delimiterEnd===!1?D.join("").replace(/ +$/,""):D.join(""))}return A.join(`
`)}function tfe(e){return e==null?"":String(e)}function qI(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function nfe(e,t,n,r){const a=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const u=n.indentLines(n.containerFlow(e,l.current()),rfe);return a(),u}function rfe(e,t,n){return">"+(n?"":" ")+e}function ife(e,t){return GI(e,t.inConstruct,!0)&&!GI(e,t.notInConstruct,!1)}function GI(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function FI(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&ife(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function YI(e,t){const n=String(e);let r=n.indexOf(t),a=r,l=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++l>u&&(u=l):l=1,a=r+t.length,r=n.indexOf(t,a);return u}function afe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ofe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function lfe(e,t,n,r){const a=ofe(n),l=e.value||"",u=a==="`"?"GraveAccent":"Tilde";if(afe(e,n)){const x=n.enter("codeIndented"),T=n.indentLines(l,sfe);return x(),T}const d=n.createTracker(r),h=a.repeat(Math.max(YI(l,a)+1,3)),y=n.enter("codeFenced");let v=d.move(h);if(e.lang){const x=n.enter(`codeFencedLang${u}`);v+=d.move(n.safe(e.lang,{before:v,after:" ",encode:["`"],...d.current()})),x()}if(e.lang&&e.meta){const x=n.enter(`codeFencedMeta${u}`);v+=d.move(" "),v+=d.move(n.safe(e.meta,{before:v,after:`
`,encode:["`"],...d.current()})),x()}return v+=d.move(`
`),l&&(v+=d.move(l+`
`)),v+=d.move(h),y(),v}function sfe(e,t,n){return(n?"":"    ")+e}function SA(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ufe(e,t,n,r){const a=SA(n),l=a==='"'?"Quote":"Apostrophe",u=n.enter("definition");let d=n.enter("label");const h=n.createTracker(r);let y=h.move("[");return y+=h.move(n.safe(n.associationId(e),{before:y,after:"]",...h.current()})),y+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),y+=h.move("<"),y+=h.move(n.safe(e.url,{before:y,after:">",...h.current()})),y+=h.move(">")):(d=n.enter("destinationRaw"),y+=h.move(n.safe(e.url,{before:y,after:e.title?" ":`
`,...h.current()}))),d(),e.title&&(d=n.enter(`title${l}`),y+=h.move(" "+a),y+=h.move(n.safe(e.title,{before:y,after:a,...h.current()})),y+=h.move(a),d()),u(),y}function cfe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function t4(e){return"&#x"+e.toString(16).toUpperCase()+";"}function G6(e,t,n){const r=Pg(e),a=Pg(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}XI.peek=ffe;function XI(e,t,n,r){const a=cfe(n),l=n.enter("emphasis"),u=n.createTracker(r),d=u.move(a);let h=u.move(n.containerPhrasing(e,{after:a,before:d,...u.current()}));const y=h.charCodeAt(0),v=G6(r.before.charCodeAt(r.before.length-1),y,a);v.inside&&(h=t4(y)+h.slice(1));const x=h.charCodeAt(h.length-1),T=G6(r.after.charCodeAt(0),x,a);T.inside&&(h=h.slice(0,-1)+t4(x));const E=u.move(a);return l(),n.attentionEncodeSurroundingInfo={after:T.outside,before:v.outside},d+h+E}function ffe(e,t,n){return n.options.emphasis||"*"}function dfe(e,t){let n=!1;return i8(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,n8}),!!((!e.depth||e.depth<3)&&G7(e)&&(t.options.setext||n))}function hfe(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(dfe(e,n)){const v=n.enter("headingSetext"),x=n.enter("phrasing"),T=n.containerPhrasing(e,{...l.current(),before:`
`,after:`
`});return x(),v(),T+`
`+(a===1?"=":"-").repeat(T.length-(Math.max(T.lastIndexOf("\r"),T.lastIndexOf(`
`))+1))}const u="#".repeat(a),d=n.enter("headingAtx"),h=n.enter("phrasing");l.move(u+" ");let y=n.containerPhrasing(e,{before:"# ",after:`
`,...l.current()});return/^[\t ]/.test(y)&&(y=t4(y.charCodeAt(0))+y.slice(1)),y=y?u+" "+y:u,n.options.closeAtx&&(y+=" "+u),h(),d(),y}WI.peek=pfe;function WI(e){return e.value||""}function pfe(){return"<"}KI.peek=mfe;function KI(e,t,n,r){const a=SA(n),l=a==='"'?"Quote":"Apostrophe",u=n.enter("image");let d=n.enter("label");const h=n.createTracker(r);let y=h.move("![");return y+=h.move(n.safe(e.alt,{before:y,after:"]",...h.current()})),y+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),y+=h.move("<"),y+=h.move(n.safe(e.url,{before:y,after:">",...h.current()})),y+=h.move(">")):(d=n.enter("destinationRaw"),y+=h.move(n.safe(e.url,{before:y,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=n.enter(`title${l}`),y+=h.move(" "+a),y+=h.move(n.safe(e.title,{before:y,after:a,...h.current()})),y+=h.move(a),d()),y+=h.move(")"),u(),y}function mfe(){return"!"}QI.peek=gfe;function QI(e,t,n,r){const a=e.referenceType,l=n.enter("imageReference");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("![");const y=n.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),u();const v=n.stack;n.stack=[],u=n.enter("reference");const x=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return u(),n.stack=v,l(),a==="full"||!y||y!==x?h+=d.move(x+"]"):a==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function gfe(){return"!"}ZI.peek=yfe;function ZI(e,t,n){let r=e.value||"",a="`",l=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const u=n.unsafe[l],d=n.compilePattern(u);let h;if(u.atBreak)for(;h=d.exec(r);){let y=h.index;r.charCodeAt(y)===10&&r.charCodeAt(y-1)===13&&y--,r=r.slice(0,y)+" "+r.slice(h.index+1)}}return a+r+a}function yfe(){return"`"}function JI(e,t){const n=G7(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}eL.peek=vfe;function eL(e,t,n,r){const a=SA(n),l=a==='"'?"Quote":"Apostrophe",u=n.createTracker(r);let d,h;if(JI(e,n)){const v=n.stack;n.stack=[],d=n.enter("autolink");let x=u.move("<");return x+=u.move(n.containerPhrasing(e,{before:x,after:">",...u.current()})),x+=u.move(">"),d(),n.stack=v,x}d=n.enter("link"),h=n.enter("label");let y=u.move("[");return y+=u.move(n.containerPhrasing(e,{before:y,after:"](",...u.current()})),y+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),y+=u.move("<"),y+=u.move(n.safe(e.url,{before:y,after:">",...u.current()})),y+=u.move(">")):(h=n.enter("destinationRaw"),y+=u.move(n.safe(e.url,{before:y,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${l}`),y+=u.move(" "+a),y+=u.move(n.safe(e.title,{before:y,after:a,...u.current()})),y+=u.move(a),h()),y+=u.move(")"),d(),y}function vfe(e,t,n){return JI(e,n)?"<":"["}tL.peek=bfe;function tL(e,t,n,r){const a=e.referenceType,l=n.enter("linkReference");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("[");const y=n.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),u();const v=n.stack;n.stack=[],u=n.enter("reference");const x=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return u(),n.stack=v,l(),a==="full"||!y||y!==x?h+=d.move(x+"]"):a==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function bfe(){return"["}function EA(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function xfe(e){const t=EA(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sfe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nL(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Efe(e,t,n,r){const a=n.enter("list"),l=n.bulletCurrent;let u=e.ordered?Sfe(n):EA(n);const d=e.ordered?u==="."?")":".":xfe(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const v=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&v&&(!v.children||!v.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),nL(n)===u&&v){let x=-1;for(;++x<e.children.length;){const T=e.children[x];if(T&&T.type==="listItem"&&T.children&&T.children[0]&&T.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=d),n.bulletCurrent=u;const y=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=l,a(),y}function wfe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Tfe(e,t,n,r){const a=wfe(n);let l=n.bulletCurrent||EA(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let u=l.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=n.createTracker(r);d.move(l+" ".repeat(u-l.length)),d.shift(u);const h=n.enter("listItem"),y=n.indentLines(n.containerFlow(e,d.current()),v);return h(),y;function v(x,T,E){return T?(E?"":" ".repeat(u))+x:(E?l:l+" ".repeat(u-l.length))+x}}function Afe(e,t,n,r){const a=n.enter("paragraph"),l=n.enter("phrasing"),u=n.containerPhrasing(e,r);return l(),a(),u}const Cfe=Fb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ofe(e,t,n,r){return(e.children.some(function(u){return Cfe(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Mfe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rL.peek=Rfe;function rL(e,t,n,r){const a=Mfe(n),l=n.enter("strong"),u=n.createTracker(r),d=u.move(a+a);let h=u.move(n.containerPhrasing(e,{after:a,before:d,...u.current()}));const y=h.charCodeAt(0),v=G6(r.before.charCodeAt(r.before.length-1),y,a);v.inside&&(h=t4(y)+h.slice(1));const x=h.charCodeAt(h.length-1),T=G6(r.after.charCodeAt(0),x,a);T.inside&&(h=h.slice(0,-1)+t4(x));const E=u.move(a+a);return l(),n.attentionEncodeSurroundingInfo={after:T.outside,before:v.outside},d+h+E}function Rfe(e,t,n){return n.options.strong||"*"}function _fe(e,t,n,r){return n.safe(e.value,r)}function Dfe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Nfe(e,t,n){const r=(nL(n)+(n.options.ruleSpaces?" ":"")).repeat(Dfe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iL={blockquote:nfe,break:FI,code:lfe,definition:ufe,emphasis:XI,hardBreak:FI,heading:hfe,html:WI,image:KI,imageReference:QI,inlineCode:ZI,link:eL,linkReference:tL,list:Efe,listItem:Tfe,paragraph:Afe,root:Ofe,strong:rL,text:_fe,thematicBreak:Nfe};function kfe(){return{enter:{table:zfe,tableData:aL,tableHeader:aL,tableRow:Lfe},exit:{codeText:Vfe,table:Ife,tableData:wA,tableHeader:wA,tableRow:wA}}}function zfe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Ife(e){this.exit(e),this.data.inTable=void 0}function Lfe(e){this.enter({type:"tableRow",children:[]},e)}function wA(e){this.exit(e)}function aL(e){this.enter({type:"tableCell",children:[]},e)}function Vfe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bfe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Bfe(e,t){return t==="|"?t:e}function Pfe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:T,table:u,tableCell:h,tableRow:d}};function u(E,A,R,_){return y(v(E,R,_),E.align)}function d(E,A,R,_){const D=x(E,R,_),z=y([D]);return z.slice(0,z.indexOf(`
`))}function h(E,A,R,_){const D=R.enter("tableCell"),z=R.enter("phrasing"),V=R.containerPhrasing(E,{..._,before:l,after:l});return z(),D(),V}function y(E,A){return efe(E,{align:A,alignDelimiters:r,padding:n,stringLength:a})}function v(E,A,R){const _=E.children;let D=-1;const z=[],V=A.enter("table");for(;++D<_.length;)z[D]=x(_[D],A,R);return V(),z}function x(E,A,R){const _=E.children;let D=-1;const z=[],V=A.enter("tableRow");for(;++D<_.length;)z[D]=h(_[D],E,A,R);return V(),z}function T(E,A,R){let _=iL.inlineCode(E,A,R);return R.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function jfe(){return{exit:{taskListCheckValueChecked:oL,taskListCheckValueUnchecked:oL,paragraph:Ufe}}}function $fe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Hfe}}}function oL(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ufe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let l=-1,u;for(;++l<a.length;){const d=a[l];if(d.type==="paragraph"){u=d;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Hfe(e,t,n,r){const a=e.children[0],l=typeof e.checked=="boolean"&&a&&a.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=n.createTracker(r);l&&d.move(u);let h=iL.listItem(e,t,n,{...r,...d.current()});return l&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),h;function y(v){return v+u}}function qfe(){return[wce(),qce(),Xce(),kfe(),jfe()]}function Gfe(e){return{extensions:[Tce(),Gce(e),Wce(),Pfe(e),$fe()]}}const Ffe={tokenize:Zfe,partial:!0},lL={tokenize:Jfe,partial:!0},sL={tokenize:ede,partial:!0},uL={tokenize:tde,partial:!0},Yfe={tokenize:nde,partial:!0},cL={name:"wwwAutolink",tokenize:Kfe,previous:dL},fL={name:"protocolAutolink",tokenize:Qfe,previous:hL},Sf={name:"emailAutolink",tokenize:Wfe,previous:pL},gc={};function Xfe(){return{text:gc}}let G0=48;for(;G0<123;)gc[G0]=Sf,G0++,G0===58?G0=65:G0===91&&(G0=97);gc[43]=Sf,gc[45]=Sf,gc[46]=Sf,gc[95]=Sf,gc[72]=[Sf,fL],gc[104]=[Sf,fL],gc[87]=[Sf,cL],gc[119]=[Sf,cL];function Wfe(e,t,n){const r=this;let a,l;return u;function u(x){return!TA(x)||!pL.call(r,r.previous)||AA(r.events)?n(x):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(x))}function d(x){return TA(x)?(e.consume(x),d):x===64?(e.consume(x),h):n(x)}function h(x){return x===46?e.check(Yfe,v,y)(x):x===45||x===95||Ya(x)?(l=!0,e.consume(x),h):v(x)}function y(x){return e.consume(x),a=!0,h}function v(x){return l&&a&&bo(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(x)):n(x)}}function Kfe(e,t,n){const r=this;return a;function a(u){return u!==87&&u!==119||!dL.call(r,r.previous)||AA(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ffe,e.attempt(lL,e.attempt(sL,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function Qfe(e,t,n){const r=this;let a="",l=!1;return u;function u(x){return(x===72||x===104)&&hL.call(r,r.previous)&&!AA(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(x),e.consume(x),d):n(x)}function d(x){if(bo(x)&&a.length<5)return a+=String.fromCodePoint(x),e.consume(x),d;if(x===58){const T=a.toLowerCase();if(T==="http"||T==="https")return e.consume(x),h}return n(x)}function h(x){return x===47?(e.consume(x),l?y:(l=!0,h)):n(x)}function y(x){return x===null||l6(x)||Mr(x)||B0(x)||s6(x)?n(x):e.attempt(lL,e.attempt(sL,v),n)(x)}function v(x){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(x)}}function Zfe(e,t,n){let r=0;return a;function a(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),a):u===46&&r===3?(e.consume(u),l):n(u)}function l(u){return u===null?n(u):t(u)}}function Jfe(e,t,n){let r,a,l;return u;function u(y){return y===46||y===95?e.check(uL,h,d)(y):y===null||Mr(y)||B0(y)||y!==45&&s6(y)?h(y):(l=!0,e.consume(y),u)}function d(y){return y===95?r=!0:(a=r,r=void 0),e.consume(y),u}function h(y){return a||r||!l?n(y):t(y)}}function ede(e,t){let n=0,r=0;return a;function a(u){return u===40?(n++,e.consume(u),a):u===41&&r<n?l(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(uL,t,l)(u):u===null||Mr(u)||B0(u)?t(u):(e.consume(u),a)}function l(u){return u===41&&r++,e.consume(u),a}}function tde(e,t,n){return r;function r(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),r):d===38?(e.consume(d),l):d===93?(e.consume(d),a):d===60||d===null||Mr(d)||B0(d)?t(d):n(d)}function a(d){return d===null||d===40||d===91||Mr(d)||B0(d)?t(d):r(d)}function l(d){return bo(d)?u(d):n(d)}function u(d){return d===59?(e.consume(d),r):bo(d)?(e.consume(d),u):n(d)}}function nde(e,t,n){return r;function r(l){return e.consume(l),a}function a(l){return Ya(l)?n(l):t(l)}}function dL(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Mr(e)}function hL(e){return!bo(e)}function pL(e){return!(e===47||TA(e))}function TA(e){return e===43||e===45||e===46||e===95||Ya(e)}function AA(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rde={tokenize:fde,partial:!0};function ide(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sde,continuation:{tokenize:ude},exit:cde}},text:{91:{name:"gfmFootnoteCall",tokenize:lde},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ade,resolveTo:ode}}}}function ade(e,t,n){const r=this;let a=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;a--;){const h=r.events[a][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!u||!u._balanced)return n(h);const y=gu(r.sliceSerialize({start:u.end,end:r.now()}));return y.codePointAt(0)!==94||!l.includes(y.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function ode(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},d=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...d),e}function lde(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,u;return d;function d(x){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),h}function h(x){return x!==94?n(x):(e.enter("gfmFootnoteCallMarker"),e.consume(x),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",y)}function y(x){if(l>999||x===93&&!u||x===null||x===91||Mr(x))return n(x);if(x===93){e.exit("chunkString");const T=e.exit("gfmFootnoteCallString");return a.includes(gu(r.sliceSerialize(T)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(x)}return Mr(x)||(u=!0),l++,e.consume(x),x===92?v:y}function v(x){return x===91||x===92||x===93?(e.consume(x),l++,y):y(x)}}function sde(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,u=0,d;return h;function h(A){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(A),e.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(A){return A===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(A),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):n(A)}function v(A){if(u>999||A===93&&!d||A===null||A===91||Mr(A))return n(A);if(A===93){e.exit("chunkString");const R=e.exit("gfmFootnoteDefinitionLabelString");return l=gu(r.sliceSerialize(R)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(A),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),T}return Mr(A)||(d=!0),u++,e.consume(A),A===92?x:v}function x(A){return A===91||A===92||A===93?(e.consume(A),u++,v):v(A)}function T(A){return A===58?(e.enter("definitionMarker"),e.consume(A),e.exit("definitionMarker"),a.includes(l)||a.push(l),zn(e,E,"gfmFootnoteDefinitionWhitespace")):n(A)}function E(A){return t(A)}}function ude(e,t,n){return e.check(jb,t,e.attempt(rde,t,n))}function cde(e){e.exit("gfmFootnoteDefinition")}function fde(e,t,n){const r=this;return zn(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(l):n(l)}}function dde(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(u,d){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let y=h;for(;y--;)if(u[y][0]==="exit"&&u[y][1].type==="strikethroughSequenceTemporary"&&u[y][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[y][1].end.offset-u[y][1].start.offset){u[h][1].type="strikethroughSequence",u[y][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},u[y][1].start),end:Object.assign({},u[h][1].end)},x={type:"strikethroughText",start:Object.assign({},u[y][1].end),end:Object.assign({},u[h][1].start)},T=[["enter",v,d],["enter",u[y][1],d],["exit",u[y][1],d],["enter",x,d]],E=d.parser.constructs.insideSpan.null;E&&Al(T,T.length,0,u6(E,u.slice(y+1,h),d)),Al(T,T.length,0,[["exit",x,d],["enter",u[h][1],d],["exit",u[h][1],d],["exit",v,d]]),Al(u,y-1,h-y+3,T),h=y+T.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function l(u,d,h){const y=this.previous,v=this.events;let x=0;return T;function T(A){return y===126&&v[v.length-1][1].type!=="characterEscape"?h(A):(u.enter("strikethroughSequenceTemporary"),E(A))}function E(A){const R=Pg(y);if(A===126)return x>1?h(A):(u.consume(A),x++,E);if(x<2&&!n)return h(A);const _=u.exit("strikethroughSequenceTemporary"),D=Pg(A);return _._open=!D||D===2&&!!R,_._close=!R||R===2&&!!D,d(A)}}}class hde{constructor(){this.map=[]}add(t,n,r){pde(this,t,n,r)}consume(t){if(this.map.sort(function(l,u){return l[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const l of a)t.push(l);a=r.pop()}this.map.length=0}}function pde(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function mde(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function gde(){return{flow:{null:{name:"table",tokenize:yde,resolveAll:vde}}}}function yde(e,t,n){const r=this;let a=0,l=0,u;return d;function d(ie){let ue=r.events.length-1;for(;ue>-1;){const Q=r.events[ue][1].type;if(Q==="lineEnding"||Q==="linePrefix")ue--;else break}const U=ue>-1?r.events[ue][1].type:null,le=U==="tableHead"||U==="tableRow"?H:h;return le===H&&r.parser.lazy[r.now().line]?n(ie):le(ie)}function h(ie){return e.enter("tableHead"),e.enter("tableRow"),y(ie)}function y(ie){return ie===124||(u=!0,l+=1),v(ie)}function v(ie){return ie===null?n(ie):jt(ie)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),E):n(ie):Pn(ie)?zn(e,v,"whitespace")(ie):(l+=1,u&&(u=!1,a+=1),ie===124?(e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),u=!0,v):(e.enter("data"),x(ie)))}function x(ie){return ie===null||ie===124||Mr(ie)?(e.exit("data"),v(ie)):(e.consume(ie),ie===92?T:x)}function T(ie){return ie===92||ie===124?(e.consume(ie),x):x(ie)}function E(ie){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(ie):(e.enter("tableDelimiterRow"),u=!1,Pn(ie)?zn(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):A(ie))}function A(ie){return ie===45||ie===58?_(ie):ie===124?(u=!0,e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),R):I(ie)}function R(ie){return Pn(ie)?zn(e,_,"whitespace")(ie):_(ie)}function _(ie){return ie===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),D):ie===45?(l+=1,D(ie)):ie===null||jt(ie)?P(ie):I(ie)}function D(ie){return ie===45?(e.enter("tableDelimiterFiller"),z(ie)):I(ie)}function z(ie){return ie===45?(e.consume(ie),z):ie===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),V):(e.exit("tableDelimiterFiller"),V(ie))}function V(ie){return Pn(ie)?zn(e,P,"whitespace")(ie):P(ie)}function P(ie){return ie===124?A(ie):ie===null||jt(ie)?!u||a!==l?I(ie):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(ie)):I(ie)}function I(ie){return n(ie)}function H(ie){return e.enter("tableRow"),X(ie)}function X(ie){return ie===124?(e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),X):ie===null||jt(ie)?(e.exit("tableRow"),t(ie)):Pn(ie)?zn(e,X,"whitespace")(ie):(e.enter("data"),se(ie))}function se(ie){return ie===null||ie===124||Mr(ie)?(e.exit("data"),X(ie)):(e.consume(ie),ie===92?ce:se)}function ce(ie){return ie===92||ie===124?(e.consume(ie),se):se(ie)}}function vde(e,t){let n=-1,r=!0,a=0,l=[0,0,0,0],u=[0,0,0,0],d=!1,h=0,y,v,x;const T=new hde;for(;++n<e.length;){const E=e[n],A=E[1];E[0]==="enter"?A.type==="tableHead"?(d=!1,h!==0&&(mL(T,t,h,y,v),v=void 0,h=0),y={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},T.add(n,0,[["enter",y,t]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(r=!0,x=void 0,l=[0,0,0,0],u=[0,n+1,0,0],d&&(d=!1,v={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},T.add(n,0,[["enter",v,t]])),a=A.type==="tableDelimiterRow"?2:v?3:1):a&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(l[1]!==0&&(u[0]=u[1],x=F6(T,t,l,a,void 0,x),l=[0,0,0,0]),u[2]=n)):A.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(u[0]=u[1],x=F6(T,t,l,a,void 0,x)),l=u,u=[l[1],n,0,0])):A.type==="tableHead"?(d=!0,h=n):A.type==="tableRow"||A.type==="tableDelimiterRow"?(h=n,l[1]!==0?(u[0]=u[1],x=F6(T,t,l,a,n,x)):u[1]!==0&&(x=F6(T,t,u,a,n,x)),a=0):a&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&mL(T,t,h,y,v),T.consume(t.events),n=-1;++n<t.events.length;){const E=t.events[n];E[0]==="enter"&&E[1].type==="table"&&(E[1]._align=mde(t.events,n))}return e}function F6(e,t,n,r,a,l){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",d="tableContent";n[0]!==0&&(l.end=Object.assign({},Kg(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const h=Kg(t.events,n[1]);if(l={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const y=Kg(t.events,n[2]),v=Kg(t.events,n[3]),x={type:d,start:Object.assign({},y),end:Object.assign({},v)};if(e.add(n[2],0,[["enter",x,t]]),r!==2){const T=t.events[n[2]],E=t.events[n[3]];if(T[1].end=Object.assign({},E[1].end),T[1].type="chunkText",T[1].contentType="text",n[3]>n[2]+1){const A=n[2]+1,R=n[3]-n[2]-1;e.add(A,R,[])}}e.add(n[3]+1,0,[["exit",x,t]])}return a!==void 0&&(l.end=Object.assign({},Kg(t.events,a)),e.add(a,0,[["exit",l,t]]),l=void 0),l}function mL(e,t,n,r,a){const l=[],u=Kg(t.events,n);a&&(a.end=Object.assign({},u),l.push(["exit",a,t])),r.end=Object.assign({},u),l.push(["exit",r,t]),e.add(n+1,0,l)}function Kg(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bde={name:"tasklistCheck",tokenize:Sde};function xde(){return{text:{91:bde}}}function Sde(e,t,n){const r=this;return a;function a(h){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),l)}function l(h){return Mr(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):n(h)}function d(h){return jt(h)?t(h):Pn(h)?e.check({tokenize:Ede},t,n)(h):n(h)}}function Ede(e,t,n){return zn(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function wde(e){return YN([Xfe(),ide(),dde(e),gde(),xde()])}const Tde={};function Ade(e){const t=this,n=e||Tde,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(wde(n)),l.push(qfe()),u.push(Gfe(n))}function Cde(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:l},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:d,mathText:u,mathTextData:d}};function e(h){const y={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[y]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),y=this.stack[this.stack.length-1];y.type,y.meta=h}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(h){const y=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),v=this.stack[this.stack.length-1];v.type,this.exit(h),v.value=y;const x=v.data.hChildren[0];x.type,x.tagName,x.children.push({type:"text",value:y}),this.data.mathFlowInside=void 0}function l(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function u(h){const y=this.resume(),v=this.stack[this.stack.length-1];v.type,this.exit(h),v.value=y,v.data.hChildren.push({type:"text",value:y})}function d(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function Ode(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(l,u,d,h){const y=l.value||"",v=d.createTracker(h),x="$".repeat(Math.max(YI(y,"$")+1,2)),T=d.enter("mathFlow");let E=v.move(x);if(l.meta){const A=d.enter("mathFlowMeta");E+=v.move(d.safe(l.meta,{after:`
`,before:E,encode:["$"],...v.current()})),A()}return E+=v.move(`
`),y&&(E+=v.move(y+`
`)),E+=v.move(x),T(),E}function r(l,u,d){let h=l.value||"",y=1;for(t||y++;new RegExp("(^|[^$])"+"\\$".repeat(y)+"([^$]|$)").test(h);)y++;const v="$".repeat(y);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let x=-1;for(;++x<d.unsafe.length;){const T=d.unsafe[x];if(!T.atBreak)continue;const E=d.compilePattern(T);let A;for(;A=E.exec(h);){let R=A.index;h.codePointAt(R)===10&&h.codePointAt(R-1)===13&&R--,h=h.slice(0,R)+" "+h.slice(A.index+1)}}return v+h+v}function a(){return"$"}}const Mde={tokenize:Rde,concrete:!0,name:"mathFlow"},gL={tokenize:_de,partial:!0};function Rde(e,t,n){const r=this,a=r.events[r.events.length-1],l=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let u=0;return d;function d(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(z)}function h(z){return z===36?(e.consume(z),u++,h):u<2?n(z):(e.exit("mathFlowFenceSequence"),zn(e,y,"whitespace")(z))}function y(z){return z===null||jt(z)?x(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||jt(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),x(z)):z===36?n(z):(e.consume(z),v)}function x(z){return e.exit("mathFlowFence"),r.interrupt?t(z):e.attempt(gL,T,_)(z)}function T(z){return e.attempt({tokenize:D,partial:!0},_,E)(z)}function E(z){return(l?zn(e,A,"linePrefix",l+1):A)(z)}function A(z){return z===null?_(z):jt(z)?e.attempt(gL,T,_)(z):(e.enter("mathFlowValue"),R(z))}function R(z){return z===null||jt(z)?(e.exit("mathFlowValue"),A(z)):(e.consume(z),R)}function _(z){return e.exit("mathFlow"),t(z)}function D(z,V,P){let I=0;return zn(z,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function H(ce){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),X(ce)}function X(ce){return ce===36?(I++,z.consume(ce),X):I<u?P(ce):(z.exit("mathFlowFenceSequence"),zn(z,se,"whitespace")(ce))}function se(ce){return ce===null||jt(ce)?(z.exit("mathFlowFence"),V(ce)):P(ce)}}}function _de(e,t,n){const r=this;return a;function a(u){return u===null?t(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function Dde(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:Nde,previous:kde,name:"mathText"};function r(a,l,u){let d=0,h,y;return v;function v(R){return a.enter("mathText"),a.enter("mathTextSequence"),x(R)}function x(R){return R===36?(a.consume(R),d++,x):d<2&&!n?u(R):(a.exit("mathTextSequence"),T(R))}function T(R){return R===null?u(R):R===36?(y=a.enter("mathTextSequence"),h=0,A(R)):R===32?(a.enter("space"),a.consume(R),a.exit("space"),T):jt(R)?(a.enter("lineEnding"),a.consume(R),a.exit("lineEnding"),T):(a.enter("mathTextData"),E(R))}function E(R){return R===null||R===32||R===36||jt(R)?(a.exit("mathTextData"),T(R)):(a.consume(R),E)}function A(R){return R===36?(a.consume(R),h++,A):h===d?(a.exit("mathTextSequence"),a.exit("mathText"),l(R)):(y.type="mathTextData",E(R))}}}function Nde(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function kde(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function zde(e){return{flow:{36:Mde},text:{36:Dde(e)}}}const Ide={};function Lde(e){const t=this,n=e||Ide,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(zde(n)),l.push(Cde()),u.push(Ode(n))}const Vde=({text:e,isUser:t,onTypingUpdate:n})=>{const[r,a]=q.useState(""),[l,u]=q.useState(!0),d=q.useRef(null),h=Wl("settings"),y=q.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),v=q.useMemo(()=>y?{contain:"layout style",willChange:"auto",overflowWrap:"anywhere",wordBreak:"break-word"}:{},[y]);return q.useEffect(()=>{if(t||y){a(e),u(!1);return}let x=0;const E=setInterval(()=>{x<=e.length?(a(e.slice(0,x)),x++,n&&n()):(u(!1),clearInterval(E))},10);return()=>clearInterval(E)},[e,t,y]),q.useEffect(()=>{if(!l&&d.current){const x=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${x}`)}},[l]),L.jsxs(wi,{style:v,children:[L.jsx("div",{className:`chat-message-content ${t?"user":""}`,children:L.jsx(Mle,{rehypePlugins:[lce,[yce,{attributes:{"*":["className","aria-label","aria-hidden","role","aria-busy","aria-live","aria-atomic"],a:["href","target"],img:["src","alt"],math:["display"],span:["style"],svg:["aria-hidden","role","xmlns","width","height","viewBox"],path:["d"]},tagNames:["p","br","b","i","em","strong","a","pre","code","ul","ol","li","blockquote","img","math","span","svg","path"]}]],remarkPlugins:[Ade,Lde],components:{pre:({node:x,...T})=>L.jsx("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:x,...T})=>L.jsx("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:x,...T})=>L.jsx("img",{...T,alt:T.alt||"Image in message"})},children:r})}),L.jsx("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true",children:l?"":e}),l&&!y&&L.jsx("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation",children:"|"})]})};function CA(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const Bde=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:r})=>{const a=()=>e.isUser?L.jsx(xW,{}):L.jsx(Mre,{model:e.model}),l=()=>{const u=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${CA(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${u}${d}${h}`};return L.jsx(wi,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem",children:L.jsxs(wi,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"},children:[L.jsx(Q_,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true",children:a()}),L.jsxs(wi,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":l(),children:[!e.isUser&&L.jsx(Gn,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${CA(e.model)}`,children:CA(e.model)}),L.jsx(Vde,{text:e.text,isUser:e.isUser,onTypingUpdate:r}),e.isWelcomeMessage&&e.modelSelections&&L.jsx(Rre,{enabledModels:e.modelSelections}),L.jsxs(wi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[t&&e.id.startsWith("system-")&&L.jsx(qd,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0},children:"Open Settings"}),L.jsx(Gn,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`,children:new Date(e.timestamp).toLocaleTimeString()})]}),!e.isUser&&e.status==="PENDING"&&L.jsx(wi,{role:"status","aria-label":"AI is typing",children:L.jsx(cb,{size:16})})]})]})})},yL=q.memo(({suggestion:e,onClick:t})=>{const n=lf();return L.jsx(F_,{label:e.text,onClick:t,role:"button","aria-label":`Suggestion: ${e.text}`,sx:{bgcolor:n.palette.primary.main,color:n.palette.primary.contrastText,"&:hover":{bgcolor:n.palette.primary.dark}}})});yL.displayName="SuggestionChip";const vL=q.memo(({suggestions:e,onSuggestionClick:t})=>{const n=lf();return!e||!e.length?null:L.jsx(wi,{role:"region","aria-label":"Suggested responses",sx:{p:2,display:"flex",flexWrap:"wrap",gap:1,borderTop:`1px solid ${n.palette.divider}`,bgcolor:n.palette.background.paper},children:e.map(r=>L.jsx(yL,{suggestion:r,onClick:()=>t(r)},r.id))})});vL.displayName="Suggestions";const Pde=()=>{var V;const e=q.useId(),t=lf(),n=fu("chat"),r=fu("settings"),{messages:a,suggestions:l}=Wl("chat"),u=!n.canSend,[d,h]=q.useState(""),y=q.useRef(null),v=q.useRef(null),x=q.useRef(0),T=q.useRef(null),E=()=>{r.toggle()},A=(P=!1)=>{if(!v.current)return;const I=v.current;(I.scrollTop+I.clientHeight>=I.scrollHeight-100||P)&&requestAnimationFrame(()=>{I.scrollTo({top:I.scrollHeight,behavior:"smooth"})})};q.useEffect(()=>{const P=setTimeout(()=>{A(!0)},200);return()=>clearTimeout(P)},[a.length]),q.useEffect(()=>{setTimeout(()=>A(!0),200)},[]),q.useEffect(()=>{if(!v.current)return;const P=v.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(I=>{let H=!1;I.forEach(X=>{(X.type==="childList"||X.type==="characterData")&&P.scrollTop+P.clientHeight>=P.scrollHeight-100&&(H=!0)}),H&&requestAnimationFrame(()=>{P.scrollTo({top:P.scrollHeight,behavior:"auto"})})}),T.current.observe(P,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[a.length]),q.useEffect(()=>{if(!v.current)return;const P=v.current,I=P.scrollHeight;I>x.current&&P.scrollTop+P.clientHeight>=x.current-100&&requestAnimationFrame(()=>{P.scrollTo({top:I,behavior:"auto"})}),x.current=I},[a]),q.useEffect(()=>{if(a.length>0){const P=a[a.length-1];if(P.status==="SUCCESS"||P.status==="FAILED"){const I=setTimeout(()=>{A(!0)},300);return()=>clearTimeout(I)}}},[a.length>0?(V=a[a.length-1])==null?void 0:V.status:""]);const R=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>A(!0),100))},D=P=>{h(P.text)},z=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),_())};return L.jsxs(_g,{id:e,role:"dialog",open:!0,onClose:R,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}},children:[L.jsx(G3,{component:"h2",sx:{p:2},children:L.jsxs(Dt,{container:!0,justifyContent:"space-between",alignItems:"center",children:[L.jsx(Dt,{size:"auto",children:L.jsx(Gn,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface",children:"Chart Assistant"})}),L.jsx(Dt,{size:"auto",children:L.jsx(Eg,{onClick:R,"aria-label":"Close chat dialog",children:L.jsx(QR,{})})})]})}),L.jsx(Dg,{dividers:!0,sx:{p:0,overflow:"hidden"},children:L.jsxs(Dt,{container:!0,direction:"column",sx:{height:"100%"},children:[L.jsxs(Dt,{ref:v,size:12,component:"section","aria-label":"Chat messages",sx:{flex:1,overflowY:"auto",p:2,bgcolor:t.palette.background.default,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:t.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:t.palette.grey[400],borderRadius:"3px"}},children:[a.map(P=>L.jsx(Bde,{message:P,disabled:u,_onOpenSettings:E,onTypingUpdate:()=>{if(v.current){const I=v.current;I.scrollTop+I.clientHeight>=I.scrollHeight-100&&requestAnimationFrame(()=>{I.scrollTo({top:I.scrollHeight,behavior:"auto"})})}}},P.id)),L.jsx("div",{ref:y})]}),L.jsx(vL,{suggestions:l,onSuggestionClick:D}),L.jsx(Dt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`},children:L.jsxs(Dt,{container:!0,spacing:1,alignItems:"center",children:[L.jsx(Dt,{size:{xs:10},children:L.jsx(Fo,{value:d,disabled:u,onChange:P=>h(P.target.value),onKeyDown:z,maxRows:4,placeholder:"What can I help you with?",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,multiline:!0,"aria-label":"Type your message to the AI assistant"})}),L.jsx(Dt,{size:{xs:2},container:!0,justifyContent:"flex-end",children:L.jsx(Eg,{onClick:_,disabled:u,color:"primary","aria-label":"Send message to AI assistant",sx:{bgcolor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{bgcolor:t.palette.primary.dark}},children:L.jsx(wW,{})})})]})})]})})]})},jde=()=>{const e=fu("commandPalette"),t=Wl("commandPalette"),[n]=q.useState(""),r=q.useRef(null),a=q.useRef(null),l=q.useRef(!1),u=q.useMemo(()=>{if(!t.search.trim())return t.commands;const v=t.search.toLowerCase();return t.commands.filter(x=>x.description.toLowerCase().includes(v)||x.key.toLowerCase().includes(v))},[t.commands,t.search]);q.useEffect(()=>{t.visible&&r.current&&setTimeout(()=>{r.current&&r.current.focus()},100)},[t.visible]),q.useEffect(()=>{t.visible&&r.current&&t.selectedIndex},[t.selectedIndex,t.visible]),q.useEffect(()=>{if(a.current&&t.selectedIndex>=0){const v=a.current,x=v.children[t.selectedIndex];if(x){x.focus();const T=v.getBoundingClientRect(),E=x.getBoundingClientRect();(E.top<T.top||E.bottom>T.bottom)&&x.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[t.selectedIndex]);const d=q.useCallback(()=>{e.hide()},[e]),h=q.useCallback(v=>{e.executeAndClose(v)},[e]),y=q.useCallback(v=>{e.updateSearch(v.target.value)},[e]);return t.visible?L.jsxs(_g,{open:t.visible,onClose:d,maxWidth:"md",fullWidth:!0,disablePortal:!0,role:"dialog","aria-modal":"true","aria-labelledby":"command-palette-title","aria-describedby":"command-palette-description",sx:{"& .MuiDialog-paper":{maxHeight:"80vh"}},children:[L.jsx(wi,{component:"h2",id:"command-palette-title",sx:{p:2,m:0},children:L.jsx(wi,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600},children:"Command Palette"})}),L.jsxs(Dg,{dividers:!0,sx:{p:2,overflow:"hidden"},children:[L.jsx(wi,{id:"command-palette-description",sx:{mb:2},children:L.jsx(Gn,{variant:"body2",color:"text.secondary",sx:{m:0},children:"Type to search commands, use arrow keys to navigate the list, and press Enter to execute a command"})}),L.jsx(Fo,{ref:r,fullWidth:!0,placeholder:"Search commands...",value:t.search,onChange:y,sx:{mb:2},autoFocus:!0,inputProps:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"command-list","aria-expanded":!0,"aria-activedescendant":t.selectedIndex>=0?`command-${t.selectedIndex}`:void 0,"aria-label":"Search commands","aria-describedby":"command-palette-description",onKeyDown:v=>{if(v.key==="Enter"){if(v.preventDefault(),v.stopPropagation(),u.length>0&&t.selectedIndex>=0){const x=u[t.selectedIndex];x&&h(x.commandKey)}}else v.key==="ArrowDown"?(v.preventDefault(),v.stopPropagation(),e.moveDown()):v.key==="ArrowUp"&&(v.preventDefault(),v.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),L.jsx(X3,{ref:a,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"},children:u.map((v,x)=>L.jsx(ED,{id:`command-${x}`,role:"option","aria-selected":x===t.selectedIndex,"aria-label":`${v.description} (${v.key})`,selected:x===t.selectedIndex,tabIndex:x===t.selectedIndex?0:-1,onClick:()=>{l.current||h(v.commandKey)},onKeyDown:T=>{T.key==="Enter"?(T.preventDefault(),T.stopPropagation(),l.current=!0,setTimeout(()=>{l.current=!1},100),h(v.commandKey)):T.key==="ArrowUp"?(T.preventDefault(),T.stopPropagation(),x===0?e.moveToSearch():e.moveUp()):T.key==="ArrowDown"&&(T.preventDefault(),T.stopPropagation(),e.moveDown())},sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"},"&.Mui-selected":{bgcolor:"action.selected"}},children:L.jsx(T7,{primary:v.description,secondary:`${v.key}`})},v.commandKey))}),n&&L.jsx("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:n})]})]}):null},bL=100,$de=({headers:e,rows:t,title:n})=>{const[r,a]=q.useState(!1),l=t.length>bL,u=r?t:t.slice(0,bL);return L.jsxs(L.Fragment,{children:[L.jsxs(Gn,{variant:"subtitle2",fontWeight:"bold",sx:{mt:1,mb:1},children:["Data"," ","(",t.length," ",t.length===1?"row":"rows",")"]}),L.jsx(uN,{sx:{maxHeight:300},children:L.jsxs(oN,{size:"small",stickyHeader:!0,"aria-label":nh(n)?`Chart data for ${n}`:"Chart data",children:[L.jsx(fN,{children:L.jsx(k7,{children:e.map((d,h)=>L.jsx(N7,{sx:{fontWeight:"bold"},children:xL(d)},h))})}),L.jsx(sN,{children:u.map((d,h)=>L.jsx(k7,{children:d.map((y,v)=>L.jsx(N7,{children:xL(y)},v))},h))})]})}),l&&L.jsx(qd,{size:"small",onClick:()=>a(!r),"aria-expanded":r,sx:{mt:1},children:r?"Show less":`Show all ${t.length} rows`})]})};function nh(e){if(e==null)return!1;if(typeof e=="number")return Number.isFinite(e);if(typeof e=="string"){const t=e.trim();return t!==""&&t!=="undefined"&&t!=="unavailable"}return!0}function xL(e){return nh(e)?String(e):""}const Ude=()=>{const e=q.useId(),t=fu("description"),{data:n}=Wl("description"),r=()=>{t.toggle()};if(!n)return null;const a=Object.entries(n.axes).filter(([,l])=>nh(l));return L.jsxs(_g,{id:e,role:"dialog",open:!0,onClose:r,maxWidth:"md",fullWidth:!0,disablePortal:!0,"aria-modal":"true","aria-labelledby":`${e}-title`,children:[L.jsx(Dt,{container:!0,component:G3,children:L.jsx(Dt,{size:"grow",children:L.jsx(Gn,{id:`${e}-title`,variant:"h6",fontWeight:"bold",children:"Chart Description"})})}),L.jsxs(Dg,{children:[nh(n.chartType)&&L.jsxs(Gn,{variant:"body2",children:["Chart Type:"," ",n.chartType]}),nh(n.title)&&L.jsxs(Gn,{variant:"body2",sx:{mb:2},children:["Title:"," ",n.title]}),n.subplots&&n.subplots.length>0&&L.jsxs(L.Fragment,{children:[L.jsx(sc,{sx:{my:1}}),L.jsxs(Gn,{variant:"subtitle2",fontWeight:"bold",sx:{mt:1},children:["Subplots"," ","(",n.subplots.length,")"]}),n.subplots.map(l=>L.jsxs(Gn,{variant:"body2",children:[l.index,"."," ",l.traceTypes.filter(nh).join(", ")||"unknown",nh(l.title)&&` — ${l.title}`,l.isActive&&" (current)"]},l.index))]}),L.jsx(sc,{sx:{my:1}}),a.length>0&&L.jsxs(L.Fragment,{children:[L.jsx(Gn,{variant:"subtitle2",fontWeight:"bold",sx:{mt:1},children:"Axes"}),a.map(([l,u])=>L.jsxs(Gn,{variant:"body2",children:[l.toUpperCase(),":",u]},l)),L.jsx(sc,{sx:{my:1}})]}),n.stats.length>0&&L.jsxs(L.Fragment,{children:[L.jsx(Gn,{variant:"subtitle2",fontWeight:"bold",sx:{mt:1},children:"Summary"}),n.stats.filter(l=>nh(l.value)).map((l,u)=>L.jsxs(Gn,{variant:"body2",children:[l.label,":",l.value]},u)),L.jsx(sc,{sx:{my:1}})]}),n.dataTable.rows.length>0&&L.jsx($de,{headers:n.dataTable.headers,rows:n.dataTable.rows,title:n.title})]}),L.jsx(Dt,{container:!0,component:q3,children:L.jsx(Dt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:L.jsx(Dt,{size:"auto",children:L.jsx(qd,{variant:"contained",color:"primary",onClick:r,children:"Close"})})})})]})},Hde=({label:e,shortcut:t})=>L.jsxs(Dt,{container:!0,spacing:1,alignItems:"center",sx:{py:1},children:[L.jsx(Dt,{size:{xs:12,sm:6,md:7},children:L.jsx(Gn,{variant:"body2",children:e})}),L.jsx(Dt,{size:{xs:12,sm:6,md:5},children:L.jsx(Gn,{variant:"body2",fontWeight:300,children:t})})]}),qde=()=>{const e=q.useId(),t=fu("help"),{items:n}=t.state,r=()=>{t.toggle()};return L.jsxs(_g,{id:e,role:"dialog",open:!0,onClose:r,maxWidth:"sm",fullWidth:!0,disablePortal:!0,children:[L.jsx(Dt,{container:!0,component:G3,children:L.jsx(Dt,{size:"grow",children:L.jsx(Gn,{variant:"h6",fontWeight:"bold",children:"Keyboard Shortcuts"})})}),L.jsx(Dg,{children:L.jsx(Dt,{container:!0,spacing:1,children:n.map((a,l)=>L.jsxs(ou.Fragment,{children:[L.jsx(Dt,{size:12,children:L.jsx(Hde,{label:a.description,shortcut:a.key})},l),l!==n.length-1&&L.jsx(Dt,{size:12,children:L.jsx(sc,{})})]},l))})}),L.jsx(Dt,{container:!0,component:q3,children:L.jsx(Dt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:L.jsx(Dt,{size:"auto",children:L.jsx(qd,{variant:"contained",color:"primary",onClick:r,children:"Close"})})})})]})},Gde=()=>{const e=q.useId(),{value:t}=Wl("review");return L.jsx("div",{id:e,children:L.jsx("input",{id:`${fe.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0})})};class Y6{static async validateApiKey(t,n){try{switch(t){case"OPENAI":return await this.validateOpenAiKey(n);case"ANTHROPIC_CLAUDE":return await this.validateAnthropicKey(n);case"GOOGLE_GEMINI":return await this.validateGeminiKey(n);default:return{isValid:!1,error:"Invalid model key"}}}catch(r){return{isValid:!1,error:r instanceof Error?r.message:"Unknown error occurred"}}}static async validateOpenAiKey(t){try{return(await fetch(this.OPENAI_API_URL,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateAnthropicKey(t){try{return(await fetch(this.ANTHROPIC_API_URL,{method:"POST",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-sonnet-20240229",max_tokens:1,messages:[{role:"user",content:"test"}]})}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}static async validateGeminiKey(t){try{return(await fetch(`${this.GEMINI_API_URL}?key=${t}`,{method:"GET"}).catch(()=>({ok:!1}))).ok?{isValid:!0}:{isValid:!1,error:"Invalid API key"}}catch{return{isValid:!1,error:"Invalid API key"}}}}j(Y6,"OPENAI_API_URL","https://api.openai.com/v1/models"),j(Y6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),j(Y6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const X6=10,SL="s",EL="c";function Fde(e,t){const n=Uv[e],r=n.options;return!t||!r.includes(t)?n.default:t}const Oa=({label:e,input:t,alignLabel:n="center",labelId:r})=>L.jsxs(Dt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1},children:[L.jsx(Dt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0,children:L.jsx(Gn,{id:r,variant:"body2",fontWeight:"normal",children:e})}),L.jsx(Dt,{size:{xs:12,sm:6,md:8},children:t})]}),wL=({rowLabel:e,placeholder:t,presets:n,selectedPresetId:r,formatPreset:a,onPresetChange:l,hint:u})=>{const d=q.useId(),h=q.useId();return L.jsx(Oa,{label:e,labelId:d,input:L.jsxs(pi,{fullWidth:!0,children:[L.jsxs(L0,{value:r??"",onChange:y=>l(y.target.value),fullWidth:!0,size:"small",displayEmpty:!0,slotProps:{input:{"aria-labelledby":d,"aria-required":!0,...u?{"aria-describedby":h}:{}}},MenuProps:{disablePortal:!0},children:[L.jsx(df,{value:"",disabled:!0,children:t}),n.map(y=>L.jsx(df,{value:y.id,children:a(y)},y.id))]}),u&&L.jsx(Gn,{id:h,variant:"caption",sx:{mt:.5,color:"text.secondary"},children:u})]})})},Yde=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:r,onChangeVersion:a})=>{const l=Fde(e,t.version),[u,d]=q.useState(!1),[h,y]=q.useState(null),v=()=>t.enabled?u?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",x=async E=>{if(!t.enabled||!E.trim()){y(null);return}d(!0);try{const A=await Y6.validateApiKey(e,E);y(A.isValid)}catch{y(!1)}finally{d(!1)}};q.useEffect(()=>{const E=setTimeout(()=>{x(t.apiKey)},500);return()=>clearTimeout(E)},[t.apiKey,t.enabled,e]);const T=()=>{const E=Uv[e];return E.options.map(A=>{const R=E.labels[A],_=t.version===A;return L.jsxs(df,{value:A,className:`llm-model-setting-row-menu-item ${_?"selected":""}`,children:[_&&L.jsx(KR,{className:"llm-model-setting-row-check-icon"}),R]},A)})};return L.jsx(Oa,{label:t.name,input:L.jsxs(Dt,{container:!0,spacing:1,alignItems:"center",children:[L.jsx(Dt,{children:L.jsx(iN,{checked:t.enabled,onChange:E=>n(e,E.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})}),L.jsx(Dt,{size:7,children:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:E=>r(e,E.target.value),placeholder:`Enter ${t.name} API Key`,type:"password",error:h===!1,helperText:v(),slotProps:{input:{"aria-label":`${t.name} API Key`,"aria-describedby":`${e}-status`,endAdornment:L.jsx(bD,{position:"end",children:L.jsx("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":u?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":"",children:u?L.jsx(cb,{size:20}):h===!0?L.jsx(KR,{color:"success"}):h===!1?L.jsx(SW,{color:"error"}):null})})}}})})}),L.jsx(Dt,{size:8,children:L.jsx(pi,{fullWidth:!0,children:L.jsx(L0,{value:l,onChange:E=>{const A=E.target.value;a(e,A)},disabled:!t.enabled||!t.apiKey.trim()||!h,fullWidth:!0,size:"small",slotProps:{input:{"aria-label":`${t.name} Model Version`}},MenuProps:{disablePortal:!0,PaperProps:{className:"settings-menu-paper"}},children:T()})})})]})})},Xde=()=>{const e=q.useId(),t=fu("settings"),n=fu("chat"),{general:r,llm:a}=t.state,[l,u]=q.useState(r),[d,h]=q.useState(a);q.useEffect(()=>{t.load()},[t]),q.useEffect(()=>{u(r),h(a)},[r,a]);const y=(X,se)=>{u(ce=>({...ce,[X]:se}))},v=q.useCallback(X=>{u(se=>{const ce=e9(X,se.brailleDisplayPresetId);return{...se,...ce}})},[]),x=q.useCallback((X,se)=>{const ce=wU(X,se);ce&&u(ie=>({...ie,...ce}))},[]),T=q.useCallback(X=>x("single",X),[x]),E=q.useCallback(X=>x("multi",X),[x]),A=(X,se)=>{h(ce=>({...ce,[X]:se}))},R=(X,se,ce)=>{h(ie=>({...ie,models:{...ie.models,[X]:{...ie.models[X],[se]:se==="apiKey"&&typeof ce=="string"?ce.trim():ce}}}))},_=()=>{t.reset();const{general:X,llm:se}=t.state;u(X),h(se)},D=q.useCallback(()=>{t.toggle()},[t]),z=q.useCallback(()=>{const X={...l,brailleDisplaySize:jT(l.brailleDisplaySize),brailleDisplayLines:PT(l.brailleDisplayLines)};t.saveAndClose({general:X,llm:d}),n.refreshInitialMessage()},[t,n,l,d]),V=q.useCallback(X=>{X.stopPropagation()},[]),P=q.useCallback(X=>{X.stopPropagation(),A("expertiseLevel",X.target.value)},[A]),I=d.expertiseLevel!=="custom"||d.customInstruction.length>=X6,H=q.useCallback(X=>{if(!(X.altKey&&!X.ctrlKey&&!X.metaKey&&!X.shiftKey))return;const ce=X.key.toLowerCase();if(ce===SL){if(!I)return;X.preventDefault(),z()}else ce===EL&&(X.preventDefault(),D())},[I,z,D]);return L.jsxs(_g,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:X=>X.stopPropagation(),onKeyDown:H,className:"settings-dialog",children:[L.jsxs(Dg,{className:"settings-dialog-content",children:[L.jsx(Dt,{size:"grow",children:L.jsx(Gn,{variant:"h6",fontWeight:"bold",gutterBottom:!0,children:"General Settings"})}),L.jsxs(Dt,{container:!0,spacing:.5,children:[L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Volume",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(tN,{value:l.volume,onChange:(X,se)=>y("volume",Number(se)),min:0,max:100,step:1,valueLabelDisplay:"auto",slotProps:{input:{"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Volume","aria-labelledby":"volume-label"}},className:"settings-slider-value-label"})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Outline Color",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"color",size:"small",value:l.highlightColor,onChange:X=>y("highlightColor",X.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"High Contrast Mode",input:L.jsx(pi,{children:L.jsx(uc,{control:L.jsx(rD,{checked:l.highContrastMode,onChange:X=>y("highContrastMode",X.target.checked),size:"small"}),label:l.highContrastMode?"On":"Off",slotProps:{typography:{variant:"body2"}},"aria-label":"High Contrast Mode"})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"High Contrast Levels",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.highContrastLevels,onChange:X=>y("highContrastLevels",Number(X.target.value)),slotProps:{input:{inputProps:{"aria-label":"High Contrast Levels",min:2,max:20}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"High Contrast Light Color",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"color",size:"small",value:l.highContrastLightColor,onChange:X=>y("highContrastLightColor",X.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Light Color"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"High Contrast Dark Color",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"color",size:"small",value:l.highContrastDarkColor,onChange:X=>y("highContrastDarkColor",X.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Dark Color"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Braille Display",alignLabel:"flex-start",labelId:`${e}-braille-kind-label`,input:L.jsx(pi,{fullWidth:!0,children:L.jsxs(Q3,{row:!0,value:l.brailleDisplayKind,onChange:X=>{const se=X.target.value;JO(se)&&v(se)},"aria-labelledby":`${e}-braille-kind-label`,children:[L.jsx(uc,{value:"single",control:L.jsx(hf,{size:"small"}),label:"Single line"}),L.jsx(uc,{value:"multi",control:L.jsx(hf,{size:"small"}),label:"Multi-line"}),L.jsx(uc,{value:"manual",control:L.jsx(hf,{size:"small"}),label:"Configure manually"})]})})})}),l.brailleDisplayKind==="single"&&L.jsx(Dt,{size:12,children:L.jsx(wL,{rowLabel:"Single-Line Display",placeholder:"Select a single-line display",presets:Iv,selectedPresetId:l.brailleDisplayPresetId,formatPreset:SU,onPresetChange:T,hint:`Don't see your display? Choose "Configure manually".`})}),l.brailleDisplayKind==="multi"&&L.jsx(Dt,{size:12,children:L.jsx(wL,{rowLabel:"Multi-Line Display",placeholder:"Select a multi-line display",presets:Lv,selectedPresetId:l.brailleDisplayPresetId,formatPreset:EU,onPresetChange:E,hint:`Don't see your display? Choose "Configure manually".`})}),l.brailleDisplayKind==="manual"&&L.jsxs(Dt,{size:12,role:"group","aria-label":"Manual braille display configuration",children:[L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Braille Display Size",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.brailleDisplaySize,onChange:X=>{const se=s5(X.target.value);se!==null&&y("brailleDisplaySize",se)},onBlur:X=>{const se=s5(X.target.value,jT);se!==null&&y("brailleDisplaySize",se)},helperText:`Cells per row on a physical braille display (1-${RT}).`,slotProps:{input:{inputProps:{"aria-label":"Braille Display Size",min:1,max:RT,step:1}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Braille Display Lines",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.brailleDisplayLines,onChange:X=>{const se=s5(X.target.value);se!==null&&y("brailleDisplayLines",se)},onBlur:X=>{const se=s5(X.target.value,PT);se!==null&&y("brailleDisplayLines",se)},helperText:`Number of rows on a physical braille display (1-${a5}). Set above 1 to enable multi-line output.`,slotProps:{input:{inputProps:{"aria-label":"Braille Display Lines",min:1,max:a5,step:1}}}})})})})]}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Min Frequency (Hz)",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.minFrequency,onChange:X=>y("minFrequency",Number(X.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Max Frequency (Hz)",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.maxFrequency,onChange:X=>y("maxFrequency",Number(X.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Autoplay Duration (ms)",input:L.jsx(pi,{fullWidth:!0,children:L.jsx(Fo,{fullWidth:!0,type:"number",size:"small",value:l.autoplayDuration,onChange:X=>y("autoplayDuration",Number(X.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"ARIA Mode",input:L.jsx(pi,{children:L.jsxs(Q3,{row:!0,value:l.ariaMode,onChange:X=>y("ariaMode",X.target.value),"aria-label":"ARIA Mode",children:[L.jsx(uc,{value:"assertive",control:L.jsx(hf,{size:"small"}),label:"Assertive"}),L.jsx(uc,{value:"polite",control:L.jsx(hf,{size:"small"}),label:"Polite"})]})})})}),L.jsx(Dt,{size:12,children:L.jsx(Oa,{label:"Hover Mode",input:L.jsx(pi,{children:L.jsxs(Q3,{row:!0,value:l.hoverMode,onChange:X=>y("hoverMode",X.target.value),"aria-label":"Hover Mode",children:[L.jsx(uc,{value:"off",control:L.jsx(hf,{size:"small"}),label:"Off"}),L.jsx(uc,{value:"pointermove",control:L.jsx(hf,{size:"small"}),label:"Hover"}),L.jsx(uc,{value:"click",control:L.jsx(hf,{size:"small"}),label:"Click"})]})})})})]}),L.jsx(Dt,{size:12,children:L.jsx(sc,{className:"settings-divider"})}),L.jsxs(Dt,{container:!0,spacing:.5,className:"settings-section",children:[L.jsx(Dt,{size:12,children:L.jsx(Gn,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title",children:"LLM Settings"})}),Object.keys(d.models).map(X=>{const se=d.models[X];return L.jsx(Dt,{size:12,className:"settings-model-row",children:L.jsx(Yde,{modelKey:X,modelSettings:se,onToggle:(ce,ie)=>R(ce,"enabled",ie),onChangeKey:(ce,ie)=>R(ce,"apiKey",ie),onChangeVersion:(ce,ie)=>R(ce,"version",ie)})},X)}),L.jsx(Dt,{size:12,className:"settings-row",children:L.jsx(pi,{fullWidth:!0,size:"small",className:"settings-model-select",children:L.jsx(Oa,{label:"Expertise Level",input:L.jsxs(L0,{value:d.expertiseLevel,onChange:P,onClick:V,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}},children:[L.jsx(df,{value:"basic",children:"Basic"}),L.jsx(df,{value:"intermediate",children:"Intermediate"}),L.jsx(df,{value:"advanced",children:"Advanced"}),L.jsx(df,{value:"custom",children:"Custom"})]})})})}),d.expertiseLevel==="custom"&&L.jsx(Dt,{size:12,children:L.jsxs(Dt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1},children:[L.jsx(Dt,{size:12,sx:{py:1},children:L.jsx(Gn,{variant:"body2",fontWeight:"normal",children:"Custom Instructions"})}),L.jsx(Dt,{size:12,children:L.jsx(pi,{fullWidth:!0,children:L.jsx(h7,{minRows:3,maxRows:6,value:d.customInstruction,onChange:X=>A("customInstruction",X.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction...","aria-label":"Custom Instructions"})})}),d.customInstruction.length<X6&&L.jsx(Dt,{size:12,sx:{mt:1},children:L.jsxs(S_,{severity:"warning",children:["Custom instructions must be at least"," ",X6," ","characters long"]})})]})})]}),L.jsx(Dt,{size:12,children:L.jsx(sc,{className:"settings-divider"})})]}),L.jsxs(Dt,{container:!0,component:q3,alignItems:"center",className:"settings-footer",children:[L.jsx(Dt,{size:"auto",className:"settings-grid-padding",children:L.jsx(qd,{variant:"text",color:"inherit",onClick:_,"aria-label":"Reset Settings",children:"Reset"})}),L.jsxs(Dt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions",children:[L.jsx(Dt,{size:"auto",children:L.jsx(qd,{variant:"outlined",color:"inherit",onClick:D,"aria-label":"Close Settings with no changes","aria-keyshortcuts":`Alt+${EL}`,children:"Close"})}),L.jsx(Dt,{size:"auto",children:L.jsx(qd,{variant:"contained",color:"primary",onClick:z,disabled:!I,title:I?"":`Custom instructions must be at least ${X6} characters long`,"aria-label":"Save & Close Settings","aria-keyshortcuts":`Alt+${SL}`,children:"Save & Close"})})]})]})]})},Wde={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},Kde=()=>{const{enabled:e,announce:t,value:n,revision:r,message:a}=Wl("text"),{rotor_value:l}=Wl("rotor"),u=Wl("settings"),d=e&&n||"",h=typeof a=="string"?a:"",y=h.trim().length>0?h:t&&d?d:"",v=h.trim().length>0?h:d;return L.jsxs("div",{children:[L.jsx("div",{id:fe.TEXT_CONTAINER,children:v&&v.trim().length>0&&L.jsx("p",{children:v})}),y&&L.jsx("div",{role:"alert",style:Wde,children:y},r),L.jsx("div",{id:fe.ROTOR_AREA,"aria-live":u.general.ariaMode,children:l})]})},Qde=({plot:e})=>{const{tooltip:t}=Wl("display"),[n,r]=q.useState(!1),a=q.useRef({x:0,y:0}),l=q.useRef(null),u=q.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(a.current.x,a.current.y,0,0)}),[]);return q.useEffect(()=>{if(!e)return;const d=v=>{var x,T;a.current={x:v.clientX,y:v.clientY},(T=(x=l.current)==null?void 0:x.update)==null||T.call(x),r(!0)},h=()=>r(!0),y=()=>r(!1);return e.addEventListener(Ku.MOUSE_MOVE,d),e.addEventListener(Ku.MOUSE_ENTER,h),e.addEventListener(Ku.MOUSE_LEAVE,y),()=>{e.removeEventListener(Ku.MOUSE_MOVE,d),e.removeEventListener(Ku.MOUSE_ENTER,h),e.removeEventListener(Ku.MOUSE_LEAVE,y)}},[e]),L.jsx(rN,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:l,anchorEl:u}},children:L.jsx(wi,{sx:{display:"none"},children:"TooltipAnchor"})})};function Zde(e){return{p:1.5,border:e?2:1,borderColor:e?"primary.main":"divider",borderRadius:1,mb:.5,cursor:"pointer",bgcolor:e?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{bgcolor:"action.hover"},"&:focus":{outline:"none",borderColor:"primary.main",bgcolor:"action.selected"}}}const Jde=()=>{const e=fu("goToExtrema"),t=Wl("goToExtrema"),n=q.useRef(null),r=q.useRef(null),a=q.useRef(null),l=q.useRef(null),[u,d]=q.useState(""),[h,y]=q.useState(!1),[v,x]=q.useState([]),[T,E]=q.useState(-1),A=q.useRef(null),R=q.useRef(null),_=q.useRef(null),D=q.useRef(null);q.useEffect(()=>{a.current&&a.current.focus()},[]);const z=q.useMemo(()=>e.getAvailableXValues(),[e]);q.useEffect(()=>{if(u.trim()==="")x(z);else{const Q=u.toLowerCase();x(z.filter(ee=>String(ee).toLowerCase().includes(Q)))}h&&E(Q=>Q<0?0:Math.min(Q,Math.max(0,z.length-1)))},[u,z,h]);const V=T>=0&&v[T]!==void 0?String(v[T]):void 0,P={input:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":"x-value-listbox","aria-expanded":h,"aria-activedescendant":T>=0?`option-${T}`:void 0,"aria-valuetext":V,"aria-label":"Search and select X value",endAdornment:L.jsx(Eg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:Q=>{Q.stopPropagation(),y(!h)},children:L.jsx(EW,{})})}};q.useEffect(()=>{if(D.current){const Q=V??"";D.current.textContent=Q}},[T,V]),q.useEffect(()=>{if(n.current&&r.current){const Q=r.current,ee=n.current;ee.focus();const W=Q.getBoundingClientRect(),oe=ee.getBoundingClientRect();oe.bottom>W.bottom?ee.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):oe.top<W.top&&ee.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),q.useEffect(()=>{if(h&&T>=0&&_.current){const Q=_.current.querySelector(`#option-${T}`);Q&&Q.scrollIntoView({block:"nearest"})}},[T,h]);const I=Q=>{var W;const ee=(W=e.activeContext)==null?void 0:W.active;ee&&H(ee)&&ee.navigateToExtrema(Q),e.hide()};function H(Q){return Q!==null&&typeof Q=="object"&&"navigateToExtrema"in Q&&typeof Q.navigateToExtrema=="function"}const X=()=>{D.current&&(D.current.textContent=""),e.hide()},se=Q=>{var W;const ee=(W=e.activeContext)==null?void 0:W.active;ee&&ce(ee)&&(ee.moveToXValue(Q),y(!1),E(-1),d(""),e.hide())};function ce(Q){return Q!==null&&typeof Q=="object"&&"moveToXValue"in Q&&typeof Q.moveToXValue=="function"}const ie=()=>{R.current?R.current.focus():A.current&&A.current.focus()},ue=Q=>{D.current&&(D.current.textContent=Q)},U=Q=>{if(Q.key==="ArrowDown")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===t.targets.length-1)ie(),y(!0),E(0),ue("Moved to search. Type to filter X values.");else{e.moveDown();const ee=t.targets[t.selectedIndex+1];ue(`Selected: ${ee.label}`)}else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex===0)ue("At first extrema option");else{e.moveUp();const ee=t.targets[t.selectedIndex-1];ue(`Selected: ${ee.label}`)}else if(Q.key==="Enter"&&(Q.preventDefault(),Q.stopPropagation(),t.selectedIndex<t.targets.length)){const ee=t.targets[t.selectedIndex];ee&&I(ee)}},le=Q=>{if(Q.key==="Enter")Q.preventDefault(),Q.stopPropagation(),T>=0&&v[T]!==void 0&&se(v[T]);else if(Q.key==="ArrowDown")Q.preventDefault(),Q.stopPropagation(),T===v.length-1?ue("At last search result"):(E(ee=>Math.min(ee+1,v.length-1)),v[T+1]&&ue(`Selected: ${v[T+1]}`));else if(Q.key==="ArrowUp")if(Q.preventDefault(),Q.stopPropagation(),T===0){y(!1),E(-1);const ee=t.targets[t.selectedIndex];ue(`Returning to extrema options: ${ee.label}`),n.current&&n.current.focus()}else E(ee=>Math.max(0,ee-1)),v[T-1]&&ue(`Selected: ${v[T-1]}`)};return t.visible&&t.targets.length>0?L.jsxs(L.Fragment,{children:[L.jsx(wi,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0, 0, 0, 0.5)",zIndex:9999},onClick:X,"aria-hidden":"true"}),L.jsxs(wi,{ref:a,role:"dialog","aria-modal":"true","aria-labelledby":"go-to-extrema-title","aria-describedby":"go-to-extrema-description",tabIndex:0,sx:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:2,p:3,boxShadow:3,zIndex:1e4,minWidth:300,maxHeight:"80vh",outline:"none"},children:[L.jsxs(wi,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[L.jsx(Gn,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600},children:"Go To"}),L.jsx(Eg,{onClick:X,"aria-label":"Close dialog",size:"small",children:L.jsx(QR,{})})]}),L.jsx(wi,{id:"go-to-extrema-description",sx:{mb:2},children:L.jsx(Gn,{variant:"body2",color:"text.secondary",sx:{m:0},children:t.description||"Navigate to points of interest"})}),L.jsxs(wi,{ref:r,role:"listbox","aria-label":"Navigation targets",onKeyDown:U,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1},children:[t.targets.map((Q,ee)=>{const W=Q.type==="intersection";let oe;if(W&&Q.display)oe=`${Q.intersectionKind==="point"?"Point intersection":Q.intersectionKind==="slope"?"Slope intersection":"Intersection"} with ${Q.display.otherLines} at ${Q.display.coords}`;else if(W)oe=Q.label;else{const he=Q.label.split(" at ");oe=he[1]?`${he[0]} Value: ${Q.value.toFixed(2)} at ${he[1]}`:`${he[0]} Value: ${Q.value.toFixed(2)}`}return L.jsx(wi,{ref:ee===t.selectedIndex?n:null,id:`extrema-target-${ee}`,onClick:()=>I(Q),role:"option","aria-selected":t.selectedIndex===ee,"aria-label":oe,tabIndex:0,sx:Zde(t.selectedIndex===ee),children:L.jsx(Gn,{variant:"body2",sx:{fontWeight:600},children:oe})},`target-${ee}-${Q.type}-${Q.label}`)}),z.length>0&&L.jsxs(wi,{ref:l,id:"search-input-option",role:"option","aria-selected":t.selectedIndex===t.targets.length,"aria-label":"Search and navigate to specific X value","aria-expanded":h,"aria-controls":"x-value-listbox",tabIndex:0,sx:{p:1.5,borderRadius:1,mb:.5,border:t.selectedIndex===t.targets.length?2:1,borderColor:t.selectedIndex===t.targets.length?"primary.main":"divider",bgcolor:t.selectedIndex===t.targets.length?"action.selected":"transparent",position:"relative"},onClick:()=>{ie(),y(!0),E(0)},children:[L.jsx(Fo,{ref:A,inputRef:R,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:u,onChange:Q=>{d(Q.target.value),y(!0),T<0&&E(0)},onFocus:()=>{y(!0),T<0&&E(0)},onKeyDown:le,slotProps:P}),h&&v.length>0&&L.jsx(X3,{ref:_,id:"x-value-listbox",role:"listbox","aria-label":"Available X values","aria-hidden":!h,sx:{position:"absolute",top:"100%",left:0,right:0,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,maxHeight:180,overflowY:"auto",zIndex:2,boxShadow:2,mt:.5},children:v.map((Q,ee)=>L.jsx(wD,{id:`option-${ee}`,role:"option","aria-selected":T===ee,"aria-label":String(Q),tabIndex:0,onClick:()=>se(Q),onKeyDown:W=>{W.key==="Enter"?(W.preventDefault(),W.stopPropagation(),se(Q)):W.key==="ArrowDown"?(W.preventDefault(),W.stopPropagation(),E(oe=>Math.min(oe+1,v.length-1))):W.key==="ArrowUp"&&(W.preventDefault(),W.stopPropagation(),E(oe=>Math.max(oe-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===ee?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}},children:L.jsx(T7,{primary:String(Q)})},`${Q}-${ee}`))}),L.jsx("div",{ref:D,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}})]})]})]})]}):null},ehe=({plot:e})=>{const{focus:t,tooltip:n}=Wl("display"),r=a=>{switch(a){case"BRAILLE":return L.jsx(aG,{});case"CHAT":return L.jsx(Pde,{});case"COMMAND_PALETTE":return L.jsx(jde,{});case"DESCRIPTION":return L.jsx(Ude,{});case"GO_TO_EXTREMA":return L.jsx(Jde,{});case"HELP":return L.jsx(qde,{});case"REVIEW":return L.jsx(Gde,{});case"SETTINGS":return L.jsx(Xde,{});default:return null}};return L.jsxs(L.Fragment,{children:[n.visible&&L.jsx(Qde,{plot:e}),L.jsx(Kde,{}),r(t)]})};function the({plot:e,store:t,contextValue:n}){return L.jsx(Jq,{store:t,children:L.jsx(sM.Provider,{value:n,children:L.jsx(ehe,{plot:e})})})}function nhe(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}function rhe(e){var v;const t=e.subplots,n=t.flat().length;if(n>1)return`This is a maidr figure containing ${n} subplots. Click to activate. Use arrow keys to navigate subplots and press 'ENTER'.`;const r=(v=t[0])==null?void 0:v[0],a=(r==null?void 0:r.layers.length)??0,l=r==null?void 0:r.layers[0],u=(l==null?void 0:l.type)??"chart";let d=u,h="";if(u===pt.LINE&&Array.isArray(l==null?void 0:l.data)){const x=l.data.length;x>1?(d="multiline",h=` with ${x} groups`):d="single line"}const y=nhe(d,l==null?void 0:l.orientation);return a>1?`This is a maidr plot containing ${a} layers, and this is layer 1 of ${a}: ${y} plot. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`:`This is a maidr plot of type: ${y}${h}. Click to activate. Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}function ihe({data:e,children:t}){const n=q.useRef(null);n.current===null&&(n.current=Lq());const r=n.current,{plotRef:a,figureRef:l,contextValue:u,onFocusIn:d,onFocusOut:h}=zq(e,r),y=q.useMemo(()=>rhe(e),[e]),v=q.useCallback(x=>{const T=a.current;T&&!T.contains(document.activeElement)&&T.focus()},[a]);return L.jsx("article",{id:`maidr-article-${e.id}`,children:L.jsxs("figure",{ref:l,id:`maidr-figure-${e.id}`,onFocus:d,onBlur:h,children:[L.jsx("div",{ref:a,tabIndex:0,role:"img","aria-label":y,title:y,style:{width:"fit-content"},onPointerDown:v,children:t}),u&&a.current&&L.jsx("div",{id:`react-container-${e.id}`,children:L.jsx(the,{plot:a.current,store:r,contextValue:u})})]})})}let Qg=null,Zg=null;function TL(){Qg&&(Qg.disconnect(),Qg=null),Zg&&(Zg.disconnect(),Zg=null)}window.disconnectMaidrObservers=TL,window.addEventListener("beforeunload",TL),document.readyState==="loading"?document.addEventListener(Ku.DOM_LOADED,AL):AL(),document.addEventListener("maidr:bindchart",(e=>{const t=e.target;if(!(t instanceof HTMLElement))return;const n=t.getAttribute(fe.MAIDR_DATA);n&&Jg(t,n,"maidr-data")}));function Jg(e,t,n){try{const r=JSON.parse(t);wO(e)&&TO(e,r),MA(r,e)}catch(r){console.error(`Error parsing ${n} attribute:`,r)}}function AL(){const e=document.querySelectorAll(fe.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(r=>{const a=r.getAttribute(fe.MAIDR);a&&Jg(r,a,"maidr")});return}const t=document.querySelectorAll(`[${fe.MAIDR_DATA}]`);if(t.forEach(r=>{const a=r.getAttribute(fe.MAIDR_DATA);a&&Jg(r,a,"maidr-data")}),t.length!==0)return;const n=window.maidr;if(n){const r=document.getElementById(n.id);if(!r){console.error("Plot not found for maidr:",n.id);return}MA(n,r);return}ahe(),lhe()}function ahe(){const e=document.querySelectorAll(".js-plotly-plot");for(const t of e)OA(t);ohe()}function OA(e){if(e.hasAttribute("data-maidr-auto"))return;const t=ZB(e);if(!t)return;const n=e.querySelector("svg.main-svg");n&&(e.setAttribute("data-maidr-auto","1"),TO(n,t),MA(t,n))}function ohe(){Zg||(Zg=new MutationObserver(()=>{const e=document.querySelectorAll(".js-plotly-plot:not([data-maidr-auto])");if(e.length!==0)for(const t of e)t.querySelector("svg.main-svg")?OA(t):t.addEventListener("plotly_afterplot",function n(){t.removeEventListener("plotly_afterplot",n),OA(t)})}),Zg.observe(document.body,{childList:!0,subtree:!0}))}function lhe(){Qg||(Qg=new MutationObserver(e=>{for(const t of e){if(t.type==="attributes"&&t.attributeName===fe.MAIDR){const n=t.target,r=n.getAttribute(fe.MAIDR);if(!r||n.getAttribute("data-maidr-value")===r)continue;n.setAttribute("data-maidr-value",r),Jg(n,r,"maidr")}if(t.type==="childList")for(const n of t.addedNodes){if(n.nodeType!==Node.ELEMENT_NODE)continue;const r=n,a=r.getAttribute(fe.MAIDR);a&&r.getAttribute("data-maidr-value")!==a&&(r.setAttribute("data-maidr-value",a),Jg(r,a,"maidr"));const l=r.querySelectorAll(`[${fe.MAIDR}]`);for(const u of l){const d=u.getAttribute(fe.MAIDR);d&&u.getAttribute("data-maidr-value")!==d&&(u.setAttribute("data-maidr-value",d),Jg(u,d,"maidr"))}}}}),Qg.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[fe.MAIDR]}))}function she({node:e}){const t=q.useCallback(n=>{var r;n?n.contains(e)||n.appendChild(e):(r=e.parentNode)==null||r.removeChild(e)},[e]);return L.jsx("div",{ref:t,style:{display:"contents"}})}function uhe({node:e,width:t,height:n}){const r=q.useCallback(a=>{var l;a?a.contains(e)||a.appendChild(e):(l=e.parentNode)==null||l.removeChild(e)},[e,t,n]);return L.jsx("div",{ref:r,style:{width:`${t}px`,height:`${n}px`,position:"relative"}})}function MA(e,t){const n=document.createElement(fe.DIV);n.style.display="contents",t.parentNode.replaceChild(n,t);const r=t.dataset.maidrHostWidth,a=t.dataset.maidrHostHeight,l=r&&a?L.jsx(uhe,{node:t,width:Number(r),height:Number(a)}):L.jsx(she,{node:t});WB.createRoot(n,{identifierPrefix:e.id}).render(L.jsx(ihe,{data:e,children:l}))}}));
//# sourceMappingURL=maidr.js.map
