(function($u){typeof define=="function"&&define.amd?define($u):$u()})((function(){"use strict";var Gfe=Object.defineProperty;var Ffe=($u,pl,Fc)=>pl in $u?Gfe($u,pl,{enumerable:!0,configurable:!0,writable:!0,value:Fc}):$u[pl]=Fc;var P=($u,pl,Fc)=>Ffe($u,typeof pl!="symbol"?pl+"":pl,Fc);function $u(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={exports:{}},sv={};/**
 * @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 pC;function gV(){if(pC)return sv;pC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return sv.Fragment=t,sv.jsx=n,sv.jsxs=n,sv}var uv={},zS={exports:{}},fn={};/**
 * @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 mC;function yV(){if(mC)return fn;mC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=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"),S=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 C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,_={};function N(F,ee,Y){this.props=F,this.context=ee,this.refs=_,this.updater=Y||C}N.prototype.isReactComponent={},N.prototype.setState=function(F,ee){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,ee,"setState")},N.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function z(){}z.prototype=N.prototype;function B(F,ee,Y){this.props=F,this.context=ee,this.refs=_,this.updater=Y||C}var V=B.prototype=new z;V.constructor=B,R(V,N.prototype),V.isPureReactComponent=!0;var L=Array.isArray;function U(){}var X={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function ce(F,ee,Y){var Me=Y.ref;return{$$typeof:e,type:F,key:ee,ref:Me!==void 0?Me:null,props:Y}}function ie(F,ee){return ce(F.type,ee,F.props)}function ue(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function $(F){var ee={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Y){return ee[Y]})}var le=/\/+/g;function K(F,ee){return typeof F=="object"&&F!==null&&F.key!=null?$(""+F.key):ee.toString(36)}function oe(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(U,U):(F.status="pending",F.then(function(ee){F.status==="pending"&&(F.status="fulfilled",F.value=ee)},function(ee){F.status==="pending"&&(F.status="rejected",F.reason=ee)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function Z(F,ee,Y,Me,Se){var _e=typeof F;(_e==="undefined"||_e==="boolean")&&(F=null);var je=!1;if(F===null)je=!0;else switch(_e){case"bigint":case"string":case"number":je=!0;break;case"object":switch(F.$$typeof){case e:case t:je=!0;break;case v:return je=F._init,Z(je(F._payload),ee,Y,Me,Se)}}if(je)return Se=Se(F),je=Me===""?"."+K(F,0):Me,L(Se)?(Y="",je!=null&&(Y=je.replace(le,"$&/")+"/"),Z(Se,ee,Y,"",function(Ke){return Ke})):Se!=null&&(ue(Se)&&(Se=ie(Se,Y+(Se.key==null||F&&F.key===Se.key?"":(""+Se.key).replace(le,"$&/")+"/")+je)),ee.push(Se)),1;je=0;var He=Me===""?".":Me+":";if(L(F))for(var Xe=0;Xe<F.length;Xe++)Me=F[Xe],_e=He+K(Me,Xe),je+=Z(Me,ee,Y,_e,Se);else if(Xe=E(F),typeof Xe=="function")for(F=Xe.call(F),Xe=0;!(Me=F.next()).done;)Me=Me.value,_e=He+K(Me,Xe++),je+=Z(Me,ee,Y,_e,Se);else if(_e==="object"){if(typeof F.then=="function")return Z(oe(F),ee,Y,Me,Se);throw ee=String(F),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return je}function ae(F,ee,Y){if(F==null)return F;var Me=[],Se=0;return Z(F,Me,"","",function(_e){return ee.call(Y,_e,Se++)}),Me}function he(F){if(F._status===-1){var ee=F._result;ee=ee(),ee.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=ee)}if(F._status===1)return F._result.default;throw F._result}var Ee=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=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(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)},te={map:ae,forEach:function(F,ee,Y){ae(F,function(){ee.apply(this,arguments)},Y)},count:function(F){var ee=0;return ae(F,function(){ee++}),ee},toArray:function(F){return ae(F,function(ee){return ee})||[]},only:function(F){if(!ue(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};return fn.Activity=S,fn.Children=te,fn.Component=N,fn.Fragment=n,fn.Profiler=o,fn.PureComponent=B,fn.StrictMode=i,fn.Suspense=h,fn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,fn.__COMPILER_RUNTIME={__proto__:null,c:function(F){return X.H.useMemoCache(F)}},fn.cache=function(F){return function(){return F.apply(null,arguments)}},fn.cacheSignal=function(){return null},fn.cloneElement=function(F,ee,Y){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var Me=R({},F.props),Se=F.key;if(ee!=null)for(_e in ee.key!==void 0&&(Se=""+ee.key),ee)!se.call(ee,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&ee.ref===void 0||(Me[_e]=ee[_e]);var _e=arguments.length-2;if(_e===1)Me.children=Y;else if(1<_e){for(var je=Array(_e),He=0;He<_e;He++)je[He]=arguments[He+2];Me.children=je}return ce(F.type,Se,Me)},fn.createContext=function(F){return F={$$typeof:c,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:s,_context:F},F},fn.createElement=function(F,ee,Y){var Me,Se={},_e=null;if(ee!=null)for(Me in ee.key!==void 0&&(_e=""+ee.key),ee)se.call(ee,Me)&&Me!=="key"&&Me!=="__self"&&Me!=="__source"&&(Se[Me]=ee[Me]);var je=arguments.length-2;if(je===1)Se.children=Y;else if(1<je){for(var He=Array(je),Xe=0;Xe<je;Xe++)He[Xe]=arguments[Xe+2];Se.children=He}if(F&&F.defaultProps)for(Me in je=F.defaultProps,je)Se[Me]===void 0&&(Se[Me]=je[Me]);return ce(F,_e,Se)},fn.createRef=function(){return{current:null}},fn.forwardRef=function(F){return{$$typeof:d,render:F}},fn.isValidElement=ue,fn.lazy=function(F){return{$$typeof:v,_payload:{_status:-1,_result:F},_init:he}},fn.memo=function(F,ee){return{$$typeof:y,type:F,compare:ee===void 0?null:ee}},fn.startTransition=function(F){var ee=X.T,Y={};X.T=Y;try{var Me=F(),Se=X.S;Se!==null&&Se(Y,Me),typeof Me=="object"&&Me!==null&&typeof Me.then=="function"&&Me.then(U,Ee)}catch(_e){Ee(_e)}finally{ee!==null&&Y.types!==null&&(ee.types=Y.types),X.T=ee}},fn.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},fn.use=function(F){return X.H.use(F)},fn.useActionState=function(F,ee,Y){return X.H.useActionState(F,ee,Y)},fn.useCallback=function(F,ee){return X.H.useCallback(F,ee)},fn.useContext=function(F){return X.H.useContext(F)},fn.useDebugValue=function(){},fn.useDeferredValue=function(F,ee){return X.H.useDeferredValue(F,ee)},fn.useEffect=function(F,ee){return X.H.useEffect(F,ee)},fn.useEffectEvent=function(F){return X.H.useEffectEvent(F)},fn.useId=function(){return X.H.useId()},fn.useImperativeHandle=function(F,ee,Y){return X.H.useImperativeHandle(F,ee,Y)},fn.useInsertionEffect=function(F,ee){return X.H.useInsertionEffect(F,ee)},fn.useLayoutEffect=function(F,ee){return X.H.useLayoutEffect(F,ee)},fn.useMemo=function(F,ee){return X.H.useMemo(F,ee)},fn.useOptimistic=function(F,ee){return X.H.useOptimistic(F,ee)},fn.useReducer=function(F,ee,Y){return X.H.useReducer(F,ee,Y)},fn.useRef=function(F){return X.H.useRef(F)},fn.useState=function(F){return X.H.useState(F)},fn.useSyncExternalStore=function(F,ee,Y){return X.H.useSyncExternalStore(F,ee,Y)},fn.useTransition=function(){return X.H.useTransition()},fn.version="19.2.4",fn}var cv={exports:{}};cv.exports;var gC;function vV(){return gC||(gC=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 i(J,Oe){Object.defineProperty(c.prototype,J,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Oe[0],Oe[1])}})}function o(J){return J===null||typeof J!="object"?null:(J=Re&&J[Re]||J["@@iterator"],typeof J=="function"?J:null)}function s(J,Oe){J=(J=J.constructor)&&(J.displayName||J.name)||"ReactClass";var tt=J+"."+Oe;st[tt]||(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),st[tt]=!0)}function c(J,Oe,tt){this.props=J,this.context=Oe,this.refs=xt,this.updater=tt||Mt}function d(){}function h(J,Oe,tt){this.props=J,this.context=Oe,this.refs=xt,this.updater=tt||Mt}function y(){}function v(J){return""+J}function S(J){try{v(J);var Oe=!1}catch{Oe=!0}if(Oe){Oe=console;var tt=Oe.error,Ne=typeof Symbol=="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return tt.call(Oe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ne),v(J)}}function T(J){if(J==null)return null;if(typeof J=="function")return J.$$typeof===mn?null:J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case ee:return"Fragment";case Me:return"Profiler";case Y:return"StrictMode";case He:return"Suspense";case Xe:return"SuspenseList";case Be: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 Se:return(J._context.displayName||"Context")+".Consumer";case je:var Oe=J.render;return J=J.displayName,J||(J=Oe.displayName||Oe.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case Ke:return Oe=J.displayName||null,Oe!==null?Oe:T(J.type)||"Memo";case et:Oe=J._payload,J=J._init;try{return T(J(Oe))}catch{}}return null}function E(J){if(J===ee)return"<>";if(typeof J=="object"&&J!==null&&J.$$typeof===et)return"<...>";try{var Oe=T(J);return Oe?"<"+Oe+">":"<...>"}catch{return"<...>"}}function C(){var J=ot.A;return J===null?null:J.getOwner()}function R(){return Error("react-stack-top-frame")}function _(J){if(At.call(J,"key")){var Oe=Object.getOwnPropertyDescriptor(J,"key").get;if(Oe&&Oe.isReactWarning)return!1}return J.key!==void 0}function N(J,Oe){function tt(){Bt||(Bt=!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))}tt.isReactWarning=!0,Object.defineProperty(J,"key",{get:tt,configurable:!0})}function z(){var J=T(this.type);return be[J]||(be[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 B(J,Oe,tt,Ne,We,Et){var vt=tt.ref;return J={$$typeof:te,type:J,key:Oe,props:tt,_owner:Ne},(vt!==void 0?vt: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:We}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Et}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function V(J,Oe){return Oe=B(J.type,Oe,J.props,J._owner,J._debugStack,J._debugTask),J._store&&(Oe._store.validated=J._store.validated),Oe}function L(J){U(J)?J._store&&(J._store.validated=1):typeof J=="object"&&J!==null&&J.$$typeof===et&&(J._payload.status==="fulfilled"?U(J._payload.value)&&J._payload.value._store&&(J._payload.value._store.validated=1):J._store&&(J._store.validated=1))}function U(J){return typeof J=="object"&&J!==null&&J.$$typeof===te}function X(J){var Oe={"=":"=0",":":"=2"};return"$"+J.replace(/[=:]/g,function(tt){return Oe[tt]})}function se(J,Oe){return typeof J=="object"&&J!==null&&J.key!=null?(S(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,tt,Ne,We){var Et=typeof J;(Et==="undefined"||Et==="boolean")&&(J=null);var vt=!1;if(J===null)vt=!0;else switch(Et){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(J.$$typeof){case te:case F:vt=!0;break;case et:return vt=J._init,ie(vt(J._payload),Oe,tt,Ne,We)}}if(vt){vt=J,We=We(vt);var Yt=Ne===""?"."+se(vt,0):Ne;return hn(We)?(tt="",Yt!=null&&(tt=Yt.replace(ut,"$&/")+"/"),ie(We,Oe,tt,"",function(Bn){return Bn})):We!=null&&(U(We)&&(We.key!=null&&(vt&&vt.key===We.key||S(We.key)),tt=V(We,tt+(We.key==null||vt&&vt.key===We.key?"":(""+We.key).replace(ut,"$&/")+"/")+Yt),Ne!==""&&vt!=null&&U(vt)&&vt.key==null&&vt._store&&!vt._store.validated&&(tt._store.validated=2),We=tt),Oe.push(We)),1}if(vt=0,Yt=Ne===""?".":Ne+":",hn(J))for(var ct=0;ct<J.length;ct++)Ne=J[ct],Et=Yt+se(Ne,ct),vt+=ie(Ne,Oe,tt,Et,We);else if(ct=o(J),typeof ct=="function")for(ct===J.entries&&(pt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pt=!0),J=ct.call(J),ct=0;!(Ne=J.next()).done;)Ne=Ne.value,Et=Yt+se(Ne,ct++),vt+=ie(Ne,Oe,tt,Et,We);else if(Et==="object"){if(typeof J.then=="function")return ie(ce(J),Oe,tt,Ne,We);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 vt}function ue(J,Oe,tt){if(J==null)return J;var Ne=[],We=0;return ie(J,Ne,"","",function(Et){return Oe.call(tt,Et,We++)}),Ne}function $(J){if(J._status===-1){var Oe=J._ioInfo;Oe!=null&&(Oe.start=Oe.end=performance.now()),Oe=J._result;var tt=Oe();if(tt.then(function(We){if(J._status===0||J._status===-1){J._status=1,J._result=We;var Et=J._ioInfo;Et!=null&&(Et.end=performance.now()),tt.status===void 0&&(tt.status="fulfilled",tt.value=We)}},function(We){if(J._status===0||J._status===-1){J._status=2,J._result=We;var Et=J._ioInfo;Et!=null&&(Et.end=performance.now()),tt.status===void 0&&(tt.status="rejected",tt.reason=We)}}),Oe=J._ioInfo,Oe!=null){Oe.value=tt;var Ne=tt.displayName;typeof Ne=="string"&&(Oe.name=Ne)}J._status===-1&&(J._status=0,J._result=tt)}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=ot.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 K(){ot.asyncTransitions--}function oe(J){if(kt===null)try{var Oe=("require"+Math.random()).slice(0,7);kt=(e&&e[Oe]).call(e,"timers").setImmediate}catch{kt=function(Ne){gn===!1&&(gn=!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 We=new MessageChannel;We.port1.onmessage=Ne,We.port2.postMessage(void 0)}}return kt(J)}function Z(J){return 1<J.length&&typeof AggregateError=="function"?new AggregateError(J):J[0]}function ae(J,Oe){Oe!==jt-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. "),jt=Oe}function he(J,Oe,tt){var Ne=ot.actQueue;if(Ne!==null)if(Ne.length!==0)try{Ee(Ne),oe(function(){return he(J,Oe,tt)});return}catch(We){ot.thrownErrors.push(We)}else ot.actQueue=null;0<ot.thrownErrors.length?(Ne=Z(ot.thrownErrors),ot.thrownErrors.length=0,tt(Ne)):Oe(J)}function Ee(J){if(!bn){bn=!0;var Oe=0;try{for(;Oe<J.length;Oe++){var tt=J[Oe];do{ot.didUsePromise=!1;var Ne=tt(!1);if(Ne!==null){if(ot.didUsePromise){J[Oe]=tt,J.splice(0,Oe);return}tt=Ne}else break}while(!0)}J.length=0}catch(We){J.splice(0,Oe+1),ot.thrownErrors.push(We)}finally{bn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),Se=Symbol.for("react.consumer"),_e=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),Re=Symbol.iterator,st={},Mt={isMounted:function(){return!1},enqueueForceUpdate:function(J){s(J,"forceUpdate")},enqueueReplaceState:function(J){s(J,"replaceState")},enqueueSetState:function(J){s(J,"setState")}},Qt=Object.assign,xt={};Object.freeze(xt),c.prototype.isReactComponent={},c.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")},c.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,"forceUpdate")};var Ut={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(cr in Ut)Ut.hasOwnProperty(cr)&&i(cr,Ut[cr]);d.prototype=c.prototype,Ut=h.prototype=new d,Ut.constructor=h,Qt(Ut,c.prototype),Ut.isPureReactComponent=!0;var hn=Array.isArray,mn=Symbol.for("react.client.reference"),ot={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},At=Object.prototype.hasOwnProperty,Rn=console.createTask?console.createTask:function(){return null};Ut={react_stack_bottom_frame:function(J){return J()}};var Bt,Ze,be={},Ve=Ut.react_stack_bottom_frame.bind(Ut,R)(),nt=Rn(E(R)),pt=!1,ut=/\/+/g,yt=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)},gn=!1,kt=null,jt=0,Fn=!1,bn=!1,Fr=typeof queueMicrotask=="function"?function(J){queueMicrotask(function(){return queueMicrotask(J)})}:oe;Ut=Object.freeze({__proto__:null,c:function(J){return le().useMemoCache(J)}});var cr={map:ue,forEach:function(J,Oe,tt){ue(J,function(){Oe.apply(this,arguments)},tt)},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(!U(J))throw Error("React.Children.only expected to receive a single React element child.");return J}};t.Activity=Be,t.Children=cr,t.Component=c,t.Fragment=ee,t.Profiler=Me,t.PureComponent=h,t.StrictMode=Y,t.Suspense=He,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot,t.__COMPILER_RUNTIME=Ut,t.act=function(J){var Oe=ot.actQueue,tt=jt;jt++;var Ne=ot.actQueue=Oe!==null?Oe:[],We=!1;try{var Et=J()}catch(ct){ot.thrownErrors.push(ct)}if(0<ot.thrownErrors.length)throw ae(Oe,tt),J=Z(ot.thrownErrors),ot.thrownErrors.length=0,J;if(Et!==null&&typeof Et=="object"&&typeof Et.then=="function"){var vt=Et;return Fr(function(){We||Fn||(Fn=!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,Bn){We=!0,vt.then(function(oi){if(ae(Oe,tt),tt===0){try{Ee(Ne),oe(function(){return he(oi,ct,Bn)})}catch(mf){ot.thrownErrors.push(mf)}if(0<ot.thrownErrors.length){var Ug=Z(ot.thrownErrors);ot.thrownErrors.length=0,Bn(Ug)}}else ct(oi)},function(oi){ae(Oe,tt),0<ot.thrownErrors.length&&(oi=Z(ot.thrownErrors),ot.thrownErrors.length=0),Bn(oi)})}}}var Yt=Et;if(ae(Oe,tt),tt===0&&(Ee(Ne),Ne.length!==0&&Fr(function(){We||Fn||(Fn=!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(() => ...)"))}),ot.actQueue=null),0<ot.thrownErrors.length)throw J=Z(ot.thrownErrors),ot.thrownErrors.length=0,J;return{then:function(ct,Bn){We=!0,tt===0?(ot.actQueue=Ne,oe(function(){return he(Yt,ct,Bn)})):ct(Yt)}}},t.cache=function(J){return function(){return J.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var J=ot.getCurrentStack;return J===null?null:J()},t.cloneElement=function(J,Oe,tt){if(J==null)throw Error("The argument must be a React element, but you passed "+J+".");var Ne=Qt({},J.props),We=J.key,Et=J._owner;if(Oe!=null){var vt;e:{if(At.call(Oe,"ref")&&(vt=Object.getOwnPropertyDescriptor(Oe,"ref").get)&&vt.isReactWarning){vt=!1;break e}vt=Oe.ref!==void 0}vt&&(Et=C()),_(Oe)&&(S(Oe.key),We=""+Oe.key);for(Yt in Oe)!At.call(Oe,Yt)||Yt==="key"||Yt==="__self"||Yt==="__source"||Yt==="ref"&&Oe.ref===void 0||(Ne[Yt]=Oe[Yt])}var Yt=arguments.length-2;if(Yt===1)Ne.children=tt;else if(1<Yt){vt=Array(Yt);for(var ct=0;ct<Yt;ct++)vt[ct]=arguments[ct+2];Ne.children=vt}for(Ne=B(J.type,We,Ne,Et,J._debugStack,J._debugTask),We=2;We<arguments.length;We++)L(arguments[We]);return Ne},t.createContext=function(J){return J={$$typeof:_e,_currentValue:J,_currentValue2:J,_threadCount:0,Provider:null,Consumer:null},J.Provider=J,J.Consumer={$$typeof:Se,_context:J},J._currentRenderer=null,J._currentRenderer2=null,J},t.createElement=function(J,Oe,tt){for(var Ne=2;Ne<arguments.length;Ne++)L(arguments[Ne]);Ne={};var We=null;if(Oe!=null)for(ct in Ze||!("__self"in Oe)||"key"in Oe||(Ze=!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)&&(S(Oe.key),We=""+Oe.key),Oe)At.call(Oe,ct)&&ct!=="key"&&ct!=="__self"&&ct!=="__source"&&(Ne[ct]=Oe[ct]);var Et=arguments.length-2;if(Et===1)Ne.children=tt;else if(1<Et){for(var vt=Array(Et),Yt=0;Yt<Et;Yt++)vt[Yt]=arguments[Yt+2];Object.freeze&&Object.freeze(vt),Ne.children=vt}if(J&&J.defaultProps)for(ct in Et=J.defaultProps,Et)Ne[ct]===void 0&&(Ne[ct]=Et[ct]);We&&N(Ne,typeof J=="function"?J.displayName||J.name||"Unknown":J);var ct=1e4>ot.recentlyCreatedOwnerStacks++;return B(J,We,Ne,C(),ct?Error("react-stack-top-frame"):Ve,ct?Rn(E(J)):nt)},t.createRef=function(){var J={current:null};return Object.seal(J),J},t.forwardRef=function(J){J!=null&&J.$$typeof===Ke?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:je,render:J},tt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return tt},set:function(Ne){tt=Ne,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ne}),J.displayName=Ne)}}),Oe},t.isValidElement=U,t.lazy=function(J){J={_status:-1,_result:J};var Oe={$$typeof:et,_payload:J,_init:$},tt={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=tt,Oe._debugInfo=[{awaited:tt}],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:Ke,type:J,compare:Oe===void 0?null:Oe};var tt;return Object.defineProperty(Oe,"displayName",{enumerable:!1,configurable:!0,get:function(){return tt},set:function(Ne){tt=Ne,J.name||J.displayName||(Object.defineProperty(J,"name",{value:Ne}),J.displayName=Ne)}}),Oe},t.startTransition=function(J){var Oe=ot.T,tt={};tt._updatedFibers=new Set,ot.T=tt;try{var Ne=J(),We=ot.S;We!==null&&We(tt,Ne),typeof Ne=="object"&&Ne!==null&&typeof Ne.then=="function"&&(ot.asyncTransitions++,Ne.then(K,K),Ne.then(y,yt))}catch(Et){yt(Et)}finally{Oe===null&&tt._updatedFibers&&(J=tt._updatedFibers.size,tt._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&&tt.types!==null&&(Oe.types!==null&&Oe.types!==tt.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=tt.types),ot.T=Oe}},t.unstable_useCacheRefresh=function(){return le().useCacheRefresh()},t.use=function(J){return le().use(J)},t.useActionState=function(J,Oe,tt){return le().useActionState(J,Oe,tt)},t.useCallback=function(J,Oe){return le().useCallback(J,Oe)},t.useContext=function(J){var Oe=le();return J.$$typeof===Se&&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,tt){return le().useImperativeHandle(J,Oe,tt)},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,tt){return le().useReducer(J,Oe,tt)},t.useRef=function(J){return le().useRef(J)},t.useState=function(J){return le().useState(J)},t.useSyncExternalStore=function(J,Oe,tt){return le().useSyncExternalStore(J,Oe,tt)},t.useTransition=function(){return le().useTransition()},t.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(cv,cv.exports)),cv.exports}var yC;function Ad(){if(yC)return zS.exports;yC=1;var e={};return e.NODE_ENV==="production"?zS.exports=yV():zS.exports=vV(),zS.exports}var vC;function bV(){if(vC)return uv;vC=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(ee){if(ee==null)return null;if(typeof ee=="function")return ee.$$typeof===$?null:ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case N:return"Fragment";case B:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case se:return"SuspenseList";case ue:return"Activity"}if(typeof ee=="object")switch(typeof ee.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ee.$$typeof){case _:return"Portal";case L:return ee.displayName||"Context";case V:return(ee._context.displayName||"Context")+".Consumer";case U:var Y=ee.render;return ee=ee.displayName,ee||(ee=Y.displayName||Y.name||"",ee=ee!==""?"ForwardRef("+ee+")":"ForwardRef"),ee;case ce:return Y=ee.displayName||null,Y!==null?Y:t(ee.type)||"Memo";case ie:Y=ee._payload,ee=ee._init;try{return t(ee(Y))}catch{}}return null}function n(ee){return""+ee}function i(ee){try{n(ee);var Y=!1}catch{Y=!0}if(Y){Y=console;var Me=Y.error,Se=typeof Symbol=="function"&&Symbol.toStringTag&&ee[Symbol.toStringTag]||ee.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.",Se),n(ee)}}function o(ee){if(ee===N)return"<>";if(typeof ee=="object"&&ee!==null&&ee.$$typeof===ie)return"<...>";try{var Y=t(ee);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function s(){var ee=le.A;return ee===null?null:ee.getOwner()}function c(){return Error("react-stack-top-frame")}function d(ee){if(K.call(ee,"key")){var Y=Object.getOwnPropertyDescriptor(ee,"key").get;if(Y&&Y.isReactWarning)return!1}return ee.key!==void 0}function h(ee,Y){function Me(){ae||(ae=!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(ee,"key",{get:Me,configurable:!0})}function y(){var ee=t(this.type);return he[ee]||(he[ee]=!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.")),ee=this.props.ref,ee!==void 0?ee:null}function v(ee,Y,Me,Se,_e,je){var He=Me.ref;return ee={$$typeof:R,type:ee,key:Y,props:Me,_owner:Se},(He!==void 0?He:null)!==null?Object.defineProperty(ee,"ref",{enumerable:!1,get:y}):Object.defineProperty(ee,"ref",{enumerable:!1,value:null}),ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ee,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ee,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.defineProperty(ee,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee}function S(ee,Y,Me,Se,_e,je){var He=Y.children;if(He!==void 0)if(Se)if(oe(He)){for(Se=0;Se<He.length;Se++)T(He[Se]);Object.freeze&&Object.freeze(He)}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(He);if(K.call(Y,"key")){He=t(ee);var Xe=Object.keys(Y).filter(function(et){return et!=="key"});Se=0<Xe.length?"{key: someKey, "+Xe.join(": ..., ")+": ...}":"{key: someKey}",F[He+Se]||(Xe=0<Xe.length?"{"+Xe.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} />`,Se,He,Xe,He),F[He+Se]=!0)}if(He=null,Me!==void 0&&(i(Me),He=""+Me),d(Y)&&(i(Y.key),He=""+Y.key),"key"in Y){Me={};for(var Ke in Y)Ke!=="key"&&(Me[Ke]=Y[Ke])}else Me=Y;return He&&h(Me,typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee),v(ee,He,Me,s(),_e,je)}function T(ee){E(ee)?ee._store&&(ee._store.validated=1):typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&(ee._payload.status==="fulfilled"?E(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function E(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===R}var C=Ad(),R=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),L=Symbol.for("react.context"),U=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"),$=Symbol.for("react.client.reference"),le=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,oe=Array.isArray,Z=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(ee){return ee()}};var ae,he={},Ee=C.react_stack_bottom_frame.bind(C,c)(),te=Z(o(c)),F={};uv.Fragment=N,uv.jsx=function(ee,Y,Me){var Se=1e4>le.recentlyCreatedOwnerStacks++;return S(ee,Y,Me,!1,Se?Error("react-stack-top-frame"):Ee,Se?Z(o(ee)):te)},uv.jsxs=function(ee,Y,Me){var Se=1e4>le.recentlyCreatedOwnerStacks++;return S(ee,Y,Me,!0,Se?Error("react-stack-top-frame"):Ee,Se?Z(o(ee)):te)}})(),uv}var bC;function xV(){if(bC)return Fc.exports;bC=1;var e={};return e.NODE_ENV==="production"?Fc.exports=gV():Fc.exports=bV(),Fc.exports}var H=xV(),G=Ad();const nu=pl(G),LE=$u({__proto__:null,default:nu},[G]);var IS={exports:{}},fv={},LS={exports:{}},VE={};/**
 * @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 xC;function SV(){return xC||(xC=1,(function(e){function t(Z,ae){var he=Z.length;Z.push(ae);e:for(;0<he;){var Ee=he-1>>>1,te=Z[Ee];if(0<o(te,ae))Z[Ee]=ae,Z[he]=te,he=Ee;else break e}}function n(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var ae=Z[0],he=Z.pop();if(he!==ae){Z[0]=he;e:for(var Ee=0,te=Z.length,F=te>>>1;Ee<F;){var ee=2*(Ee+1)-1,Y=Z[ee],Me=ee+1,Se=Z[Me];if(0>o(Y,he))Me<te&&0>o(Se,Y)?(Z[Ee]=Se,Z[Me]=he,Ee=Me):(Z[Ee]=Y,Z[ee]=he,Ee=ee);else if(Me<te&&0>o(Se,he))Z[Ee]=Se,Z[Me]=he,Ee=Me;else break e}}return ae}function o(Z,ae){var he=Z.sortIndex-ae.sortIndex;return he!==0?he:Z.id-ae.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],y=[],v=1,S=null,T=3,E=!1,C=!1,R=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function V(Z){for(var ae=n(y);ae!==null;){if(ae.callback===null)i(y);else if(ae.startTime<=Z)i(y),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=n(y)}}function L(Z){if(R=!1,V(Z),!C)if(n(h)!==null)C=!0,U||(U=!0,$());else{var ae=n(y);ae!==null&&oe(L,ae.startTime-Z)}}var U=!1,X=-1,se=5,ce=-1;function ie(){return _?!0:!(e.unstable_now()-ce<se)}function ue(){if(_=!1,U){var Z=e.unstable_now();ce=Z;var ae=!0;try{e:{C=!1,R&&(R=!1,z(X),X=-1),E=!0;var he=T;try{t:{for(V(Z),S=n(h);S!==null&&!(S.expirationTime>Z&&ie());){var Ee=S.callback;if(typeof Ee=="function"){S.callback=null,T=S.priorityLevel;var te=Ee(S.expirationTime<=Z);if(Z=e.unstable_now(),typeof te=="function"){S.callback=te,V(Z),ae=!0;break t}S===n(h)&&i(h),V(Z)}else i(h);S=n(h)}if(S!==null)ae=!0;else{var F=n(y);F!==null&&oe(L,F.startTime-Z),ae=!1}}break e}finally{S=null,T=he,E=!1}ae=void 0}}finally{ae?$():U=!1}}}var $;if(typeof B=="function")$=function(){B(ue)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,K=le.port2;le.port1.onmessage=ue,$=function(){K.postMessage(null)}}else $=function(){N(ue,0)};function oe(Z,ae){X=N(function(){Z(e.unstable_now())},ae)}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(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(Z){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var he=T;T=ae;try{return Z()}finally{T=he}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(Z,ae){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var he=T;T=Z;try{return ae()}finally{T=he}},e.unstable_scheduleCallback=function(Z,ae,he){var Ee=e.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?Ee+he:Ee):he=Ee,Z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=he+te,Z={id:v++,callback:ae,priorityLevel:Z,startTime:he,expirationTime:te,sortIndex:-1},he>Ee?(Z.sortIndex=he,t(y,Z),n(h)===null&&Z===n(y)&&(R?(z(X),X=-1):R=!0,oe(L,he-Ee))):(Z.sortIndex=te,t(h,Z),C||E||(C=!0,U||(U=!0,$()))),Z},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(Z){var ae=T;return function(){var he=T;T=ae;try{return Z.apply(this,arguments)}finally{T=he}}}})(VE)),VE}var BE={},SC;function wV(){return SC||(SC=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(U=!1,ie){var ae=e.unstable_now();le=ae;var he=!0;try{e:{V=!1,L&&(L=!1,se(ue),ue=-1),B=!0;var Ee=z;try{t:{for(d(ae),N=o(C);N!==null&&!(N.expirationTime>ae&&y());){var te=N.callback;if(typeof te=="function"){N.callback=null,z=N.priorityLevel;var F=te(N.expirationTime<=ae);if(ae=e.unstable_now(),typeof F=="function"){N.callback=F,d(ae),he=!0;break t}N===o(C)&&s(C),d(ae)}else s(C);N=o(C)}if(N!==null)he=!0;else{var ee=o(R);ee!==null&&v(h,ee.startTime-ae),he=!1}}break e}finally{N=null,z=Ee,B=!1}he=void 0}}finally{he?K():ie=!1}}}function i(ae,he){var Ee=ae.length;ae.push(he);e:for(;0<Ee;){var te=Ee-1>>>1,F=ae[te];if(0<c(F,he))ae[te]=he,ae[Ee]=F,Ee=te;else break e}}function o(ae){return ae.length===0?null:ae[0]}function s(ae){if(ae.length===0)return null;var he=ae[0],Ee=ae.pop();if(Ee!==he){ae[0]=Ee;e:for(var te=0,F=ae.length,ee=F>>>1;te<ee;){var Y=2*(te+1)-1,Me=ae[Y],Se=Y+1,_e=ae[Se];if(0>c(Me,Ee))Se<F&&0>c(_e,Me)?(ae[te]=_e,ae[Se]=Ee,te=Se):(ae[te]=Me,ae[Y]=Ee,te=Y);else if(Se<F&&0>c(_e,Ee))ae[te]=_e,ae[Se]=Ee,te=Se;else break e}}return he}function c(ae,he){var Ee=ae.sortIndex-he.sortIndex;return Ee!==0?Ee:ae.id-he.id}function d(ae){for(var he=o(R);he!==null;){if(he.callback===null)s(R);else if(he.startTime<=ae)s(R),he.sortIndex=he.expirationTime,i(C,he);else break;he=o(R)}}function h(ae){if(L=!1,d(ae),!V)if(o(C)!==null)V=!0,ie||(ie=!0,K());else{var he=o(R);he!==null&&v(h,he.startTime-ae)}}function y(){return U?!0:!(e.unstable_now()-le<$)}function v(ae,he){ue=X(function(){ae(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 S=performance;e.unstable_now=function(){return S.now()}}else{var T=Date,E=T.now();e.unstable_now=function(){return T.now()-E}}var C=[],R=[],_=1,N=null,z=3,B=!1,V=!1,L=!1,U=!1,X=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ie=!1,ue=-1,$=5,le=-1;if(typeof ce=="function")var K=function(){ce(n)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,Z=oe.port2;oe.port1.onmessage=n,K=function(){Z.postMessage(null)}}else K=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(ae){ae.callback=null},e.unstable_forceFrameRate=function(ae){0>ae||125<ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<ae?Math.floor(1e3/ae):5},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_next=function(ae){switch(z){case 1:case 2:case 3:var he=3;break;default:he=z}var Ee=z;z=he;try{return ae()}finally{z=Ee}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(ae,he){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var Ee=z;z=ae;try{return he()}finally{z=Ee}},e.unstable_scheduleCallback=function(ae,he,Ee){var te=e.unstable_now();switch(typeof Ee=="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee=="number"&&0<Ee?te+Ee:te):Ee=te,ae){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=Ee+F,ae={id:_++,callback:he,priorityLevel:ae,startTime:Ee,expirationTime:F,sortIndex:-1},Ee>te?(ae.sortIndex=Ee,i(R,ae),o(C)===null&&ae===o(R)&&(L?(se(ue),ue=-1):L=!0,v(h,Ee-te))):(ae.sortIndex=F,i(C,ae),V||B||(V=!0,ie||(ie=!0,K()))),ae},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(ae){var he=z;return function(){var Ee=z;z=he;try{return ae.apply(this,arguments)}finally{z=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(BE)),BE}var wC;function EC(){if(wC)return LS.exports;wC=1;var e={};return e.NODE_ENV==="production"?LS.exports=SV():LS.exports=wV(),LS.exports}var VS={exports:{}},La={};/**
 * @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 TC;function EV(){if(TC)return La;TC=1;var e=Ad();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 i={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},o=Symbol.for("react.portal");function s(h,y,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:y,implementation:v}}var c=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 La.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,La.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 s(h,y,null,v)},La.flushSync=function(h){var y=c.T,v=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=y,i.p=v,i.d.f()}},La.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,i.d.C(h,y))},La.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},La.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin),T=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?i.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:E}):v==="script"&&i.d.X(h,{crossOrigin:S,integrity:T,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},La.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);i.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&&i.d.M(h)},La.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin);i.d.L(h,v,{crossOrigin:S,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})}},La.preloadModule=function(h,y){if(typeof h=="string")if(y){var v=d(y.as,y.crossOrigin);i.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 i.d.m(h)},La.requestFormReset=function(h){i.d.r(h)},La.unstable_batchedUpdates=function(h,y){return h(y)},La.useFormState=function(h,y,v){return c.H.useFormState(h,y,v)},La.useFormStatus=function(){return c.H.useHostTransitionStatus()},La.version="19.2.4",La}var Va={},AC;function TV(){if(AC)return Va;AC=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 i(T,E,C){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:C}}function o(T,E){if(T==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}function s(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function c(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=S.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=Ad(),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"),S=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"),Va.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Va.createPortal=function(T,E){var C=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 i(T,E,null,C)},Va.flushSync=function(T){var E=S.T,C=y.p;try{if(S.T=null,y.p=2,T)return T()}finally{S.T=E,y.p=C,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.")}},Va.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.",c(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.",s(E.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(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))},Va.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.",s(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`.",c(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`.",c(E))}typeof T=="string"&&y.d.D(T)},Va.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.",c(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".',c(E.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(T)),typeof T=="string"&&E&&typeof E.as=="string"){var C=E.as,R=o(C,E.crossOrigin),_=typeof E.integrity=="string"?E.integrity:void 0,N=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;C==="style"?y.d.S(T,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:R,integrity:_,fetchPriority:N}):C==="script"&&y.d.X(T,{crossOrigin:R,integrity:_,fetchPriority:N,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},Va.preinitModule=function(T,E){var C="";if(typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),E!==void 0&&typeof E!="object"?C+=" The `options` argument encountered was "+s(E)+".":E&&"as"in E&&E.as!=="script"&&(C+=" The `as` option encountered was "+c(E.as)+"."),C)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",C);else switch(C=E&&typeof E.as=="string"?E.as:"script",C){case"script":break;default:C=c(C),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)',C,T)}typeof T=="string"&&(typeof E=="object"&&E!==null?(E.as==null||E.as==="script")&&(C=o(E.as,E.crossOrigin),y.d.M(T,{crossOrigin:C,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})):E==null&&y.d.M(T))},Va.preload=function(T,E){var C="";if(typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),E==null||typeof E!="object"?C+=" The `options` argument encountered was "+s(E)+".":typeof E.as=="string"&&E.as||(C+=" The `as` option encountered was "+s(E.as)+"."),C&&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',C),typeof T=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){C=E.as;var R=o(C,E.crossOrigin);y.d.L(T,C,{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})}},Va.preloadModule=function(T,E){var C="";typeof T=="string"&&T||(C+=" The `href` argument encountered was "+s(T)+"."),E!==void 0&&typeof E!="object"?C+=" The `options` argument encountered was "+s(E)+".":E&&"as"in E&&typeof E.as!="string"&&(C+=" The `as` option encountered was "+s(E.as)+"."),C&&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',C),typeof T=="string"&&(E?(C=o(E.as,E.crossOrigin),y.d.m(T,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:C,integrity:typeof E.integrity=="string"?E.integrity:void 0})):y.d.m(T))},Va.requestFormReset=function(T){y.d.r(T)},Va.unstable_batchedUpdates=function(T,E){return T(E)},Va.useFormState=function(T,E,C){return d().useFormState(T,E,C)},Va.useFormStatus=function(){return d().useHostTransitionStatus()},Va.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Va}var CC;function jE(){if(CC)return VS.exports;CC=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(),VS.exports=EV()):VS.exports=TV(),VS.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 OC;function AV(){if(OC)return fv;OC=1;var e=EC(),t=Ad(),n=jE();function i(l){var f="https://react.dev/errors/"+l;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 #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function s(l){var f=l,m=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(m=f.return),l=f.return;while(l)}return f.tag===3?m:null}function c(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function d(l){if(l.tag===31){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function h(l){if(s(l)!==l)throw Error(i(188))}function y(l){var f=l.alternate;if(!f){if(f=s(l),f===null)throw Error(i(188));return f!==l?null:l}for(var m=l,b=f;;){var A=m.return;if(A===null)break;var O=A.alternate;if(O===null){if(b=A.return,b!==null){m=b;continue}break}if(A.child===O.child){for(O=A.child;O;){if(O===m)return h(A),l;if(O===b)return h(A),f;O=O.sibling}throw Error(i(188))}if(m.return!==b.return)m=A,b=O;else{for(var j=!1,ne=A.child;ne;){if(ne===m){j=!0,m=A,b=O;break}if(ne===b){j=!0,b=A,m=O;break}ne=ne.sibling}if(!j){for(ne=O.child;ne;){if(ne===m){j=!0,m=O,b=A;break}if(ne===b){j=!0,b=O,m=A;break}ne=ne.sibling}if(!j)throw Error(i(189))}}if(m.alternate!==b)throw Error(i(190))}if(m.tag!==3)throw Error(i(188));return m.stateNode.current===m?l:f}function v(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l;for(l=l.child;l!==null;){if(f=v(l),f!==null)return f;l=l.sibling}return null}var S=Object.assign,T=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),B=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),U=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 $(l){return l===null||typeof l!="object"?null:(l=ue&&l[ue]||l["@@iterator"],typeof l=="function"?l:null)}var le=Symbol.for("react.client.reference");function K(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===le?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case R:return"Fragment";case N:return"Profiler";case _:return"StrictMode";case L:return"Suspense";case U:return"SuspenseList";case ce:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case C:return"Portal";case B:return l.displayName||"Context";case z:return(l._context.displayName||"Context")+".Consumer";case V:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case X:return f=l.displayName||null,f!==null?f:K(l.type)||"Memo";case se:f=l._payload,l=l._init;try{return K(l(f))}catch{}}return null}var oe=Array.isArray,Z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Ee=[],te=-1;function F(l){return{current:l}}function ee(l){0>te||(l.current=Ee[te],Ee[te]=null,te--)}function Y(l,f){te++,Ee[te]=l.current,l.current=f}var Me=F(null),Se=F(null),_e=F(null),je=F(null);function He(l,f){switch(Y(_e,f),Y(Se,l),Y(Me,null),f.nodeType){case 9:case 11:l=(l=f.documentElement)&&(l=l.namespaceURI)?_0(l):0;break;default:if(l=f.tagName,f=f.namespaceURI)f=_0(f),l=Mw(f,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}ee(Me),Y(Me,l)}function Xe(){ee(Me),ee(Se),ee(_e)}function Ke(l){l.memoizedState!==null&&Y(je,l);var f=Me.current,m=Mw(f,l.type);f!==m&&(Y(Se,l),Y(Me,m))}function et(l){Se.current===l&&(ee(Me),ee(Se)),je.current===l&&(ee(je),Jr._currentValue=he)}var Be,Re;function st(l){if(Be===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Be=f&&f[1]||"",Re=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Be+l+Re}var Mt=!1;function Qt(l,f){if(!l||Mt)return"";Mt=!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(Ue){var Ie=Ue}Reflect.construct(l,[],Qe)}else{try{Qe.call()}catch(Ue){Ie=Ue}l.call(Qe.prototype)}}else{try{throw Error()}catch(Ue){Ie=Ue}(Qe=l())&&typeof Qe.catch=="function"&&Qe.catch(function(){})}}catch(Ue){if(Ue&&Ie&&typeof Ue.stack=="string")return[Ue.stack,Ie.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=b.DetermineComponentFrameRoot(),j=O[0],ne=O[1];if(j&&ne){var ve=j.split(`
`),ze=ne.split(`
`);for(A=b=0;b<ve.length&&!ve[b].includes("DetermineComponentFrameRoot");)b++;for(;A<ze.length&&!ze[A].includes("DetermineComponentFrameRoot");)A++;if(b===ve.length||A===ze.length)for(b=ve.length-1,A=ze.length-1;1<=b&&0<=A&&ve[b]!==ze[A];)A--;for(;1<=b&&0<=A;b--,A--)if(ve[b]!==ze[A]){if(b!==1||A!==1)do if(b--,A--,0>A||ve[b]!==ze[A]){var qe=`
`+ve[b].replace(" at new "," at ");return l.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",l.displayName)),qe}while(1<=b&&0<=A);break}}}finally{Mt=!1,Error.prepareStackTrace=m}return(m=l?l.displayName||l.name:"")?st(m):""}function xt(l,f){switch(l.tag){case 26:case 27:case 5:return st(l.type);case 16:return st("Lazy");case 13:return l.child!==f&&f!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return Qt(l.type,!1);case 11:return Qt(l.type.render,!1);case 1:return Qt(l.type,!0);case 31:return st("Activity");default:return""}}function Ut(l){try{var f="",m=null;do f+=xt(l,m),m=l,l=l.return;while(l);return f}catch(b){return`
Error generating stack: `+b.message+`
`+b.stack}}var hn=Object.prototype.hasOwnProperty,mn=e.unstable_scheduleCallback,ot=e.unstable_cancelCallback,At=e.unstable_shouldYield,Rn=e.unstable_requestPaint,Bt=e.unstable_now,Ze=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,Ve=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,pt=e.unstable_LowPriority,ut=e.unstable_IdlePriority,yt=e.log,gn=e.unstable_setDisableYieldValue,kt=null,jt=null;function Fn(l){if(typeof yt=="function"&&gn(l),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(kt,l)}catch{}}var bn=Math.clz32?Math.clz32:J,Fr=Math.log,cr=Math.LN2;function J(l){return l>>>=0,l===0?32:31-(Fr(l)/cr|0)|0}var Oe=256,tt=262144,Ne=4194304;function We(l){var f=l&42;if(f!==0)return f;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Et(l,f,m){var b=l.pendingLanes;if(b===0)return 0;var A=0,O=l.suspendedLanes,j=l.pingedLanes;l=l.warmLanes;var ne=b&134217727;return ne!==0?(b=ne&~O,b!==0?A=We(b):(j&=ne,j!==0?A=We(j):m||(m=ne&~l,m!==0&&(A=We(m))))):(ne=b&~O,ne!==0?A=We(ne):j!==0?A=We(j):m||(m=b&~l,m!==0&&(A=We(m)))),A===0?0:f!==0&&f!==A&&(f&O)===0&&(O=A&-A,m=f&-f,O>=m||O===32&&(m&4194048)!==0)?f:A}function vt(l,f){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&f)===0}function Yt(l,f){switch(l){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 l=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),l}function Bn(l){for(var f=[],m=0;31>m;m++)f.push(l);return f}function oi(l,f){l.pendingLanes|=f,f!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Ug(l,f,m,b,A,O){var j=l.pendingLanes;l.pendingLanes=m,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=m,l.entangledLanes&=m,l.errorRecoveryDisabledLanes&=m,l.shellSuspendCounter=0;var ne=l.entanglements,ve=l.expirationTimes,ze=l.hiddenUpdates;for(m=j&~m;0<m;){var qe=31-bn(m),Qe=1<<qe;ne[qe]=0,ve[qe]=-1;var Ie=ze[qe];if(Ie!==null)for(ze[qe]=null,qe=0;qe<Ie.length;qe++){var Ue=Ie[qe];Ue!==null&&(Ue.lane&=-536870913)}m&=~Qe}b!==0&&mf(l,b,0),O!==0&&A===0&&l.tag!==0&&(l.suspendedLanes|=O&~(j&~f))}function mf(l,f,m){l.pendingLanes|=f,l.suspendedLanes&=~f;var b=31-bn(f);l.entangledLanes|=f,l.entanglements[b]=l.entanglements[b]|1073741824|m&261930}function Ih(l,f){var m=l.entangledLanes|=f;for(l=l.entanglements;m;){var b=31-bn(m),A=1<<b;A&f|l[b]&f&&(l[b]|=f),m&=~A}}function is(l,f){var m=f&-f;return m=(m&42)!==0?1:Ga(m),(m&(l.suspendedLanes|f))!==0?0:m}function Ga(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function $g(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function C6(){var l=ae.p;return l!==0?l:(l=window.event,l===void 0?32:fm(l.type))}function Hg(l,f){var m=ae.p;try{return ae.p=l,f()}finally{ae.p=m}}var fu=Math.random().toString(36).slice(2),pi="__reactFiber$"+fu,Or="__reactProps$"+fu,gf="__reactContainer$"+fu,Lh="__reactEvents$"+fu,O6="__reactListeners$"+fu,Pb="__reactHandles$"+fu,Ub="__reactResources$"+fu,Fd="__reactMarker$"+fu;function dc(l){delete l[pi],delete l[Or],delete l[Lh],delete l[O6],delete l[Pb]}function yf(l){var f=l[pi];if(f)return f;for(var m=l.parentNode;m;){if(f=m[gf]||m[pi]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(l=gy(l);l!==null;){if(m=l[pi])return m;l=gy(l)}return f}l=m,m=l.parentNode}return null}function vf(l){if(l=l[pi]||l[gf]){var f=l.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return l}return null}function Yd(l){var f=l.tag;if(f===5||f===26||f===27||f===6)return l.stateNode;throw Error(i(33))}function bf(l){var f=l[Ub];return f||(f=l[Ub]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Si(l){l[Fd]=!0}var Fa=new Set,xf={};function So(l,f){Sf(l,f),Sf(l+"Capture",f)}function Sf(l,f){for(xf[l]=f,l=0;l<f.length;l++)Fa.add(f[l])}var Vh=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]*$"),Bh={},qg={};function jh(l){return hn.call(qg,l)?!0:hn.call(Bh,l)?!1:Vh.test(l)?qg[l]=!0:(Bh[l]=!0,!1)}function du(l,f,m){if(jh(f))if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":l.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){l.removeAttribute(f);return}}l.setAttribute(f,""+m)}}function Xd(l,f,m){if(m===null)l.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(f);return}l.setAttribute(f,""+m)}}function hu(l,f,m,b){if(b===null)l.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(m);return}l.setAttributeNS(f,m,""+b)}}function Yo(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function $b(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Hb(l,f,m){var b=Object.getOwnPropertyDescriptor(l.constructor.prototype,f);if(!l.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var A=b.get,O=b.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return A.call(this)},set:function(j){m=""+j,O.call(this,j)}}),Object.defineProperty(l,f,{enumerable:b.enumerable}),{getValue:function(){return m},setValue:function(j){m=""+j},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function Ph(l){if(!l._valueTracker){var f=$b(l)?"checked":"value";l._valueTracker=Hb(l,f,""+l[f])}}function qb(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var m=f.getValue(),b="";return l&&(b=$b(l)?l.checked?"true":"false":l.value),l=b,l!==m?(f.setValue(l),!0):!1}function Uh(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var M6=/[\n"\\]/g;function Xo(l){return l.replace(M6,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function Gg(l,f,m,b,A,O,j,ne){l.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?l.type=j:l.removeAttribute("type"),f!=null?j==="number"?(f===0&&l.value===""||l.value!=f)&&(l.value=""+Yo(f)):l.value!==""+Yo(f)&&(l.value=""+Yo(f)):j!=="submit"&&j!=="reset"||l.removeAttribute("value"),f!=null?Wd(l,j,Yo(f)):m!=null?Wd(l,j,Yo(m)):b!=null&&l.removeAttribute("value"),A==null&&O!=null&&(l.defaultChecked=!!O),A!=null&&(l.checked=A&&typeof A!="function"&&typeof A!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?l.name=""+Yo(ne):l.removeAttribute("name")}function Fg(l,f,m,b,A,O,j,ne){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),f!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||f!=null)){Ph(l);return}m=m!=null?""+Yo(m):"",f=f!=null?""+Yo(f):m,ne||f===l.value||(l.value=f),l.defaultValue=f}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,l.checked=ne?l.checked:!!b,l.defaultChecked=!!b,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(l.name=j),Ph(l)}function Wd(l,f,m){f==="number"&&Uh(l.ownerDocument)===l||l.defaultValue===""+m||(l.defaultValue=""+m)}function as(l,f,m,b){if(l=l.options,f){f={};for(var A=0;A<m.length;A++)f["$"+m[A]]=!0;for(m=0;m<l.length;m++)A=f.hasOwnProperty("$"+l[m].value),l[m].selected!==A&&(l[m].selected=A),A&&b&&(l[m].defaultSelected=!0)}else{for(m=""+Yo(m),f=null,A=0;A<l.length;A++){if(l[A].value===m){l[A].selected=!0,b&&(l[A].defaultSelected=!0);return}f!==null||l[A].disabled||(f=l[A])}f!==null&&(f.selected=!0)}}function R6(l,f,m){if(f!=null&&(f=""+Yo(f),f!==l.value&&(l.value=f),m==null)){l.defaultValue!==f&&(l.defaultValue=f);return}l.defaultValue=m!=null?""+Yo(m):""}function Gb(l,f,m,b){if(f==null){if(b!=null){if(m!=null)throw Error(i(92));if(oe(b)){if(1<b.length)throw Error(i(93));b=b[0]}m=b}m==null&&(m=""),f=m}m=Yo(f),l.defaultValue=m,b=l.textContent,b===m&&b!==""&&b!==null&&(l.value=b),Ph(l)}function wf(l,f){if(f){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=f;return}}l.textContent=f}var $h=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 Fb(l,f,m){var b=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?b?l.setProperty(f,""):f==="float"?l.cssFloat="":l[f]="":b?l.setProperty(f,m):typeof m!="number"||m===0||$h.has(f)?f==="float"?l.cssFloat=m:l[f]=(""+m).trim():l[f]=m+"px"}function _6(l,f,m){if(f!=null&&typeof f!="object")throw Error(i(62));if(l=l.style,m!=null){for(var b in m)!m.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?l.setProperty(b,""):b==="float"?l.cssFloat="":l[b]="");for(var A in f)b=f[A],f.hasOwnProperty(A)&&m[A]!==b&&Fb(l,A,b)}else for(var O in f)f.hasOwnProperty(O)&&Fb(l,O,f[O])}function Yb(l){if(l.indexOf("-")===-1)return!1;switch(l){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 U8=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"]]),$8=/^[\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 hc(l){return $8.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Gi(){}var Hh=null;function Yg(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Ef=null,os=null;function Xb(l){var f=vf(l);if(f&&(l=f.stateNode)){var m=l[Or]||null;e:switch(l=f.stateNode,f.type){case"input":if(Gg(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Xo(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var b=m[f];if(b!==l&&b.form===l.form){var A=b[Or]||null;if(!A)throw Error(i(90));Gg(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(f=0;f<m.length;f++)b=m[f],b.form===l.form&&qb(b)}break e;case"textarea":R6(l,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&as(l,!!m.multiple,f,!1)}}}var Kd=!1;function qh(l,f,m){if(Kd)return l(f,m);Kd=!0;try{var b=l(f);return b}finally{if(Kd=!1,(Ef!==null||os!==null)&&(Yp(),Ef&&(f=Ef,l=os,os=Ef=null,Xb(f),l)))for(f=0;f<l.length;f++)Xb(l[f])}}function Qd(l,f){var m=l.stateNode;if(m===null)return null;var b=m[Or]||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)||(l=l.type,b=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!b;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(i(231,f,typeof m));return m}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wb=!1;if(Yr)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){Wb=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch{Wb=!1}var pu=null,Xg=null,Wg=null;function D6(){if(Wg)return Wg;var l,f=Xg,m=f.length,b,A="value"in pu?pu.value:pu.textContent,O=A.length;for(l=0;l<m&&f[l]===A[l];l++);var j=m-l;for(b=1;b<=j&&f[m-b]===A[O-b];b++);return Wg=A.slice(l,1<b?1-b:void 0)}function Gh(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function Kg(){return!0}function Kb(){return!1}function Ya(l){function f(m,b,A,O,j){this._reactName=m,this._targetInst=A,this.type=b,this.nativeEvent=O,this.target=j,this.currentTarget=null;for(var ne in l)l.hasOwnProperty(ne)&&(m=l[ne],this[ne]=m?m(O):O[ne]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Kg:Kb,this.isPropagationStopped=Kb,this}return S(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=Kg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Kg)},persist:function(){},isPersistent:Kg}),f}var ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fh=Ya(ls),Zd=S({},ls,{view:0,detail:0}),N6=Ya(Zd),Qb,Zb,Yh,Qg=S({},Zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wo,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Yh&&(Yh&&l.type==="mousemove"?(Qb=l.screenX-Yh.screenX,Zb=l.screenY-Yh.screenY):Zb=Qb=0,Yh=l),Qb)},movementY:function(l){return"movementY"in l?l.movementY:Zb}}),k6=Ya(Qg),Xh=S({},Qg,{dataTransfer:0}),z6=Ya(Xh),I6=S({},Zd,{relatedTarget:0}),Zg=Ya(I6),L6=S({},ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Ya(L6),V6=S({},ls,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Af=Ya(V6),Cf=S({},ls,{data:0}),Wo=Ya(Cf),H8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e4={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"},ss={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B6(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=ss[l])?!!f[l]:!1}function wo(){return B6}var us=S({},Zd,{key:function(l){if(l.key){var f=H8[l.key]||l.key;if(f!=="Unidentified")return f}return l.type==="keypress"?(l=Gh(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?e4[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wo,charCode:function(l){return l.type==="keypress"?Gh(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Gh(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Jg=Ya(us),e1=S({},Qg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),t1=Ya(e1),cs=S({},Zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wo}),q8=Ya(cs),j6=S({},ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),P6=Ya(j6),G8=S({},Qg,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),t4=Ya(G8),F8=S({},ls,{newState:0,oldState:0}),U6=Ya(F8),n4=[9,13,27,32],Jd=Yr&&"CompositionEvent"in window,pc=null;Yr&&"documentMode"in document&&(pc=document.documentMode);var r4=Yr&&"TextEvent"in window&&!pc,Fi=Yr&&(!Jd||pc&&8<pc&&11>=pc),i4=" ",Wh=!1;function mc(l,f){switch(l){case"keyup":return n4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n1(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Of=!1;function $6(l,f){switch(l){case"compositionend":return n1(f);case"keypress":return f.which!==32?null:(Wh=!0,i4);case"textInput":return l=f.data,l===i4&&Wh?null:l;default:return null}}function H6(l,f){if(Of)return l==="compositionend"||!Jd&&mc(l,f)?(l=D6(),Wg=Xg=pu=null,Of=!1,l):null;switch(l){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 Fi&&f.locale!=="ko"?null:f.data;default:return null}}var Y8={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 r1(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!Y8[l.type]:f==="textarea"}function fs(l,f,m,b){Ef?os?os.push(b):os=[b]:Ef=b,f=uy(f,"onChange"),0<f.length&&(m=new Fh("onChange","change",null,m,b),l.push({event:m,listeners:f}))}var e0=null,Mf=null;function i1(l){wx(l,0)}function ds(l){var f=Yd(l);if(qb(f))return l}function a1(l,f){if(l==="change")return f}var a4=!1;if(Yr){var Kh;if(Yr){var Ta="oninput"in document;if(!Ta){var hs=document.createElement("div");hs.setAttribute("oninput","return;"),Ta=typeof hs.oninput=="function"}Kh=Ta}else Kh=!1;a4=Kh&&(!document.documentMode||9<document.documentMode)}function o4(){e0&&(e0.detachEvent("onpropertychange",o1),Mf=e0=null)}function o1(l){if(l.propertyName==="value"&&ds(Mf)){var f=[];fs(f,Mf,l,Yg(l)),qh(i1,f)}}function l4(l,f,m){l==="focusin"?(o4(),e0=f,Mf=m,e0.attachEvent("onpropertychange",o1)):l==="focusout"&&o4()}function q6(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ds(Mf)}function G6(l,f){if(l==="click")return ds(f)}function gc(l,f){if(l==="input"||l==="change")return ds(f)}function Rf(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Xa=typeof Object.is=="function"?Object.is:Rf;function yc(l,f){if(Xa(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var m=Object.keys(l),b=Object.keys(f);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var A=m[b];if(!hn.call(f,A)||!Xa(l[A],f[A]))return!1}return!0}function mu(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function s4(l,f){var m=mu(l);l=0;for(var b;m;){if(m.nodeType===3){if(b=l+m.textContent.length,l<=f&&b>=f)return{node:m,offset:f-l};l=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=mu(m)}}function u4(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?u4(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function _f(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var f=Uh(l.document);f instanceof l.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)l=f.contentWindow;else break;f=Uh(l.document)}return f}function gu(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}var c4=Yr&&"documentMode"in document&&11>=document.documentMode,ps=null,Qh=null,vc=null,ms=!1;function gs(l,f,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ms||ps==null||ps!==Uh(b)||(b=ps,"selectionStart"in b&&gu(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}),vc&&yc(vc,b)||(vc=b,b=uy(Qh,"onSelect"),0<b.length&&(f=new Fh("onSelect","select",null,f,m),l.push({event:f,listeners:b}),f.target=ps)))}function yu(l,f){var m={};return m[l.toLowerCase()]=f.toLowerCase(),m["Webkit"+l]="webkit"+f,m["Moz"+l]="moz"+f,m}var bc={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionrun:yu("Transition","TransitionRun"),transitionstart:yu("Transition","TransitionStart"),transitioncancel:yu("Transition","TransitionCancel"),transitionend:yu("Transition","TransitionEnd")},xc={},Zh={};Yr&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete bc.animationend.animation,delete bc.animationiteration.animation,delete bc.animationstart.animation),"TransitionEvent"in window||delete bc.transitionend.transition);function Eo(l){if(xc[l])return xc[l];if(!bc[l])return l;var f=bc[l],m;for(m in f)if(f.hasOwnProperty(m)&&m in Zh)return xc[l]=f[m];return l}var br=Eo("animationend"),Jh=Eo("animationiteration"),f4=Eo("animationstart"),d4=Eo("transitionrun"),Df=Eo("transitionstart"),ep=Eo("transitioncancel"),Ol=Eo("transitionend"),F6=new Map,Ml="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(" ");Ml.push("scrollEnd");function Wa(l,f){F6.set(l,f),So(f,[l])}var Sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Aa=[],zi=0,Ca=0;function To(){for(var l=zi,f=Ca=zi=0;f<l;){var m=Aa[f];Aa[f++]=null;var b=Aa[f];Aa[f++]=null;var A=Aa[f];Aa[f++]=null;var O=Aa[f];if(Aa[f++]=null,b!==null&&A!==null){var j=b.pending;j===null?A.next=A:(A.next=j.next,j.next=A),b.pending=A}O!==0&&l1(m,A,O)}}function Ao(l,f,m,b){Aa[zi++]=l,Aa[zi++]=f,Aa[zi++]=m,Aa[zi++]=b,Ca|=b,l.lanes|=b,l=l.alternate,l!==null&&(l.lanes|=b)}function Ko(l,f,m,b){return Ao(l,f,m,b),t0(l)}function oa(l,f){return Ao(l,null,null,f),t0(l)}function l1(l,f,m){l.lanes|=m;var b=l.alternate;b!==null&&(b.lanes|=m);for(var A=!1,O=l.return;O!==null;)O.childLanes|=m,b=O.alternate,b!==null&&(b.childLanes|=m),O.tag===22&&(l=O.stateNode,l===null||l._visibility&1||(A=!0)),l=O,O=O.return;return l.tag===3?(O=l.stateNode,A&&f!==null&&(A=31-bn(m),l=O.hiddenUpdates,b=l[A],b===null?l[A]=[f]:b.push(f),f.lane=m|536870912),O):null}function t0(l){if(50<td)throw td=0,K1=null,Error(i(185));for(var f=l.return;f!==null;)l=f,f=l.return;return l.tag===3?l.stateNode:null}var Nf={};function ys(l,f,m,b){this.tag=l,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 Ka(l,f,m,b){return new ys(l,f,m,b)}function Qo(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Co(l,f){var m=l.alternate;return m===null?(m=Ka(l.tag,f,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=f,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&65011712,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,f=l.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m.refCleanup=l.refCleanup,m}function Y6(l,f){l.flags&=65011714;var m=l.alternate;return m===null?(l.childLanes=0,l.lanes=f,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=m.childLanes,l.lanes=m.lanes,l.child=m.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=m.memoizedProps,l.memoizedState=m.memoizedState,l.updateQueue=m.updateQueue,l.type=m.type,f=m.dependencies,l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),l}function tp(l,f,m,b,A,O){var j=0;if(b=l,typeof l=="function")Qo(l)&&(j=1);else if(typeof l=="string")j=Bx(l,m,Me.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ce:return l=Ka(31,m,f,A),l.elementType=ce,l.lanes=O,l;case R:return kf(m.children,A,O,f);case _:j=8,A|=24;break;case N:return l=Ka(12,m,f,A|2),l.elementType=N,l.lanes=O,l;case L:return l=Ka(13,m,f,A),l.elementType=L,l.lanes=O,l;case U:return l=Ka(19,m,f,A),l.elementType=U,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:j=10;break e;case z:j=9;break e;case V:j=11;break e;case X:j=14;break e;case se:j=16,b=null;break e}j=29,m=Error(i(130,l===null?"null":typeof l,"")),b=null}return f=Ka(j,m,f,A),f.elementType=l,f.type=b,f.lanes=O,f}function kf(l,f,m,b){return l=Ka(7,l,b,f),l.lanes=m,l}function np(l,f,m){return l=Ka(6,l,null,f),l.lanes=m,l}function rp(l){var f=Ka(18,null,null,0);return f.stateNode=l,f}function s1(l,f,m){return f=Ka(4,l.children!==null?l.children:[],l.key,f),f.lanes=m,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}var h4=new WeakMap;function Oo(l,f){if(typeof l=="object"&&l!==null){var m=h4.get(l);return m!==void 0?m:(f={value:l,source:f,stack:Ut(f)},h4.set(l,f),f)}return{value:l,source:f,stack:Ut(f)}}var zf=[],Mo=0,ip=null,n0=0,fr=[],Qa=0,Rl=null,Ro=1,Za="";function vs(l,f){zf[Mo++]=n0,zf[Mo++]=ip,ip=l,n0=f}function ap(l,f,m){fr[Qa++]=Ro,fr[Qa++]=Za,fr[Qa++]=Rl,Rl=l;var b=Ro;l=Za;var A=32-bn(b)-1;b&=~(1<<A),m+=1;var O=32-bn(f)+A;if(30<O){var j=A-A%5;O=(b&(1<<j)-1).toString(32),b>>=j,A-=j,Ro=1<<32-bn(f)+A|m<<A|b,Za=O+l}else Ro=1<<O|m<<A|b,Za=l}function u1(l){l.return!==null&&(vs(l,1),ap(l,1,0))}function r0(l){for(;l===ip;)ip=zf[--Mo],zf[Mo]=null,n0=zf[--Mo],zf[Mo]=null;for(;l===Rl;)Rl=fr[--Qa],fr[Qa]=null,Za=fr[--Qa],fr[Qa]=null,Ro=fr[--Qa],fr[Qa]=null}function p4(l,f){fr[Qa++]=Ro,fr[Qa++]=Za,fr[Qa++]=Rl,Ro=f.id,Za=f.overflow,Rl=l}var mi=null,xr=null,kn=!1,bs=null,Ja=!1,xs=Error(i(519));function Oa(l){var f=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lp(Oo(f,l)),xs}function i0(l){var f=l.stateNode,m=l.type,b=l.memoizedProps;switch(f[pi]=l,f[Or]=b,m){case"dialog":_n("cancel",f),_n("close",f);break;case"iframe":case"object":case"embed":_n("load",f);break;case"video":case"audio":for(m=0;m<id.length;m++)_n(id[m],f);break;case"source":_n("error",f);break;case"img":case"image":case"link":_n("error",f),_n("load",f);break;case"details":_n("toggle",f);break;case"input":_n("invalid",f),Fg(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"select":_n("invalid",f);break;case"textarea":_n("invalid",f),Gb(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||Cx(f.textContent,m)?(b.popover!=null&&(_n("beforetoggle",f),_n("toggle",f)),b.onScroll!=null&&_n("scroll",f),b.onScrollEnd!=null&&_n("scrollend",f),b.onClick!=null&&(f.onclick=Gi),f=!0):f=!1,f||Oa(l,!0)}function op(l){for(mi=l.return;mi;)switch(mi.tag){case 5:case 31:case 13:Ja=!1;return;case 27:case 3:Ja=!0;return;default:mi=mi.return}}function Ss(l){if(l!==mi)return!1;if(!kn)return op(l),kn=!0,!1;var f=l.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=l.type,m=!(m!=="form"&&m!=="button")||hy(l.type,l.memoizedProps)),m=!m),m&&xr&&Oa(l),op(l),f===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=my(l)}else if(f===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=my(l)}else f===27?(f=xr,Ps(l.type)?(l=z0,z0=null,xr=l):xr=f):xr=mi?Ji(l.stateNode.nextSibling):null;return!0}function _l(){xr=mi=null,kn=!1}function c1(){var l=bs;return l!==null&&(oo===null?oo=l:oo.push.apply(oo,l),bs=null),l}function lp(l){bs===null?bs=[l]:bs.push(l)}var f1=F(null),wc=null,Dl=null;function ws(l,f,m){Y(f1,f._currentValue),f._currentValue=m}function la(l){l._currentValue=f1.current,ee(f1)}function sp(l,f,m){for(;l!==null;){var b=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),l===m)break;l=l.return}}function d1(l,f,m,b){var A=l.child;for(A!==null&&(A.return=l);A!==null;){var O=A.dependencies;if(O!==null){var j=A.child;O=O.firstContext;e:for(;O!==null;){var ne=O;O=A;for(var ve=0;ve<f.length;ve++)if(ne.context===f[ve]){O.lanes|=m,ne=O.alternate,ne!==null&&(ne.lanes|=m),sp(O.return,m,l),b||(j=null);break e}O=ne.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(i(341));j.lanes|=m,O=j.alternate,O!==null&&(O.lanes|=m),sp(j,m,l),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===l){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function _o(l,f,m,b){l=null;for(var A=f,O=!1;A!==null;){if(!O){if((A.flags&524288)!==0)O=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(i(387));if(j=j.memoizedProps,j!==null){var ne=A.type;Xa(A.pendingProps.value,j.value)||(l!==null?l.push(ne):l=[ne])}}else if(A===je.current){if(j=A.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(Jr):l=[Jr])}A=A.return}l!==null&&d1(f,l,m,b),f.flags|=262144}function sa(l){for(l=l.firstContext;l!==null;){if(!Xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Es(l){wc=l,Dl=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Vt(l){return If(wc,l)}function rt(l,f){return wc===null&&Es(l),If(l,f)}function If(l,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},Dl===null){if(l===null)throw Error(i(308));Dl=f,l.dependencies={lanes:0,firstContext:f},l.flags|=524288}else Dl=Dl.next=f;return m}var h1=typeof AbortController<"u"?AbortController:function(){var l=[],f=this.signal={aborted:!1,addEventListener:function(m,b){l.push(b)}};this.abort=function(){f.aborted=!0,l.forEach(function(m){return m()})}},Xr=e.unstable_scheduleCallback,m4=e.unstable_NormalPriority,Wr={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function p1(){return{controller:new h1,data:new Map,refCount:0}}function Lf(l){l.refCount--,l.refCount===0&&Xr(m4,function(){l.controller.abort()})}var up=null,cp=0,Ec=0,Tc=null;function Ma(l,f){if(up===null){var m=up=[];cp=0,Ec=nd(),Tc={status:"pending",value:void 0,then:function(b){m.push(b)}}}return cp++,f.then(Wn,Wn),f}function Wn(){if(--cp===0&&up!==null){Tc!==null&&(Tc.status="fulfilled");var l=up;up=null,Ec=0,Tc=null;for(var f=0;f<l.length;f++)(0,l[f])()}}function m1(l,f){var m=[],b={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return l.then(function(){b.status="fulfilled",b.value=f;for(var A=0;A<m.length;A++)(0,m[A])(f)},function(A){for(b.status="rejected",b.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),b}var a0=Z.S;Z.S=function(l,f){Ru=Bt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Ma(l,f),a0!==null&&a0(l,f)};var eo=F(null);function vu(){var l=eo.current;return l!==null?l:dr.pooledCache}function to(l,f){f===null?Y(eo,eo.current):Y(eo,f.pool)}function g1(){var l=vu();return l===null?null:{parent:Wr._currentValue,pool:l}}var Nl=Error(i(460)),fp=Error(i(474)),Ac=Error(i(542)),o0={then:function(){}};function dp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function g4(l,f,m){switch(m=l[m],m===void 0?l.push(f):m!==f&&(f.then(Gi,Gi),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,v4(l),l;default:if(typeof f.status=="string")f.then(Gi,Gi);else{if(l=dr,l!==null&&100<l.shellSuspendCounter)throw Error(i(482));l=f,l.status="pending",l.then(function(b){if(f.status==="pending"){var A=f;A.status="fulfilled",A.value=b}},function(b){if(f.status==="pending"){var A=f;A.status="rejected",A.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw l=f.reason,v4(l),l}throw Oc=f,Nl}}function Cc(l){try{var f=l._init;return f(l._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Oc=m,Nl):m}}var Oc=null;function y4(){if(Oc===null)throw Error(i(459));var l=Oc;return Oc=null,l}function v4(l){if(l===Nl||l===Ac)throw Error(i(483))}var Mc=null,Vf=0;function l0(l){var f=Vf;return Vf+=1,Mc===null&&(Mc=[]),g4(Mc,l,f)}function s0(l,f){f=f.props.ref,l.ref=f!==void 0?f:null}function hp(l,f){throw f.$$typeof===T?Error(i(525)):(l=Object.prototype.toString.call(f),Error(i(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l)))}function b4(l){function f(De,Te){if(l){var ke=De.deletions;ke===null?(De.deletions=[Te],De.flags|=16):ke.push(Te)}}function m(De,Te){if(!l)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 A(De,Te){return De=Co(De,Te),De.index=0,De.sibling=null,De}function O(De,Te,ke){return De.index=ke,l?(ke=De.alternate,ke!==null?(ke=ke.index,ke<Te?(De.flags|=67108866,Te):ke):(De.flags|=67108866,Te)):(De.flags|=1048576,Te)}function j(De){return l&&De.alternate===null&&(De.flags|=67108866),De}function ne(De,Te,ke,Ye){return Te===null||Te.tag!==6?(Te=np(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function ve(De,Te,ke,Ye){var Lt=ke.type;return Lt===R?qe(De,Te,ke.props.children,Ye,ke.key):Te!==null&&(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type)?(Te=A(Te,ke.props),s0(Te,ke),Te.return=De,Te):(Te=tp(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Te,ke),Te.return=De,Te)}function ze(De,Te,ke,Ye){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==ke.containerInfo||Te.stateNode.implementation!==ke.implementation?(Te=s1(ke,De.mode,Ye),Te.return=De,Te):(Te=A(Te,ke.children||[]),Te.return=De,Te)}function qe(De,Te,ke,Ye,Lt){return Te===null||Te.tag!==7?(Te=kf(ke,De.mode,Ye,Lt),Te.return=De,Te):(Te=A(Te,ke),Te.return=De,Te)}function Qe(De,Te,ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=np(""+Te,De.mode,ke),Te.return=De,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case E:return ke=tp(Te.type,Te.key,Te.props,null,De.mode,ke),s0(ke,Te),ke.return=De,ke;case C:return Te=s1(Te,De.mode,ke),Te.return=De,Te;case se:return Te=Cc(Te),Qe(De,Te,ke)}if(oe(Te)||$(Te))return Te=kf(Te,De.mode,ke,null),Te.return=De,Te;if(typeof Te.then=="function")return Qe(De,l0(Te),ke);if(Te.$$typeof===B)return Qe(De,rt(De,Te),ke);hp(De,Te)}return null}function Ie(De,Te,ke,Ye){var Lt=Te!==null?Te.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return Lt!==null?null:ne(De,Te,""+ke,Ye);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case E:return ke.key===Lt?ve(De,Te,ke,Ye):null;case C:return ke.key===Lt?ze(De,Te,ke,Ye):null;case se:return ke=Cc(ke),Ie(De,Te,ke,Ye)}if(oe(ke)||$(ke))return Lt!==null?null:qe(De,Te,ke,Ye,null);if(typeof ke.then=="function")return Ie(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return Ie(De,Te,rt(De,ke),Ye);hp(De,ke)}return null}function Ue(De,Te,ke,Ye,Lt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return De=De.get(ke)||null,ne(Te,De,""+Ye,Lt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case E:return De=De.get(Ye.key===null?ke:Ye.key)||null,ve(Te,De,Ye,Lt);case C:return De=De.get(Ye.key===null?ke:Ye.key)||null,ze(Te,De,Ye,Lt);case se:return Ye=Cc(Ye),Ue(De,Te,ke,Ye,Lt)}if(oe(Ye)||$(Ye))return De=De.get(ke)||null,qe(Te,De,Ye,Lt,null);if(typeof Ye.then=="function")return Ue(De,Te,ke,l0(Ye),Lt);if(Ye.$$typeof===B)return Ue(De,Te,ke,rt(Te,Ye),Lt);hp(Te,Ye)}return null}function Rt(De,Te,ke,Ye){for(var Lt=null,qn=null,Dt=Te,pn=Te=0,Cn=null;Dt!==null&&pn<ke.length;pn++){Dt.index>pn?(Cn=Dt,Dt=null):Cn=Dt.sibling;var Dn=Ie(De,Dt,ke[pn],Ye);if(Dn===null){Dt===null&&(Dt=Cn);break}l&&Dt&&Dn.alternate===null&&f(De,Dt),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn,Dt=Cn}if(pn===ke.length)return m(De,Dt),kn&&vs(De,pn),Lt;if(Dt===null){for(;pn<ke.length;pn++)Dt=Qe(De,ke[pn],Ye),Dt!==null&&(Te=O(Dt,Te,pn),qn===null?Lt=Dt:qn.sibling=Dt,qn=Dt);return kn&&vs(De,pn),Lt}for(Dt=b(Dt);pn<ke.length;pn++)Cn=Ue(Dt,De,pn,ke[pn],Ye),Cn!==null&&(l&&Cn.alternate!==null&&Dt.delete(Cn.key===null?pn:Cn.key),Te=O(Cn,Te,pn),qn===null?Lt=Cn:qn.sibling=Cn,qn=Cn);return l&&Dt.forEach(function(Pc){return f(De,Pc)}),kn&&vs(De,pn),Lt}function Ht(De,Te,ke,Ye){if(ke==null)throw Error(i(151));for(var Lt=null,qn=null,Dt=Te,pn=Te=0,Cn=null,Dn=ke.next();Dt!==null&&!Dn.done;pn++,Dn=ke.next()){Dt.index>pn?(Cn=Dt,Dt=null):Cn=Dt.sibling;var Pc=Ie(De,Dt,Dn.value,Ye);if(Pc===null){Dt===null&&(Dt=Cn);break}l&&Dt&&Pc.alternate===null&&f(De,Dt),Te=O(Pc,Te,pn),qn===null?Lt=Pc:qn.sibling=Pc,qn=Pc,Dt=Cn}if(Dn.done)return m(De,Dt),kn&&vs(De,pn),Lt;if(Dt===null){for(;!Dn.done;pn++,Dn=ke.next())Dn=Qe(De,Dn.value,Ye),Dn!==null&&(Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return kn&&vs(De,pn),Lt}for(Dt=b(Dt);!Dn.done;pn++,Dn=ke.next())Dn=Ue(Dt,De,pn,Dn.value,Ye),Dn!==null&&(l&&Dn.alternate!==null&&Dt.delete(Dn.key===null?pn:Dn.key),Te=O(Dn,Te,pn),qn===null?Lt=Dn:qn.sibling=Dn,qn=Dn);return l&&Dt.forEach(function(_y){return f(De,_y)}),kn&&vs(De,pn),Lt}function hr(De,Te,ke,Ye){if(typeof ke=="object"&&ke!==null&&ke.type===R&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case E:e:{for(var Lt=ke.key;Te!==null;){if(Te.key===Lt){if(Lt=ke.type,Lt===R){if(Te.tag===7){m(De,Te.sibling),Ye=A(Te,ke.props.children),Ye.return=De,De=Ye;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===se&&Cc(Lt)===Te.type){m(De,Te.sibling),Ye=A(Te,ke.props),s0(Ye,ke),Ye.return=De,De=Ye;break e}m(De,Te);break}else f(De,Te);Te=Te.sibling}ke.type===R?(Ye=kf(ke.props.children,De.mode,Ye,ke.key),Ye.return=De,De=Ye):(Ye=tp(ke.type,ke.key,ke.props,null,De.mode,Ye),s0(Ye,ke),Ye.return=De,De=Ye)}return j(De);case C:e:{for(Lt=ke.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===ke.containerInfo&&Te.stateNode.implementation===ke.implementation){m(De,Te.sibling),Ye=A(Te,ke.children||[]),Ye.return=De,De=Ye;break e}else{m(De,Te);break}else f(De,Te);Te=Te.sibling}Ye=s1(ke,De.mode,Ye),Ye.return=De,De=Ye}return j(De);case se:return ke=Cc(ke),hr(De,Te,ke,Ye)}if(oe(ke))return Rt(De,Te,ke,Ye);if($(ke)){if(Lt=$(ke),typeof Lt!="function")throw Error(i(150));return ke=Lt.call(ke),Ht(De,Te,ke,Ye)}if(typeof ke.then=="function")return hr(De,Te,l0(ke),Ye);if(ke.$$typeof===B)return hr(De,Te,rt(De,ke),Ye);hp(De,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint"?(ke=""+ke,Te!==null&&Te.tag===6?(m(De,Te.sibling),Ye=A(Te,ke),Ye.return=De,De=Ye):(m(De,Te),Ye=np(ke,De.mode,Ye),Ye.return=De,De=Ye),j(De)):m(De,Te)}return function(De,Te,ke,Ye){try{Vf=0;var Lt=hr(De,Te,ke,Ye);return Mc=null,Lt}catch(Dt){if(Dt===Nl||Dt===Ac)throw Dt;var qn=Ka(29,Dt,null,De.mode);return qn.lanes=Ye,qn.return=De,qn}finally{}}}var Bf=b4(!0),x4=b4(!1),bu=!1;function y1(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pp(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function xu(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Su(l,f,m){var b=l.updateQueue;if(b===null)return null;if(b=b.shared,(Hn&2)!==0){var A=b.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),b.pending=f,f=t0(l),l1(l,null,m),f}return Ao(l,b,f,m),t0(l)}function Ts(l,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,Ih(l,m)}}function u0(l,f){var m=l.updateQueue,b=l.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var A=null,O=null;if(m=m.firstBaseUpdate,m!==null){do{var j={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?A=O=j:O=O.next=j,m=m.next}while(m!==null);O===null?A=O=f:O=O.next=f}else A=O=f;m={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:O,shared:b.shared,callbacks:b.callbacks},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=f:l.next=f,m.lastBaseUpdate=f}var v1=!1;function mp(){if(v1){var l=Tc;if(l!==null)throw l}}function Rc(l,f,m,b){v1=!1;var A=l.updateQueue;bu=!1;var O=A.firstBaseUpdate,j=A.lastBaseUpdate,ne=A.shared.pending;if(ne!==null){A.shared.pending=null;var ve=ne,ze=ve.next;ve.next=null,j===null?O=ze:j.next=ze,j=ve;var qe=l.alternate;qe!==null&&(qe=qe.updateQueue,ne=qe.lastBaseUpdate,ne!==j&&(ne===null?qe.firstBaseUpdate=ze:ne.next=ze,qe.lastBaseUpdate=ve))}if(O!==null){var Qe=A.baseState;j=0,qe=ze=ve=null,ne=O;do{var Ie=ne.lane&-536870913,Ue=Ie!==ne.lane;if(Ue?(zn&Ie)===Ie:(b&Ie)===Ie){Ie!==0&&Ie===Ec&&(v1=!0),qe!==null&&(qe=qe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Rt=l,Ht=ne;Ie=f;var hr=m;switch(Ht.tag){case 1:if(Rt=Ht.payload,typeof Rt=="function"){Qe=Rt.call(hr,Qe,Ie);break e}Qe=Rt;break e;case 3:Rt.flags=Rt.flags&-65537|128;case 0:if(Rt=Ht.payload,Ie=typeof Rt=="function"?Rt.call(hr,Qe,Ie):Rt,Ie==null)break e;Qe=S({},Qe,Ie);break e;case 2:bu=!0}}Ie=ne.callback,Ie!==null&&(l.flags|=64,Ue&&(l.flags|=8192),Ue=A.callbacks,Ue===null?A.callbacks=[Ie]:Ue.push(Ie))}else Ue={lane:Ie,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},qe===null?(ze=qe=Ue,ve=Qe):qe=qe.next=Ue,j|=Ie;if(ne=ne.next,ne===null){if(ne=A.shared.pending,ne===null)break;Ue=ne,ne=Ue.next,Ue.next=null,A.lastBaseUpdate=Ue,A.shared.pending=null}}while(!0);qe===null&&(ve=Qe),A.baseState=ve,A.firstBaseUpdate=ze,A.lastBaseUpdate=qe,O===null&&(A.shared.lanes=0),il|=j,l.lanes=j,l.memoizedState=Qe}}function jf(l,f){if(typeof l!="function")throw Error(i(191,l));l.call(f)}function b1(l,f){var m=l.callbacks;if(m!==null)for(l.callbacks=null,l=0;l<m.length;l++)jf(m[l],f)}var Zo=F(null),Yi=F(0);function gp(l,f){l=Vs,Y(Yi,l),Y(Zo,f),Vs=l|f.baseLanes}function S4(){Y(Yi,Vs),Y(Zo,Zo.current)}function yp(){Vs=Yi.current,ee(Zo),ee(Yi)}var ua=F(null),no=null;function wu(l){var f=l.alternate;Y(Lr,Lr.current&1),Y(ua,l),no===null&&(f===null||Zo.current!==null||f.memoizedState!==null)&&(no=l)}function vp(l){Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)}function bp(l){l.tag===22?(Y(Lr,Lr.current),Y(ua,l),no===null&&(no=l)):As()}function As(){Y(Lr,Lr.current),Y(ua,ua.current)}function ca(l){ee(ua),no===l&&(no=null),ee(Lr)}var Lr=F(0);function Pf(l){for(var f=l;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Nx(m)||ol(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===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var kl=0,cn=null,nr=null,Kr=null,xp=!1,Eu=!1,_c=!1,c0=0,f0=0,Uf=null,w4=0;function Vr(){throw Error(i(321))}function x1(l,f){if(f===null)return!1;for(var m=0;m<f.length&&m<l.length;m++)if(!Xa(l[m],f[m]))return!1;return!0}function Tu(l,f,m,b,A,O){return kl=O,cn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Z.H=l===null||l.memoizedState===null?ew:B4,_c=!1,O=m(b,A),_c=!1,Eu&&(O=w1(f,m,b,A)),S1(l),O}function S1(l){Z.H=y0;var f=nr!==null&&nr.next!==null;if(kl=0,Kr=nr=cn=null,xp=!1,f0=0,Uf=null,f)throw Error(i(300));l===null||li||(l=l.dependencies,l!==null&&sa(l)&&(li=!0))}function w1(l,f,m,b){cn=l;var A=0;do{if(Eu&&(Uf=null),f0=0,Eu=!1,25<=A)throw Error(i(301));if(A+=1,Kr=nr=null,l.updateQueue!=null){var O=l.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}Z.H=j4,O=f(m,b)}while(Eu);return O}function X8(){var l=Z.H,f=l.useState()[0];return f=typeof f.then=="function"?d0(f):f,l=l.useState()[0],(nr!==null?nr.memoizedState:null)!==l&&(cn.flags|=1024),f}function E4(){var l=c0!==0;return c0=0,l}function E1(l,f,m){f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~m}function $f(l){if(xp){for(l=l.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}xp=!1}kl=0,Kr=nr=cn=null,Eu=!1,f0=c0=0,Uf=null}function Xi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?cn.memoizedState=Kr=l:Kr=Kr.next=l,Kr}function Dr(){if(nr===null){var l=cn.alternate;l=l!==null?l.memoizedState:null}else l=nr.next;var f=Kr===null?cn.memoizedState:Kr.next;if(f!==null)Kr=f,nr=l;else{if(l===null)throw cn.alternate===null?Error(i(467)):Error(i(310));nr=l,l={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},Kr===null?cn.memoizedState=Kr=l:Kr=Kr.next=l}return Kr}function Sp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d0(l){var f=f0;return f0+=1,Uf===null&&(Uf=[]),l=g4(Uf,l,f),f=cn,(Kr===null?f.memoizedState:Kr.next)===null&&(f=f.alternate,Z.H=f===null||f.memoizedState===null?ew:B4),l}function h0(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return d0(l);if(l.$$typeof===B)return Vt(l)}throw Error(i(438,String(l)))}function wp(l){var f=null,m=cn.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var b=cn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(A){return A.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=Sp(),cn.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(l),b=0;b<l;b++)m[b]=ie;return f.index++,m}function Cs(l,f){return typeof f=="function"?f(l):f}function Ep(l){var f=Dr();return Au(f,nr,l)}function Au(l,f,m){var b=l.queue;if(b===null)throw Error(i(311));b.lastRenderedReducer=m;var A=l.baseQueue,O=b.pending;if(O!==null){if(A!==null){var j=A.next;A.next=O.next,O.next=j}f.baseQueue=A=O,b.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{f=A.next;var ne=j=null,ve=null,ze=f,qe=!1;do{var Qe=ze.lane&-536870913;if(Qe!==ze.lane?(zn&Qe)===Qe:(kl&Qe)===Qe){var Ie=ze.revertLane;if(Ie===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),Qe===Ec&&(qe=!0);else if((kl&Ie)===Ie){ze=ze.next,Ie===Ec&&(qe=!0);continue}else Qe={lane:0,revertLane:ze.revertLane,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Qe,j=O):ve=ve.next=Qe,cn.lanes|=Ie,il|=Ie;Qe=ze.action,_c&&m(O,Qe),O=ze.hasEagerState?ze.eagerState:m(O,Qe)}else Ie={lane:Qe,revertLane:ze.revertLane,gesture:ze.gesture,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},ve===null?(ne=ve=Ie,j=O):ve=ve.next=Ie,cn.lanes|=Qe,il|=Qe;ze=ze.next}while(ze!==null&&ze!==f);if(ve===null?j=O:ve.next=ne,!Xa(O,l.memoizedState)&&(li=!0,qe&&(m=Tc,m!==null)))throw m;l.memoizedState=O,l.baseState=j,l.baseQueue=ve,b.lastRenderedState=O}return A===null&&(b.lanes=0),[l.memoizedState,b.dispatch]}function T1(l){var f=Dr(),m=f.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=l;var b=m.dispatch,A=m.pending,O=f.memoizedState;if(A!==null){m.pending=null;var j=A=A.next;do O=l(O,j.action),j=j.next;while(j!==A);Xa(O,f.memoizedState)||(li=!0),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),m.lastRenderedState=O}return[O,b]}function T4(l,f,m){var b=cn,A=Dr(),O=kn;if(O){if(m===void 0)throw Error(i(407));m=m()}else m=f();var j=!Xa((nr||A).memoizedState,m);if(j&&(A.memoizedState=m,li=!0),A=A.queue,Mp(C4.bind(null,b,A,l),[l]),A.getSnapshot!==f||j||Kr!==null&&Kr.memoizedState.tag&1){if(b.flags|=2048,Hf(9,{destroy:void 0},Tp.bind(null,b,A,m,f),null),dr===null)throw Error(i(349));O||(kl&127)!==0||A4(b,f,m)}return m}function A4(l,f,m){l.flags|=16384,l={getSnapshot:f,value:m},f=cn.updateQueue,f===null?(f=Sp(),cn.updateQueue=f,f.stores=[l]):(m=f.stores,m===null?f.stores=[l]:m.push(l))}function Tp(l,f,m,b){f.value=m,f.getSnapshot=b,A1(f)&&C1(l)}function C4(l,f,m){return m(function(){A1(f)&&C1(l)})}function A1(l){var f=l.getSnapshot;l=l.value;try{var m=f();return!Xa(l,m)}catch{return!0}}function C1(l){var f=oa(l,2);f!==null&&so(f,l,2)}function Ap(l){var f=Xi();if(typeof l=="function"){var m=l;if(l=m(),_c){Fn(!0);try{m()}finally{Fn(!1)}}}return f.memoizedState=f.baseState=l,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:l},f}function X6(l,f,m,b){return l.baseState=m,Au(l,nr,typeof b=="function"?b:Cs)}function Wi(l,f,m,b,A){if(Cu(l))throw Error(i(485));if(l=f.action,l!==null){var O={payload:A,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){O.listeners.push(j)}};Z.T!==null?m(!0):O.isTransition=!1,b(O),m=f.pending,m===null?(O.next=f.pending=O,O4(f,O)):(O.next=m.next,f.pending=m.next=O)}}function O4(l,f){var m=f.action,b=f.payload,A=l.state;if(f.isTransition){var O=Z.T,j={};Z.T=j;try{var ne=m(A,b),ve=Z.S;ve!==null&&ve(j,ne),M4(l,f,ne)}catch(ze){O1(l,f,ze)}finally{O!==null&&j.types!==null&&(O.types=j.types),Z.T=O}}else try{O=m(A,b),M4(l,f,O)}catch(ze){O1(l,f,ze)}}function M4(l,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(b){R4(l,f,b)},function(b){return O1(l,f,b)}):R4(l,f,m)}function R4(l,f,m){f.status="fulfilled",f.value=m,p0(f),l.state=m,f=l.pending,f!==null&&(m=f.next,m===f?l.pending=null:(m=m.next,f.next=m,O4(l,m)))}function O1(l,f,m){var b=l.pending;if(l.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=m,p0(f),f=f.next;while(f!==b)}l.action=null}function p0(l){l=l.listeners;for(var f=0;f<l.length;f++)(0,l[f])()}function _4(l,f){return f}function Cp(l,f){if(kn){var m=dr.formState;if(m!==null){e:{var b=cn;if(kn){if(xr){t:{for(var A=xr,O=Ja;A.nodeType!==8;){if(!O){A=null;break t}if(A=Ji(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){xr=Ji(A.nextSibling),b=A.data==="F!";break e}}Oa(b)}b=!1}b&&(f=m[0])}}return m=Xi(),m.memoizedState=m.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_4,lastRenderedState:f},m.queue=b,m=L4.bind(null,cn,b),b.dispatch=m,b=Ap(!1),O=Gf.bind(null,cn,!1,b.queue),b=Xi(),A={state:f,dispatch:null,action:l,pending:null},b.queue=A,m=Wi.bind(null,cn,A,O,m),A.dispatch=m,b.memoizedState=l,[f,m,!1]}function D4(l){var f=Dr();return W6(f,nr,l)}function W6(l,f,m){if(f=Au(l,f,_4)[0],l=Ep(Cs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=d0(f)}catch(j){throw j===Nl?Ac:j}else b=f;f=Dr();var A=f.queue,O=A.dispatch;return m!==f.memoizedState&&(cn.flags|=2048,Hf(9,{destroy:void 0},M1.bind(null,A,m),null)),[b,O,l]}function M1(l,f){l.action=f}function R1(l){var f=Dr(),m=nr;if(m!==null)return W6(f,m,l);Dr(),f=f.memoizedState,m=Dr();var b=m.queue.dispatch;return m.memoizedState=l,[f,b,!1]}function Hf(l,f,m,b){return l={tag:l,create:m,deps:b,inst:f,next:null},f=cn.updateQueue,f===null&&(f=Sp(),cn.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=l.next=l:(b=m.next,m.next=l,l.next=b,f.lastEffect=l),l}function N4(){return Dr().memoizedState}function Op(l,f,m,b){var A=Xi();cn.flags|=l,A.memoizedState=Hf(1|f,{destroy:void 0},m,b===void 0?null:b)}function m0(l,f,m,b){var A=Dr();b=b===void 0?null:b;var O=A.memoizedState.inst;nr!==null&&b!==null&&x1(b,nr.memoizedState.deps)?A.memoizedState=Hf(f,O,m,b):(cn.flags|=l,A.memoizedState=Hf(1|f,O,m,b))}function _1(l,f){Op(8390656,8,l,f)}function Mp(l,f){m0(2048,8,l,f)}function K6(l){cn.flags|=4;var f=cn.updateQueue;if(f===null)f=Sp(),cn.updateQueue=f,f.events=[l];else{var m=f.events;m===null?f.events=[l]:m.push(l)}}function D1(l){var f=Dr().memoizedState;return K6({ref:f,nextImpl:l}),function(){if((Hn&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}function Rp(l,f){return m0(4,2,l,f)}function N1(l,f){return m0(4,4,l,f)}function k4(l,f){if(typeof f=="function"){l=l();var m=f(l);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function k1(l,f,m){m=m!=null?m.concat([l]):null,m0(4,4,k4.bind(null,f,l),m)}function z1(){}function Os(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;return f!==null&&x1(f,b[1])?b[0]:(m.memoizedState=[l,f],l)}function I1(l,f){var m=Dr();f=f===void 0?null:f;var b=m.memoizedState;if(f!==null&&x1(f,b[1]))return b[0];if(b=l(),_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b}function z4(l,f,m){return m===void 0||(kl&1073741824)!==0&&(zn&261930)===0?l.memoizedState=f:(l.memoizedState=m,l=dx(),cn.lanes|=l,il|=l,m)}function L1(l,f,m,b){return Xa(m,f)?m:Zo.current!==null?(l=z4(l,m,b),Xa(l,f)||(li=!0),l):(kl&42)===0||(kl&1073741824)!==0&&(zn&261930)===0?(li=!0,l.memoizedState=m):(l=dx(),cn.lanes|=l,il|=l,f)}function Ms(l,f,m,b,A){var O=ae.p;ae.p=O!==0&&8>O?O:8;var j=Z.T,ne={};Z.T=ne,Gf(l,!1,f,m);try{var ve=A(),ze=Z.S;if(ze!==null&&ze(ne,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var qe=m1(ve,b);qf(l,f,qe,ka(l))}else qf(l,f,b,ka(l))}catch(Qe){qf(l,f,{then:function(){},status:"rejected",reason:Qe},ka())}finally{ae.p=O,j!==null&&ne.types!==null&&(j.types=ne.types),Z.T=j}}function I4(){}function V1(l,f,m,b){if(l.tag!==5)throw Error(i(476));var A=_p(l).queue;Ms(l,A,f,he,m===null?I4:function(){return g0(l),m(b)})}function _p(l){var f=l.memoizedState;if(f!==null)return f;f={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:he},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:m},next:null},l.memoizedState=f,l=l.alternate,l!==null&&(l.memoizedState=f),f}function g0(l){var f=_p(l);f.next===null&&(f=l.alternate.memoizedState),qf(l,f.next.queue,{},ka())}function rr(){return Vt(Jr)}function Q6(){return Dr().memoizedState}function Z6(){return Dr().memoizedState}function J6(l){for(var f=l.return;f!==null;){switch(f.tag){case 24:case 3:var m=ka();l=xu(m);var b=Su(f,l,m);b!==null&&(so(b,f,m),Ts(b,f,m)),f={cache:p1()},l.payload=f;return}f=f.return}}function Rs(l,f,m){var b=ka();m={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Cu(l)?V4(f,m):(m=Ko(l,f,m,b),m!==null&&(so(m,l,b),B1(m,f,b)))}function L4(l,f,m){var b=ka();qf(l,f,m,b)}function qf(l,f,m,b){var A={lane:b,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Cu(l))V4(f,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=f.lastRenderedReducer,O!==null))try{var j=f.lastRenderedState,ne=O(j,m);if(A.hasEagerState=!0,A.eagerState=ne,Xa(ne,j))return Ao(l,f,A,0),dr===null&&To(),!1}catch{}finally{}if(m=Ko(l,f,A,b),m!==null)return so(m,l,b),B1(m,f,b),!0}return!1}function Gf(l,f,m,b){if(b={lane:2,revertLane:nd(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Cu(l)){if(f)throw Error(i(479))}else f=Ko(l,m,b,2),f!==null&&so(f,l,2)}function Cu(l){var f=l.alternate;return l===cn||f!==null&&f===cn}function V4(l,f){Eu=xp=!0;var m=l.pending;m===null?f.next=f:(f.next=m.next,m.next=f),l.pending=f}function B1(l,f,m){if((m&4194048)!==0){var b=f.lanes;b&=l.pendingLanes,m|=b,f.lanes=m,Ih(l,m)}}var y0={readContext:Vt,use:h0,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useLayoutEffect:Vr,useInsertionEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useSyncExternalStore:Vr,useId:Vr,useHostTransitionStatus:Vr,useFormState:Vr,useActionState:Vr,useOptimistic:Vr,useMemoCache:Vr,useCacheRefresh:Vr};y0.useEffectEvent=Vr;var ew={readContext:Vt,use:h0,useCallback:function(l,f){return Xi().memoizedState=[l,f===void 0?null:f],l},useContext:Vt,useEffect:_1,useImperativeHandle:function(l,f,m){m=m!=null?m.concat([l]):null,Op(4194308,4,k4.bind(null,f,l),m)},useLayoutEffect:function(l,f){return Op(4194308,4,l,f)},useInsertionEffect:function(l,f){Op(4,2,l,f)},useMemo:function(l,f){var m=Xi();f=f===void 0?null:f;var b=l();if(_c){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[b,f],b},useReducer:function(l,f,m){var b=Xi();if(m!==void 0){var A=m(f);if(_c){Fn(!0);try{m(f)}finally{Fn(!1)}}}else A=f;return b.memoizedState=b.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},b.queue=l,l=l.dispatch=Rs.bind(null,cn,l),[b.memoizedState,l]},useRef:function(l){var f=Xi();return l={current:l},f.memoizedState=l},useState:function(l){l=Ap(l);var f=l.queue,m=L4.bind(null,cn,f);return f.dispatch=m,[l.memoizedState,m]},useDebugValue:z1,useDeferredValue:function(l,f){var m=Xi();return z4(m,l,f)},useTransition:function(){var l=Ap(!1);return l=Ms.bind(null,cn,l.queue,!0,!1),Xi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,f,m){var b=cn,A=Xi();if(kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=f(),dr===null)throw Error(i(349));(zn&127)!==0||A4(b,f,m)}A.memoizedState=m;var O={value:m,getSnapshot:f};return A.queue=O,_1(C4.bind(null,b,O,l),[l]),b.flags|=2048,Hf(9,{destroy:void 0},Tp.bind(null,b,O,m,f),null),m},useId:function(){var l=Xi(),f=dr.identifierPrefix;if(kn){var m=Za,b=Ro;m=(b&~(1<<32-bn(b)-1)).toString(32)+m,f="_"+f+"R_"+m,m=c0++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=w4++,f="_"+f+"r_"+m.toString(32)+"_";return l.memoizedState=f},useHostTransitionStatus:rr,useFormState:Cp,useActionState:Cp,useOptimistic:function(l){var f=Xi();f.memoizedState=f.baseState=l;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Gf.bind(null,cn,!0,m),m.dispatch=f,[l,f]},useMemoCache:wp,useCacheRefresh:function(){return Xi().memoizedState=J6.bind(null,cn)},useEffectEvent:function(l){var f=Xi(),m={impl:l};return f.memoizedState=m,function(){if((Hn&2)!==0)throw Error(i(440));return m.impl.apply(void 0,arguments)}}},B4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Mp,useImperativeHandle:k1,useInsertionEffect:Rp,useLayoutEffect:N1,useMemo:I1,useReducer:Ep,useRef:N4,useState:function(){return Ep(Cs)},useDebugValue:z1,useDeferredValue:function(l,f){var m=Dr();return L1(m,nr.memoizedState,l,f)},useTransition:function(){var l=Ep(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:T4,useId:Q6,useHostTransitionStatus:rr,useFormState:D4,useActionState:D4,useOptimistic:function(l,f){var m=Dr();return X6(m,nr,l,f)},useMemoCache:wp,useCacheRefresh:Z6};B4.useEffectEvent=D1;var j4={readContext:Vt,use:h0,useCallback:Os,useContext:Vt,useEffect:Mp,useImperativeHandle:k1,useInsertionEffect:Rp,useLayoutEffect:N1,useMemo:I1,useReducer:T1,useRef:N4,useState:function(){return T1(Cs)},useDebugValue:z1,useDeferredValue:function(l,f){var m=Dr();return nr===null?z4(m,l,f):L1(m,nr.memoizedState,l,f)},useTransition:function(){var l=T1(Cs)[0],f=Dr().memoizedState;return[typeof l=="boolean"?l:d0(l),f]},useSyncExternalStore:T4,useId:Q6,useHostTransitionStatus:rr,useFormState:R1,useActionState:R1,useOptimistic:function(l,f){var m=Dr();return nr!==null?X6(m,nr,l,f):(m.baseState=l,[l,m.queue.dispatch])},useMemoCache:wp,useCacheRefresh:Z6};j4.useEffectEvent=D1;function P4(l,f,m,b){f=l.memoizedState,m=m(b,f),m=m==null?f:S({},f,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var Ff={enqueueSetState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueReplaceState:function(l,f,m){l=l._reactInternals;var b=ka(),A=xu(b);A.tag=1,A.payload=f,m!=null&&(A.callback=m),f=Su(l,A,b),f!==null&&(so(f,l,b),Ts(f,l,b))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var m=ka(),b=xu(m);b.tag=2,f!=null&&(b.callback=f),f=Su(l,b,m),f!==null&&(so(f,l,m),Ts(f,l,m))}};function zl(l,f,m,b,A,O,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(b,O,j):f.prototype&&f.prototype.isPureReactComponent?!yc(m,b)||!yc(A,O):!0}function U4(l,f,m,b){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,b),f.state!==l&&Ff.enqueueReplaceState(f,f.state,null)}function Yf(l,f){var m=f;if("ref"in f){m={};for(var b in f)b!=="ref"&&(m[b]=f[b])}if(l=l.defaultProps){m===f&&(m=S({},m));for(var A in l)m[A]===void 0&&(m[A]=l[A])}return m}function $4(l){Sc(l)}function j1(l){console.error(l)}function H4(l){Sc(l)}function v0(l,f){try{var m=l.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function P1(l,f,m){try{var b=l.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function b0(l,f,m){return m=xu(m),m.tag=3,m.payload={element:null},m.callback=function(){v0(l,f)},m}function tw(l){return l=xu(l),l.tag=3,l}function q4(l,f,m,b){var A=m.type.getDerivedStateFromError;if(typeof A=="function"){var O=b.value;l.payload=function(){return A(O)},l.callback=function(){P1(f,m,b)}}var j=m.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(l.callback=function(){P1(f,m,b),typeof A!="function"&&(js===null?js=new Set([this]):js.add(this));var ne=b.stack;this.componentDidCatch(b.value,{componentStack:ne!==null?ne:""})})}function nw(l,f,m,b,A){if(m.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=m.alternate,f!==null&&_o(f,m,A,!0),m=ua.current,m!==null){switch(m.tag){case 31:case 13:return no===null?Z1():m.alternate===null&&Nr===0&&(Nr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,b===o0?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([b]):f.add(b),ty(l,b,A)),!1;case 22:return m.flags|=65536,b===o0?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)),ty(l,b,A)),!1}throw Error(i(435,m.tag))}return ty(l,b,A),Z1(),!1}if(kn)return f=ua.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=A,b!==xs&&(l=Error(i(422),{cause:b}),lp(Oo(l,m)))):(b!==xs&&(f=Error(i(423),{cause:b}),lp(Oo(f,m))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,b=Oo(b,m),A=b0(l.stateNode,b,A),u0(l,A),Nr!==4&&(Nr=2)),!1;var O=Error(i(520),{cause:b});if(O=Oo(O,m),Qr===null?Qr=[O]:Qr.push(O),Nr!==4&&(Nr=2),f===null)return!0;b=Oo(b,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,l=A&-A,m.lanes|=l,l=b0(m.stateNode,b,l),u0(m,l),!1;case 1:if(f=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(js===null||!js.has(O))))return m.flags|=65536,A&=-A,m.lanes|=A,A=tw(A),q4(A,l,m,b),u0(m,A),!1}m=m.return}while(m!==null);return!1}var G4=Error(i(461)),li=!1;function Ii(l,f,m,b){f.child=l===null?x4(f,null,m,b):Bf(f,l.child,m,b)}function _s(l,f,m,b,A){m=m.render;var O=f.ref;if("ref"in b){var j={};for(var ne in b)ne!=="ref"&&(j[ne]=b[ne])}else j=b;return Es(f),b=Tu(l,f,m,j,O,A),ne=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&ne&&u1(f),f.flags|=1,Ii(l,f,b,A),f.child)}function F4(l,f,m,b,A){if(l===null){var O=m.type;return typeof O=="function"&&!Qo(O)&&O.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=O,Y4(l,f,O,b,A)):(l=tp(m.type,null,b,f,f.mode,A),l.ref=f.ref,l.return=f,f.child=l)}if(O=l.child,!Xf(l,A)){var j=O.memoizedProps;if(m=m.compare,m=m!==null?m:yc,m(j,b)&&l.ref===f.ref)return Ds(l,f,A)}return f.flags|=1,l=Co(O,b),l.ref=f.ref,l.return=f,f.child=l}function Y4(l,f,m,b,A){if(l!==null){var O=l.memoizedProps;if(yc(O,b)&&l.ref===f.ref)if(li=!1,f.pendingProps=b=O,Xf(l,A))(l.flags&131072)!==0&&(li=!0);else return f.lanes=l.lanes,Ds(l,f,A)}return Jo(l,f,m,b,A)}function X4(l,f,m,b){var A=b.children,O=l!==null?l.memoizedState:null;if(l===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,l!==null){for(b=f.child=l.child,A=0;b!==null;)A=A|b.lanes|b.childLanes,b=b.sibling;b=A&~O}else b=0,f.child=null;return Np(l,f,O,m,b)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},l!==null&&to(f,O!==null?O.cachePool:null),O!==null?gp(f,O):S4(),bp(f);else return b=f.lanes=536870912,Np(l,f,O!==null?O.baseLanes|m:m,m,b)}else O!==null?(to(f,O.cachePool),gp(f,O),As(),f.memoizedState=null):(l!==null&&to(f,null),S4(),As());return Ii(l,f,A,m),f.child}function Dp(l,f){return l!==null&&l.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function Np(l,f,m,b,A){var O=vu();return O=O===null?null:{parent:Wr._currentValue,pool:O},f.memoizedState={baseLanes:m,cachePool:O},l!==null&&to(f,null),S4(),bp(f),l!==null&&_o(l,f,b,!0),f.childLanes=A,null}function Ki(l,f){return f=Ou({mode:f.mode,children:f.children},l.mode),f.ref=l.ref,l.child=f,f.return=l,f}function W4(l,f,m){return Bf(f,l.child,null,m),l=Ki(f,f.pendingProps),l.flags|=2,ca(f),f.memoizedState=null,l}function ro(l,f,m){var b=f.pendingProps,A=(f.flags&128)!==0;if(f.flags&=-129,l===null){if(kn){if(b.mode==="hidden")return l=Ki(f,b),f.lanes=536870912,Dp(null,l);if(vp(f),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data==="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Ro,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=rp(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return f.lanes=536870912,null}return Ki(f,b)}var O=l.memoizedState;if(O!==null){var j=O.dehydrated;if(vp(f),A)if(f.flags&256)f.flags&=-257,f=W4(l,f,m);else if(f.memoizedState!==null)f.child=l.child,f.flags|=128,f=null;else throw Error(i(558));else if(li||_o(l,f,m,!1),A=(m&l.childLanes)!==0,li||A){if(b=dr,b!==null&&(j=is(b,m),j!==0&&j!==O.retryLane))throw O.retryLane=j,oa(l,j),so(b,l,j),G4;Z1(),f=W4(l,f,m)}else l=O.treeContext,xr=Ji(j.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&p4(f,l),f=Ki(f,b),f.flags|=4096;return f}return l=Co(l.child,{mode:b.mode,children:b.children}),l.ref=f.ref,f.child=l,l.return=f,l}function kp(l,f){var m=f.ref;if(m===null)l!==null&&l.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(i(284));(l===null||l.ref!==m)&&(f.flags|=4194816)}}function Jo(l,f,m,b,A){return Es(f),m=Tu(l,f,m,b,void 0,A),b=E4(),l!==null&&!li?(E1(l,f,A),Ds(l,f,A)):(kn&&b&&u1(f),f.flags|=1,Ii(l,f,m,A),f.child)}function K4(l,f,m,b,A,O){return Es(f),f.updateQueue=null,m=w1(f,b,m,A),S1(l),b=E4(),l!==null&&!li?(E1(l,f,O),Ds(l,f,O)):(kn&&b&&u1(f),f.flags|=1,Ii(l,f,m,O),f.child)}function Dc(l,f,m,b,A){if(Es(f),f.stateNode===null){var O=Nf,j=m.contextType;typeof j=="object"&&j!==null&&(O=Vt(j)),O=new m(b,O),f.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Ff,f.stateNode=O,O._reactInternals=f,O=f.stateNode,O.props=b,O.state=f.memoizedState,O.refs={},y1(f),j=m.contextType,O.context=typeof j=="object"&&j!==null?Vt(j):Nf,O.state=f.memoizedState,j=m.getDerivedStateFromProps,typeof j=="function"&&(P4(f,m,j,b),O.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(j=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),j!==O.state&&Ff.enqueueReplaceState(O,O.state,null),Rc(f,b,O,A),mp(),O.state=f.memoizedState),typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(l===null){O=f.stateNode;var ne=f.memoizedProps,ve=Yf(m,ne);O.props=ve;var ze=O.context,qe=m.contextType;j=Nf,typeof qe=="object"&&qe!==null&&(j=Vt(qe));var Qe=m.getDerivedStateFromProps;qe=typeof Qe=="function"||typeof O.getSnapshotBeforeUpdate=="function",ne=f.pendingProps!==ne,qe||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne||ze!==j)&&U4(f,O,b,j),bu=!1;var Ie=f.memoizedState;O.state=Ie,Rc(f,b,O,A),mp(),ze=f.memoizedState,ne||Ie!==ze||bu?(typeof Qe=="function"&&(P4(f,m,Qe,b),ze=f.memoizedState),(ve=bu||zl(f,m,ve,b,Ie,ze,j))?(qe||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=ze),O.props=b,O.state=ze,O.context=j,b=ve):(typeof O.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{O=f.stateNode,pp(l,f),j=f.memoizedProps,qe=Yf(m,j),O.props=qe,Qe=f.pendingProps,Ie=O.context,ze=m.contextType,ve=Nf,typeof ze=="object"&&ze!==null&&(ve=Vt(ze)),ne=m.getDerivedStateFromProps,(ze=typeof ne=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(j!==Qe||Ie!==ve)&&U4(f,O,b,ve),bu=!1,Ie=f.memoizedState,O.state=Ie,Rc(f,b,O,A),mp();var Ue=f.memoizedState;j!==Qe||Ie!==Ue||bu||l!==null&&l.dependencies!==null&&sa(l.dependencies)?(typeof ne=="function"&&(P4(f,m,ne,b),Ue=f.memoizedState),(qe=bu||zl(f,m,qe,b,Ie,Ue,ve)||l!==null&&l.dependencies!==null&&sa(l.dependencies))?(ze||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(b,Ue,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(b,Ue,ve)),typeof O.componentDidUpdate=="function"&&(f.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=Ue),O.props=b,O.state=Ue,O.context=ve,b=qe):(typeof O.componentDidUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||j===l.memoizedProps&&Ie===l.memoizedState||(f.flags|=1024),b=!1)}return O=b,kp(l,f),b=(f.flags&128)!==0,O||b?(O=f.stateNode,m=b&&typeof m.getDerivedStateFromError!="function"?null:O.render(),f.flags|=1,l!==null&&b?(f.child=Bf(f,l.child,null,A),f.child=Bf(f,null,m,A)):Ii(l,f,m,A),f.memoizedState=O.state,l=f.child):l=Ds(l,f,A),l}function Q4(l,f,m,b){return _l(),f.flags|=256,Ii(l,f,m,b),f.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zp(l){return{baseLanes:l,cachePool:g1()}}function Ip(l,f,m){return l=l!==null?l.childLanes&~m:0,f&&(l|=ao),l}function tl(l,f,m){var b=f.pendingProps,A=!1,O=(f.flags&128)!==0,j;if((j=O)||(j=l!==null&&l.memoizedState===null?!1:(Lr.current&2)!==0),j&&(A=!0,f.flags&=-129),j=(f.flags&32)!==0,f.flags&=-33,l===null){if(kn){if(A?wu(f):As(),(l=xr)?(l=yn(l,Ja),l=l!==null&&l.data!=="&"?l:null,l!==null&&(f.memoizedState={dehydrated:l,treeContext:Rl!==null?{id:Ro,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},m=rp(l),m.return=f,f.child=m,mi=f,xr=null)):l=null,l===null)throw Oa(f);return ol(l)?f.lanes=32:f.lanes=536870912,null}var ne=b.children;return b=b.fallback,A?(As(),A=f.mode,ne=Ou({mode:"hidden",children:ne},A),b=kf(b,A,m,null),ne.return=f,b.return=f,ne.sibling=b,f.child=ne,b=f.child,b.memoizedState=zp(m),b.childLanes=Ip(l,j,m),f.memoizedState=el,Dp(null,b)):(wu(f),U1(f,ne))}var ve=l.memoizedState;if(ve!==null&&(ne=ve.dehydrated,ne!==null)){if(O)f.flags&256?(wu(f),f.flags&=-257,f=$1(l,f,m)):f.memoizedState!==null?(As(),f.child=l.child,f.flags|=128,f=null):(As(),ne=b.fallback,A=f.mode,b=Ou({mode:"visible",children:b.children},A),ne=kf(ne,A,m,null),ne.flags|=2,b.return=f,ne.return=f,b.sibling=ne,f.child=b,Bf(f,l.child,null,m),b=f.child,b.memoizedState=zp(m),b.childLanes=Ip(l,j,m),f.memoizedState=el,f=Dp(null,b));else if(wu(f),ol(ne)){if(j=ne.nextSibling&&ne.nextSibling.dataset,j)var ze=j.dgst;j=ze,b=Error(i(419)),b.stack="",b.digest=j,lp({value:b,source:null,stack:null}),f=$1(l,f,m)}else if(li||_o(l,f,m,!1),j=(m&l.childLanes)!==0,li||j){if(j=dr,j!==null&&(b=is(j,m),b!==0&&b!==ve.retryLane))throw ve.retryLane=b,oa(l,b),so(j,l,b),G4;Nx(ne)||Z1(),f=$1(l,f,m)}else Nx(ne)?(f.flags|=192,f.child=l.child,f=null):(l=ve.treeContext,xr=Ji(ne.nextSibling),mi=f,kn=!0,bs=null,Ja=!1,l!==null&&p4(f,l),f=U1(f,b.children),f.flags|=4096);return f}return A?(As(),ne=b.fallback,A=f.mode,ve=l.child,ze=ve.sibling,b=Co(ve,{mode:"hidden",children:b.children}),b.subtreeFlags=ve.subtreeFlags&65011712,ze!==null?ne=Co(ze,ne):(ne=kf(ne,A,m,null),ne.flags|=2),ne.return=f,b.return=f,b.sibling=ne,f.child=b,Dp(null,b),b=f.child,ne=l.child.memoizedState,ne===null?ne=zp(m):(A=ne.cachePool,A!==null?(ve=Wr._currentValue,A=A.parent!==ve?{parent:ve,pool:ve}:A):A=g1(),ne={baseLanes:ne.baseLanes|m,cachePool:A}),b.memoizedState=ne,b.childLanes=Ip(l,j,m),f.memoizedState=el,Dp(l.child,b)):(wu(f),m=l.child,l=m.sibling,m=Co(m,{mode:"visible",children:b.children}),m.return=f,m.sibling=null,l!==null&&(j=f.deletions,j===null?(f.deletions=[l],f.flags|=16):j.push(l)),f.child=m,f.memoizedState=null,m)}function U1(l,f){return f=Ou({mode:"visible",children:f},l.mode),f.return=l,l.child=f}function Ou(l,f){return l=Ka(22,l,null,f),l.lanes=0,l}function $1(l,f,m){return Bf(f,l.child,null,m),l=U1(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function x0(l,f,m){l.lanes|=f;var b=l.alternate;b!==null&&(b.lanes|=f),sp(l.return,f,m)}function Nc(l,f,m,b,A,O){var j=l.memoizedState;j===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:A,treeForkCount:O}:(j.isBackwards=f,j.rendering=null,j.renderingStartTime=0,j.last=b,j.tail=m,j.tailMode=A,j.treeForkCount=O)}function Z4(l,f,m){var b=f.pendingProps,A=b.revealOrder,O=b.tail;b=b.children;var j=Lr.current,ne=(j&2)!==0;if(ne?(j=j&1|2,f.flags|=128):j&=1,Y(Lr,j),Ii(l,f,b,m),b=kn?n0:0,!ne&&l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x0(l,m,f);else if(l.tag===19)x0(l,m,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(A){case"forwards":for(m=f.child,A=null;m!==null;)l=m.alternate,l!==null&&Pf(l)===null&&(A=m),m=m.sibling;m=A,m===null?(A=f.child,f.child=null):(A=m.sibling,m.sibling=null),Nc(f,!1,A,m,O,b);break;case"backwards":case"unstable_legacy-backwards":for(m=null,A=f.child,f.child=null;A!==null;){if(l=A.alternate,l!==null&&Pf(l)===null){f.child=A;break}l=A.sibling,A.sibling=m,m=A,A=l}Nc(f,!0,m,null,O,b);break;case"together":Nc(f,!1,null,null,void 0,b);break;default:f.memoizedState=null}return f.child}function Ds(l,f,m){if(l!==null&&(f.dependencies=l.dependencies),il|=f.lanes,(m&f.childLanes)===0)if(l!==null){if(_o(l,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(l!==null&&f.child!==l.child)throw Error(i(153));if(f.child!==null){for(l=f.child,m=Co(l,l.pendingProps),f.child=m,m.return=f;l.sibling!==null;)l=l.sibling,m=m.sibling=Co(l,l.pendingProps),m.return=f;m.sibling=null}return f.child}function Xf(l,f){return(l.lanes&f)!==0?!0:(l=l.dependencies,!!(l!==null&&sa(l)))}function rw(l,f,m){switch(f.tag){case 3:He(f,f.stateNode.containerInfo),ws(f,Wr,l.memoizedState.cache),_l();break;case 27:case 5:Ke(f);break;case 4:He(f,f.stateNode.containerInfo);break;case 10:ws(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,vp(f),null;break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(wu(f),f.flags|=128,null):(m&f.child.childLanes)!==0?tl(l,f,m):(wu(f),l=Ds(l,f,m),l!==null?l.sibling:null);wu(f);break;case 19:var A=(l.flags&128)!==0;if(b=(m&f.childLanes)!==0,b||(_o(l,f,m,!1),b=(m&f.childLanes)!==0),A){if(b)return Z4(l,f,m);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(Lr,Lr.current),b)break;return null;case 22:return f.lanes=0,X4(l,f,m,f.pendingProps);case 24:ws(f,Wr,l.memoizedState.cache)}return Ds(l,f,m)}function Lp(l,f,m){if(l!==null)if(l.memoizedProps!==f.pendingProps)li=!0;else{if(!Xf(l,m)&&(f.flags&128)===0)return li=!1,rw(l,f,m);li=(l.flags&131072)!==0}else li=!1,kn&&(f.flags&1048576)!==0&&ap(f,n0,f.index);switch(f.lanes=0,f.tag){case 16:e:{var b=f.pendingProps;if(l=Cc(f.elementType),f.type=l,typeof l=="function")Qo(l)?(b=Yf(l,b),f.tag=1,f=Dc(null,f,l,b,m)):(f.tag=0,f=Jo(null,f,l,b,m));else{if(l!=null){var A=l.$$typeof;if(A===V){f.tag=11,f=_s(null,f,l,b,m);break e}else if(A===X){f.tag=14,f=F4(null,f,l,b,m);break e}}throw f=K(l)||l,Error(i(306,f,""))}}return f;case 0:return Jo(l,f,f.type,f.pendingProps,m);case 1:return b=f.type,A=Yf(b,f.pendingProps),Dc(l,f,b,A,m);case 3:e:{if(He(f,f.stateNode.containerInfo),l===null)throw Error(i(387));b=f.pendingProps;var O=f.memoizedState;A=O.element,pp(l,f),Rc(f,b,null,m);var j=f.memoizedState;if(b=j.cache,ws(f,Wr,b),b!==O.cache&&d1(f,[Wr],m,!0),mp(),b=j.element,O.isDehydrated)if(O={element:b,isDehydrated:!1,cache:j.cache},f.updateQueue.baseState=O,f.memoizedState=O,f.flags&256){f=Q4(l,f,b,m);break e}else if(b!==A){A=Oo(Error(i(424)),f),lp(A),f=Q4(l,f,b,m);break e}else{switch(l=f.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xr=Ji(l.firstChild),mi=f,kn=!0,bs=null,Ja=!0,m=x4(f,null,b,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(_l(),b===A){f=Ds(l,f,m);break e}Ii(l,f,b,m)}f=f.child}return f;case 26:return kp(l,f),l===null?(m=zu(f.type,null,f.pendingProps,null))?f.memoizedState=m:kn||(m=f.type,l=f.pendingProps,b=im(_e.current).createElement(m),b[pi]=f,b[Or]=l,Zi(b,m,l),Si(b),f.stateNode=b):f.memoizedState=zu(f.type,l.memoizedProps,f.pendingProps,l.memoizedState),null;case 27:return Ke(f),l===null&&kn&&(b=f.stateNode=Bl(f.type,f.pendingProps,_e.current),mi=f,Ja=!0,A=xr,Ps(f.type)?(z0=A,xr=Ji(b.firstChild)):xr=A),Ii(l,f,f.pendingProps.children,m),kp(l,f),l===null&&(f.flags|=4194304),f.child;case 5:return l===null&&kn&&((A=b=xr)&&(b=Dx(b,f.type,f.pendingProps,Ja),b!==null?(f.stateNode=b,mi=f,xr=Ji(b.firstChild),Ja=!1,A=!0):A=!1),A||Oa(f)),Ke(f),A=f.type,O=f.pendingProps,j=l!==null?l.memoizedProps:null,b=O.children,hy(A,O)?b=null:j!==null&&hy(A,j)&&(f.flags|=32),f.memoizedState!==null&&(A=Tu(l,f,X8,null,null,m),Jr._currentValue=A),kp(l,f),Ii(l,f,b,m),f.child;case 6:return l===null&&kn&&((l=m=xr)&&(m=J8(m,f.pendingProps,Ja),m!==null?(f.stateNode=m,mi=f,xr=null,l=!0):l=!1),l||Oa(f)),null;case 13:return tl(l,f,m);case 4:return He(f,f.stateNode.containerInfo),b=f.pendingProps,l===null?f.child=Bf(f,null,b,m):Ii(l,f,b,m),f.child;case 11:return _s(l,f,f.type,f.pendingProps,m);case 7:return Ii(l,f,f.pendingProps,m),f.child;case 8:return Ii(l,f,f.pendingProps.children,m),f.child;case 12:return Ii(l,f,f.pendingProps.children,m),f.child;case 10:return b=f.pendingProps,ws(f,f.type,b.value),Ii(l,f,b.children,m),f.child;case 9:return A=f.type._context,b=f.pendingProps.children,Es(f),A=Vt(A),b=b(A),f.flags|=1,Ii(l,f,b,m),f.child;case 14:return F4(l,f,f.type,f.pendingProps,m);case 15:return Y4(l,f,f.type,f.pendingProps,m);case 19:return Z4(l,f,m);case 31:return ro(l,f,m);case 22:return X4(l,f,m,f.pendingProps);case 24:return Es(f),b=Vt(Wr),l===null?(A=vu(),A===null&&(A=dr,O=p1(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=m),A=O),f.memoizedState={parent:b,cache:A},y1(f),ws(f,Wr,A)):((l.lanes&m)!==0&&(pp(l,f),Rc(f,null,null,m),mp()),A=l.memoizedState,O=f.memoizedState,A.parent!==b?(A={parent:b,cache:b},f.memoizedState=A,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=A),ws(f,Wr,b)):(b=O.cache,ws(f,Wr,b),b!==A.cache&&d1(f,[Wr],m,!0))),Ii(l,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(i(156,f.tag))}function Ns(l){l.flags|=4}function H1(l,f,m,b,A){if((f=(l.mode&32)!==0)&&(f=!1),f){if(l.flags|=16777216,(A&335544128)===A)if(l.stateNode.complete)l.flags|=8192;else if(A0())l.flags|=8192;else throw Oc=o0,fp}else l.flags&=-16777217}function iw(l,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Sy(f))if(A0())l.flags|=8192;else throw Oc=o0,fp}function Vp(l,f){f!==null&&(l.flags|=4),l.flags&16384&&(f=l.tag!==22?ct():536870912,l.lanes|=f,Ic|=f)}function Qi(l,f){if(!kn)switch(l.tailMode){case"hidden":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:b.sibling=null}}function Sr(l){var f=l.alternate!==null&&l.alternate.child===l.child,m=0,b=0;if(f)for(var A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)m|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=b,l.childLanes=m,f}function Br(l,f,m){var b=f.pendingProps;switch(r0(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(f),null;case 1:return Sr(f),null;case 3:return m=f.stateNode,b=null,l!==null&&(b=l.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),la(Wr),Xe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(l===null||l.child===null)&&(Ss(f)?Ns(f):l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,c1())),Sr(f),null;case 26:var A=f.type,O=f.memoizedState;return l===null?(Ns(f),O!==null?(Sr(f),iw(f,O)):(Sr(f),H1(f,A,null,b,m))):O?O!==l.memoizedState?(Ns(f),Sr(f),iw(f,O)):(Sr(f),f.flags&=-16777217):(l=l.memoizedProps,l!==b&&Ns(f),Sr(f),H1(f,A,l,b,m)),null;case 27:if(et(f),m=_e.current,A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}l=Me.current,Ss(f)?i0(f):(l=Bl(A,b,m),f.stateNode=l,Ns(f))}return Sr(f),null;case 5:if(et(f),A=f.type,l!==null&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(!b){if(f.stateNode===null)throw Error(i(166));return Sr(f),null}if(O=Me.current,Ss(f))i0(f);else{var j=im(_e.current);switch(O){case 1:O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":O=j.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":O=j.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":O=j.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof b.is=="string"?j.createElement("select",{is:b.is}):j.createElement("select"),b.multiple?O.multiple=!0:b.size&&(O.size=b.size);break;default:O=typeof b.is=="string"?j.createElement(A,{is:b.is}):j.createElement(A)}}O[pi]=f,O[Or]=b;e:for(j=f.child;j!==null;){if(j.tag===5||j.tag===6)O.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===f)break e;for(;j.sibling===null;){if(j.return===null||j.return===f)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}f.stateNode=O;e:switch(Zi(O,A,b),A){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&Ns(f)}}return Sr(f),H1(f,f.type,l===null?null:l.memoizedProps,f.pendingProps,m),null;case 6:if(l&&f.stateNode!=null)l.memoizedProps!==b&&Ns(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(i(166));if(l=_e.current,Ss(f)){if(l=f.stateNode,m=f.memoizedProps,b=null,A=mi,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}l[pi]=f,l=!!(l.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||Cx(l.nodeValue,m)),l||Oa(f,!0)}else l=im(l).createTextNode(b),l[pi]=f,f.stateNode=l}return Sr(f),null;case 31:if(m=f.memoizedState,l===null||l.memoizedState!==null){if(b=Ss(f),m!==null){if(l===null){if(!b)throw Error(i(318));if(l=f.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(557));l[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),l=!1}else m=c1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),l=!0;if(!l)return f.flags&256?(ca(f),f):(ca(f),null);if((f.flags&128)!==0)throw Error(i(558))}return Sr(f),null;case 13:if(b=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=Ss(f),b!==null&&b.dehydrated!==null){if(l===null){if(!A)throw Error(i(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[pi]=f}else _l(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Sr(f),A=!1}else A=c1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return f.flags&256?(ca(f),f):(ca(f),null)}return ca(f),(f.flags&128)!==0?(f.lanes=m,f):(m=b!==null,l=l!==null&&l.memoizedState!==null,m&&(b=f.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool),O=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(O=b.memoizedState.cachePool.pool),O!==A&&(b.flags|=2048)),m!==l&&m&&(f.child.flags|=8192),Vp(f,f.updateQueue),Sr(f),null);case 4:return Xe(),l===null&&Ex(f.stateNode.containerInfo),Sr(f),null;case 10:return la(f.type),Sr(f),null;case 19:if(ee(Lr),b=f.memoizedState,b===null)return Sr(f),null;if(A=(f.flags&128)!==0,O=b.rendering,O===null)if(A)Qi(b,!1);else{if(Nr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(O=Pf(l),O!==null){for(f.flags|=128,Qi(b,!1),l=O.updateQueue,f.updateQueue=l,Vp(f,l),f.subtreeFlags=0,l=m,m=f.child;m!==null;)Y6(m,l),m=m.sibling;return Y(Lr,Lr.current&1|2),kn&&vs(f,b.treeForkCount),f.child}l=l.sibling}b.tail!==null&&Bt()>Fp&&(f.flags|=128,A=!0,Qi(b,!1),f.lanes=4194304)}else{if(!A)if(l=Pf(O),l!==null){if(f.flags|=128,A=!0,l=l.updateQueue,f.updateQueue=l,Vp(f,l),Qi(b,!0),b.tail===null&&b.tailMode==="hidden"&&!O.alternate&&!kn)return Sr(f),null}else 2*Bt()-b.renderingStartTime>Fp&&m!==536870912&&(f.flags|=128,A=!0,Qi(b,!1),f.lanes=4194304);b.isBackwards?(O.sibling=f.child,f.child=O):(l=b.last,l!==null?l.sibling=O:f.child=O,b.last=O)}return b.tail!==null?(l=b.tail,b.rendering=l,b.tail=l.sibling,b.renderingStartTime=Bt(),l.sibling=null,m=Lr.current,Y(Lr,A?m&1|2:m&1),kn&&vs(f,b.treeForkCount),l):(Sr(f),null);case 22:case 23:return ca(f),yp(),b=f.memoizedState!==null,l!==null?l.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(m&536870912)!==0&&(f.flags&128)===0&&(Sr(f),f.subtreeFlags&6&&(f.flags|=8192)):Sr(f),m=f.updateQueue,m!==null&&Vp(f,m.retryQueue),m=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==m&&(f.flags|=2048),l!==null&&ee(eo),null;case 24:return m=null,l!==null&&(m=l.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),la(Wr),Sr(f),null;case 25:return null;case 30:return null}throw Error(i(156,f.tag))}function aw(l,f){switch(r0(f),f.tag){case 1:return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return la(Wr),Xe(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 26:case 27:case 5:return et(f),null;case 31:if(f.memoizedState!==null){if(ca(f),f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 13:if(ca(f),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(i(340));_l()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return ee(Lr),null;case 4:return Xe(),null;case 10:return la(f.type),null;case 22:case 23:return ca(f),yp(),l!==null&&ee(eo),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 24:return la(Wr),null;case 25:return null;default:return null}}function J4(l,f){switch(r0(f),f.tag){case 3:la(Wr),Xe();break;case 26:case 27:case 5:et(f);break;case 4:Xe();break;case 31:f.memoizedState!==null&&ca(f);break;case 13:ca(f);break;case 19:ee(Lr);break;case 10:la(f.type);break;case 22:case 23:ca(f),yp(),l!==null&&ee(eo);break;case 24:la(Wr)}}function Bp(l,f){try{var m=f.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var A=b.next;m=A;do{if((m.tag&l)===l){b=void 0;var O=m.create,j=m.inst;b=O(),j.destroy=b}m=m.next}while(m!==A)}}catch(ne){ir(f,f.return,ne)}}function Ra(l,f,m){try{var b=f.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var O=A.next;b=O;do{if((b.tag&l)===l){var j=b.inst,ne=j.destroy;if(ne!==void 0){j.destroy=void 0,A=f;var ve=m,ze=ne;try{ze()}catch(qe){ir(A,ve,qe)}}}b=b.next}while(b!==O)}}catch(qe){ir(f,f.return,qe)}}function Wf(l){var f=l.updateQueue;if(f!==null){var m=l.stateNode;try{b1(f,m)}catch(b){ir(l,l.return,b)}}}function q1(l,f,m){m.props=Yf(l.type,l.memoizedProps),m.state=l.memoizedState;try{m.componentWillUnmount()}catch(b){ir(l,f,b)}}function Il(l,f){try{var m=l.ref;if(m!==null){switch(l.tag){case 26:case 27:case 5:var b=l.stateNode;break;case 30:b=l.stateNode;break;default:b=l.stateNode}typeof m=="function"?l.refCleanup=m(b):m.current=b}}catch(A){ir(l,f,A)}}function _a(l,f){var m=l.ref,b=l.refCleanup;if(m!==null)if(typeof b=="function")try{b()}catch(A){ir(l,f,A)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(A){ir(l,f,A)}else m.current=null}function ex(l){var f=l.type,m=l.memoizedProps,b=l.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(A){ir(l,l.return,A)}}function G1(l,f,m){try{var b=l.stateNode;Z8(b,l.type,m,f),b[Or]=f}catch(A){ir(l,l.return,A)}}function tx(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ps(l.type)||l.tag===4}function F1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||tx(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ps(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function S0(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(l,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(l),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Gi));else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode,f=null),l=l.child,l!==null))for(S0(l,f,m),l=l.sibling;l!==null;)S0(l,f,m),l=l.sibling}function Kf(l,f,m){var b=l.tag;if(b===5||b===6)l=l.stateNode,f?m.insertBefore(l,f):m.appendChild(l);else if(b!==4&&(b===27&&Ps(l.type)&&(m=l.stateNode),l=l.child,l!==null))for(Kf(l,f,m),l=l.sibling;l!==null;)Kf(l,f,m),l=l.sibling}function Y1(l){var f=l.stateNode,m=l.memoizedProps;try{for(var b=l.type,A=f.attributes;A.length;)f.removeAttributeNode(A[0]);Zi(f,b,m),f[pi]=l,f[Or]=m}catch(O){ir(l,l.return,O)}}var ks=!1,gi=!1,nx=!1,rx=typeof WeakSet=="function"?WeakSet:Set,wi=null;function W8(l,f){if(l=l.containerInfo,rm=Iu,l=_f(l),gu(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var A=b.anchorOffset,O=b.focusNode;b=b.focusOffset;try{m.nodeType,O.nodeType}catch{m=null;break e}var j=0,ne=-1,ve=-1,ze=0,qe=0,Qe=l,Ie=null;t:for(;;){for(var Ue;Qe!==m||A!==0&&Qe.nodeType!==3||(ne=j+A),Qe!==O||b!==0&&Qe.nodeType!==3||(ve=j+b),Qe.nodeType===3&&(j+=Qe.nodeValue.length),(Ue=Qe.firstChild)!==null;)Ie=Qe,Qe=Ue;for(;;){if(Qe===l)break t;if(Ie===m&&++ze===A&&(ne=j),Ie===O&&++qe===b&&(ve=j),(Ue=Qe.nextSibling)!==null)break;Qe=Ie,Ie=Qe.parentNode}Qe=Ue}m=ne===-1||ve===-1?null:{start:ne,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(dy={focusedElem:l,selectionRange:m},Iu=!1,wi=f;wi!==null;)if(f=wi,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,wi=l;else for(;wi!==null;){switch(f=wi,O=f.alternate,l=f.flags,f.tag){case 0:if((l&4)!==0&&(l=f.updateQueue,l=l!==null?l.events:null,l!==null))for(m=0;m<l.length;m++)A=l[m],A.ref.impl=A.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&O!==null){l=void 0,m=f,A=O.memoizedProps,O=O.memoizedState,b=m.stateNode;try{var Rt=Yf(m.type,A);l=b.getSnapshotBeforeUpdate(Rt,O),b.__reactInternalSnapshotBeforeUpdate=l}catch(Ht){ir(m,m.return,Ht)}}break;case 3:if((l&1024)!==0){if(l=f.stateNode.containerInfo,m=l.nodeType,m===9)Zr(l);else if(m===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zr(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(i(163))}if(l=f.sibling,l!==null){l.return=f.return,wi=l;break}wi=f.return}}function Qf(l,f,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:Is(l,m),b&4&&Bp(5,m);break;case 1:if(Is(l,m),b&4)if(l=m.stateNode,f===null)try{l.componentDidMount()}catch(j){ir(m,m.return,j)}else{var A=Yf(m.type,f.memoizedProps);f=f.memoizedState;try{l.componentDidUpdate(A,f,l.__reactInternalSnapshotBeforeUpdate)}catch(j){ir(m,m.return,j)}}b&64&&Wf(m),b&512&&Il(m,m.return);break;case 3:if(Is(l,m),b&64&&(l=m.updateQueue,l!==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{b1(l,f)}catch(j){ir(m,m.return,j)}}break;case 27:f===null&&b&4&&Y1(m);case 26:case 5:Is(l,m),f===null&&b&4&&ex(m),b&512&&Il(m,m.return);break;case 12:Is(l,m);break;case 31:Is(l,m),b&4&&ax(l,m);break;case 13:Is(l,m),b&4&&ow(l,m),b&64&&(l=m.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(m=Q8.bind(null,m),k0(l,m))));break;case 22:if(b=m.memoizedState!==null||ks,!b){f=f!==null&&f.memoizedState!==null||gi,A=ks;var O=gi;ks=b,(gi=f)&&!O?Mu(l,m,(m.subtreeFlags&8772)!==0):Is(l,m),ks=A,gi=O}break;case 30:break;default:Is(l,m)}}function jp(l){var f=l.alternate;f!==null&&(l.alternate=null,jp(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&dc(f)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Mr=null,fa=!1;function zs(l,f,m){for(m=m.child;m!==null;)ix(l,f,m),m=m.sibling}function ix(l,f,m){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(kt,m)}catch{}switch(m.tag){case 26:gi||_a(m,f),zs(l,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:gi||_a(m,f);var b=Mr,A=fa;Ps(m.type)&&(Mr=m.stateNode,fa=!1),zs(l,f,m),Nu(m.stateNode),Mr=b,fa=A;break;case 5:gi||_a(m,f);case 6:if(b=Mr,A=fa,Mr=null,zs(l,f,m),Mr=b,fa=A,Mr!==null)if(fa)try{(Mr.nodeType===9?Mr.body:Mr.nodeName==="HTML"?Mr.ownerDocument.body:Mr).removeChild(m.stateNode)}catch(O){ir(m,f,O)}else try{Mr.removeChild(m.stateNode)}catch(O){ir(m,f,O)}break;case 18:Mr!==null&&(fa?(l=Mr,am(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,m.stateNode),B0(l)):am(Mr,m.stateNode));break;case 4:b=Mr,A=fa,Mr=m.stateNode.containerInfo,fa=!0,zs(l,f,m),Mr=b,fa=A;break;case 0:case 11:case 14:case 15:Ra(2,m,f),gi||Ra(4,m,f),zs(l,f,m);break;case 1:gi||(_a(m,f),b=m.stateNode,typeof b.componentWillUnmount=="function"&&q1(m,f,b)),zs(l,f,m);break;case 21:zs(l,f,m);break;case 22:gi=(b=gi)||m.memoizedState!==null,zs(l,f,m),gi=b;break;default:zs(l,f,m)}}function ax(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{B0(l)}catch(m){ir(f,f.return,m)}}}function ow(l,f){if(f.memoizedState===null&&(l=f.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{B0(l)}catch(m){ir(f,f.return,m)}}function lw(l){switch(l.tag){case 31:case 13:case 19:var f=l.stateNode;return f===null&&(f=l.stateNode=new rx),f;case 22:return l=l.stateNode,f=l._retryCache,f===null&&(f=l._retryCache=new rx),f;default:throw Error(i(435,l.tag))}}function kc(l,f){var m=lw(l);f.forEach(function(b){if(!m.has(b)){m.add(b);var A=Do.bind(null,l,b);b.then(A,A)}})}function Da(l,f){var m=f.deletions;if(m!==null)for(var b=0;b<m.length;b++){var A=m[b],O=l,j=f,ne=j;e:for(;ne!==null;){switch(ne.tag){case 27:if(Ps(ne.type)){Mr=ne.stateNode,fa=!1;break e}break;case 5:Mr=ne.stateNode,fa=!1;break e;case 3:case 4:Mr=ne.stateNode.containerInfo,fa=!0;break e}ne=ne.return}if(Mr===null)throw Error(i(160));ix(O,j,A),Mr=null,fa=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)Yn(f,l),f=f.sibling}var nl=null;function Yn(l,f){var m=l.alternate,b=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Da(f,l),da(l),b&4&&(Ra(3,l,l.return),Bp(3,l),Ra(5,l,l.return));break;case 1:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&64&&ks&&(l=l.updateQueue,l!==null&&(b=l.callbacks,b!==null&&(m=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var A=nl;if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),b&4){var O=m!==null?m.memoizedState:null;if(b=l.memoizedState,m===null)if(b===null)if(l.stateNode===null){e:{b=l.type,m=l.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":O=A.getElementsByTagName("title")[0],(!O||O[Fd]||O[pi]||O.namespaceURI==="http://www.w3.org/2000/svg"||O.hasAttribute("itemprop"))&&(O=A.createElement(b),A.head.insertBefore(O,A.querySelector("head > title"))),Zi(O,b,m),O[pi]=l,Si(O),b=O;break e;case"link":var j=xy("link","href",A).get(b+(m.href||""));if(j){for(var ne=0;ne<j.length;ne++)if(O=j[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)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;case"meta":if(j=xy("meta","content",A).get(b+(m.content||""))){for(ne=0;ne<j.length;ne++)if(O=j[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)){j.splice(ne,1);break t}}O=A.createElement(b),Zi(O,b,m),A.head.appendChild(O);break;default:throw Error(i(468,b))}O[pi]=l,Si(O),b=O}l.stateNode=b}else Vx(A,l.type,l.stateNode);else l.stateNode=Lx(A,b,l.memoizedProps);else O!==b?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,b===null?Vx(A,l.type,l.stateNode):Lx(A,b,l.memoizedProps)):b===null&&l.stateNode!==null&&G1(l,l.memoizedProps,m.memoizedProps)}break;case 27:Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),m!==null&&b&4&&G1(l,l.memoizedProps,m.memoizedProps);break;case 5:if(Da(f,l),da(l),b&512&&(gi||m===null||_a(m,m.return)),l.flags&32){A=l.stateNode;try{wf(A,"")}catch(Rt){ir(l,l.return,Rt)}}b&4&&l.stateNode!=null&&(A=l.memoizedProps,G1(l,A,m!==null?m.memoizedProps:A)),b&1024&&(nx=!0);break;case 6:if(Da(f,l),da(l),b&4){if(l.stateNode===null)throw Error(i(162));b=l.memoizedProps,m=l.stateNode;try{m.nodeValue=b}catch(Rt){ir(l,l.return,Rt)}}break;case 3:if(um=null,A=nl,nl=ad(f.containerInfo),Da(f,l),nl=A,da(l),b&4&&m!==null&&m.memoizedState.isDehydrated)try{B0(f.containerInfo)}catch(Rt){ir(l,l.return,Rt)}nx&&(nx=!1,sw(l));break;case 4:b=nl,nl=ad(l.stateNode.containerInfo),Da(f,l),da(l),nl=b;break;case 12:Da(f,l),da(l);break;case 31:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 13:Da(f,l),da(l),l.child.flags&8192&&l.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Gp=Bt()),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 22:A=l.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,ze=ks,qe=gi;if(ks=ze||A,gi=qe||ve,Da(f,l),gi=qe,ks=ze,da(l),b&8192)e:for(f=l.stateNode,f._visibility=A?f._visibility&-2:f._visibility|1,A&&(m===null||ve||ks||gi||Zf(l)),m=null,f=l;;){if(f.tag===5||f.tag===26){if(m===null){ve=m=f;try{if(O=ve.stateNode,A)j=O.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{ne=ve.stateNode;var Qe=ve.memoizedProps.style,Ie=Qe!=null&&Qe.hasOwnProperty("display")?Qe.display:null;ne.style.display=Ie==null||typeof Ie=="boolean"?"":(""+Ie).trim()}}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===6){if(m===null){ve=f;try{ve.stateNode.nodeValue=A?"":ve.memoizedProps}catch(Rt){ir(ve,ve.return,Rt)}}}else if(f.tag===18){if(m===null){ve=f;try{var Ue=ve.stateNode;A?_x(Ue,!0):_x(ve.stateNode,!1)}catch(Rt){ir(ve,ve.return,Rt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===l)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break e;for(;f.sibling===null;){if(f.return===null||f.return===l)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=l.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,kc(l,m))));break;case 19:Da(f,l),da(l),b&4&&(b=l.updateQueue,b!==null&&(l.updateQueue=null,kc(l,b)));break;case 30:break;case 21:break;default:Da(f,l),da(l)}}function da(l){var f=l.flags;if(f&2){try{for(var m,b=l.return;b!==null;){if(tx(b)){m=b;break}b=b.return}if(m==null)throw Error(i(160));switch(m.tag){case 27:var A=m.stateNode,O=F1(l);Kf(l,O,A);break;case 5:var j=m.stateNode;m.flags&32&&(wf(j,""),m.flags&=-33);var ne=F1(l);Kf(l,ne,j);break;case 3:case 4:var ve=m.stateNode.containerInfo,ze=F1(l);S0(l,ze,ve);break;default:throw Error(i(161))}}catch(qe){ir(l,l.return,qe)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function sw(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var f=l;sw(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),l=l.sibling}}function Is(l,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)Qf(l,f.alternate,f),f=f.sibling}function Zf(l){for(l=l.child;l!==null;){var f=l;switch(f.tag){case 0:case 11:case 14:case 15:Ra(4,f,f.return),Zf(f);break;case 1:_a(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&q1(f,f.return,m),Zf(f);break;case 27:Nu(f.stateNode);case 26:case 5:_a(f,f.return),Zf(f);break;case 22:f.memoizedState===null&&Zf(f);break;case 30:Zf(f);break;default:Zf(f)}l=l.sibling}}function Mu(l,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,A=l,O=f,j=O.flags;switch(O.tag){case 0:case 11:case 15:Mu(A,O,m),Bp(4,O);break;case 1:if(Mu(A,O,m),b=O,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ze){ir(b,b.return,ze)}if(b=O,A=b.updateQueue,A!==null){var ne=b.stateNode;try{var ve=A.shared.hiddenCallbacks;if(ve!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ve.length;A++)jf(ve[A],ne)}catch(ze){ir(b,b.return,ze)}}m&&j&64&&Wf(O),Il(O,O.return);break;case 27:Y1(O);case 26:case 5:Mu(A,O,m),m&&b===null&&j&4&&ex(O),Il(O,O.return);break;case 12:Mu(A,O,m);break;case 31:Mu(A,O,m),m&&j&4&&ax(A,O);break;case 13:Mu(A,O,m),m&&j&4&&ow(A,O);break;case 22:O.memoizedState===null&&Mu(A,O,m),Il(O,O.return);break;case 30:break;default:Mu(A,O,m)}f=f.sibling}}function Pp(l,f){var m=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),l=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(l=f.memoizedState.cachePool.pool),l!==m&&(l!=null&&l.refCount++,m!=null&&Lf(m))}function X1(l,f){l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l))}function rl(l,f,m,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)ox(l,f,m,b),f=f.sibling}function ox(l,f,m,b){var A=f.flags;switch(f.tag){case 0:case 11:case 15:rl(l,f,m,b),A&2048&&Bp(9,f);break;case 1:rl(l,f,m,b);break;case 3:rl(l,f,m,b),A&2048&&(l=null,f.alternate!==null&&(l=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==l&&(f.refCount++,l!=null&&Lf(l)));break;case 12:if(A&2048){rl(l,f,m,b),l=f.stateNode;try{var O=f.memoizedProps,j=O.id,ne=O.onPostCommit;typeof ne=="function"&&ne(j,f.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ve){ir(f,f.return,ve)}}else rl(l,f,m,b);break;case 31:rl(l,f,m,b);break;case 13:rl(l,f,m,b);break;case 23:break;case 22:O=f.stateNode,j=f.alternate,f.memoizedState!==null?O._visibility&2?rl(l,f,m,b):Up(l,f):O._visibility&2?rl(l,f,m,b):(O._visibility|=2,Ls(l,f,m,b,(f.subtreeFlags&10256)!==0||!1)),A&2048&&Pp(j,f);break;case 24:rl(l,f,m,b),A&2048&&X1(f.alternate,f);break;default:rl(l,f,m,b)}}function Ls(l,f,m,b,A){for(A=A&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var O=l,j=f,ne=m,ve=b,ze=j.flags;switch(j.tag){case 0:case 11:case 15:Ls(O,j,ne,ve,A),Bp(8,j);break;case 23:break;case 22:var qe=j.stateNode;j.memoizedState!==null?qe._visibility&2?Ls(O,j,ne,ve,A):Up(O,j):(qe._visibility|=2,Ls(O,j,ne,ve,A)),A&&ze&2048&&Pp(j.alternate,j);break;case 24:Ls(O,j,ne,ve,A),A&&ze&2048&&X1(j.alternate,j);break;default:Ls(O,j,ne,ve,A)}f=f.sibling}}function Up(l,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=l,b=f,A=b.flags;switch(b.tag){case 22:Up(m,b),A&2048&&Pp(b.alternate,b);break;case 24:Up(m,b),A&2048&&X1(b.alternate,b);break;default:Up(m,b)}f=f.sibling}}var $p=8192;function Na(l,f,m){if(l.subtreeFlags&$p)for(l=l.child;l!==null;)w0(l,f,m),l=l.sibling}function w0(l,f,m){switch(l.tag){case 26:Na(l,f,m),l.flags&$p&&l.memoizedState!==null&&No(m,nl,l.memoizedState,l.memoizedProps);break;case 5:Na(l,f,m);break;case 3:case 4:var b=nl;nl=ad(l.stateNode.containerInfo),Na(l,f,m),nl=b;break;case 22:l.memoizedState===null&&(b=l.alternate,b!==null&&b.memoizedState!==null?(b=$p,$p=16777216,Na(l,f,m),$p=b):Na(l,f,m));break;default:Na(l,f,m)}}function uw(l){var f=l.alternate;if(f!==null&&(l=f.child,l!==null)){f.child=null;do f=l.sibling,l.sibling=null,l=f;while(l!==null)}}function Jf(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];wi=b,sx(b,l)}uw(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)lx(l),l=l.sibling}function lx(l){switch(l.tag){case 0:case 11:case 15:Jf(l),l.flags&2048&&Ra(9,l,l.return);break;case 3:Jf(l);break;case 12:Jf(l);break;case 22:var f=l.stateNode;l.memoizedState!==null&&f._visibility&2&&(l.return===null||l.return.tag!==13)?(f._visibility&=-3,Hp(l)):Jf(l);break;default:Jf(l)}}function Hp(l){var f=l.deletions;if((l.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var b=f[m];wi=b,sx(b,l)}uw(l)}for(l=l.child;l!==null;){switch(f=l,f.tag){case 0:case 11:case 15:Ra(8,f,f.return),Hp(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,Hp(f));break;default:Hp(f)}l=l.sibling}}function sx(l,f){for(;wi!==null;){var m=wi;switch(m.tag){case 0:case 11:case 15:Ra(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:Lf(m.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,wi=b;else e:for(m=l;wi!==null;){b=wi;var A=b.sibling,O=b.return;if(jp(b),b===m){wi=null;break e}if(A!==null){A.return=O,wi=A;break e}wi=O}}}var ux={getCacheForType:function(l){var f=Vt(Wr),m=f.data.get(l);return m===void 0&&(m=l(),f.data.set(l,m)),m},cacheSignal:function(){return Vt(Wr).controller.signal}},cw=typeof WeakMap=="function"?WeakMap:Map,Hn=0,dr=null,Mn=null,zn=0,Xn=0,io=null,sn=!1,zc=!1,qp=!1,Vs=0,Nr=0,il=0,Bs=0,cx=0,ao=0,Ic=0,Qr=null,oo=null,al=!1,Gp=0,Ru=0,Fp=1/0,Kn=null,js=null,jn=0,Lc=null,ed=null,Ll=0,W1=0,lo=null,fx=null,td=0,K1=null;function ka(){return(Hn&2)!==0&&zn!==0?zn&-zn:Z.T!==null?nd():C6()}function dx(){if(ao===0)if((zn&536870912)===0||kn){var l=tt;tt<<=1,(tt&3932160)===0&&(tt=262144),ao=l}else ao=536870912;return l=ua.current,l!==null&&(l.flags|=32),ao}function so(l,f,m){(l===dr&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)&&(E0(l,0),_u(l,zn,ao,!1)),oi(l,m),((Hn&2)===0||l!==dr)&&(l===dr&&((Hn&2)===0&&(Bs|=m),Nr===4&&_u(l,zn,ao,!1)),Vl(l))}function hx(l,f,m){if((Hn&6)!==0)throw Error(i(327));var b=!m&&(f&127)===0&&(f&l.expiredLanes)===0||vt(l,f),A=b?K8(l,f):px(l,f,!0),O=b;do{if(A===0){zc&&!b&&_u(l,f,0,!1);break}else{if(m=l.current.alternate,O&&!Q1(m)){A=px(l,f,!1),O=!1;continue}if(A===2){if(O=f,l.errorRecoveryDisabledLanes&O)var j=0;else j=l.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){f=j;e:{var ne=l;A=Qr;var ve=ne.current.memoizedState.isDehydrated;if(ve&&(E0(ne,j).flags|=256),j=px(ne,j,!1),j!==2){if(qp&&!ve){ne.errorRecoveryDisabledLanes|=O,Bs|=O,A=4;break e}O=oo,oo=A,O!==null&&(oo===null?oo=O:oo.push.apply(oo,O))}A=j}if(O=!1,A!==2)continue}}if(A===1){E0(l,0),_u(l,f,0,!0);break}e:{switch(b=l,O=A,O){case 0:case 1:throw Error(i(345));case 4:if((f&4194048)!==f)break;case 6:_u(b,f,ao,!sn);break e;case 2:oo=null;break;case 3:case 5:break;default:throw Error(i(329))}if((f&62914560)===f&&(A=Gp+300-Bt(),10<A)){if(_u(b,f,ao,!sn),Et(b,0,!0)!==0)break e;Ll=f,b.timeoutHandle=_w(fw.bind(null,b,m,oo,Kn,al,f,ao,Bs,Ic,sn,O,"Throttled",-0,0),A);break e}fw(b,m,oo,Kn,al,f,ao,Bs,Ic,sn,O,null,-0,0)}}break}while(!0);Vl(l)}function fw(l,f,m,b,A,O,j,ne,ve,ze,qe,Qe,Ie,Ue){if(l.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:Gi},w0(f,O,Qe);var Rt=(O&62914560)===O?Gp-Bt():(O&4194048)===O?Ru-Bt():0;if(Rt=jl(Qe,Rt),Rt!==null){Ll=O,l.cancelPendingCommit=Rt(yw.bind(null,l,f,O,m,b,A,j,ne,ve,qe,Qe,null,Ie,Ue)),_u(l,O,j,!ze);return}}yw(l,f,O,m,b,A,j,ne,ve)}function Q1(l){for(var f=l;;){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 A=m[b],O=A.getSnapshot;A=A.value;try{if(!Xa(O(),A))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function _u(l,f,m,b){f&=~cx,f&=~Bs,l.suspendedLanes|=f,l.pingedLanes&=~f,b&&(l.warmLanes|=f),b=l.expirationTimes;for(var A=f;0<A;){var O=31-bn(A),j=1<<O;b[O]=-1,A&=~j}m!==0&&mf(l,m,f)}function Yp(){return(Hn&6)===0?(Qp(0),!1):!0}function Xp(){if(Mn!==null){if(Xn===0)var l=Mn.return;else l=Mn,Dl=wc=null,$f(l),Mc=null,Vf=0,l=Mn;for(;l!==null;)J4(l.alternate,l),l=l.return;Mn=null}}function E0(l,f){var m=l.timeoutHandle;m!==-1&&(l.timeoutHandle=-1,py(m)),m=l.cancelPendingCommit,m!==null&&(l.cancelPendingCommit=null,m()),Ll=0,Xp(),dr=l,Mn=m=Co(l.current,null),zn=f,Xn=0,io=null,sn=!1,zc=vt(l,f),qp=!1,Ic=ao=cx=Bs=il=Nr=0,oo=Qr=null,al=!1,(f&8)!==0&&(f|=f&32);var b=l.entangledLanes;if(b!==0)for(l=l.entanglements,b&=f;0<b;){var A=31-bn(b),O=1<<A;f|=l[A],b&=~O}return Vs=f,To(),m}function T0(l,f){cn=null,Z.H=y0,f===Nl||f===Ac?(f=y4(),Xn=3):f===fp?(f=y4(),Xn=4):Xn=f===G4?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,io=f,Mn===null&&(Nr=1,v0(l,Oo(f,l.current)))}function A0(){var l=ua.current;return l===null?!0:(zn&4194048)===zn?no===null:(zn&62914560)===zn||(zn&536870912)!==0?l===no:!1}function dw(){var l=Z.H;return Z.H=y0,l===null?y0:l}function hw(){var l=Z.A;return Z.A=ux,l}function Z1(){Nr=4,sn||(zn&4194048)!==zn&&ua.current!==null||(zc=!0),(il&134217727)===0&&(Bs&134217727)===0||dr===null||_u(dr,zn,ao,!1)}function px(l,f,m){var b=Hn;Hn|=2;var A=dw(),O=hw();(dr!==l||zn!==f)&&(Kn=null,E0(l,f)),f=!1;var j=Nr;e:do try{if(Xn!==0&&Mn!==null){var ne=Mn,ve=io;switch(Xn){case 8:Xp(),j=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(f=!0);var ze=Xn;if(Xn=0,io=null,C0(l,ne,ve,ze),m&&zc){j=0;break e}break;default:ze=Xn,Xn=0,io=null,C0(l,ne,ve,ze)}}pw(),j=Nr;break}catch(qe){T0(l,qe)}while(!0);return f&&l.shellSuspendCounter++,Dl=wc=null,Hn=b,Z.H=A,Z.A=O,Mn===null&&(dr=null,zn=0,To()),j}function pw(){for(;Mn!==null;)Du(Mn)}function K8(l,f){var m=Hn;Hn|=2;var b=dw(),A=hw();dr!==l||zn!==f?(Kn=null,Fp=Bt()+500,E0(l,f)):zc=vt(l,f);e:do try{if(Xn!==0&&Mn!==null){f=Mn;var O=io;t:switch(Xn){case 1:Xn=0,io=null,C0(l,f,O,1);break;case 2:case 9:if(dp(O)){Xn=0,io=null,gw(f);break}f=function(){Xn!==2&&Xn!==9||dr!==l||(Xn=7),Vl(l)},O.then(f,f);break e;case 3:Xn=7;break e;case 4:Xn=5;break e;case 7:dp(O)?(Xn=0,io=null,gw(f)):(Xn=0,io=null,C0(l,f,O,7));break;case 5:var j=null;switch(Mn.tag){case 26:j=Mn.memoizedState;case 5:case 27:var ne=Mn;if(j?Sy(j):ne.stateNode.complete){Xn=0,io=null;var ve=ne.sibling;if(ve!==null)Mn=ve;else{var ze=ne.return;ze!==null?(Mn=ze,Wp(ze)):Mn=null}break t}}Xn=0,io=null,C0(l,f,O,5);break;case 6:Xn=0,io=null,C0(l,f,O,6);break;case 8:Xp(),Nr=6;break e;default:throw Error(i(462))}}mw();break}catch(qe){T0(l,qe)}while(!0);return Dl=wc=null,Z.H=b,Z.A=A,Hn=m,Mn!==null?0:(dr=null,zn=0,To(),Nr)}function mw(){for(;Mn!==null&&!At();)Du(Mn)}function Du(l){var f=Lp(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,f===null?Wp(l):Mn=f}function gw(l){var f=l,m=f.alternate;switch(f.tag){case 15:case 0:f=K4(m,f,f.pendingProps,f.type,void 0,zn);break;case 11:f=K4(m,f,f.pendingProps,f.type.render,f.ref,zn);break;case 5:$f(f);default:J4(m,f),f=Mn=Y6(f,Vs),f=Lp(m,f,Vs)}l.memoizedProps=l.pendingProps,f===null?Wp(l):Mn=f}function C0(l,f,m,b){Dl=wc=null,$f(f),Mc=null,Vf=0;var A=f.return;try{if(nw(l,A,f,m,zn)){Nr=1,v0(l,Oo(m,l.current)),Mn=null;return}}catch(O){if(A!==null)throw Mn=A,O;Nr=1,v0(l,Oo(m,l.current)),Mn=null;return}f.flags&32768?(kn||b===1?l=!0:zc||(zn&536870912)!==0?l=!1:(sn=l=!0,(b===2||b===9||b===3||b===6)&&(b=ua.current,b!==null&&b.tag===13&&(b.flags|=16384))),mx(f,l)):Wp(f)}function Wp(l){var f=l;do{if((f.flags&32768)!==0){mx(f,sn);return}l=f.return;var m=Br(f.alternate,f,Vs);if(m!==null){Mn=m;return}if(f=f.sibling,f!==null){Mn=f;return}Mn=f=l}while(f!==null);Nr===0&&(Nr=5)}function mx(l,f){do{var m=aw(l.alternate,l);if(m!==null){m.flags&=32767,Mn=m;return}if(m=l.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(l=l.sibling,l!==null)){Mn=l;return}Mn=l=m}while(l!==null);Nr=6,Mn=null}function yw(l,f,m,b,A,O,j,ne,ve){l.cancelPendingCommit=null;do J1();while(jn!==0);if((Hn&6)!==0)throw Error(i(327));if(f!==null){if(f===l.current)throw Error(i(177));if(O=f.lanes|f.childLanes,O|=Ca,Ug(l,m,O,j,ne,ve),l===dr&&(Mn=dr=null,zn=0),ed=f,Lc=l,Ll=m,W1=O,lo=A,fx=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Ew(nt,function(){return ey(),null})):(l.callbackNode=null,l.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=Z.T,Z.T=null,A=ae.p,ae.p=2,j=Hn,Hn|=4;try{W8(l,f,m)}finally{Hn=j,ae.p=A,Z.T=b}}jn=1,vw(),bw(),xw()}}function vw(){if(jn===1){jn=0;var l=Lc,f=ed,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Yn(f,l);var O=dy,j=_f(l.containerInfo),ne=O.focusedElem,ve=O.selectionRange;if(j!==ne&&ne&&ne.ownerDocument&&u4(ne.ownerDocument.documentElement,ne)){if(ve!==null&&gu(ne)){var ze=ve.start,qe=ve.end;if(qe===void 0&&(qe=ze),"selectionStart"in ne)ne.selectionStart=ze,ne.selectionEnd=Math.min(qe,ne.value.length);else{var Qe=ne.ownerDocument||document,Ie=Qe&&Qe.defaultView||window;if(Ie.getSelection){var Ue=Ie.getSelection(),Rt=ne.textContent.length,Ht=Math.min(ve.start,Rt),hr=ve.end===void 0?Ht:Math.min(ve.end,Rt);!Ue.extend&&Ht>hr&&(j=hr,hr=Ht,Ht=j);var De=s4(ne,Ht),Te=s4(ne,hr);if(De&&Te&&(Ue.rangeCount!==1||Ue.anchorNode!==De.node||Ue.anchorOffset!==De.offset||Ue.focusNode!==Te.node||Ue.focusOffset!==Te.offset)){var ke=Qe.createRange();ke.setStart(De.node,De.offset),Ue.removeAllRanges(),Ht>hr?(Ue.addRange(ke),Ue.extend(Te.node,Te.offset)):(ke.setEnd(Te.node,Te.offset),Ue.addRange(ke))}}}}for(Qe=[],Ue=ne;Ue=Ue.parentNode;)Ue.nodeType===1&&Qe.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Qe.length;ne++){var Ye=Qe[ne];Ye.element.scrollLeft=Ye.left,Ye.element.scrollTop=Ye.top}}Iu=!!rm,dy=rm=null}finally{Hn=A,ae.p=b,Z.T=m}}l.current=f,jn=2}}function bw(){if(jn===2){jn=0;var l=Lc,f=ed,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=Z.T,Z.T=null;var b=ae.p;ae.p=2;var A=Hn;Hn|=4;try{Qf(l,f.alternate,f)}finally{Hn=A,ae.p=b,Z.T=m}}jn=3}}function xw(){if(jn===4||jn===3){jn=0,Rn();var l=Lc,f=ed,m=Ll,b=fx;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?jn=5:(jn=0,ed=Lc=null,Sw(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(js=null),$g(m),f=f.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(kt,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=Z.T,A=ae.p,ae.p=2,Z.T=null;try{for(var O=l.onRecoverableError,j=0;j<b.length;j++){var ne=b[j];O(ne.value,{componentStack:ne.stack})}}finally{Z.T=f,ae.p=A}}(Ll&3)!==0&&J1(),Vl(l),A=l.pendingLanes,(m&261930)!==0&&(A&42)!==0?l===K1?td++:(td=0,K1=l):td=0,Qp(0)}}function Sw(l,f){(l.pooledCacheLanes&=f)===0&&(f=l.pooledCache,f!=null&&(l.pooledCache=null,Lf(f)))}function J1(){return vw(),bw(),xw(),ey()}function ey(){if(jn!==5)return!1;var l=Lc,f=W1;W1=0;var m=$g(Ll),b=Z.T,A=ae.p;try{ae.p=32>m?32:m,Z.T=null,m=lo,lo=null;var O=Lc,j=Ll;if(jn=0,ed=Lc=null,Ll=0,(Hn&6)!==0)throw Error(i(331));var ne=Hn;if(Hn|=4,lx(O.current),ox(O,O.current,j,m),Hn=ne,Qp(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(kt,O)}catch{}return!0}finally{ae.p=A,Z.T=b,Sw(l,f)}}function ww(l,f,m){f=Oo(m,f),f=b0(l.stateNode,f,2),l=Su(l,f,2),l!==null&&(oi(l,2),Vl(l))}function ir(l,f,m){if(l.tag===3)ww(l,l,m);else for(;f!==null;){if(f.tag===3){ww(f,l,m);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(js===null||!js.has(b))){l=Oo(m,l),m=tw(2),b=Su(f,m,2),b!==null&&(q4(m,b,f,l),oi(b,2),Vl(b));break}}f=f.return}}function ty(l,f,m){var b=l.pingCache;if(b===null){b=l.pingCache=new cw;var A=new Set;b.set(f,A)}else A=b.get(f),A===void 0&&(A=new Set,b.set(f,A));A.has(m)||(qp=!0,A.add(m),l=gx.bind(null,l,f,m),f.then(l,l))}function gx(l,f,m){var b=l.pingCache;b!==null&&b.delete(f),l.pingedLanes|=l.suspendedLanes&m,l.warmLanes&=~m,dr===l&&(zn&m)===m&&(Nr===4||Nr===3&&(zn&62914560)===zn&&300>Bt()-Gp?(Hn&2)===0&&E0(l,0):cx|=m,Ic===zn&&(Ic=0)),Vl(l)}function ny(l,f){f===0&&(f=ct()),l=oa(l,f),l!==null&&(oi(l,f),Vl(l))}function Q8(l){var f=l.memoizedState,m=0;f!==null&&(m=f.retryLane),ny(l,m)}function Do(l,f){var m=0;switch(l.tag){case 31:case 13:var b=l.stateNode,A=l.memoizedState;A!==null&&(m=A.retryLane);break;case 19:b=l.stateNode;break;case 22:b=l.stateNode._retryCache;break;default:throw Error(i(314))}b!==null&&b.delete(f),ny(l,m)}function Ew(l,f){return mn(l,f)}var Kp=null,Vc=null,ry=!1,iy=!1,yx=!1,Bc=0;function Vl(l){l!==Vc&&l.next===null&&(Vc===null?Kp=Vc=l:Vc=Vc.next=l),iy=!0,ry||(ry=!0,O0())}function Qp(l,f){if(!yx&&iy){yx=!0;do for(var m=!1,b=Kp;b!==null;){if(l!==0){var A=b.pendingLanes;if(A===0)var O=0;else{var j=b.suspendedLanes,ne=b.pingedLanes;O=(1<<31-bn(42|l)+1)-1,O&=A&~(j&~ne),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,em(b,O))}else O=zn,O=Et(b,b===dr?O:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(O&3)===0||vt(b,O)||(m=!0,em(b,O));b=b.next}while(m);yx=!1}}function Zp(){Jp()}function Jp(){iy=ry=!1;var l=0;Bc!==0&&Rw()&&(l=Bc);for(var f=Bt(),m=null,b=Kp;b!==null;){var A=b.next,O=vx(b,f);O===0?(b.next=null,m===null?Kp=A:m.next=A,A===null&&(Vc=m)):(m=b,(l!==0||(O&3)!==0)&&(iy=!0)),b=A}jn!==0&&jn!==5||Qp(l),Bc!==0&&(Bc=0)}function vx(l,f){for(var m=l.suspendedLanes,b=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var j=31-bn(O),ne=1<<j,ve=A[j];ve===-1?((ne&m)===0||(ne&b)!==0)&&(A[j]=Yt(ne,f)):ve<=f&&(l.expiredLanes|=ne),O&=~ne}if(f=dr,m=zn,m=Et(l,l===f?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b=l.callbackNode,m===0||l===f&&(Xn===2||Xn===9)||l.cancelPendingCommit!==null)return b!==null&&b!==null&&ot(b),l.callbackNode=null,l.callbackPriority=0;if((m&3)===0||vt(l,m)){if(f=m&-m,f===l.callbackPriority)return f;switch(b!==null&&ot(b),$g(m)){case 2:case 8:m=Ve;break;case 32:m=nt;break;case 268435456:m=ut;break;default:m=nt}return b=bx.bind(null,l),m=mn(m,b),l.callbackPriority=f,l.callbackNode=m,f}return b!==null&&b!==null&&ot(b),l.callbackPriority=2,l.callbackNode=null,2}function bx(l,f){if(jn!==0&&jn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var m=l.callbackNode;if(J1()&&l.callbackNode!==m)return null;var b=zn;return b=Et(l,l===dr?b:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),b===0?null:(hx(l,b,f),vx(l,Bt()),l.callbackNode!=null&&l.callbackNode===m?bx.bind(null,l):null)}function em(l,f){if(J1())return null;hx(l,f,!0)}function O0(){N0(function(){(Hn&6)!==0?mn(be,Zp):Jp()})}function nd(){if(Bc===0){var l=Ec;l===0&&(l=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Bc=l}return Bc}function xx(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:hc(""+l)}function Tw(l,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,l.id&&m.setAttribute("form",l.id),f.parentNode.insertBefore(m,f),l=new FormData(l),m.parentNode.removeChild(m),l}function M0(l,f,m,b,A){if(f==="submit"&&m&&m.stateNode===A){var O=xx((A[Or]||null).action),j=b.submitter;j&&(f=(f=j[Or]||null)?xx(f.formAction):j.getAttribute("formAction"),f!==null&&(O=f,j=null));var ne=new Fh("action","action",null,b,A);l.push({event:ne,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Bc!==0){var ve=j?Tw(A,j):new FormData(A);V1(m,{pending:!0,data:ve,method:A.method,action:O},null,ve)}}else typeof O=="function"&&(ne.preventDefault(),ve=j?Tw(A,j):new FormData(A),V1(m,{pending:!0,data:ve,method:A.method,action:O},O,ve))},currentTarget:A}]})}}for(var rd=0;rd<Ml.length;rd++){var ay=Ml[rd],oy=ay.toLowerCase(),Sx=ay[0].toUpperCase()+ay.slice(1);Wa(oy,"on"+Sx)}Wa(br,"onAnimationEnd"),Wa(Jh,"onAnimationIteration"),Wa(f4,"onAnimationStart"),Wa("dblclick","onDoubleClick"),Wa("focusin","onFocus"),Wa("focusout","onBlur"),Wa(d4,"onTransitionRun"),Wa(Df,"onTransitionStart"),Wa(ep,"onTransitionCancel"),Wa(Ol,"onTransitionEnd"),Sf("onMouseEnter",["mouseout","mouseover"]),Sf("onMouseLeave",["mouseout","mouseover"]),Sf("onPointerEnter",["pointerout","pointerover"]),Sf("onPointerLeave",["pointerout","pointerover"]),So("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),So("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),So("onBeforeInput",["compositionend","keypress","textInput","paste"]),So("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var id="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(" "),Aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(id));function wx(l,f){f=(f&4)!==0;for(var m=0;m<l.length;m++){var b=l[m],A=b.event;b=b.listeners;e:{var O=void 0;if(f)for(var j=b.length-1;0<=j;j--){var ne=b[j],ve=ne.instance,ze=ne.currentTarget;if(ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}else for(j=0;j<b.length;j++){if(ne=b[j],ve=ne.instance,ze=ne.currentTarget,ne=ne.listener,ve!==O&&A.isPropagationStopped())break e;O=ne,A.currentTarget=ze;try{O(A)}catch(qe){Sc(qe)}A.currentTarget=null,O=ve}}}}function _n(l,f){var m=f[Lh];m===void 0&&(m=f[Lh]=new Set);var b=l+"__bubble";m.has(b)||(tm(f,l,2,!1),m.add(b))}function ly(l,f,m){var b=0;f&&(b|=4),tm(m,l,b,f)}var sy="_reactListening"+Math.random().toString(36).slice(2);function Ex(l){if(!l[sy]){l[sy]=!0,Fa.forEach(function(m){m!=="selectionchange"&&(Aw.has(m)||ly(m,!1,l),ly(m,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[sy]||(f[sy]=!0,ly("selectionchange",!1,f))}}function tm(l,f,m,b){switch(fm(f)){case 2:var A=ha;break;case 8:A=$s;break;default:A=ul}m=A.bind(null,f,m,l),A=void 0,!Wb||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),b?A!==void 0?l.addEventListener(f,m,{capture:!0,passive:A}):l.addEventListener(f,m,!0):A!==void 0?l.addEventListener(f,m,{passive:A}):l.addEventListener(f,m,!1)}function R0(l,f,m,b,A){var O=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var j=b.tag;if(j===3||j===4){var ne=b.stateNode.containerInfo;if(ne===A)break;if(j===4)for(j=b.return;j!==null;){var ve=j.tag;if((ve===3||ve===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;ne!==null;){if(j=yf(ne),j===null)return;if(ve=j.tag,ve===5||ve===6||ve===26||ve===27){b=O=j;continue e}ne=ne.parentNode}}b=b.return}qh(function(){var ze=O,qe=Yg(m),Qe=[];e:{var Ie=F6.get(l);if(Ie!==void 0){var Ue=Fh,Rt=l;switch(l){case"keypress":if(Gh(m)===0)break e;case"keydown":case"keyup":Ue=Jg;break;case"focusin":Rt="focus",Ue=Zg;break;case"focusout":Rt="blur",Ue=Zg;break;case"beforeblur":case"afterblur":Ue=Zg;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":Ue=k6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=z6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=q8;break;case br:case Jh:case f4:Ue=Jb;break;case Ol:Ue=P6;break;case"scroll":case"scrollend":Ue=N6;break;case"wheel":Ue=t4;break;case"copy":case"cut":case"paste":Ue=Af;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=t1;break;case"toggle":case"beforetoggle":Ue=U6}var Ht=(f&4)!==0,hr=!Ht&&(l==="scroll"||l==="scrollend"),De=Ht?Ie!==null?Ie+"Capture":null:Ie;Ht=[];for(var Te=ze,ke;Te!==null;){var Ye=Te;if(ke=Ye.stateNode,Ye=Ye.tag,Ye!==5&&Ye!==26&&Ye!==27||ke===null||De===null||(Ye=Qd(Te,De),Ye!=null&&Ht.push(nm(Te,Ye,ke))),hr)break;Te=Te.return}0<Ht.length&&(Ie=new Ue(Ie,Rt,null,m,qe),Qe.push({event:Ie,listeners:Ht}))}}if((f&7)===0){e:{if(Ie=l==="mouseover"||l==="pointerover",Ue=l==="mouseout"||l==="pointerout",Ie&&m!==Hh&&(Rt=m.relatedTarget||m.fromElement)&&(yf(Rt)||Rt[gf]))break e;if((Ue||Ie)&&(Ie=qe.window===qe?qe:(Ie=qe.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,Ue?(Rt=m.relatedTarget||m.toElement,Ue=ze,Rt=Rt?yf(Rt):null,Rt!==null&&(hr=s(Rt),Ht=Rt.tag,Rt!==hr||Ht!==5&&Ht!==27&&Ht!==6)&&(Rt=null)):(Ue=null,Rt=ze),Ue!==Rt)){if(Ht=k6,Ye="onMouseLeave",De="onMouseEnter",Te="mouse",(l==="pointerout"||l==="pointerover")&&(Ht=t1,Ye="onPointerLeave",De="onPointerEnter",Te="pointer"),hr=Ue==null?Ie:Yd(Ue),ke=Rt==null?Ie:Yd(Rt),Ie=new Ht(Ye,Te+"leave",Ue,m,qe),Ie.target=hr,Ie.relatedTarget=ke,Ye=null,yf(qe)===ze&&(Ht=new Ht(De,Te+"enter",Rt,m,qe),Ht.target=ke,Ht.relatedTarget=hr,Ye=Ht),hr=Ye,Ue&&Rt)t:{for(Ht=Cw,De=Ue,Te=Rt,ke=0,Ye=De;Ye;Ye=Ht(Ye))ke++;Ye=0;for(var Lt=Te;Lt;Lt=Ht(Lt))Ye++;for(;0<ke-Ye;)De=Ht(De),ke--;for(;0<Ye-ke;)Te=Ht(Te),Ye--;for(;ke--;){if(De===Te||Te!==null&&De===Te.alternate){Ht=De;break t}De=Ht(De),Te=Ht(Te)}Ht=null}else Ht=null;Ue!==null&&Tx(Qe,Ie,Ue,Ht,!1),Rt!==null&&hr!==null&&Tx(Qe,hr,Rt,Ht,!0)}}e:{if(Ie=ze?Yd(ze):window,Ue=Ie.nodeName&&Ie.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Ie.type==="file")var qn=a1;else if(r1(Ie))if(a4)qn=gc;else{qn=q6;var Dt=l4}else Ue=Ie.nodeName,!Ue||Ue.toLowerCase()!=="input"||Ie.type!=="checkbox"&&Ie.type!=="radio"?ze&&Yb(ze.elementType)&&(qn=a1):qn=G6;if(qn&&(qn=qn(l,ze))){fs(Qe,qn,m,qe);break e}Dt&&Dt(l,Ie,ze),l==="focusout"&&ze&&Ie.type==="number"&&ze.memoizedProps.value!=null&&Wd(Ie,"number",Ie.value)}switch(Dt=ze?Yd(ze):window,l){case"focusin":(r1(Dt)||Dt.contentEditable==="true")&&(ps=Dt,Qh=ze,vc=null);break;case"focusout":vc=Qh=ps=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,gs(Qe,m,qe);break;case"selectionchange":if(c4)break;case"keydown":case"keyup":gs(Qe,m,qe)}var pn;if(Jd)e:{switch(l){case"compositionstart":var Cn="onCompositionStart";break e;case"compositionend":Cn="onCompositionEnd";break e;case"compositionupdate":Cn="onCompositionUpdate";break e}Cn=void 0}else Of?mc(l,m)&&(Cn="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(Cn="onCompositionStart");Cn&&(Fi&&m.locale!=="ko"&&(Of||Cn!=="onCompositionStart"?Cn==="onCompositionEnd"&&Of&&(pn=D6()):(pu=qe,Xg="value"in pu?pu.value:pu.textContent,Of=!0)),Dt=uy(ze,Cn),0<Dt.length&&(Cn=new Wo(Cn,l,null,m,qe),Qe.push({event:Cn,listeners:Dt}),pn?Cn.data=pn:(pn=n1(m),pn!==null&&(Cn.data=pn)))),(pn=r4?$6(l,m):H6(l,m))&&(Cn=uy(ze,"onBeforeInput"),0<Cn.length&&(Dt=new Wo("onBeforeInput","beforeinput",null,m,qe),Qe.push({event:Dt,listeners:Cn}),Dt.data=pn)),M0(Qe,l,ze,m,qe)}wx(Qe,f)})}function nm(l,f,m){return{instance:l,listener:f,currentTarget:m}}function uy(l,f){for(var m=f+"Capture",b=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=Qd(l,m),A!=null&&b.unshift(nm(l,A,O)),A=Qd(l,f),A!=null&&b.push(nm(l,A,O))),l.tag===3)return b;l=l.return}return[]}function Cw(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Tx(l,f,m,b,A){for(var O=f._reactName,j=[];m!==null&&m!==b;){var ne=m,ve=ne.alternate,ze=ne.stateNode;if(ne=ne.tag,ve!==null&&ve===b)break;ne!==5&&ne!==26&&ne!==27||ze===null||(ve=ze,A?(ze=Qd(m,O),ze!=null&&j.unshift(nm(m,ze,ve))):A||(ze=Qd(m,O),ze!=null&&j.push(nm(m,ze,ve)))),m=m.return}j.length!==0&&l.push({event:f,listeners:j})}var Ax=/\r\n?/g,Ow=/\u0000|\uFFFD/g;function cy(l){return(typeof l=="string"?l:""+l).replace(Ax,`
`).replace(Ow,"")}function Cx(l,f){return f=cy(f),cy(l)===f}function ar(l,f,m,b,A,O){switch(m){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||wf(l,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&wf(l,""+b);break;case"className":Xd(l,"class",b);break;case"tabIndex":Xd(l,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Xd(l,m,b);break;case"style":_6(l,b,O);break;case"data":if(f!=="object"){Xd(l,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||m!=="href")){l.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){l.removeAttribute(m);break}b=hc(""+b),l.setAttribute(m,b);break;case"action":case"formAction":if(typeof b=="function"){l.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"&&ar(l,f,"name",A.name,A,null),ar(l,f,"formEncType",A.formEncType,A,null),ar(l,f,"formMethod",A.formMethod,A,null),ar(l,f,"formTarget",A.formTarget,A,null)):(ar(l,f,"encType",A.encType,A,null),ar(l,f,"method",A.method,A,null),ar(l,f,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){l.removeAttribute(m);break}b=hc(""+b),l.setAttribute(m,b);break;case"onClick":b!=null&&(l.onclick=Gi);break;case"onScroll":b!=null&&_n("scroll",l);break;case"onScrollEnd":b!=null&&_n("scrollend",l);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(i(61));if(m=b.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"multiple":l.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":l.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"){l.removeAttribute("xlink:href");break}m=hc(""+b),l.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"?l.setAttribute(m,""+b):l.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"?l.setAttribute(m,""):l.removeAttribute(m);break;case"capture":case"download":b===!0?l.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?l.setAttribute(m,b):l.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?l.setAttribute(m,b):l.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?l.removeAttribute(m):l.setAttribute(m,b);break;case"popover":_n("beforetoggle",l),_n("toggle",l),du(l,"popover",b);break;case"xlinkActuate":hu(l,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":hu(l,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":hu(l,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":hu(l,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":hu(l,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":hu(l,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":hu(l,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":hu(l,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":hu(l,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":du(l,"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=U8.get(m)||m,du(l,m,b))}}function Ox(l,f,m,b,A,O){switch(m){case"style":_6(l,b,O);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(i(61));if(m=b.__html,m!=null){if(A.children!=null)throw Error(i(60));l.innerHTML=m}}break;case"children":typeof b=="string"?wf(l,b):(typeof b=="number"||typeof b=="bigint")&&wf(l,""+b);break;case"onScroll":b!=null&&_n("scroll",l);break;case"onScrollEnd":b!=null&&_n("scrollend",l);break;case"onClick":b!=null&&(l.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xf.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(A=m.endsWith("Capture"),f=m.slice(2,A?m.length-7:void 0),O=l[Or]||null,O=O!=null?O[m]:null,typeof O=="function"&&l.removeEventListener(f,O,A),typeof b=="function")){typeof O!="function"&&O!==null&&(m in l?l[m]=null:l.hasAttribute(m)&&l.removeAttribute(m)),l.addEventListener(f,b,A);break e}m in l?l[m]=b:b===!0?l.setAttribute(m,""):du(l,m,b)}}}function Zi(l,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_n("error",l),_n("load",l);var b=!1,A=!1,O;for(O in m)if(m.hasOwnProperty(O)){var j=m[O];if(j!=null)switch(O){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,O,j,m,null)}}A&&ar(l,f,"srcSet",m.srcSet,m,null),b&&ar(l,f,"src",m.src,m,null);return;case"input":_n("invalid",l);var ne=O=j=A=null,ve=null,ze=null;for(b in m)if(m.hasOwnProperty(b)){var qe=m[b];if(qe!=null)switch(b){case"name":A=qe;break;case"type":j=qe;break;case"checked":ve=qe;break;case"defaultChecked":ze=qe;break;case"value":O=qe;break;case"defaultValue":ne=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(i(137,f));break;default:ar(l,f,b,qe,m,null)}}Fg(l,O,ne,ve,ze,j,A,!1);return;case"select":_n("invalid",l),b=j=O=null;for(A in m)if(m.hasOwnProperty(A)&&(ne=m[A],ne!=null))switch(A){case"value":O=ne;break;case"defaultValue":j=ne;break;case"multiple":b=ne;default:ar(l,f,A,ne,m,null)}f=O,m=j,l.multiple=!!b,f!=null?as(l,!!b,f,!1):m!=null&&as(l,!!b,m,!0);return;case"textarea":_n("invalid",l),O=A=b=null;for(j in m)if(m.hasOwnProperty(j)&&(ne=m[j],ne!=null))switch(j){case"value":b=ne;break;case"defaultValue":A=ne;break;case"children":O=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(91));break;default:ar(l,f,j,ne,m,null)}Gb(l,b,A,O);return;case"option":for(ve in m)if(m.hasOwnProperty(ve)&&(b=m[ve],b!=null))switch(ve){case"selected":l.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:ar(l,f,ve,b,m,null)}return;case"dialog":_n("beforetoggle",l),_n("toggle",l),_n("cancel",l),_n("close",l);break;case"iframe":case"object":_n("load",l);break;case"video":case"audio":for(b=0;b<id.length;b++)_n(id[b],l);break;case"image":_n("error",l),_n("load",l);break;case"details":_n("toggle",l);break;case"embed":case"source":case"link":_n("error",l),_n("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ze in m)if(m.hasOwnProperty(ze)&&(b=m[ze],b!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,f));default:ar(l,f,ze,b,m,null)}return;default:if(Yb(f)){for(qe in m)m.hasOwnProperty(qe)&&(b=m[qe],b!==void 0&&Ox(l,f,qe,b,m,void 0));return}}for(ne in m)m.hasOwnProperty(ne)&&(b=m[ne],b!=null&&ar(l,f,ne,b,m,null))}function Z8(l,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 A=null,O=null,j=null,ne=null,ve=null,ze=null,qe=null;for(Ue in m){var Qe=m[Ue];if(m.hasOwnProperty(Ue)&&Qe!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":ve=Qe;default:b.hasOwnProperty(Ue)||ar(l,f,Ue,null,b,Qe)}}for(var Ie in b){var Ue=b[Ie];if(Qe=m[Ie],b.hasOwnProperty(Ie)&&(Ue!=null||Qe!=null))switch(Ie){case"type":O=Ue;break;case"name":A=Ue;break;case"checked":ze=Ue;break;case"defaultChecked":qe=Ue;break;case"value":j=Ue;break;case"defaultValue":ne=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(i(137,f));break;default:Ue!==Qe&&ar(l,f,Ie,Ue,b,Qe)}}Gg(l,j,ne,ve,ze,qe,O,A);return;case"select":Ue=j=ne=Ie=null;for(O in m)if(ve=m[O],m.hasOwnProperty(O)&&ve!=null)switch(O){case"value":break;case"multiple":Ue=ve;default:b.hasOwnProperty(O)||ar(l,f,O,null,b,ve)}for(A in b)if(O=b[A],ve=m[A],b.hasOwnProperty(A)&&(O!=null||ve!=null))switch(A){case"value":Ie=O;break;case"defaultValue":ne=O;break;case"multiple":j=O;default:O!==ve&&ar(l,f,A,O,b,ve)}f=ne,m=j,b=Ue,Ie!=null?as(l,!!m,Ie,!1):!!b!=!!m&&(f!=null?as(l,!!m,f,!0):as(l,!!m,m?[]:"",!1));return;case"textarea":Ue=Ie=null;for(ne in m)if(A=m[ne],m.hasOwnProperty(ne)&&A!=null&&!b.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:ar(l,f,ne,null,b,A)}for(j in b)if(A=b[j],O=m[j],b.hasOwnProperty(j)&&(A!=null||O!=null))switch(j){case"value":Ie=A;break;case"defaultValue":Ue=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:A!==O&&ar(l,f,j,A,b,O)}R6(l,Ie,Ue);return;case"option":for(var Rt in m)if(Ie=m[Rt],m.hasOwnProperty(Rt)&&Ie!=null&&!b.hasOwnProperty(Rt))switch(Rt){case"selected":l.selected=!1;break;default:ar(l,f,Rt,null,b,Ie)}for(ve in b)if(Ie=b[ve],Ue=m[ve],b.hasOwnProperty(ve)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ve){case"selected":l.selected=Ie&&typeof Ie!="function"&&typeof Ie!="symbol";break;default:ar(l,f,ve,Ie,b,Ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ht in m)Ie=m[Ht],m.hasOwnProperty(Ht)&&Ie!=null&&!b.hasOwnProperty(Ht)&&ar(l,f,Ht,null,b,Ie);for(ze in b)if(Ie=b[ze],Ue=m[ze],b.hasOwnProperty(ze)&&Ie!==Ue&&(Ie!=null||Ue!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(i(137,f));break;default:ar(l,f,ze,Ie,b,Ue)}return;default:if(Yb(f)){for(var hr in m)Ie=m[hr],m.hasOwnProperty(hr)&&Ie!==void 0&&!b.hasOwnProperty(hr)&&Ox(l,f,hr,void 0,b,Ie);for(qe in b)Ie=b[qe],Ue=m[qe],!b.hasOwnProperty(qe)||Ie===Ue||Ie===void 0&&Ue===void 0||Ox(l,f,qe,Ie,b,Ue);return}}for(var De in m)Ie=m[De],m.hasOwnProperty(De)&&Ie!=null&&!b.hasOwnProperty(De)&&ar(l,f,De,null,b,Ie);for(Qe in b)Ie=b[Qe],Ue=m[Qe],!b.hasOwnProperty(Qe)||Ie===Ue||Ie==null&&Ue==null||ar(l,f,Qe,Ie,b,Ue)}function fy(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mx(){if(typeof performance.getEntriesByType=="function"){for(var l=0,f=0,m=performance.getEntriesByType("resource"),b=0;b<m.length;b++){var A=m[b],O=A.transferSize,j=A.initiatorType,ne=A.duration;if(O&&ne&&fy(j)){for(j=0,ne=A.responseEnd,b+=1;b<m.length;b++){var ve=m[b],ze=ve.startTime;if(ze>ne)break;var qe=ve.transferSize,Qe=ve.initiatorType;qe&&fy(Qe)&&(ve=ve.responseEnd,j+=qe*(ve<ne?1:(ne-ze)/(ve-ze)))}if(--b,f+=8*(O+j)/(A.duration/1e3),l++,10<l)break}}if(0<l)return f/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var rm=null,dy=null;function im(l){return l.nodeType===9?l:l.ownerDocument}function _0(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mw(l,f){if(l===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&f==="foreignObject"?0:l}function hy(l,f){return l==="textarea"||l==="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 D0=null;function Rw(){var l=window.event;return l&&l.type==="popstate"?l===D0?!1:(D0=l,!0):(D0=null,!1)}var _w=typeof setTimeout=="function"?setTimeout:void 0,py=typeof clearTimeout=="function"?clearTimeout:void 0,Rx=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof Rx<"u"?function(l){return Rx.resolve(null).then(l).catch(Dw)}:_w;function Dw(l){setTimeout(function(){throw l})}function Ps(l){return l==="head"}function am(l,f){var m=f,b=0;do{var A=m.nextSibling;if(l.removeChild(m),A&&A.nodeType===8)if(m=A.data,m==="/$"||m==="/&"){if(b===0){l.removeChild(A),B0(f);return}b--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")b++;else if(m==="html")Nu(l.ownerDocument.documentElement);else if(m==="head"){m=l.ownerDocument.head,Nu(m);for(var O=m.firstChild;O;){var j=O.nextSibling,ne=O.nodeName;O[Fd]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&O.rel.toLowerCase()==="stylesheet"||m.removeChild(O),O=j}}else m==="body"&&Nu(l.ownerDocument.body);m=A}while(m);B0(f)}function _x(l,f){var m=l;l=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(l===0)break;l--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||l++;m=b}while(m)}function Zr(l){var f=l.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":Zr(m),dc(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}l.removeChild(m)}}function Dx(l,f,m,b){for(;l.nodeType===1;){var A=m;if(l.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(b){if(!l[Fd])switch(f){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(O=l.getAttribute("rel"),O==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(O!==A.rel||l.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||l.getAttribute("title")!==(A.title==null?null:A.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(O=l.getAttribute("src"),(O!==(A.src==null?null:A.src)||l.getAttribute("type")!==(A.type==null?null:A.type)||l.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&O&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(f==="input"&&l.type==="hidden"){var O=A.name==null?null:""+A.name;if(A.type==="hidden"&&l.getAttribute("name")===O)return l}else return l;if(l=Ji(l.nextSibling),l===null)break}return null}function J8(l,f,m){if(f==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!m||(l=Ji(l.nextSibling),l===null))return null;return l}function yn(l,f){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!f||(l=Ji(l.nextSibling),l===null))return null;return l}function Nx(l){return l.data==="$?"||l.data==="$~"}function ol(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function k0(l,f){var m=l.ownerDocument;if(l.data==="$~")l._reactRetry=f;else if(l.data!=="$?"||m.readyState!=="loading")f();else{var b=function(){f(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),l._reactRetry=b}}function Ji(l){for(;l!=null;l=l.nextSibling){var f=l.nodeType;if(f===1||f===3)break;if(f===8){if(f=l.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return l}var z0=null;function my(l){l=l.nextSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"||m==="/&"){if(f===0)return Ji(l.nextSibling);f--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||f++}l=l.nextSibling}return null}function gy(l){l=l.previousSibling;for(var f=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(f===0)return l;f--}else m!=="/$"&&m!=="/&"||f++}l=l.previousSibling}return null}function Bl(l,f,m){switch(f=im(m),l){case"html":if(l=f.documentElement,!l)throw Error(i(452));return l;case"head":if(l=f.head,!l)throw Error(i(453));return l;case"body":if(l=f.body,!l)throw Error(i(454));return l;default:throw Error(i(451))}}function Nu(l){for(var f=l.attributes;f.length;)l.removeAttributeNode(f[0]);dc(l)}var uo=new Map,yy=new Set;function ad(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var si=ae.d;ae.d={f:kx,r:eA,D:Ei,C:$e,L:Qn,m:tA,X:Ix,S:zx,M:ku};function kx(){var l=si.f(),f=Yp();return l||f}function eA(l){var f=vf(l);f!==null&&f.tag===5&&f.type==="form"?g0(f):si.r(l)}var od=typeof document>"u"?null:document;function Nw(l,f,m){var b=od;if(b&&typeof f=="string"&&f){var A=Xo(f);A='link[rel="'+l+'"][href="'+A+'"]',typeof m=="string"&&(A+='[crossorigin="'+m+'"]'),yy.has(A)||(yy.add(A),l={rel:l,crossOrigin:m,href:f},b.querySelector(A)===null&&(f=b.createElement("link"),Zi(f,"link",l),Si(f),b.head.appendChild(f)))}}function Ei(l){si.D(l),Nw("dns-prefetch",l,null)}function $e(l,f){si.C(l,f),Nw("preconnect",l,f)}function Qn(l,f,m){si.L(l,f,m);var b=od;if(b&&l&&f){var A='link[rel="preload"][as="'+Xo(f)+'"]';f==="image"&&m&&m.imageSrcSet?(A+='[imagesrcset="'+Xo(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(A+='[imagesizes="'+Xo(m.imageSizes)+'"]')):A+='[href="'+Xo(l)+'"]';var O=A;switch(f){case"style":O=Us(l);break;case"script":O=ld(l)}uo.has(O)||(l=S({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:l,as:f},m),uo.set(O,l),b.querySelector(A)!==null||f==="style"&&b.querySelector(ll(O))||f==="script"&&b.querySelector(I0(O))||(f=b.createElement("link"),Zi(f,"link",l),Si(f),b.head.appendChild(f)))}}function tA(l,f){si.m(l,f);var m=od;if(m&&l){var b=f&&typeof f.as=="string"?f.as:"script",A='link[rel="modulepreload"][as="'+Xo(b)+'"][href="'+Xo(l)+'"]',O=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=ld(l)}if(!uo.has(O)&&(l=S({rel:"modulepreload",href:l},f),uo.set(O,l),m.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(I0(O)))return}b=m.createElement("link"),Zi(b,"link",l),Si(b),m.head.appendChild(b)}}}function zx(l,f,m){si.S(l,f,m);var b=od;if(b&&l){var A=bf(b).hoistableStyles,O=Us(l);f=f||"default";var j=A.get(O);if(!j){var ne={loading:0,preload:null};if(j=b.querySelector(ll(O)))ne.loading=5;else{l=S({rel:"stylesheet",href:l,"data-precedence":f},m),(m=uo.get(O))&&vy(l,m);var ve=j=b.createElement("link");Si(ve),Zi(ve,"link",l),ve._p=new Promise(function(ze,qe){ve.onload=ze,ve.onerror=qe}),ve.addEventListener("load",function(){ne.loading|=1}),ve.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,sm(j,f,b)}j={type:"stylesheet",instance:j,count:1,state:ne},A.set(O,j)}}}function Ix(l,f){si.X(l,f);var m=od;if(m&&l){var b=bf(m).hoistableScripts,A=ld(l),O=b.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0},f),(f=uo.get(A))&&by(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(A,O))}}function ku(l,f){si.M(l,f);var m=od;if(m&&l){var b=bf(m).hoistableScripts,A=ld(l),O=b.get(A);O||(O=m.querySelector(I0(A)),O||(l=S({src:l,async:!0,type:"module"},f),(f=uo.get(A))&&by(l,f),O=m.createElement("script"),Si(O),Zi(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},b.set(A,O))}}function zu(l,f,m,b){var A=(A=_e.current)?ad(A):null;if(!A)throw Error(i(446));switch(l){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=Us(m.href),m=bf(A).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"){l=Us(m.href);var O=bf(A).hoistableStyles,j=O.get(l);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(l,j),(O=A.querySelector(ll(l)))&&!O._p&&(j.instance=O,j.state.loading=5),uo.has(l)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},uo.set(l,m),O||lm(A,l,m,j.state))),f&&b===null)throw Error(i(528,""));return j}if(f&&b!==null)throw Error(i(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ld(m),m=bf(A).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(i(444,l))}}function Us(l){return'href="'+Xo(l)+'"'}function ll(l){return'link[rel="stylesheet"]['+l+"]"}function om(l){return S({},l,{"data-precedence":l.precedence,precedence:null})}function lm(l,f,m,b){l.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=l.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),Zi(f,"link",m),Si(f),l.head.appendChild(f))}function ld(l){return'[src="'+Xo(l)+'"]'}function I0(l){return"script[async]"+l}function Lx(l,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var b=l.querySelector('style[data-href~="'+Xo(m.href)+'"]');if(b)return f.instance=b,Si(b),b;var A=S({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(l.ownerDocument||l).createElement("style"),Si(b),Zi(b,"style",A),sm(b,m.precedence,l),f.instance=b;case"stylesheet":A=Us(m.href);var O=l.querySelector(ll(A));if(O)return f.state.loading|=4,f.instance=O,Si(O),O;b=om(m),(A=uo.get(A))&&vy(b,A),O=(l.ownerDocument||l).createElement("link"),Si(O);var j=O;return j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",b),f.state.loading|=4,sm(O,m.precedence,l),f.instance=O;case"script":return O=ld(m.src),(A=l.querySelector(I0(O)))?(f.instance=A,Si(A),A):(b=m,(A=uo.get(O))&&(b=S({},m),by(b,A)),l=l.ownerDocument||l,A=l.createElement("script"),Si(A),Zi(A,"link",b),l.head.appendChild(A),f.instance=A);case"void":return null;default:throw Error(i(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,sm(b,m.precedence,l));return f.instance}function sm(l,f,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,O=A,j=0;j<b.length;j++){var ne=b[j];if(ne.dataset.precedence===f)O=ne;else if(O!==A)break}O?O.parentNode.insertBefore(l,O.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(l,f.firstChild))}function vy(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.title==null&&(l.title=f.title)}function by(l,f){l.crossOrigin==null&&(l.crossOrigin=f.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=f.referrerPolicy),l.integrity==null&&(l.integrity=f.integrity)}var um=null;function xy(l,f,m){if(um===null){var b=new Map,A=um=new Map;A.set(m,b)}else A=um,b=A.get(m),b||(b=new Map,A.set(m,b));if(b.has(l))return b;for(b.set(l,null),m=m.getElementsByTagName(l),A=0;A<m.length;A++){var O=m[A];if(!(O[Fd]||O[pi]||l==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var j=O.getAttribute(f)||"";j=l+j;var ne=b.get(j);ne?ne.push(O):b.set(j,[O])}}return b}function Vx(l,f,m){l=l.ownerDocument||l,l.head.insertBefore(m,f==="title"?l.querySelector("head > title"):null)}function Bx(l,f,m){if(m===1||f.itemProp!=null)return!1;switch(l){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 l=f.disabled,typeof f.precedence=="string"&&l==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 Sy(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function No(l,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 A=Us(b.href),O=f.querySelector(ll(A));if(O){f=O._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(l.count++,l=L0.bind(l),f.then(l,l)),m.state.loading|=4,m.instance=O,Si(O);return}O=f.ownerDocument||f,b=om(b),(A=uo.get(A))&&vy(b,A),O=O.createElement("link"),Si(O);var j=O;j._p=new Promise(function(ne,ve){j.onload=ne,j.onerror=ve}),Zi(O,"link",b),m.instance=O}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(l.count++,m=L0.bind(l),f.addEventListener("load",m),f.addEventListener("error",m))}}var sl=0;function jl(l,f){return l.stylesheets&&l.count===0&&Ey(l,l.stylesheets),0<l.count||0<l.imgCount?function(m){var b=setTimeout(function(){if(l.stylesheets&&Ey(l,l.stylesheets),l.unsuspend){var O=l.unsuspend;l.unsuspend=null,O()}},6e4+f);0<l.imgBytes&&sl===0&&(sl=62500*Mx());var A=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Ey(l,l.stylesheets),l.unsuspend)){var O=l.unsuspend;l.unsuspend=null,O()}},(l.imgBytes>sl?50:800)+f);return l.unsuspend=m,function(){l.unsuspend=null,clearTimeout(b),clearTimeout(A)}}:null}function L0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ey(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var wy=null;function Ey(l,f){l.stylesheets=null,l.unsuspend!==null&&(l.count++,wy=new Map,f.forEach(nA,l),wy=null,L0.call(l))}function nA(l,f){if(!(f.state.loading&4)){var m=wy.get(l);if(m)var b=m.get(null);else{m=new Map,wy.set(l,m);for(var A=l.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<A.length;O++){var j=A[O];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(m.set(j.dataset.precedence,j),b=j)}b&&m.set(null,b)}A=f.instance,j=A.getAttribute("data-precedence"),O=m.get(j)||b,O===b&&m.set(null,A),m.set(j,A),this.count++,b=L0.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),O?O.parentNode.insertBefore(A,O.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(A,l.firstChild)),f.state.loading|=4}}var Jr={$$typeof:B,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function rA(l,f,m,b,A,O,j,ne,ve){this.tag=1,this.containerInfo=l,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=Bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bn(0),this.hiddenUpdates=Bn(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=O,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function Ty(l,f,m,b,A,O,j,ne,ve,ze,qe,Qe){return l=new rA(l,f,m,j,ve,ze,qe,Qe,ne),f=1,O===!0&&(f|=24),O=Ka(3,null,null,f),l.current=O,O.stateNode=l,f=p1(),f.refCount++,l.pooledCache=f,f.refCount++,O.memoizedState={element:b,isDehydrated:m,cache:f},y1(O),l}function Ay(l){return l?(l=Nf,l):Nf}function sd(l,f,m,b,A,O){A=Ay(A),b.context===null?b.context=A:b.pendingContext=A,b=xu(f),b.payload={element:m},O=O===void 0?null:O,O!==null&&(b.callback=O),m=Su(l,b,f),m!==null&&(so(m,l,f),Ts(m,l,f))}function kw(l,f){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<f?m:f}}function cm(l,f){kw(l,f),(l=l.alternate)&&kw(l,f)}function zw(l){if(l.tag===13||l.tag===31){var f=oa(l,67108864);f!==null&&so(f,l,67108864),cm(l,67108864)}}function Iw(l){if(l.tag===13||l.tag===31){var f=ka();f=Ga(f);var m=oa(l,f);m!==null&&so(m,l,f),cm(l,f)}}var Iu=!0;function ha(l,f,m,b){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=2,ul(l,f,m,b)}finally{ae.p=O,Z.T=A}}function $s(l,f,m,b){var A=Z.T;Z.T=null;var O=ae.p;try{ae.p=8,ul(l,f,m,b)}finally{ae.p=O,Z.T=A}}function ul(l,f,m,b){if(Iu){var A=ea(b);if(A===null)R0(l,f,b,Cy,m),pa(l,b);else if(Px(A,l,f,m,b))b.stopPropagation();else if(pa(l,b),f&4&&-1<na.indexOf(l)){for(;A!==null;){var O=vf(A);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var j=We(O.pendingLanes);if(j!==0){var ne=O;for(ne.pendingLanes|=2,ne.entangledLanes|=2;j;){var ve=1<<31-bn(j);ne.entanglements[1]|=ve,j&=~ve}Vl(O),(Hn&6)===0&&(Fp=Bt()+500,Qp(0))}}break;case 31:case 13:ne=oa(O,2),ne!==null&&so(ne,O,2),Yp(),cm(O,2)}if(O=ea(b),O===null&&R0(l,f,b,Cy,m),O===A)break;A=O}A!==null&&b.stopPropagation()}else R0(l,f,b,null,m)}}function ea(l){return l=Yg(l),jx(l)}var Cy=null;function jx(l){if(Cy=null,l=yf(l),l!==null){var f=s(l);if(f===null)l=null;else{var m=f.tag;if(m===13){if(l=c(f),l!==null)return l;l=null}else if(m===31){if(l=d(f),l!==null)return l;l=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;l=null}else f!==l&&(l=null)}}return Cy=l,null}function fm(l){switch(l){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(Ze()){case be:return 2;case Ve:return 8;case nt:case pt:return 32;case ut:return 268435456;default:return 32}default:return 32}}var V0=!1,Pl=null,Ti=null,ta=null,ko=new Map,jc=new Map,za=[],na="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 pa(l,f){switch(l){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":ko.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(f.pointerId)}}function cl(l,f,m,b,A,O){return l===null||l.nativeEvent!==O?(l={blockedOn:f,domEventName:m,eventSystemFlags:b,nativeEvent:O,targetContainers:[A]},f!==null&&(f=vf(f),f!==null&&zw(f)),l):(l.eventSystemFlags|=b,f=l.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),l)}function Px(l,f,m,b,A){switch(f){case"focusin":return Pl=cl(Pl,l,f,m,b,A),!0;case"dragenter":return Ti=cl(Ti,l,f,m,b,A),!0;case"mouseover":return ta=cl(ta,l,f,m,b,A),!0;case"pointerover":var O=A.pointerId;return ko.set(O,cl(ko.get(O)||null,l,f,m,b,A)),!0;case"gotpointercapture":return O=A.pointerId,jc.set(O,cl(jc.get(O)||null,l,f,m,b,A)),!0}return!1}function Lw(l){var f=yf(l.target);if(f!==null){var m=s(f);if(m!==null){if(f=m.tag,f===13){if(f=c(m),f!==null){l.blockedOn=f,Hg(l.priority,function(){Iw(m)});return}}else if(f===31){if(f=d(m),f!==null){l.blockedOn=f,Hg(l.priority,function(){Iw(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Oy(l){if(l.blockedOn!==null)return!1;for(var f=l.targetContainers;0<f.length;){var m=ea(l.nativeEvent);if(m===null){m=l.nativeEvent;var b=new m.constructor(m.type,m);Hh=b,m.target.dispatchEvent(b),Hh=null}else return f=vf(m),f!==null&&zw(f),l.blockedOn=m,!1;f.shift()}return!0}function Ux(l,f,m){Oy(l)&&m.delete(f)}function dm(){V0=!1,Pl!==null&&Oy(Pl)&&(Pl=null),Ti!==null&&Oy(Ti)&&(Ti=null),ta!==null&&Oy(ta)&&(ta=null),ko.forEach(Ux),jc.forEach(Ux)}function hm(l,f){l.blockedOn===f&&(l.blockedOn=null,V0||(V0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,dm)))}var Hs=null;function My(l){Hs!==l&&(Hs=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hs===l&&(Hs=null);for(var f=0;f<l.length;f+=3){var m=l[f],b=l[f+1],A=l[f+2];if(typeof b!="function"){if(jx(b||m)===null)continue;break}var O=vf(m);O!==null&&(l.splice(f,3),f-=3,V1(O,{pending:!0,data:A,method:m.method,action:b},b,A))}}))}function B0(l){function f(ve){return hm(ve,l)}Pl!==null&&hm(Pl,l),Ti!==null&&hm(Ti,l),ta!==null&&hm(ta,l),ko.forEach(f),jc.forEach(f);for(var m=0;m<za.length;m++){var b=za[m];b.blockedOn===l&&(b.blockedOn=null)}for(;0<za.length&&(m=za[0],m.blockedOn===null);)Lw(m),m.blockedOn===null&&za.shift();if(m=(l.ownerDocument||l).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var A=m[b],O=m[b+1],j=A[Or]||null;if(typeof O=="function")j||My(m);else if(j){var ne=null;if(O&&O.hasAttribute("formAction")){if(A=O,j=O[Or]||null)ne=j.formAction;else if(jx(A)!==null)continue}else ne=j.action;typeof ne=="function"?m[b+1]=ne:(m.splice(b,3),b-=3),My(m)}}}function Vw(){function l(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(j){return A=j})},focusReset:"manual",scroll:"manual"})}function f(){A!==null&&(A(),A=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,A=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(m,100),function(){b=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),A!==null&&(A(),A=null)}}}function Ry(l){this._internalRoot=l}pm.prototype.render=Ry.prototype.render=function(l){var f=this._internalRoot;if(f===null)throw Error(i(409));var m=f.current,b=ka();sd(m,b,l,f,null,null)},pm.prototype.unmount=Ry.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var f=l.containerInfo;sd(l.current,2,null,l,null,null),Yp(),f[gf]=null}};function pm(l){this._internalRoot=l}pm.prototype.unstable_scheduleHydration=function(l){if(l){var f=C6();l={blockedOn:null,target:l,priority:f};for(var m=0;m<za.length&&f!==0&&f<za[m].priority;m++);za.splice(m,0,l),m===0&&Lw(l)}};var Bw=t.version;if(Bw!=="19.2.4")throw Error(i(527,Bw,"19.2.4"));ae.findDOMNode=function(l){var f=l._reactInternals;if(f===void 0)throw typeof l.render=="function"?Error(i(188)):(l=Object.keys(l).join(","),Error(i(268,l)));return l=y(f),l=l!==null?v(l):null,l=l===null?null:l.stateNode,l};var jw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mm.isDisabled&&mm.supportsFiber)try{kt=mm.inject(jw),jt=mm}catch{}}return fv.createRoot=function(l,f){if(!o(l))throw Error(i(299));var m=!1,b="",A=$4,O=j1,j=H4;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(O=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError)),f=Ty(l,1,!1,null,null,m,b,null,A,O,j,Vw),l[gf]=f.current,Ex(l),new Ry(f)},fv.hydrateRoot=function(l,f,m){if(!o(l))throw Error(i(299));var b=!1,A="",O=$4,j=j1,ne=H4,ve=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onUncaughtError!==void 0&&(O=m.onUncaughtError),m.onCaughtError!==void 0&&(j=m.onCaughtError),m.onRecoverableError!==void 0&&(ne=m.onRecoverableError),m.formState!==void 0&&(ve=m.formState)),f=Ty(l,1,!0,f,m??null,b,A,ve,O,j,ne,Vw),f.context=Ay(null),m=f.current,b=ka(),b=Ga(b),A=xu(b),A.callback=null,Su(m,A,b),m=b,f.current.lanes=m,oi(f,m),Vl(f),l[gf]=f.current,Ex(l),new pm(f)},fv.version="19.2.4",fv}var dv={},MC;function CV(){if(MC)return dv;MC=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(r,a){for(r=r.memoizedState;r!==null&&0<a;)r=r.next,a--;return r}function n(r,a,u,g){if(u>=a.length)return g;var x=a[u],w=Ei(r)?r.slice():yn({},r);return w[x]=n(r[x],a,u+1,g),w}function i(r,a,u){if(a.length!==u.length)console.warn("copyWithRename() expects paths of the same length");else{for(var g=0;g<u.length-1;g++)if(a[g]!==u[g]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(r,a,u,0)}}function o(r,a,u,g){var x=a[g],w=Ei(r)?r.slice():yn({},r);return g+1===a.length?(w[u[g]]=w[x],Ei(w)?w.splice(x,1):delete w[x]):w[x]=o(r[x],a,u,g+1),w}function s(r,a,u){var g=a[u],x=Ei(r)?r.slice():yn({},r);return u+1===a.length?(Ei(x)?x.splice(g,1):delete x[g],x):(x[g]=s(r[g],a,u+1),x)}function c(){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 S(){}function T(r){var a=[];return r.forEach(function(u){a.push(u)}),a.sort().join(", ")}function E(r,a,u,g){return new Y8(r,a,u,g)}function C(r,a){r.context===$0&&(Ax(r.current,2,a,r,null,null),Wf())}function R(r,a){if(Fs!==null){var u=a.staleFamilies;a=a.updatedFamilies,kc(),H6(r.current,a,u),Wf()}}function _(r){Fs=r}function N(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function z(r){var a=r,u=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(u=a.return),r=a.return;while(r)}return a.tag===3?u:null}function B(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function V(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function L(r){if(z(r)!==r)throw Error("Unable to find node on an unmounted component.")}function U(r){var a=r.alternate;if(!a){if(a=z(r),a===null)throw Error("Unable to find node on an unmounted component.");return a!==r?null:r}for(var u=r,g=a;;){var x=u.return;if(x===null)break;var w=x.alternate;if(w===null){if(g=x.return,g!==null){u=g;continue}break}if(x.child===w.child){for(w=x.child;w;){if(w===u)return L(x),r;if(w===g)return L(x),a;w=w.sibling}throw Error("Unable to find node on an unmounted component.")}if(u.return!==g.return)u=x,g=w;else{for(var M=!1,D=x.child;D;){if(D===u){M=!0,u=x,g=w;break}if(D===g){M=!0,g=x,u=w;break}D=D.sibling}if(!M){for(D=w.child;D;){if(D===u){M=!0,u=w,g=x;break}if(D===g){M=!0,g=w,u=x;break}D=D.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(u.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(u.tag!==3)throw Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?r:a}function X(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=X(r),a!==null)return a;r=r.sibling}return null}function se(r){return r===null||typeof r!="object"?null:(r=od&&r[od]||r["@@iterator"],typeof r=="function"?r:null)}function ce(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Nw?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ji:return"Fragment";case my:return"Profiler";case z0:return"StrictMode";case uo:return"Suspense";case yy:return"SuspenseList";case kx:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case k0:return"Portal";case Bl:return r.displayName||"Context";case gy:return(r._context.displayName||"Context")+".Consumer";case Nu:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ad:return a=r.displayName||null,a!==null?a:ce(r.type)||"Memo";case si:a=r._payload,r=r._init;try{return ce(r(a))}catch{}}return null}function ie(r){return typeof r.tag=="number"?ue(r):typeof r.name=="string"?r.name:null}function ue(r){var a=r.type;switch(r.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(a._context.displayName||"Context")+".Consumer";case 10:return a.displayName||"Context";case 18:return"DehydratedFragment";case 11:return r=a.render,r=r.displayName||r.name||"",a.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(a);case 8:return a===z0?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;break;case 29:if(a=r._debugInfo,a!=null){for(var u=a.length-1;0<=u;u--)if(typeof a[u].name=="string")return a[u].name}if(r.return!==null)return ue(r.return)}return null}function $(r){return{current:r}}function le(r,a){0>ku?console.error("Unexpected pop."):(a!==Ix[ku]&&console.error("Unexpected Fiber popped."),r.current=zx[ku],zx[ku]=null,Ix[ku]=null,ku--)}function K(r,a,u){ku++,zx[ku]=r.current,Ix[ku]=u,r.current=a}function oe(r){return r===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),r}function Z(r,a){K(ll,a,r),K(Us,r,r),K(zu,null,r);var u=a.nodeType;switch(u){case 9:case 11:u=u===9?"#document":"#fragment",a=(a=a.documentElement)&&(a=a.namespaceURI)?_u(a):wd;break;default:if(u=a.tagName,a=a.namespaceURI)a=_u(a),a=Yp(a,u);else switch(u){case"svg":a=ov;break;case"math":a=RE;break;default:a=wd}}u=u.toLowerCase(),u=Uh(null,u),u={context:a,ancestorInfo:u},le(zu,r),K(zu,u,r)}function ae(r){le(zu,r),le(Us,r),le(ll,r)}function he(){return oe(zu.current)}function Ee(r){r.memoizedState!==null&&K(om,r,r);var a=oe(zu.current),u=r.type,g=Yp(a.context,u);u=Uh(a.ancestorInfo,u),g={context:g,ancestorInfo:u},a!==g&&(K(Us,r,r),K(zu,g,r))}function te(r){Us.current===r&&(le(zu,r),le(Us,r)),om.current===r&&(le(om,r),_S._currentValue=Bm)}function F(){}function ee(){if(lm===0){ld=console.log,I0=console.info,Lx=console.warn,sm=console.error,vy=console.group,by=console.groupCollapsed,um=console.groupEnd;var r={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}lm++}function Y(){if(lm--,lm===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:yn({},r,{value:ld}),info:yn({},r,{value:I0}),warn:yn({},r,{value:Lx}),error:yn({},r,{value:sm}),group:yn({},r,{value:vy}),groupCollapsed:yn({},r,{value:by}),groupEnd:yn({},r,{value:um})})}0>lm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Me(r){var a=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=a,r.startsWith(`Error: react-stack-top-frame
`)&&(r=r.slice(29)),a=r.indexOf(`
`),a!==-1&&(r=r.slice(a+1)),a=r.indexOf("react_stack_bottom_frame"),a!==-1&&(a=r.lastIndexOf(`
`,a)),a!==-1)r=r.slice(0,a);else return"";return r}function Se(r){if(xy===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);xy=a&&a[1]||"",Vx=-1<u.stack.indexOf(`
    at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+xy+r+Vx}function _e(r,a){if(!r||Bx)return"";var u=Sy.get(r);if(u!==void 0)return u;Bx=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var g=null;g=$e.H,$e.H=null,ee();try{var x={DetermineComponentFrameRoot:function(){try{if(a){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(gt){var Le=gt}Reflect.construct(r,[],ge)}else{try{ge.call()}catch(gt){Le=gt}r.call(ge.prototype)}}else{try{throw Error()}catch(gt){Le=gt}(ge=r())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(gt){if(gt&&Le&&typeof gt.stack=="string")return[gt.stack,Le.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=x.DetermineComponentFrameRoot(),D=M[0],q=M[1];if(D&&q){var Q=D.split(`
`),we=q.split(`
`);for(M=w=0;w<Q.length&&!Q[w].includes("DetermineComponentFrameRoot");)w++;for(;M<we.length&&!we[M].includes("DetermineComponentFrameRoot");)M++;if(w===Q.length||M===we.length)for(w=Q.length-1,M=we.length-1;1<=w&&0<=M&&Q[w]!==we[M];)M--;for(;1<=w&&0<=M;w--,M--)if(Q[w]!==we[M]){if(w!==1||M!==1)do if(w--,M--,0>M||Q[w]!==we[M]){var Ae=`
`+Q[w].replace(" at new "," at ");return r.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",r.displayName)),typeof r=="function"&&Sy.set(r,Ae),Ae}while(1<=w&&0<=M);break}}}finally{Bx=!1,$e.H=g,Y(),Error.prepareStackTrace=u}return Q=(Q=r?r.displayName||r.name:"")?Se(Q):"",typeof r=="function"&&Sy.set(r,Q),Q}function je(r,a){switch(r.tag){case 26:case 27:case 5:return Se(r.type);case 16:return Se("Lazy");case 13:return r.child!==a&&a!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return _e(r.type,!1);case 11:return _e(r.type.render,!1);case 1:return _e(r.type,!0);case 31:return Se("Activity");default:return""}}function He(r){try{var a="",u=null;do{a+=je(r,u);var g=r._debugInfo;if(g)for(var x=g.length-1;0<=x;x--){var w=g[x];if(typeof w.name=="string"){var M=a;e:{var D=w.name,q=w.env,Q=w.debugLocation;if(Q!=null){var we=Me(Q),Ae=we.lastIndexOf(`
`),ge=Ae===-1?we:we.slice(Ae+1);if(ge.indexOf(D)!==-1){var Le=`
`+ge;break e}}Le=Se(D+(q?" ["+q+"]":""))}a=M+Le}}u=r,r=r.return}while(r);return a}catch(gt){return`
Error generating stack: `+gt.message+`
`+gt.stack}}function Xe(r){return(r=r?r.displayName||r.name:"")?Se(r):""}function Ke(){if(No===null)return null;var r=No._debugOwner;return r!=null?ie(r):null}function et(){if(No===null)return"";var r=No;try{var a="";switch(r.tag===6&&(r=r.return),r.tag){case 26:case 27:case 5:a+=Se(r.type);break;case 13:a+=Se("Suspense");break;case 19:a+=Se("SuspenseList");break;case 31:a+=Se("Activity");break;case 30:case 0:case 15:case 1:r._debugOwner||a!==""||(a+=Xe(r.type));break;case 11:r._debugOwner||a!==""||(a+=Xe(r.type.render))}for(;r;)if(typeof r.tag=="number"){var u=r;r=u._debugOwner;var g=u._debugStack;if(r&&g){var x=Me(g);x!==""&&(a+=`
`+x)}}else if(r.debugStack!=null){var w=r.debugStack;(r=r.owner)&&w&&(a+=`
`+Me(w))}else break;var M=a}catch(D){M=`
Error generating stack: `+D.message+`
`+D.stack}return M}function Be(r,a,u,g,x,w,M){var D=No;Re(r);try{return r!==null&&r._debugTask?r._debugTask.run(a.bind(null,u,g,x,w,M)):a(u,g,x,w,M)}finally{Re(D)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Re(r){$e.getCurrentStack=r===null?null:et,sl=!1,No=r}function st(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function Mt(r){try{return Qt(r),!1}catch{return!0}}function Qt(r){return""+r}function xt(r,a){if(Mt(r))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",a,st(r)),Qt(r)}function Ut(r,a){if(Mt(r))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.",a,st(r)),Qt(r)}function hn(r){if(Mt(r))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.",st(r)),Qt(r)}function mn(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.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{Iu=a.inject(r),ha=a}catch(u){console.error("React instrumentation encountered an error: %o.",u)}return!!a.checkDCE}function ot(r){if(typeof zw=="function"&&Iw(r),ha&&typeof ha.setStrictMode=="function")try{ha.setStrictMode(Iu,r)}catch(a){$s||($s=!0,console.error("React instrumentation encountered an error: %o",a))}}function At(r){return r>>>=0,r===0?32:31-(Cy(r)/jx|0)|0}function Rn(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&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."),r}}function Bt(r,a,u){var g=r.pendingLanes;if(g===0)return 0;var x=0,w=r.suspendedLanes,M=r.pingedLanes;r=r.warmLanes;var D=g&134217727;return D!==0?(g=D&~w,g!==0?x=Rn(g):(M&=D,M!==0?x=Rn(M):u||(u=D&~r,u!==0&&(x=Rn(u))))):(D=g&~w,D!==0?x=Rn(D):M!==0?x=Rn(M):u||(u=g&~r,u!==0&&(x=Rn(u)))),x===0?0:a!==0&&a!==x&&(a&w)===0&&(w=x&-x,u=a&-a,w>=u||w===32&&(u&4194048)!==0)?a:x}function Ze(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function be(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Ve(){var r=Pl;return Pl<<=1,(Pl&62914560)===0&&(Pl=4194304),r}function nt(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function pt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ut(r,a,u,g,x,w){var M=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var D=r.entanglements,q=r.expirationTimes,Q=r.hiddenUpdates;for(u=M&~u;0<u;){var we=31-ea(u),Ae=1<<we;D[we]=0,q[we]=-1;var ge=Q[we];if(ge!==null)for(Q[we]=null,we=0;we<ge.length;we++){var Le=ge[we];Le!==null&&(Le.lane&=-536870913)}u&=~Ae}g!==0&&yt(r,g,0),w!==0&&x===0&&r.tag!==0&&(r.suspendedLanes|=w&~(M&~a))}function yt(r,a,u){r.pendingLanes|=a,r.suspendedLanes&=~a;var g=31-ea(a);r.entangledLanes|=a,r.entanglements[g]=r.entanglements[g]|1073741824|u&261930}function gn(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var g=31-ea(u),x=1<<g;x&a|r[g]&a&&(r[g]|=a),u&=~x}}function kt(r,a){var u=a&-a;return u=(u&42)!==0?1:jt(u),(u&(r.suspendedLanes|a))!==0?0:u}function jt(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Fn(r,a,u){if(ul)for(r=r.pendingUpdatersLaneMap;0<u;){var g=31-ea(u),x=1<<g;r[g].add(a),u&=~x}}function bn(r,a){if(ul)for(var u=r.pendingUpdatersLaneMap,g=r.memoizedUpdaters;0<a;){var x=31-ea(a);r=1<<x,x=u[x],0<x.size&&(x.forEach(function(w){var M=w.alternate;M!==null&&g.has(M)||g.add(w)}),x.clear()),a&=~r}}function Fr(r){return r&=-r,Ti<r?ta<r?(r&134217727)!==0?ko:jc:ta:Ti}function cr(){var r=Qn.p;return r!==0?r:(r=window.event,r===void 0?ko:dy(r.type))}function J(r,a){var u=Qn.p;try{return Qn.p=r,a()}finally{Qn.p=u}}function Oe(r){delete r[na],delete r[pa],delete r[Px],delete r[Lw],delete r[Oy]}function tt(r){var a=r[na];if(a)return a;for(var u=r.parentNode;u;){if(a=u[cl]||u[na]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=ry(r);r!==null;){if(u=r[na])return u;r=ry(r)}return a}r=u,u=r.parentNode}return null}function Ne(r){if(r=r[na]||r[cl]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function We(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Et(r){var a=r[Ux];return a||(a=r[Ux]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function vt(r){r[dm]=!0}function Yt(r,a){ct(r,a),ct(r+"Capture",a)}function ct(r,a){Hs[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),Hs[r]=a;var u=r.toLowerCase();for(My[u]=r,r==="onDoubleClick"&&(My.ondblclick=r),r=0;r<a.length;r++)hm.add(a[r])}function Bn(r,a){B0[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||console.error(r==="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`."),a.onChange||a.readOnly||a.disabled||a.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 oi(r){return jl.call(pm,r)?!0:jl.call(Ry,r)?!1:Vw.test(r)?pm[r]=!0:(Ry[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function Ug(r,a,u){if(oi(a)){if(!r.hasAttribute(a)){switch(typeof u){case"symbol":case"object":return u;case"function":return u;case"boolean":if(u===!1)return u}return u===void 0?void 0:null}return r=r.getAttribute(a),r===""&&u===!0?!0:(xt(u,a),r===""+u?u:r)}}function mf(r,a,u){if(oi(a))if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var g=a.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){r.removeAttribute(a);return}}xt(u,a),r.setAttribute(a,""+u)}}function Ih(r,a,u){if(u===null)r.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}xt(u,a),r.setAttribute(a,""+u)}}function is(r,a,u,g){if(g===null)r.removeAttribute(u);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}xt(g,u),r.setAttributeNS(a,u,""+g)}}function Ga(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return hn(r),r;default:return""}}function $g(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function C6(r,a,u){var g=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var x=g.get,w=g.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return x.call(this)},set:function(M){hn(M),u=""+M,w.call(this,M)}}),Object.defineProperty(r,a,{enumerable:g.enumerable}),{getValue:function(){return u},setValue:function(M){hn(M),u=""+M},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Hg(r){if(!r._valueTracker){var a=$g(r)?"checked":"value";r._valueTracker=C6(r,a,""+r[a])}}function fu(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),g="";return r&&(g=$g(r)?r.checked?"true":"false":r.value),r=g,r!==u?(a.setValue(r),!0):!1}function pi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Or(r){return r.replace(Bw,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function gf(r,a){a.checked===void 0||a.defaultChecked===void 0||mm||(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",Ke()||"A component",a.type),mm=!0),a.value===void 0||a.defaultValue===void 0||jw||(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",Ke()||"A component",a.type),jw=!0)}function Lh(r,a,u,g,x,w,M,D){r.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?(xt(M,"type"),r.type=M):r.removeAttribute("type"),a!=null?M==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Ga(a)):r.value!==""+Ga(a)&&(r.value=""+Ga(a)):M!=="submit"&&M!=="reset"||r.removeAttribute("value"),a!=null?Pb(r,M,Ga(a)):u!=null?Pb(r,M,Ga(u)):g!=null&&r.removeAttribute("value"),x==null&&w!=null&&(r.defaultChecked=!!w),x!=null&&(r.checked=x&&typeof x!="function"&&typeof x!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?(xt(D,"name"),r.name=""+Ga(D)):r.removeAttribute("name")}function O6(r,a,u,g,x,w,M,D){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(xt(w,"type"),r.type=w),a!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||a!=null)){Hg(r);return}u=u!=null?""+Ga(u):"",a=a!=null?""+Ga(a):u,D||a===r.value||(r.value=a),r.defaultValue=a}g=g??x,g=typeof g!="function"&&typeof g!="symbol"&&!!g,r.checked=D?r.checked:!!g,r.defaultChecked=!!g,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(xt(M,"name"),r.name=M),Hg(r)}function Pb(r,a,u){a==="number"&&pi(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function Ub(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?Dx.Children.forEach(a.children,function(u){u==null||typeof u=="string"||typeof u=="number"||typeof u=="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>."))}):a.dangerouslySetInnerHTML==null||m||(m=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),a.selected==null||l||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l=!0)}function Fd(){var r=Ke();return r?`

Check the render method of \``+r+"`.":""}function dc(r,a,u,g){if(r=r.options,a){a={};for(var x=0;x<u.length;x++)a["$"+u[x]]=!0;for(u=0;u<r.length;u++)x=a.hasOwnProperty("$"+r[u].value),r[u].selected!==x&&(r[u].selected=x),x&&g&&(r[u].defaultSelected=!0)}else{for(u=""+Ga(u),a=null,x=0;x<r.length;x++){if(r[x].value===u){r[x].selected=!0,g&&(r[x].defaultSelected=!0);return}a!==null||r[x].disabled||(a=r[x])}a!==null&&(a.selected=!0)}}function yf(r,a){for(r=0;r<A.length;r++){var u=A[r];if(a[u]!=null){var g=Ei(a[u]);a.multiple&&!g?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fd()):!a.multiple&&g&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fd())}}a.value===void 0||a.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 vf(r,a){a.value===void 0||a.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",Ke()||"A component"),O=!0),a.children!=null&&a.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yd(r,a,u){if(a!=null&&(a=""+Ga(a),a!==r.value&&(r.value=a),u==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=u!=null?""+Ga(u):""}function bf(r,a,u,g){if(a==null){if(g!=null){if(u!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ei(g)){if(1<g.length)throw Error("<textarea> can only have at most one child.");g=g[0]}u=g}u==null&&(u=""),a=u}u=Ga(a),r.defaultValue=u,g=r.textContent,g===u&&g!==""&&g!==null&&(r.value=g),Hg(r)}function Si(r,a){return r.serverProps===void 0&&r.serverTail.length===0&&r.children.length===1&&3<r.distanceFromLeaf&&r.distanceFromLeaf>15-a?Si(r.children[0],a):r}function Fa(r){return"  "+"  ".repeat(r)}function xf(r){return"+ "+"  ".repeat(r)}function So(r){return"- "+"  ".repeat(r)}function Sf(r){switch(r.tag){case 26:case 27:case 5:return r.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return r=r.type,r.displayName||r.name||null;case 11:return r=r.type.render,r.displayName||r.name||null;case 1:return r=r.type,r.displayName||r.name||null;default:return null}}function Vh(r,a){return j.test(r)?(r=JSON.stringify(r),r.length>a-2?8>a?'{"..."}':"{"+r.slice(0,a-7)+'..."}':"{"+r+"}"):r.length>a?5>a?'{"..."}':r.slice(0,a-3)+"...":r}function Bh(r,a,u){var g=120-2*u;if(a===null)return xf(u)+Vh(r,g)+`
`;if(typeof a=="string"){for(var x=0;x<a.length&&x<r.length&&a.charCodeAt(x)===r.charCodeAt(x);x++);return x>g-8&&10<x&&(r="..."+r.slice(x-8),a="..."+a.slice(x-8)),xf(u)+Vh(r,g)+`
`+So(u)+Vh(a,g)+`
`}return Fa(u)+Vh(r,g)+`
`}function qg(r){return Object.prototype.toString.call(r).replace(/^\[object (.*)\]$/,function(a,u){return u})}function jh(r,a){switch(typeof r){case"string":return r=JSON.stringify(r),r.length>a?5>a?'"..."':r.slice(0,a-4)+'..."':r;case"object":if(r===null)return"null";if(Ei(r))return"[...]";if(r.$$typeof===ol)return(a=ce(r.type))?"<"+a+">":"<...>";var u=qg(r);if(u==="Object"){u="",a-=2;for(var g in r)if(r.hasOwnProperty(g)){var x=JSON.stringify(g);if(x!=='"'+g+'"'&&(g=x),a-=g.length-2,x=jh(r[g],15>a?a:15),a-=x.length,0>a){u+=u===""?"...":", ...";break}u+=(u===""?"":",")+g+":"+x}return"{"+u+"}"}return u;case"function":return(a=r.displayName||r.name)?"function "+a:"function";default:return String(r)}}function du(r,a){return typeof r!="string"||j.test(r)?"{"+jh(r,a-2)+"}":r.length>a-2?5>a?'"..."':'"'+r.slice(0,a-5)+'..."':'"'+r+'"'}function Xd(r,a,u){var g=120-u.length-r.length,x=[],w;for(w in a)if(a.hasOwnProperty(w)&&w!=="children"){var M=du(a[w],120-u.length-w.length-1);g-=w.length+M.length+2,x.push(w+"="+M)}return x.length===0?u+"<"+r+`>
`:0<g?u+"<"+r+" "+x.join(" ")+`>
`:u+"<"+r+`
`+u+"  "+x.join(`
`+u+"  ")+`
`+u+`>
`}function hu(r,a,u){var g="",x=yn({},a),w;for(w in r)if(r.hasOwnProperty(w)){delete x[w];var M=120-2*u-w.length-2,D=jh(r[w],M);a.hasOwnProperty(w)?(M=jh(a[w],M),g+=xf(u)+w+": "+D+`
`,g+=So(u)+w+": "+M+`
`):g+=xf(u)+w+": "+D+`
`}for(var q in x)x.hasOwnProperty(q)&&(r=jh(x[q],120-2*u-q.length-2),g+=So(u)+q+": "+r+`
`);return g}function Yo(r,a,u,g){var x="",w=new Map;for(Q in u)u.hasOwnProperty(Q)&&w.set(Q.toLowerCase(),Q);if(w.size===1&&w.has("children"))x+=Xd(r,a,Fa(g));else{for(var M in a)if(a.hasOwnProperty(M)&&M!=="children"){var D=120-2*(g+1)-M.length-1,q=w.get(M.toLowerCase());if(q!==void 0){w.delete(M.toLowerCase());var Q=a[M];q=u[q];var we=du(Q,D);D=du(q,D),typeof Q=="object"&&Q!==null&&typeof q=="object"&&q!==null&&qg(Q)==="Object"&&qg(q)==="Object"&&(2<Object.keys(Q).length||2<Object.keys(q).length||-1<we.indexOf("...")||-1<D.indexOf("..."))?x+=Fa(g+1)+M+`={{
`+hu(Q,q,g+2)+Fa(g+1)+`}}
`:(x+=xf(g+1)+M+"="+we+`
`,x+=So(g+1)+M+"="+D+`
`)}else x+=Fa(g+1)+M+"="+du(a[M],D)+`
`}w.forEach(function(Ae){if(Ae!=="children"){var ge=120-2*(g+1)-Ae.length-1;x+=So(g+1)+Ae+"="+du(u[Ae],ge)+`
`}}),x=x===""?Fa(g)+"<"+r+`>
`:Fa(g)+"<"+r+`
`+x+Fa(g)+`>
`}return r=u.children,a=a.children,typeof r=="string"||typeof r=="number"||typeof r=="bigint"?(w="",(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(w=""+a),x+=Bh(w,""+r,g+1)):(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(x=r==null?x+Bh(""+a,null,g+1):x+Bh(""+a,void 0,g+1)),x}function $b(r,a){var u=Sf(r);if(u===null){for(u="",r=r.child;r;)u+=$b(r,a),r=r.sibling;return u}return Fa(a)+"<"+u+`>
`}function Hb(r,a){var u=Si(r,a);if(u!==r&&(r.children.length!==1||r.children[0]!==u))return Fa(a)+`...
`+Hb(u,a+1);u="";var g=r.fiber._debugInfo;if(g)for(var x=0;x<g.length;x++){var w=g[x].name;typeof w=="string"&&(u+=Fa(a)+"<"+w+`>
`,a++)}if(g="",x=r.fiber.pendingProps,r.fiber.tag===6)g=Bh(x,r.serverProps,a),a++;else if(w=Sf(r.fiber),w!==null)if(r.serverProps===void 0){g=a;var M=120-2*g-w.length-2,D="";for(Q in x)if(x.hasOwnProperty(Q)&&Q!=="children"){var q=du(x[Q],15);if(M-=Q.length+q.length+2,0>M){D+=" ...";break}D+=" "+Q+"="+q}g=Fa(g)+"<"+w+D+`>
`,a++}else r.serverProps===null?(g=Xd(w,x,xf(a)),a++):typeof r.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(g=Yo(w,x,r.serverProps,a),a++);var Q="";for(x=r.fiber.child,w=0;x&&w<r.children.length;)M=r.children[w],M.fiber===x?(Q+=Hb(M,a),w++):Q+=$b(x,a),x=x.sibling;for(x&&0<r.children.length&&(Q+=Fa(a)+`...
`),x=r.serverTail,r.serverProps===null&&a--,r=0;r<x.length;r++)w=x[r],Q=typeof w=="string"?Q+(So(a)+Vh(w,120-2*a)+`
`):Q+Xd(w.type,w.props,So(a));return u+g+Q}function Ph(r){try{return`

`+Hb(r,0)}catch{return""}}function qb(r,a,u){for(var g=a,x=null,w=0;g;)g===r&&(w=0),x={fiber:g,children:x!==null?[x]:[],serverProps:g===a?u:g===r?null:void 0,serverTail:[],distanceFromLeaf:w},w++,g=g.return;return x!==null?Ph(x).replaceAll(/^[+-]/gm,">"):""}function Uh(r,a){var u=yn({},r||Qe),g={tag:a};return ve.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),ze.indexOf(a)!==-1&&(u.pTagInButtonScope=null),ne.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=g,a==="form"&&(u.formTag=g),a==="a"&&(u.aTagInScope=g),a==="button"&&(u.buttonTagInScope=g),a==="nobr"&&(u.nobrTagInScope=g),a==="p"&&(u.pTagInButtonScope=g),a==="li"&&(u.listItemTagAutoclosing=g),(a==="dd"||a==="dt")&&(u.dlItemTagAutoclosing=g),a==="#document"||a==="html"?u.containerTagInScope=null:u.containerTagInScope||(u.containerTagInScope=g),r!==null||a!=="#document"&&a!=="html"&&a!=="body"?u.implicitRootScope===!0&&(u.implicitRootScope=!1):u.implicitRootScope=!0,u}function M6(r,a,u){switch(a){case"select":return r==="hr"||r==="option"||r==="optgroup"||r==="script"||r==="template"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":if(u)break;return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":if(!u)return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return qe.indexOf(a)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null;case"head":return u||a===null;case"html":return u&&a==="#document"||a===null;case"body":return u&&(a==="#document"||a==="html")||a===null}return!0}function Xo(r,a){switch(r){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 a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null}function Gg(r,a){for(;r;){switch(r.tag){case 5:case 26:case 27:if(r.type===a)return r}r=r.return}return null}function Fg(r,a){a=a||Qe;var u=a.current;if(a=(u=M6(r,u&&u.tag,a.implicitRootScope)?null:u)?null:Xo(r,a),a=u||a,!a)return!0;var g=a.tag;if(a=String(!!u)+"|"+r+"|"+g,Ie[a])return!1;Ie[a]=!0;var x=(a=No)?Gg(a.return,g):null,w=a!==null&&x!==null?qb(x,a,null):"",M="<"+r+">";return u?(u="",g==="table"&&r==="tr"&&(u+=" 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,u,w)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,M,g,w),a&&(r=a.return,x===null||r===null||x===r&&r._debugOwner===a._debugOwner||Be(x,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,g,M)})),!1}function Wd(r,a,u){if(u||M6("#text",a,!1))return!0;if(u="#text|"+a,Ie[u])return!1;Ie[u]=!0;var g=(u=No)?Gg(u,a):null;return u=u!==null&&g!==null?qb(g,u,u.tag!==6?{children:null}:null):"",/\S/.test(r)?console.error(`In HTML, text nodes cannot be a child of <%s>.
This will cause a hydration error.%s`,a,u):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`,a,u),!1}function as(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}function R6(r){return r.replace(Te,function(a,u){return u.toUpperCase()})}function Gb(r,a,u){var g=a.indexOf("--")===0;g||(-1<a.indexOf("-")?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,R6(a.replace(De,"ms-")))):hr.test(a)?Ye.hasOwnProperty(a)&&Ye[a]||(Ye[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!ke.test(u)||Lt.hasOwnProperty(u)&&Lt[u]||(Lt[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,u.replace(ke,""))),typeof u=="number"&&(isNaN(u)?qn||(qn=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(u)||Dt||(Dt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),u==null||typeof u=="boolean"||u===""?g?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":g?r.setProperty(a,u):typeof u!="number"||u===0||pn.has(a)?a==="float"?r.cssFloat=u:(Ut(u,a),r[a]=(""+u).trim()):r[a]=u+"px"}function wf(r,a,u){if(a!=null&&typeof a!="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(a&&Object.freeze(a),r=r.style,u!=null){if(a){var g={};if(u){for(var x in u)if(u.hasOwnProperty(x)&&!a.hasOwnProperty(x))for(var w=Ue[x]||[x],M=0;M<w.length;M++)g[w[M]]=x}for(var D in a)if(a.hasOwnProperty(D)&&(!u||u[D]!==a[D]))for(x=Ue[D]||[D],w=0;w<x.length;w++)g[x[w]]=D;D={};for(var q in a)for(x=Ue[q]||[q],w=0;w<x.length;w++)D[x[w]]=q;q={};for(var Q in g)if(x=g[Q],(w=D[Q])&&x!==w&&(M=x+","+w,!q[M])){q[M]=!0,M=console;var we=a[x];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",x,w)}}for(var Ae in u)!u.hasOwnProperty(Ae)||a!=null&&a.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?r.setProperty(Ae,""):Ae==="float"?r.cssFloat="":r[Ae]="");for(var ge in a)Q=a[ge],a.hasOwnProperty(ge)&&u[ge]!==Q&&Gb(r,ge,Q)}else for(g in a)a.hasOwnProperty(g)&&Gb(r,g,a[g])}function $h(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Fb(r){return Pc.get(r)||r}function _6(r,a){if(jl.call(Dy,a)&&Dy[a])return!0;if(Tce.test(a)){if(r="aria-"+a.slice(4).toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Dy[a]=!0;if(a!==r)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,r),Dy[a]=!0}if(Ece.test(a)){if(r=a.toLowerCase(),r=aI.hasOwnProperty(r)?r:null,r==null)return Dy[a]=!0,!1;a!==r&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,r),Dy[a]=!0)}return!0}function Yb(r,a){var u=[],g;for(g in a)_6(r,g)||u.push(g);a=u.map(function(x){return"`"+x+"`"}).join(", "),u.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r):1<u.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,r)}function U8(r,a,u,g){if(jl.call(zo,a)&&zo[a])return!0;var x=a.toLowerCase();if(x==="onfocusin"||x==="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."),zo[a]=!0;if(typeof u=="function"&&(r==="form"&&a==="action"||r==="input"&&a==="formAction"||r==="button"&&a==="formAction"))return!0;if(g!=null){if(r=g.possibleRegistrationNames,g.registrationNameDependencies.hasOwnProperty(a))return!0;if(g=r.hasOwnProperty(x)?r[x]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,g),zo[a]=!0;if(lI.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),zo[a]=!0}else if(lI.test(a))return Ace.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),zo[a]=!0;if(Cce.test(a)||Oce.test(a))return!0;if(x==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),zo[a]=!0;if(x==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),zo[a]=!0;if(x==="is"&&u!==null&&u!==void 0&&typeof u!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),zo[a]=!0;if(typeof u=="number"&&isNaN(u))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),zo[a]=!0;if(_y.hasOwnProperty(x)){if(x=_y[x],x!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,x),zo[a]=!0}else if(a!==x)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.",a,x),zo[a]=!0;switch(a){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 u){case"boolean":switch(a){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 x=a.toLowerCase().slice(0,5),x==="data-"||x==="aria-"?!0:(u?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()}.',u,a,a,u,a):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.',u,a,a,u,a,a,a),zo[a]=!0)}case"function":case"symbol":return zo[a]=!0,!1;case"string":if(u==="false"||u==="true"){switch(a){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}?",u,a,u==="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".',a,u),zo[a]=!0}}return!0}function $8(r,a,u){var g=[],x;for(x in a)U8(r,x,a[x],u)||g.push(x);a=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 ",a,r):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 ",a,r)}function hc(r){return Mce.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Gi(){}function Hh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function Yg(r){var a=Ne(r);if(a&&(r=a.stateNode)){var u=r[pa]||null;e:switch(r=a.stateNode,a.type){case"input":if(Lh(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=r;u.parentNode;)u=u.parentNode;for(xt(a,"name"),u=u.querySelectorAll('input[name="'+Or(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var g=u[a];if(g!==r&&g.form===r.form){var x=g[pa]||null;if(!x)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Lh(g,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(a=0;a<u.length;a++)g=u[a],g.form===r.form&&fu(g)}break e;case"textarea":Yd(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&dc(r,!!u.multiple,a,!1)}}}function Ef(r,a,u){if(iA)return r(a,u);iA=!0;try{var g=r(a);return g}finally{if(iA=!1,(Ny!==null||ky!==null)&&(Wf(),Ny&&(a=Ny,r=ky,ky=Ny=null,Yg(a),r)))for(a=0;a<r.length;a++)Yg(r[a])}}function os(r,a){var u=r.stateNode;if(u===null)return null;var g=u[pa]||null;if(g===null)return null;u=g[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(r=r.type,g=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!g;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof u+"` type.");return u}function Xb(){if(Pw)return Pw;var r,a=oA,u=a.length,g,x="value"in j0?j0.value:j0.textContent,w=x.length;for(r=0;r<u&&a[r]===x[r];r++);var M=u-r;for(g=1;g<=M&&a[u-g]===x[w-g];g++);return Pw=x.slice(r,1<g?1-g:void 0)}function Kd(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function qh(){return!0}function Qd(){return!1}function Yr(r){function a(u,g,x,w,M){this._reactName=u,this._targetInst=x,this.type=g,this.nativeEvent=w,this.target=M,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(u=r[D],this[D]=u?u(w):w[D]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?qh:Qd,this.isPropagationStopped=Qd,this}return yn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=qh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=qh)},persist:function(){},isPersistent:qh}),a}function Wb(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Uce[r])?!!a[r]:!1}function Tf(){return Wb}function pu(r,a){switch(r){case"keyup":return Jce.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==fI;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}function Wg(r,a){switch(r){case"compositionend":return Xg(a);case"keypress":return a.which!==hI?null:(mI=!0,pI);case"textInput":return r=a.data,r===pI&&mI?null:r;default:return null}}function D6(r,a){if(zy)return r==="compositionend"||!cA&&pu(r,a)?(r=Xb(),Pw=oA=j0=null,zy=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return dI&&a.locale!=="ko"?null:a.data;default:return null}}function Gh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!tfe[r.type]:a==="textarea"}function Kg(r){if(!Uc)return!1;r="on"+r;var a=r in document;return a||(a=document.createElement("div"),a.setAttribute(r,"return;"),a=typeof a[r]=="function"),a}function Kb(r,a,u,g){Ny?ky?ky.push(g):ky=[g]:Ny=g,a=Bs(a,"onChange"),0<a.length&&(u=new Uw("onChange","change",null,u,g),r.push({event:u,listeners:a}))}function Ya(r){io(r,0)}function ls(r){var a=We(r);if(fu(a))return r}function Fh(r,a){if(r==="change")return a}function Zd(){Yx&&(Yx.detachEvent("onpropertychange",N6),Xx=Yx=null)}function N6(r){if(r.propertyName==="value"&&ls(Xx)){var a=[];Kb(a,Xx,r,Hh(r)),Ef(Ya,a)}}function Qb(r,a,u){r==="focusin"?(Zd(),Yx=a,Xx=u,Yx.attachEvent("onpropertychange",N6)):r==="focusout"&&Zd()}function Zb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ls(Xx)}function Yh(r,a){if(r==="click")return ls(a)}function Qg(r,a){if(r==="input"||r==="change")return ls(a)}function k6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}function Xh(r,a){if(Io(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),g=Object.keys(a);if(u.length!==g.length)return!1;for(g=0;g<u.length;g++){var x=u[g];if(!jl.call(a,x)||!Io(r[x],a[x]))return!1}return!0}function z6(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function I6(r,a){var u=z6(r);r=0;for(var g;u;){if(u.nodeType===3){if(g=r+u.textContent.length,r<=a&&g>=a)return{node:u,offset:a-r};r=g}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=z6(u)}}function Zg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Zg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function L6(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=pi(r.document);a instanceof r.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)r=a.contentWindow;else break;a=pi(r.document)}return a}function Jb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function V6(r,a,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;dA||Iy==null||Iy!==pi(g)||(g=Iy,"selectionStart"in g&&Jb(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}),Wx&&Xh(Wx,g)||(Wx=g,g=Bs(fA,"onSelect"),0<g.length&&(a=new Uw("onSelect","select",null,a,u),r.push({event:a,listeners:g}),a.target=Iy)))}function Af(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}function Cf(r){if(hA[r])return hA[r];if(!Ly[r])return r;var a=Ly[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in yI)return hA[r]=a[u];return r}function Wo(r,a){wI.set(r,a),Yt(a,[r])}function H8(r){for(var a=Hw,u=0;u<r.length;u++){var g=r[u];if(typeof g=="object"&&g!==null)if(Ei(g)&&g.length===2&&typeof g[0]=="string"){if(a!==Hw&&a!==vA)return gA;a=vA}else return gA;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||a!==Hw&&a!==yA)return gA;a=yA}}return a}function e4(r,a,u,g){for(var x in r)jl.call(r,x)&&x[0]!=="_"&&ss(x,r[x],a,u,g)}function ss(r,a,u,g,x){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===ol){var w=ce(a.type)||"…",M=a.key;a=a.props;var D=Object.keys(a),q=D.length;if(M==null&&q===0){a="<"+w+" />";break}if(3>g||q===1&&D[0]==="children"&&M==null){a="<"+w+" … />";break}u.push([x+"  ".repeat(g)+r,"<"+w]),M!==null&&ss("key",M,u,g+1,x),r=!1;for(var Q in a)Q==="children"?a.children!=null&&(!Ei(a.children)||0<a.children.length)&&(r=!0):jl.call(a,Q)&&Q[0]!=="_"&&ss(Q,a[Q],u,g+1,x);u.push(["",r?">…</"+w+">":"/>"]);return}if(w=Object.prototype.toString.call(a),w=w.slice(8,w.length-1),w==="Array"){if(Q=H8(a),Q===yA||Q===Hw){a=JSON.stringify(a);break}else if(Q===vA){for(u.push([x+"  ".repeat(g)+r,""]),r=0;r<a.length;r++)w=a[r],ss(w[0],w[1],u,g+1,x);return}}if(w==="Promise"){if(a.status==="fulfilled"){if(w=u.length,ss(r,a.value,u,g,x),u.length>w){u=u[w],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(a.status==="rejected"&&(w=u.length,ss(r,a.reason,u,g,x),u.length>w)){u=u[w],u[1]="Rejected Promise<"+u[1]+">";return}u.push(["  ".repeat(g)+r,"Promise"]);return}w==="Object"&&(Q=Object.getPrototypeOf(a))&&typeof Q.constructor=="function"&&(w=Q.constructor.name),u.push([x+"  ".repeat(g)+r,w==="Object"?3>g?"":"…":w]),3>g&&e4(a,u,g+1,x);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===sfe?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}u.push([x+"  ".repeat(g)+r,a])}function B6(r,a,u,g){var x=!0;for(M in r)M in a||(u.push([qw+"  ".repeat(g)+M,"…"]),x=!1);for(var w in a)if(w in r){var M=r[w],D=a[w];if(M!==D){if(g===0&&w==="children")x="  ".repeat(g)+w,u.push([qw+x,"…"],[Gw+x,"…"]);else{if(!(3<=g)){if(typeof M=="object"&&typeof D=="object"&&M!==null&&D!==null&&M.$$typeof===D.$$typeof)if(D.$$typeof===ol){if(M.type===D.type&&M.key===D.key){M=ce(D.type)||"…",x="  ".repeat(g)+w,M="<"+M+" … />",u.push([qw+x,M],[Gw+x,M]),x=!1;continue}}else{var q=Object.prototype.toString.call(M),Q=Object.prototype.toString.call(D);if(q===Q&&(Q==="[object Object]"||Q==="[object Array]")){q=[AI+"  ".repeat(g)+w,Q==="[object Array]"?"Array":""],u.push(q),Q=u.length,B6(M,D,u,g+1)?Q===u.length&&(q[1]="Referentially unequal but deeply equal objects. Consider memoization."):x=!1;continue}}else if(typeof M=="function"&&typeof D=="function"&&M.name===D.name&&M.length===D.length&&(q=Function.prototype.toString.call(M),Q=Function.prototype.toString.call(D),q===Q)){M=D.name===""?"() => {}":D.name+"() {}",u.push([AI+"  ".repeat(g)+w,M+" Referentially unequal function closure. Consider memoization."]);continue}}ss(w,M,u,g,qw),ss(w,D,u,g,Gw)}x=!1}}else u.push([Gw+"  ".repeat(g)+w,"…"]),x=!1;return x}function wo(r){$n=r&63?"Blocking":r&64?"Gesture":r&4194176?"Transition":r&62914560?"Suspense":r&2080374784?"Idle":"Other"}function us(r,a,u,g){kr&&(U0.start=a,U0.end=u,ud.color="warning",ud.tooltipText=g,ud.properties=null,(r=r._debugTask)?r.run(performance.measure.bind(performance,g,U0)):performance.measure(g,U0))}function Jg(r,a,u){us(r,a,u,"Reconnect")}function e1(r,a,u,g,x){var w=ue(r);if(w!==null&&kr){var M=r.alternate,D=r.actualDuration;if(M===null||M.child!==r.child)for(var q=r.child;q!==null;q=q.sibling)D-=q.actualDuration;g=.5>D?g?"tertiary-light":"primary-light":10>D?g?"tertiary":"primary":100>D?g?"tertiary-dark":"primary-dark":"error";var Q=r.memoizedProps;D=r._debugTask,Q!==null&&M!==null&&M.memoizedProps!==Q?(q=[ufe],Q=B6(M.memoizedProps,Q,q,0),1<q.length&&(Q&&!P0&&(M.lanes&x)===0&&100<r.actualDuration?(P0=!0,q[0]=cfe,ud.color="warning",ud.tooltipText=CI):(ud.color=g,ud.tooltipText=w),ud.properties=q,U0.start=a,U0.end=u,D!=null?D.run(performance.measure.bind(performance,"​"+w,U0)):performance.measure("​"+w,U0))):D!=null?D.run(console.timeStamp.bind(console,w,a,u,qs,void 0,g)):console.timeStamp(w,a,u,qs,void 0,g)}}function t1(r,a,u,g){if(kr){var x=ue(r);if(x!==null){for(var w=null,M=[],D=0;D<g.length;D++){var q=g[D];w==null&&q.source!==null&&(w=q.source._debugTask),q=q.value,M.push(["Error",typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q)])}r.key!==null&&ss("key",r.key,M,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,M,0,""),w==null&&(w=r._debugTask),r={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:r.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},w?w.run(performance.measure.bind(performance,"​"+x,r)):performance.measure("​"+x,r)}}}function cs(r,a,u,g,x){if(x!==null){if(kr){var w=ue(r);if(w!==null){g=[];for(var M=0;M<x.length;M++){var D=x[M].value;g.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r.key!==null&&ss("key",r.key,g,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,g,0,""),a={start:a,end:u,detail:{devtools:{color:"error",track:qs,tooltipText:"A lifecycle or effect errored",properties:g}}},(r=r._debugTask)?r.run(performance.measure.bind(performance,"​"+w,a)):performance.measure("​"+w,a)}}}else w=ue(r),w!==null&&kr&&(x=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(r=r._debugTask)?r.run(console.timeStamp.bind(console,w,a,u,qs,void 0,x)):console.timeStamp(w,a,u,qs,void 0,x))}function q8(r,a,u,g){if(kr&&!(a<=r)){var x=(u&738197653)===u?"tertiary-dark":"primary-dark";u=(u&536870912)===u?"Prepared":(u&201326741)===u?"Hydrated":"Render",g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,x)):console.timeStamp(u,r,a,$n,Pn,x)}}function j6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",r,a,$n,Pn,u)):console.timeStamp("Prewarm",r,a,$n,Pn,u))}function P6(r,a,u,g){!kr||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",r,a,$n,Pn,u)):console.timeStamp("Suspended",r,a,$n,Pn,u))}function G8(r,a,u,g,x,w){if(kr&&!(a<=r)){u=[];for(var M=0;M<g.length;M++){var D=g[M].value;u.push(["Recoverable Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"primary-dark",track:$n,trackGroup:Pn,tooltipText:x?"Hydration Failed":"Recovered after Error",properties:u}}},w?w.run(performance.measure.bind(performance,"Recovered",r)):performance.measure("Recovered",r)}}function t4(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,"Errored",r,a,$n,Pn,"error")):console.timeStamp("Errored",r,a,$n,Pn,"error"))}function F8(r,a,u,g){!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u,r,a,$n,Pn,"secondary-light")):console.timeStamp(u,r,a,$n,Pn,"secondary-light"))}function U6(r,a,u,g,x){if(kr&&!(a<=r)){for(var w=[],M=0;M<u.length;M++){var D=u[M].value;w.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r={start:r,end:a,detail:{devtools:{color:"error",track:$n,trackGroup:Pn,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:w}}},x?x.run(performance.measure.bind(performance,"Errored",r)):performance.measure("Errored",r)}}function n4(r,a,u){!kr||a<=r||console.timeStamp("Animating",r,a,$n,Pn,"secondary-dark")}function Jd(){for(var r=Vy,a=bA=Vy=0;a<r;){var u=Gs[a];Gs[a++]=null;var g=Gs[a];Gs[a++]=null;var x=Gs[a];Gs[a++]=null;var w=Gs[a];if(Gs[a++]=null,g!==null&&x!==null){var M=g.pending;M===null?x.next=x:(x.next=M.next,M.next=x),g.pending=x}w!==0&&i4(u,x,w)}}function pc(r,a,u,g){Gs[Vy++]=r,Gs[Vy++]=a,Gs[Vy++]=u,Gs[Vy++]=g,bA|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function r4(r,a,u,g){return pc(r,a,u,g),Wh(r)}function Fi(r,a){return pc(r,null,null,a),Wh(r)}function i4(r,a,u){r.lanes|=u;var g=r.alternate;g!==null&&(g.lanes|=u);for(var x=!1,w=r.return;w!==null;)w.childLanes|=u,g=w.alternate,g!==null&&(g.childLanes|=u),w.tag===22&&(r=w.stateNode,r===null||r._visibility&Kx||(x=!0)),r=w,w=w.return;return r.tag===3?(w=r.stateNode,x&&a!==null&&(x=31-ea(u),r=w.hiddenUpdates,g=r[x],g===null?r[x]=[a]:g.push(a),a.lane=u|536870912),w):null}function Wh(r){if(ES>Cfe)throw Nm=ES=0,TS=ZA=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.");Nm>Ofe&&(Nm=0,TS=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.")),r.alternate===null&&(r.flags&4098)!==0&&ox(r);for(var a=r,u=a.return;u!==null;)a.alternate===null&&(a.flags&4098)!==0&&ox(r),a=u,u=a.return;return a.tag===3?a.stateNode:null}function mc(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r:a.current}function n1(r){if(Fs===null)return r;var a=Fs(r);return a===void 0?r!=null&&typeof r.render=="function"&&(a=mc(r.render),r.render!==a)?(a={$$typeof:Nu,render:a},r.displayName!==void 0&&(a.displayName=r.displayName),a):r:a.current}function Of(r,a){if(Fs===null)return!1;var u=r.elementType;a=a.type;var g=!1,x=typeof a=="object"&&a!==null?a.$$typeof:null;switch(r.tag){case 1:typeof a=="function"&&(g=!0);break;case 0:(typeof a=="function"||x===si)&&(g=!0);break;case 11:(x===Nu||x===si)&&(g=!0);break;case 14:case 15:(x===ad||x===si)&&(g=!0);break;default:return!1}return!!(g&&(r=Fs(u),r!==void 0&&r===Fs(a)))}function $6(r){Fs!==null&&typeof WeakSet=="function"&&(By===null&&(By=new WeakSet),By.add(r))}function H6(r,a,u){do{var g=r,x=g.alternate,w=g.child,M=g.sibling,D=g.tag;g=g.type;var q=null;switch(D){case 0:case 15:case 1:q=g;break;case 11:q=g.render}if(Fs===null)throw Error("Expected resolveFamily to be set during hot reload.");var Q=!1;if(g=!1,q!==null&&(q=Fs(q),q!==void 0&&(u.has(q)?g=!0:a.has(q)&&(D===1?g=!0:Q=!0))),By!==null&&(By.has(r)||x!==null&&By.has(x))&&(g=!0),g&&(r._debugNeedsRemount=!0),(g||Q)&&(x=Fi(r,2),x!==null&&Br(x,r,2)),w===null||g||H6(w,a,u),M===null)break;r=M}while(!0)}function Y8(r,a,u,g){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=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,OI||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function r1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fs(r,a){var u=r.alternate;switch(u===null?(u=E(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u._debugOwner=r._debugOwner,u._debugStack=r._debugStack,u._debugTask=r._debugTask,u._debugHookTypes=r._debugHookTypes,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null,u.actualDuration=-0,u.actualStartTime=-1.1),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,a=r.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u.selfBaseDuration=r.selfBaseDuration,u.treeBaseDuration=r.treeBaseDuration,u._debugInfo=r._debugInfo,u._debugNeedsRemount=r._debugNeedsRemount,u.tag){case 0:case 15:u.type=mc(r.type);break;case 1:u.type=mc(r.type);break;case 11:u.type=n1(r.type)}return u}function e0(r,a){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},r.selfBaseDuration=u.selfBaseDuration,r.treeBaseDuration=u.treeBaseDuration),r}function Mf(r,a,u,g,x,w){var M=0,D=r;if(typeof r=="function")r1(r)&&(M=1),D=mc(D);else if(typeof r=="string")M=he(),M=_n(r,u,M)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case kx:return a=E(31,u,a,x),a.elementType=kx,a.lanes=w,a;case Ji:return ds(u.children,x,w,a);case z0:M=8,x|=co,x|=Lu;break;case my:return r=u,g=x,typeof r.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id),a=E(12,r,a,g|xn),a.elementType=my,a.lanes=w,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case uo:return a=E(13,u,a,x),a.elementType=uo,a.lanes=w,a;case yy:return a=E(19,u,a,x),a.elementType=yy,a.lanes=w,a;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Bl:M=10;break e;case gy:M=9;break e;case Nu:M=11,D=n1(D);break e;case ad:M=14;break e;case si:M=16,D=null;break e}D="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?u="null":Ei(r)?u="array":r!==void 0&&r.$$typeof===ol?(u="<"+(ce(r.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,(M=g?ie(g):null)&&(D+=`

Check the render method of \``+M+"`."),M=29,u=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(u+"."+D)),D=null}return a=E(M,u,a,x),a.elementType=r,a.type=D,a.lanes=w,a._debugOwner=g,a}function i1(r,a,u){return a=Mf(r.type,r.key,r.props,r._owner,a,u),a._debugOwner=r._owner,a._debugStack=r._debugStack,a._debugTask=r._debugTask,a}function ds(r,a,u,g){return r=E(7,r,g,a),r.lanes=u,r}function a1(r,a,u){return r=E(6,r,null,a),r.lanes=u,r}function a4(r){var a=E(18,null,null,Zt);return a.stateNode=r,a}function Kh(r,a,u){return a=E(4,r.children!==null?r.children:[],r.key,a),a.lanes=u,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function Ta(r,a){if(typeof r=="object"&&r!==null){var u=xA.get(r);return u!==void 0?u:(a={value:r,source:a,stack:He(a)},xA.set(r,a),a)}return{value:r,source:a,stack:He(a)}}function hs(r,a){gc(),jy[Py++]=Qx,jy[Py++]=Fw,Fw=r,Qx=a}function o4(r,a,u){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=ym,ym=r;var g=fd;r=dd;var x=32-ea(g)-1;g&=~(1<<x),u+=1;var w=32-ea(a)+x;if(30<w){var M=x-x%5;w=(g&(1<<M)-1).toString(32),g>>=M,x-=M,fd=1<<32-ea(a)+x|u<<x|g,dd=w+r}else fd=1<<w|u<<x|g,dd=r}function o1(r){gc(),r.return!==null&&(hs(r,1),o4(r,1,0))}function l4(r){for(;r===Fw;)Fw=jy[--Py],jy[Py]=null,Qx=jy[--Py],jy[Py]=null;for(;r===ym;)ym=Ys[--Xs],Ys[Xs]=null,dd=Ys[--Xs],Ys[Xs]=null,fd=Ys[--Xs],Ys[Xs]=null}function q6(){return gc(),ym!==null?{id:fd,overflow:dd}:null}function G6(r,a){gc(),Ys[Xs++]=fd,Ys[Xs++]=dd,Ys[Xs++]=ym,fd=a.id,dd=a.overflow,ym=r}function gc(){In||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Rf(r,a){if(r.return===null){if(Ul===null)Ul={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a};else{if(Ul.fiber!==r)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ul.distanceFromLeaf>a&&(Ul.distanceFromLeaf=a)}return Ul}var u=Rf(r.return,a+1).children;return 0<u.length&&u[u.length-1].fiber===r?(u=u[u.length-1],u.distanceFromLeaf>a&&(u.distanceFromLeaf=a),u):(a={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a},u.push(a),a)}function Xa(){In&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function yc(r,a){$c||(r=Rf(r,0),r.serverProps=null,a!==null&&(a=Ew(a),r.serverTail.push(a)))}function mu(r){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,u="",g=Ul;throw g!==null&&(Ul=null,u=Ph(g)),ps(Ta(Error("Hydration failed because the server rendered "+(a?"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`+u),r)),SA}function s4(r){var a=r.stateNode,u=r.type,g=r.memoizedProps;switch(a[na]=r,a[pa]=g,Ic(u,g),u){case"dialog":sn("cancel",a),sn("close",a);break;case"iframe":case"object":case"embed":sn("load",a);break;case"video":case"audio":for(u=0;u<AS.length;u++)sn(AS[u],a);break;case"source":sn("error",a);break;case"img":case"image":case"link":sn("error",a),sn("load",a);break;case"details":sn("toggle",a);break;case"input":Bn("input",g),sn("invalid",a),gf(a,g),O6(a,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"option":Ub(a,g);break;case"select":Bn("select",g),sn("invalid",a),yf(a,g);break;case"textarea":Bn("textarea",g),sn("invalid",a),vf(a,g),bf(a,g.value,g.defaultValue,g.children)}u=g.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||g.suppressHydrationWarning===!0||Fp(a.textContent,u)?(g.popover!=null&&(sn("beforetoggle",a),sn("toggle",a)),g.onScroll!=null&&sn("scroll",a),g.onScrollEnd!=null&&sn("scrollend",a),g.onClick!=null&&(a.onclick=Gi),a=!0):a=!1,a||mu(r,!0)}function u4(r){for(Ia=r.return;Ia;)switch(Ia.tag){case 5:case 31:case 13:Ws=!1;return;case 27:case 3:Ws=!0;return;default:Ia=Ia.return}}function _f(r){if(r!==Ia)return!1;if(!In)return u4(r),In=!0,!1;var a=r.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||Xp(r.type,r.memoizedProps)),u=!u),u&&zr){for(u=zr;u;){var g=Rf(r,0),x=Ew(u);g.serverTail.push(x),u=x.type==="Suspense"?Vc(u):Do(u.nextSibling)}mu(r)}if(u4(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");zr=Vc(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");zr=Vc(r)}else a===27?(a=zr,Du(r.type)?(r=cC,cC=null,zr=r):zr=a):zr=Ia?Do(r.stateNode.nextSibling):null;return!0}function gu(){zr=Ia=null,$c=In=!1}function c4(){var r=H0;return r!==null&&(jo===null?jo=r:jo.push.apply(jo,r),H0=null),r}function ps(r){H0===null?H0=[r]:H0.push(r)}function Qh(){var r=Ul;if(r!==null){Ul=null;for(var a=Ph(r);0<r.children.length;)r=r.children[0];Be(r.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",a)})}}function vc(){Uy=Yw=null,$y=!1}function ms(r,a,u){K(wA,a._currentValue,r),a._currentValue=u,K(EA,a._currentRenderer,r),a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==RI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=RI}function gs(r,a){r._currentValue=wA.current;var u=EA.current;le(EA,a),r._currentRenderer=u,le(wA,a)}function yu(r,a,u){for(;r!==null;){var g=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,g!==null&&(g.childLanes|=a)):g!==null&&(g.childLanes&a)!==a&&(g.childLanes|=a),r===u)break;r=r.return}r!==u&&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 bc(r,a,u,g){var x=r.child;for(x!==null&&(x.return=r);x!==null;){var w=x.dependencies;if(w!==null){var M=x.child;w=w.firstContext;e:for(;w!==null;){var D=w;w=x;for(var q=0;q<a.length;q++)if(D.context===a[q]){w.lanes|=u,D=w.alternate,D!==null&&(D.lanes|=u),yu(w.return,u,r),g||(M=null);break e}w=D.next}}else if(x.tag===18){if(M=x.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|=u,w=M.alternate,w!==null&&(w.lanes|=u),yu(M,u,r),M=null}else M=x.child;if(M!==null)M.return=x;else for(M=x;M!==null;){if(M===r){M=null;break}if(x=M.sibling,x!==null){x.return=M.return,M=x;break}M=M.return}x=M}}function xc(r,a,u,g){r=null;for(var x=a,w=!1;x!==null;){if(!w){if((x.flags&524288)!==0)w=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var M=x.alternate;if(M===null)throw Error("Should have a current fiber. This is a bug in React.");if(M=M.memoizedProps,M!==null){var D=x.type;Io(x.pendingProps.value,M.value)||(r!==null?r.push(D):r=[D])}}else if(x===om.current){if(M=x.alternate,M===null)throw Error("Should have a current fiber. This is a bug in React.");M.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(r!==null?r.push(_S):r=[_S])}x=x.return}r!==null&&bc(a,r,u,g),a.flags|=262144}function Zh(r){for(r=r.firstContext;r!==null;){if(!Io(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Eo(r){Yw=r,Uy=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function br(r){return $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()."),f4(Yw,r)}function Jh(r,a){return Yw===null&&Eo(r),f4(r,a)}function f4(r,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},Uy===null){if(r===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().");Uy=a,r.dependencies={lanes:0,firstContext:a,_debugThenableState:null},r.flags|=524288}else Uy=Uy.next=a;return u}function d4(){return{controller:new hfe,data:new Map,refCount:0}}function Df(r){r.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),r.refCount++}function ep(r){r.refCount--,0>r.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),r.refCount===0&&pfe(mfe,function(){r.controller.abort()})}function Ol(r,a,u){(r&127)!==0?0>Hc&&(Hc=Vi(),Jx=Xw(a),TA=a,u!=null&&(AA=ue(u)),(Gn&(ia|ql))!==ya&&(ui=!0,G0=Zx),r=A0(),a=T0(),r!==Hy||a!==eS?Hy=-1.1:a!==null&&(G0=Zx),xm=r,eS=a):(r&4194048)!==0&&0>Ks&&(Ks=Vi(),tS=Xw(a),_I=a,u!=null&&(DI=ue(u)),0>gd)&&(r=A0(),a=T0(),(r!==Y0||a!==Sm)&&(Y0=-1.1),F0=r,Sm=a)}function F6(r){if(0>Hc){Hc=Vi(),Jx=r._debugTask!=null?r._debugTask:null,(Gn&(ia|ql))!==ya&&(G0=Zx);var a=A0(),u=T0();a!==Hy||u!==eS?Hy=-1.1:u!==null&&(G0=Zx),xm=a,eS=u}0>Ks&&(Ks=Vi(),tS=r._debugTask!=null?r._debugTask:null,0>gd)&&(r=A0(),a=T0(),(r!==Y0||a!==Sm)&&(Y0=-1.1),F0=r,Sm=a)}function Ml(){var r=vm;return vm=0,r}function Wa(r){var a=vm;return vm=r,a}function Sc(r){var a=vm;return vm+=r,a}function Aa(){Xt=$t=-1.1}function zi(){var r=$t;return $t=-1.1,r}function Ca(r){0<=r&&($t=r)}function To(){var r=ei;return ei=-0,r}function Ao(r){0<=r&&(ei=r)}function Ko(){var r=jr;return jr=null,r}function oa(){var r=ui;return ui=!1,r}function l1(r){Lo=Vi(),0>r.actualStartTime&&(r.actualStartTime=Lo)}function t0(r){if(0<=Lo){var a=Vi()-Lo;r.actualDuration+=a,r.selfBaseDuration=a,Lo=-1}}function Nf(r){if(0<=Lo){var a=Vi()-Lo;r.actualDuration+=a,Lo=-1}}function ys(){if(0<=Lo){var r=Vi(),a=r-Lo;Lo=-1,vm+=a,ei+=a,Xt=r}}function Ka(r){jr===null&&(jr=[]),jr.push(r),pd===null&&(pd=[]),pd.push(r)}function Qo(){Lo=Vi(),0>$t&&($t=Lo)}function Co(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Y6(r,a){if(rS===null){var u=rS=[];OA=0,wm=Hn(),qy={status:"pending",value:void 0,then:function(g){u.push(g)}}}return OA++,a.then(tp,tp),a}function tp(){if(--OA===0&&(-1<Ks||(gd=-1.1),rS!==null)){qy!==null&&(qy.status="fulfilled");var r=rS;rS=null,wm=0,qy=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function kf(r,a){var u=[],g={status:"pending",value:null,reason:null,then:function(x){u.push(x)}};return r.then(function(){g.status="fulfilled",g.value=a;for(var x=0;x<u.length;x++)(0,u[x])(a)},function(x){for(g.status="rejected",g.reason=x,x=0;x<u.length;x++)(0,u[x])(void 0)}),g}function np(){var r=Em.current;return r!==null?r:Er.pooledCache}function rp(r,a){a===null?K(Em,Em.current,r):K(Em,a.pool,r)}function s1(){var r=np();return r===null?null:{parent:Li._currentValue,pool:r}}function h4(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Oo(r){return r=r.status,r==="fulfilled"||r==="rejected"}function zf(r,a,u){$e.actQueue!==null&&($e.didUsePromise=!0);var g=r.thenables;if(u=g[u],u===void 0?g.push(a):u!==a&&(r.didWarnAboutUncachedPromise||(r.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.")),a.then(Gi,Gi),a=u),a._debugInfo===void 0){r=performance.now(),g=a.displayName;var x={name:typeof g=="string"?g:"Promise",start:r,end:r,value:a};a._debugInfo=[{awaited:x}],a.status!=="fulfilled"&&a.status!=="rejected"&&(r=function(){x.end=performance.now()},a.then(r,r))}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,n0(r),r;default:if(typeof a.status=="string")a.then(Gi,Gi);else{if(r=Er,r!==null&&100<r.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.");r=a,r.status="pending",r.then(function(w){if(a.status==="pending"){var M=a;M.status="fulfilled",M.value=w}},function(w){if(a.status==="pending"){var M=a;M.status="rejected",M.reason=w}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,n0(r),r}throw Am=a,cS=!0,Gy}}function Mo(r){try{return xfe(r)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Am=a,cS=!0,Gy):a}}function ip(){if(Am===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var r=Am;return Am=null,cS=!1,r}function n0(r){if(r===Gy||r===nE)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 fr(r){var a=Sn;return r!=null&&(Sn=a===null?r:a.concat(r)),a}function Qa(){var r=Sn;if(r!=null){for(var a=r.length-1;0<=a;a--)if(r[a].name!=null){var u=r[a].debugTask;if(u!=null)return u}}return null}function Rl(r,a,u){for(var g=Object.keys(r.props),x=0;x<g.length;x++){var w=g[x];if(w!=="children"&&w!=="key"){a===null&&(a=i1(r,u.mode,0),a._debugInfo=Sn,a.return=u),Be(a,function(M){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M)},w);break}}}function Ro(r){var a=fS;return fS+=1,Fy===null&&(Fy=h4()),zf(Fy,r,a)}function Za(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function vs(r,a){throw a.$$typeof===Nx?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.`):(r=Object.prototype.toString.call(a),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead."))}function ap(r,a){var u=Qa();u!==null?u.run(vs.bind(null,r,a)):vs(r,a)}function u1(r,a){var u=ue(r)||"Component";QI[u]||(QI[u]=!0,a=a.displayName||a.name||"Component",r.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)`,a,a,a):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>`,a,a,u,a,u))}function r0(r,a){var u=Qa();u!==null?u.run(u1.bind(null,r,a)):u1(r,a)}function p4(r,a){var u=ue(r)||"Component";ZI[u]||(ZI[u]=!0,a=String(a),r.tag===3?console.error(`Symbols are not valid as a React child.
  root.render(%s)`,a):console.error(`Symbols are not valid as a React child.
  <%s>%s</%s>`,u,a,u))}function mi(r,a){var u=Qa();u!==null?u.run(p4.bind(null,r,a)):p4(r,a)}function xr(r){function a(pe,ye){if(r){var xe=pe.deletions;xe===null?(pe.deletions=[ye],pe.flags|=16):xe.push(ye)}}function u(pe,ye){if(!r)return null;for(;ye!==null;)a(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 x(pe,ye){return pe=fs(pe,ye),pe.index=0,pe.sibling=null,pe}function w(pe,ye,xe){return pe.index=xe,r?(xe=pe.alternate,xe!==null?(xe=xe.index,xe<ye?(pe.flags|=67108866,ye):xe):(pe.flags|=67108866,ye)):(pe.flags|=1048576,ye)}function M(pe){return r&&pe.alternate===null&&(pe.flags|=67108866),pe}function D(pe,ye,xe,Ge){return ye===null||ye.tag!==6?(ye=a1(xe,pe.mode,Ge),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=pe,ye._debugInfo=Sn,ye)}function q(pe,ye,xe,Ge){var bt=xe.type;return bt===Ji?(ye=we(pe,ye,xe.props.children,Ge,xe.key),Rl(xe,ye,pe),ye):ye!==null&&(ye.elementType===bt||Of(ye,xe)||typeof bt=="object"&&bt!==null&&bt.$$typeof===si&&Mo(bt)===ye.type)?(ye=x(ye,xe.props),Za(ye,xe),ye.return=pe,ye._debugOwner=xe._owner,ye._debugInfo=Sn,ye):(ye=i1(xe,pe.mode,Ge),Za(ye,xe),ye.return=pe,ye._debugInfo=Sn,ye)}function Q(pe,ye,xe,Ge){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==xe.containerInfo||ye.stateNode.implementation!==xe.implementation?(ye=Kh(xe,pe.mode,Ge),ye.return=pe,ye._debugInfo=Sn,ye):(ye=x(ye,xe.children||[]),ye.return=pe,ye._debugInfo=Sn,ye)}function we(pe,ye,xe,Ge,bt){return ye===null||ye.tag!==7?(ye=ds(xe,pe.mode,Ge,bt),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=Sn,ye):(ye=x(ye,xe),ye.return=pe,ye._debugInfo=Sn,ye)}function Ae(pe,ye,xe){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=a1(""+ye,pe.mode,xe),ye.return=pe,ye._debugOwner=pe,ye._debugTask=pe._debugTask,ye._debugInfo=Sn,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ol:return xe=i1(ye,pe.mode,xe),Za(xe,ye),xe.return=pe,pe=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=pe,xe;case k0:return ye=Kh(ye,pe.mode,xe),ye.return=pe,ye._debugInfo=Sn,ye;case si:var Ge=fr(ye._debugInfo);return ye=Mo(ye),pe=Ae(pe,ye,xe),Sn=Ge,pe}if(Ei(ye)||se(ye))return xe=ds(ye,pe.mode,xe,null),xe.return=pe,xe._debugOwner=pe,xe._debugTask=pe._debugTask,pe=fr(ye._debugInfo),xe._debugInfo=Sn,Sn=pe,xe;if(typeof ye.then=="function")return Ge=fr(ye._debugInfo),pe=Ae(pe,Ro(ye),xe),Sn=Ge,pe;if(ye.$$typeof===Bl)return Ae(pe,Jh(pe,ye),xe);ap(pe,ye)}return typeof ye=="function"&&r0(pe,ye),typeof ye=="symbol"&&mi(pe,ye),null}function ge(pe,ye,xe,Ge){var bt=ye!==null?ye.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return bt!==null?null:D(pe,ye,""+xe,Ge);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:return xe.key===bt?(bt=fr(xe._debugInfo),pe=q(pe,ye,xe,Ge),Sn=bt,pe):null;case k0:return xe.key===bt?Q(pe,ye,xe,Ge):null;case si:return bt=fr(xe._debugInfo),xe=Mo(xe),pe=ge(pe,ye,xe,Ge),Sn=bt,pe}if(Ei(xe)||se(xe))return bt!==null?null:(bt=fr(xe._debugInfo),pe=we(pe,ye,xe,Ge,null),Sn=bt,pe);if(typeof xe.then=="function")return bt=fr(xe._debugInfo),pe=ge(pe,ye,Ro(xe),Ge),Sn=bt,pe;if(xe.$$typeof===Bl)return ge(pe,ye,Jh(pe,xe),Ge);ap(pe,xe)}return typeof xe=="function"&&r0(pe,xe),typeof xe=="symbol"&&mi(pe,xe),null}function Le(pe,ye,xe,Ge,bt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return pe=pe.get(xe)||null,D(ye,pe,""+Ge,bt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case ol:return xe=pe.get(Ge.key===null?xe:Ge.key)||null,pe=fr(Ge._debugInfo),ye=q(ye,xe,Ge,bt),Sn=pe,ye;case k0:return pe=pe.get(Ge.key===null?xe:Ge.key)||null,Q(ye,pe,Ge,bt);case si:var on=fr(Ge._debugInfo);return Ge=Mo(Ge),ye=Le(pe,ye,xe,Ge,bt),Sn=on,ye}if(Ei(Ge)||se(Ge))return xe=pe.get(xe)||null,pe=fr(Ge._debugInfo),ye=we(ye,xe,Ge,bt,null),Sn=pe,ye;if(typeof Ge.then=="function")return on=fr(Ge._debugInfo),ye=Le(pe,ye,xe,Ro(Ge),bt),Sn=on,ye;if(Ge.$$typeof===Bl)return Le(pe,ye,xe,Jh(ye,Ge),bt);ap(ye,Ge)}return typeof Ge=="function"&&r0(ye,Ge),typeof Ge=="symbol"&&mi(ye,Ge),null}function gt(pe,ye,xe,Ge){if(typeof xe!="object"||xe===null)return Ge;switch(xe.$$typeof){case ol:case k0:S(pe,ye,xe);var bt=xe.key;if(typeof bt!="string")break;if(Ge===null){Ge=new Set,Ge.add(bt);break}if(!Ge.has(bt)){Ge.add(bt);break}Be(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.",bt)});break;case si:xe=Mo(xe),gt(pe,ye,xe,Ge)}return Ge}function wt(pe,ye,xe,Ge){for(var bt=null,on=null,Pt=null,Nt=ye,vn=ye=0,Ir=null;Nt!==null&&vn<xe.length;vn++){Nt.index>vn?(Ir=Nt,Nt=null):Ir=Nt.sibling;var Ci=ge(pe,Nt,xe[vn],Ge);if(Ci===null){Nt===null&&(Nt=Ir);break}bt=gt(pe,Ci,xe[vn],bt),r&&Nt&&Ci.alternate===null&&a(pe,Nt),ye=w(Ci,ye,vn),Pt===null?on=Ci:Pt.sibling=Ci,Pt=Ci,Nt=Ir}if(vn===xe.length)return u(pe,Nt),In&&hs(pe,vn),on;if(Nt===null){for(;vn<xe.length;vn++)Nt=Ae(pe,xe[vn],Ge),Nt!==null&&(bt=gt(pe,Nt,xe[vn],bt),ye=w(Nt,ye,vn),Pt===null?on=Nt:Pt.sibling=Nt,Pt=Nt);return In&&hs(pe,vn),on}for(Nt=g(Nt);vn<xe.length;vn++)Ir=Le(Nt,pe,vn,xe[vn],Ge),Ir!==null&&(bt=gt(pe,Ir,xe[vn],bt),r&&Ir.alternate!==null&&Nt.delete(Ir.key===null?vn:Ir.key),ye=w(Ir,ye,vn),Pt===null?on=Ir:Pt.sibling=Ir,Pt=Ir);return r&&Nt.forEach(function(Td){return a(pe,Td)}),In&&hs(pe,vn),on}function Rr(pe,ye,xe,Ge){if(xe==null)throw Error("An iterable object provided no iterator.");for(var bt=null,on=null,Pt=ye,Nt=ye=0,vn=null,Ir=null,Ci=xe.next();Pt!==null&&!Ci.done;Nt++,Ci=xe.next()){Pt.index>Nt?(vn=Pt,Pt=null):vn=Pt.sibling;var Td=ge(pe,Pt,Ci.value,Ge);if(Td===null){Pt===null&&(Pt=vn);break}Ir=gt(pe,Td,Ci.value,Ir),r&&Pt&&Td.alternate===null&&a(pe,Pt),ye=w(Td,ye,Nt),on===null?bt=Td:on.sibling=Td,on=Td,Pt=vn}if(Ci.done)return u(pe,Pt),In&&hs(pe,Nt),bt;if(Pt===null){for(;!Ci.done;Nt++,Ci=xe.next())Pt=Ae(pe,Ci.value,Ge),Pt!==null&&(Ir=gt(pe,Pt,Ci.value,Ir),ye=w(Pt,ye,Nt),on===null?bt=Pt:on.sibling=Pt,on=Pt);return In&&hs(pe,Nt),bt}for(Pt=g(Pt);!Ci.done;Nt++,Ci=xe.next())vn=Le(Pt,pe,Nt,Ci.value,Ge),vn!==null&&(Ir=gt(pe,vn,Ci.value,Ir),r&&vn.alternate!==null&&Pt.delete(vn.key===null?Nt:vn.key),ye=w(vn,ye,Nt),on===null?bt=vn:on.sibling=vn,on=vn);return r&&Pt.forEach(function(qfe){return a(pe,qfe)}),In&&hs(pe,Nt),bt}function Un(pe,ye,xe,Ge){if(typeof xe=="object"&&xe!==null&&xe.type===Ji&&xe.key===null&&(Rl(xe,null,pe),xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case ol:var bt=fr(xe._debugInfo);e:{for(var on=xe.key;ye!==null;){if(ye.key===on){if(on=xe.type,on===Ji){if(ye.tag===7){u(pe,ye.sibling),Ge=x(ye,xe.props.children),Ge.return=pe,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,Rl(xe,Ge,pe),pe=Ge;break e}}else if(ye.elementType===on||Of(ye,xe)||typeof on=="object"&&on!==null&&on.$$typeof===si&&Mo(on)===ye.type){u(pe,ye.sibling),Ge=x(ye,xe.props),Za(Ge,xe),Ge.return=pe,Ge._debugOwner=xe._owner,Ge._debugInfo=Sn,pe=Ge;break e}u(pe,ye);break}else a(pe,ye);ye=ye.sibling}xe.type===Ji?(Ge=ds(xe.props.children,pe.mode,Ge,xe.key),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Sn,Rl(xe,Ge,pe),pe=Ge):(Ge=i1(xe,pe.mode,Ge),Za(Ge,xe),Ge.return=pe,Ge._debugInfo=Sn,pe=Ge)}return pe=M(pe),Sn=bt,pe;case k0:e:{for(bt=xe,xe=bt.key;ye!==null;){if(ye.key===xe)if(ye.tag===4&&ye.stateNode.containerInfo===bt.containerInfo&&ye.stateNode.implementation===bt.implementation){u(pe,ye.sibling),Ge=x(ye,bt.children||[]),Ge.return=pe,pe=Ge;break e}else{u(pe,ye);break}else a(pe,ye);ye=ye.sibling}Ge=Kh(bt,pe.mode,Ge),Ge.return=pe,pe=Ge}return M(pe);case si:return bt=fr(xe._debugInfo),xe=Mo(xe),pe=Un(pe,ye,xe,Ge),Sn=bt,pe}if(Ei(xe))return bt=fr(xe._debugInfo),pe=wt(pe,ye,xe,Ge),Sn=bt,pe;if(se(xe)){if(bt=fr(xe._debugInfo),on=se(xe),typeof on!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Pt=on.call(xe);return Pt===xe?(pe.tag!==0||Object.prototype.toString.call(pe.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Pt)!=="[object Generator]")&&(WI||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."),WI=!0):xe.entries!==on||DA||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),DA=!0),pe=Rr(pe,ye,Pt,Ge),Sn=bt,pe}if(typeof xe.then=="function")return bt=fr(xe._debugInfo),pe=Un(pe,ye,Ro(xe),Ge),Sn=bt,pe;if(xe.$$typeof===Bl)return Un(pe,ye,Jh(pe,xe),Ge);ap(pe,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(bt=""+xe,ye!==null&&ye.tag===6?(u(pe,ye.sibling),Ge=x(ye,bt),Ge.return=pe,pe=Ge):(u(pe,ye),Ge=a1(bt,pe.mode,Ge),Ge.return=pe,Ge._debugOwner=pe,Ge._debugTask=pe._debugTask,Ge._debugInfo=Sn,pe=Ge),M(pe)):(typeof xe=="function"&&r0(pe,xe),typeof xe=="symbol"&&mi(pe,xe),u(pe,ye))}return function(pe,ye,xe,Ge){var bt=Sn;Sn=null;try{fS=0;var on=Un(pe,ye,xe,Ge);return Fy=null,on}catch(Ir){if(Ir===Gy||Ir===nE)throw Ir;var Pt=E(29,Ir,null,pe.mode);Pt.lanes=Ge,Pt.return=pe;var Nt=Pt._debugInfo=Sn;if(Pt._debugOwner=pe._debugOwner,Pt._debugTask=pe._debugTask,Nt!=null){for(var vn=Nt.length-1;0<=vn;vn--)if(typeof Nt[vn].stack=="string"){Pt._debugOwner=Nt[vn],Pt._debugTask=Nt[vn].debugTask;break}}return Pt}finally{Sn=bt}}}function kn(r,a){var u=Ei(r);return r=!u&&typeof se(r)=="function",u||r?(u=u?"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>",u,a,u),!1):!0}function bs(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ja(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xs(r){return{lane:r,tag:eL,payload:null,callback:null,next:null}}function Oa(r,a,u){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,kA===g&&!rL){var x=ue(r);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`,x),rL=!0}return(Gn&ia)!==ya?(x=g.pending,x===null?a.next=a:(a.next=x.next,x.next=a),g.pending=a,a=Wh(r),i4(r,null,u),a):(pc(r,g,a,u),Wh(r))}function i0(r,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,gn(r,u)}}function op(r,a){var u=r.updateQueue,g=r.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var x=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?x=w=M:w=w.next=M,u=u.next}while(u!==null);w===null?x=w=a:w=w.next=a}else x=w=a;u={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:w,shared:g.shared,callbacks:g.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=a:r.next=a,u.lastBaseUpdate=a}function Ss(){if(zA){var r=qy;if(r!==null)throw r}}function _l(r,a,u,g){zA=!1;var x=r.updateQueue;X0=!1,kA=x.shared;var w=x.firstBaseUpdate,M=x.lastBaseUpdate,D=x.shared.pending;if(D!==null){x.shared.pending=null;var q=D,Q=q.next;q.next=null,M===null?w=Q:M.next=Q,M=q;var we=r.alternate;we!==null&&(we=we.updateQueue,D=we.lastBaseUpdate,D!==M&&(D===null?we.firstBaseUpdate=Q:D.next=Q,we.lastBaseUpdate=q))}if(w!==null){var Ae=x.baseState;M=0,we=Q=q=null,D=w;do{var ge=D.lane&-536870913,Le=ge!==D.lane;if(Le?(wn&ge)===ge:(g&ge)===ge){ge!==0&&ge===wm&&(zA=!0),we!==null&&(we=we.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{ge=r;var gt=D,wt=a,Rr=u;switch(gt.tag){case tL:if(gt=gt.payload,typeof gt=="function"){$y=!0;var Un=gt.call(Rr,Ae,wt);if(ge.mode&co){ot(!0);try{gt.call(Rr,Ae,wt)}finally{ot(!1)}}$y=!1,Ae=Un;break e}Ae=gt;break e;case NA:ge.flags=ge.flags&-65537|128;case eL:if(Un=gt.payload,typeof Un=="function"){if($y=!0,gt=Un.call(Rr,Ae,wt),ge.mode&co){ot(!0);try{Un.call(Rr,Ae,wt)}finally{ot(!1)}}$y=!1}else gt=Un;if(gt==null)break e;Ae=yn({},Ae,gt);break e;case nL:X0=!0}}ge=D.callback,ge!==null&&(r.flags|=64,Le&&(r.flags|=8192),Le=x.callbacks,Le===null?x.callbacks=[ge]:Le.push(ge))}else Le={lane:ge,tag:D.tag,payload:D.payload,callback:D.callback,next:null},we===null?(Q=we=Le,q=Ae):we=we.next=Le,M|=ge;if(D=D.next,D===null){if(D=x.shared.pending,D===null)break;Le=D,D=Le.next,Le.next=null,x.lastBaseUpdate=Le,x.shared.pending=null}}while(!0);we===null&&(q=Ae),x.baseState=q,x.firstBaseUpdate=Q,x.lastBaseUpdate=we,w===null&&(x.shared.lanes=0),Q0|=M,r.lanes=M,r.memoizedState=Ae}kA=null}function c1(r,a){if(typeof r!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+r);r.call(a)}function lp(r,a){var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)c1(u[r],a)}function f1(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)c1(u[r],a)}function wc(r,a){var u=Gc;K(iE,u,r),K(Yy,a,r),Gc=u|a.baseLanes}function Dl(r){K(iE,Gc,r),K(Yy,Yy.current,r)}function ws(r){Gc=iE.current,le(Yy,r),le(iE,r)}function la(r){var a=r.alternate;K(Ai,Ai.current&Xy,r),K($l,r,r),Qs===null&&(a===null||Yy.current!==null||a.memoizedState!==null)&&(Qs=r)}function sp(r){K(Ai,Ai.current,r),K($l,r,r),Qs===null&&(Qs=r)}function d1(r){r.tag===22?(K(Ai,Ai.current,r),K($l,r,r),Qs===null&&(Qs=r)):_o(r)}function _o(r){K(Ai,Ai.current,r),K($l,$l.current,r)}function sa(r){le($l,r),Qs===r&&(Qs=null),le(Ai,r)}function Es(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||gx(u)||ny(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Vt(){var r=Pe;Js===null?Js=[r]:Js.push(r)}function rt(){var r=Pe;if(Js!==null&&(bd++,Js[bd]!==r)){var a=ue(an);if(!iL.has(a)&&(iL.add(a),Js!==null)){for(var u="",g=0;g<=bd;g++){var x=Js[g],w=g===bd?r:x;for(x=g+1+". "+x;30>x.length;)x+=" ";x+=w+`
`,u+=x}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   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,a,u)}}}function If(r){r==null||Ei(r)||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 r)}function h1(){var r=ue(an);oL.has(r)||(oL.add(r),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",r))}function Xr(){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 m4(r,a){if(pS)return!1;if(a===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;r.length!==a.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,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<a.length&&u<r.length;u++)if(!Io(r[u],a[u]))return!1;return!0}function Wr(r,a,u,g,x,w){yd=w,an=a,Js=r!==null?r._debugHookTypes:null,bd=-1,pS=r!==null&&r.type!==a.type,(Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")&&(w=ue(an),IA.has(w)||(IA.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+">"))),a.memoizedState=null,a.updateQueue=null,a.lanes=0,$e.H=r!==null&&r.memoizedState!==null?VA:Js!==null?lL:LA,Om=w=(a.mode&co)!==Zt;var M=MA(u,g,x);if(Om=!1,Ky&&(M=Lf(a,u,g,x)),w){ot(!0);try{M=Lf(a,u,g,x)}finally{ot(!1)}}return p1(r,a),M}function p1(r,a){a._debugHookTypes=Js,a.dependencies===null?vd!==null&&(a.dependencies={lanes:0,firstContext:null,_debugThenableState:vd}):a.dependencies._debugThenableState=vd,$e.H=mS;var u=wr!==null&&wr.next!==null;if(yd=0,Js=Pe=Bi=wr=an=null,bd=-1,r!==null&&(r.flags&65011712)!==(a.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),oE=!1,hS=0,vd=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||ji||(r=r.dependencies,r!==null&&Zh(r)&&(ji=!0)),cS?(cS=!1,r=!0):r=!1,r&&(a=ue(a)||"Unknown",aL.has(a)||IA.has(a)||(aL.add(a),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 Lf(r,a,u,g){an=r;var x=0;do{if(Ky&&(vd=null),hS=0,Ky=!1,x>=wfe)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(x+=1,pS=!1,Bi=wr=null,r.updateQueue!=null){var w=r.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}bd=-1,$e.H=sL,w=MA(a,u,g)}while(Ky);return w}function up(){var r=$e.H,a=r.useState()[0];return a=typeof a.then=="function"?a0(a):a,r=r.useState()[0],(wr!==null?wr.memoizedState:null)!==r&&(an.flags|=1024),a}function cp(){var r=lE!==0;return lE=0,r}function Ec(r,a,u){a.updateQueue=r.updateQueue,a.flags=(a.mode&Lu)!==Zt?a.flags&-402655237:a.flags&-2053,r.lanes&=~u}function Tc(r){if(oE){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}oE=!1}yd=0,Js=Bi=wr=an=null,bd=-1,Pe=null,Ky=!1,hS=lE=0,vd=null}function Ma(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bi===null?an.memoizedState=Bi=r:Bi=Bi.next=r,Bi}function Wn(){if(wr===null){var r=an.alternate;r=r!==null?r.memoizedState:null}else r=wr.next;var a=Bi===null?an.memoizedState:Bi.next;if(a!==null)Bi=a,wr=r;else{if(r===null)throw an.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.");wr=r,r={memoizedState:wr.memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},Bi===null?an.memoizedState=Bi=r:Bi=Bi.next=r}return Bi}function m1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function a0(r){var a=hS;return hS+=1,vd===null&&(vd=h4()),r=zf(vd,r,a),a=an,(Bi===null?a.memoizedState:Bi.next)===null&&(a=a.alternate,$e.H=a!==null&&a.memoizedState!==null?VA:LA),r}function eo(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return a0(r);if(r.$$typeof===Bl)return br(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function vu(r){var a=null,u=an.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var g=an.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(a={data:g.data.map(function(x){return x.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=m1(),an.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0||pS)for(u=a.data[a.index]=Array(r),g=0;g<r;g++)u[g]=eA;else u.length!==r&&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.",u.length,r);return a.index++,u}function to(r,a){return typeof a=="function"?a(r):a}function g1(r,a,u){var g=Ma();if(u!==void 0){var x=u(a);if(Om){ot(!0);try{u(a)}finally{ot(!1)}}}else x=a;return g.memoizedState=g.baseState=x,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:x},g.queue=r,r=r.dispatch=E4.bind(null,an,r),[g.memoizedState,r]}function Nl(r){var a=Wn();return fp(a,wr,r)}function fp(r,a,u){var g=r.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=u;var x=r.baseQueue,w=g.pending;if(w!==null){if(x!==null){var M=x.next;x.next=w.next,w.next=M}a.baseQueue!==x&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=x=w,g.pending=null}if(w=r.baseState,x===null)r.memoizedState=w;else{a=x.next;var D=M=null,q=null,Q=a,we=!1;do{var Ae=Q.lane&-536870913;if(Ae!==Q.lane?(wn&Ae)===Ae:(yd&Ae)===Ae){var ge=Q.revertLane;if(ge===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),Ae===wm&&(we=!0);else if((yd&ge)===ge){Q=Q.next,ge===wm&&(we=!0);continue}else Ae={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},q===null?(D=q=Ae,M=w):q=q.next=Ae,an.lanes|=ge,Q0|=ge;Ae=Q.action,Om&&u(w,Ae),w=Q.hasEagerState?Q.eagerState:u(w,Ae)}else ge={lane:Ae,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},q===null?(D=q=ge,M=w):q=q.next=ge,an.lanes|=Ae,Q0|=Ae;Q=Q.next}while(Q!==null&&Q!==a);if(q===null?M=w:q.next=D,!Io(w,r.memoizedState)&&(ji=!0,we&&(u=qy,u!==null)))throw u;r.memoizedState=w,r.baseState=M,r.baseQueue=q,g.lastRenderedState=w}return x===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Ac(r){var a=Wn(),u=a.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=r;var g=u.dispatch,x=u.pending,w=a.memoizedState;if(x!==null){u.pending=null;var M=x=x.next;do w=r(w,M.action),M=M.next;while(M!==x);Io(w,a.memoizedState)||(ji=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),u.lastRenderedState=w}return[w,g]}function o0(r,a,u){var g=an,x=Ma();if(In){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var w=u();Wy||w===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Wy=!0)}else{if(w=a(),Wy||(u=a(),Io(w,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wy=!0)),Er===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(wn&127)!==0||g4(g,a,w)}return x.memoizedState=w,u={value:w,getSnapshot:a},x.queue=u,gp(Oc.bind(null,g,u,r),[r]),g.flags|=2048,jf(Zs|Bo,{destroy:void 0},Cc.bind(null,g,u,w,a),null),w}function dp(r,a,u){var g=an,x=Wn(),w=In;if(w){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");u=u()}else if(u=a(),!Wy){var M=a();Io(u,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wy=!0)}(M=!Io((wr||x).memoizedState,u))&&(x.memoizedState=u,ji=!0),x=x.queue;var D=Oc.bind(null,g,x,r);if(Yi(2048,Bo,D,[r]),x.getSnapshot!==a||M||Bi!==null&&Bi.memoizedState.tag&Zs){if(g.flags|=2048,jf(Zs|Bo,{destroy:void 0},Cc.bind(null,g,x,u,a),null),Er===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w||(yd&127)!==0||g4(g,a,u)}return u}function g4(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=an.updateQueue,a===null?(a=m1(),an.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function Cc(r,a,u,g){a.value=u,a.getSnapshot=g,y4(a)&&v4(r)}function Oc(r,a,u){return u(function(){y4(a)&&(Ol(2,"updateSyncExternalStore()",r),v4(r))})}function y4(r){var a=r.getSnapshot;r=r.value;try{var u=a();return!Io(r,u)}catch{return!0}}function v4(r){var a=Fi(r,2);a!==null&&Br(a,r,2)}function Mc(r){var a=Ma();if(typeof r=="function"){var u=r;if(r=u(),Om){ot(!0);try{u()}finally{ot(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:r},a}function Vf(r){r=Mc(r);var a=r.queue,u=E1.bind(null,an,a);return a.dispatch=u,[r.memoizedState,u]}function l0(r){var a=Ma();a.memoizedState=a.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Xi.bind(null,an,!0,u),u.dispatch=a,[r,a]}function s0(r,a){var u=Wn();return hp(u,wr,r,a)}function hp(r,a,u,g){return r.baseState=u,fp(r,wr,typeof g=="function"?g:to)}function b4(r,a){var u=Wn();return wr!==null?hp(u,wr,r,a):(u.baseState=r,[r,u.queue.dispatch])}function Bf(r,a,u,g,x){if(Dr(r))throw Error("Cannot update form state while rendering.");if(r=a.action,r!==null){var w={payload:x,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){w.listeners.push(M)}};$e.T!==null?u(!0):w.isTransition=!1,g(w),u=a.pending,u===null?(w.next=a.pending=w,x4(a,w)):(w.next=u.next,a.pending=u.next=w)}}function x4(r,a){var u=a.action,g=a.payload,x=r.state;if(a.isTransition){var w=$e.T,M={};M._updatedFibers=new Set,$e.T=M;try{var D=u(x,g),q=$e.S;q!==null&&q(M,D),bu(r,a,D)}catch(Q){pp(r,a,Q)}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&&(r=M._updatedFibers.size,M._updatedFibers.clear(),10<r&&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=u(x,g),bu(r,a,M)}catch(Q){pp(r,a,Q)}}function bu(r,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?($e.asyncTransitions++,u.then(Eu,Eu),u.then(function(g){y1(r,a,g)},function(g){return pp(r,a,g)}),a.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.")):y1(r,a,u)}function y1(r,a,u){a.status="fulfilled",a.value=u,xu(a),r.state=u,a=r.pending,a!==null&&(u=a.next,u===a?r.pending=null:(u=u.next,a.next=u,x4(r,u)))}function pp(r,a,u){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do a.status="rejected",a.reason=u,xu(a),a=a.next;while(a!==g)}r.action=null}function xu(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Su(r,a){return a}function Ts(r,a){if(In){var u=Er.formState;if(u!==null){e:{var g=an;if(In){if(zr){t:{for(var x=zr,w=Ws;x.nodeType!==8;){if(!w){x=null;break t}if(x=Do(x.nextSibling),x===null){x=null;break t}}w=x.data,x=w===oC||w===YL?x:null}if(x){zr=Do(x.nextSibling),g=x.data===oC;break e}}mu(g)}g=!1}g&&(a=u[0])}}return u=Ma(),u.memoizedState=u.baseState=a,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:a},u.queue=g,u=E1.bind(null,an,g),g.dispatch=u,g=Mc(!1),w=Xi.bind(null,an,!1,g.queue),g=Ma(),x={state:a,dispatch:null,action:r,pending:null},g.queue=x,u=Bf.bind(null,an,x,w,u),x.dispatch=u,g.memoizedState=r,[a,u,!1]}function u0(r){var a=Wn();return v1(a,wr,r)}function v1(r,a,u){if(a=fp(r,a,Su)[0],r=Nl(to)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var g=a0(a)}catch(M){throw M===Gy?nE:M}else g=a;a=Wn();var x=a.queue,w=x.dispatch;return u!==a.memoizedState&&(an.flags|=2048,jf(Zs|Bo,{destroy:void 0},mp.bind(null,x,u),null)),[g,w,r]}function mp(r,a){r.action=a}function Rc(r){var a=Wn(),u=wr;if(u!==null)return v1(a,u,r);Wn(),a=a.memoizedState,u=Wn();var g=u.queue.dispatch;return u.memoizedState=r,[a,g,!1]}function jf(r,a,u,g){return r={tag:r,create:u,deps:g,inst:a,next:null},a=an.updateQueue,a===null&&(a=m1(),an.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=r.next=r:(g=u.next,u.next=r,r.next=g,a.lastEffect=r),r}function b1(r){var a=Ma();return r={current:r},a.memoizedState=r}function Zo(r,a,u,g){var x=Ma();an.flags|=r,x.memoizedState=jf(Zs|a,{destroy:void 0},u,g===void 0?null:g)}function Yi(r,a,u,g){var x=Wn();g=g===void 0?null:g;var w=x.memoizedState.inst;wr!==null&&g!==null&&m4(g,wr.memoizedState.deps)?x.memoizedState=jf(a,w,u,g):(an.flags|=r,x.memoizedState=jf(Zs|a,w,u,g))}function gp(r,a){(an.mode&Lu)!==Zt?Zo(276826112,Bo,r,a):Zo(8390656,Bo,r,a)}function S4(r){an.flags|=4;var a=an.updateQueue;if(a===null)a=m1(),an.updateQueue=a,a.events=[r];else{var u=a.events;u===null?a.events=[r]:u.push(r)}}function yp(r){var a=Ma(),u={impl:r};return a.memoizedState=u,function(){if((Gn&ia)!==ya)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return u.impl.apply(void 0,arguments)}}function ua(r){var a=Wn().memoizedState;return S4({ref:a,nextImpl:r}),function(){if((Gn&ia)!==ya)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function no(r,a){var u=4194308;return(an.mode&Lu)!==Zt&&(u|=134217728),Zo(u,Hl,r,a)}function wu(r,a){if(typeof a=="function"){r=r();var u=a(r);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return a.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(a).join(", ")+"}"),r=r(),a.current=r,function(){a.current=null}}function vp(r,a,u){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),u=u!=null?u.concat([r]):null;var g=4194308;(an.mode&Lu)!==Zt&&(g|=134217728),Zo(g,Hl,wu.bind(null,a,r),u)}function bp(r,a,u){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),u=u!=null?u.concat([r]):null,Yi(4,Hl,wu.bind(null,a,r),u)}function As(r,a){return Ma().memoizedState=[r,a===void 0?null:a],r}function ca(r,a){var u=Wn();a=a===void 0?null:a;var g=u.memoizedState;return a!==null&&m4(a,g[1])?g[0]:(u.memoizedState=[r,a],r)}function Lr(r,a){var u=Ma();a=a===void 0?null:a;var g=r();if(Om){ot(!0);try{r()}finally{ot(!1)}}return u.memoizedState=[g,a],g}function Pf(r,a){var u=Wn();a=a===void 0?null:a;var g=u.memoizedState;if(a!==null&&m4(a,g[1]))return g[0];if(g=r(),Om){ot(!0);try{r()}finally{ot(!1)}}return u.memoizedState=[g,a],g}function kl(r,a){var u=Ma();return Kr(u,r,a)}function cn(r,a){var u=Wn();return xp(u,wr.memoizedState,r,a)}function nr(r,a){var u=Wn();return wr===null?Kr(u,r,a):xp(u,wr.memoizedState,r,a)}function Kr(r,a,u){return u===void 0||(yd&1073741824)!==0&&(wn&261930)===0?r.memoizedState=a:(r.memoizedState=u,r=Sr(),an.lanes|=r,Q0|=r,u)}function xp(r,a,u,g){return Io(u,a)?u:Yy.current!==null?(r=Kr(r,u,g),Io(r,a)||(ji=!0),r):(yd&42)===0||(yd&1073741824)!==0&&(wn&261930)===0?(ji=!0,r.memoizedState=u):(r=Sr(),an.lanes|=r,Q0|=r,a)}function Eu(){$e.asyncTransitions--}function _c(r,a,u,g,x){var w=Qn.p;Qn.p=w!==0&&w<ta?w:ta;var M=$e.T,D={};D._updatedFibers=new Set,$e.T=D,Xi(r,!1,a,u);try{var q=x(),Q=$e.S;if(Q!==null&&Q(D,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){$e.asyncTransitions++,q.then(Eu,Eu);var we=kf(q,g);$f(r,a,we,Qi(r))}else $f(r,a,g,Qi(r))}catch(Ae){$f(r,a,{then:function(){},status:"rejected",reason:Ae},Qi(r))}finally{Qn.p=w,M!==null&&D.types!==null&&(M.types!==null&&M.types!==D.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=D.types),$e.T=M,M===null&&D._updatedFibers&&(r=D._updatedFibers.size,D._updatedFibers.clear(),10<r&&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 c0(r,a,u,g){if(r.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var x=f0(r).queue;F6(r),_c(r,x,a,Bm,u===null?v:function(){return Uf(r),u(g)})}function f0(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Bm,baseState:Bm,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:Bm},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:u},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Uf(r){$e.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var a=f0(r);a.next===null&&(a=r.alternate.memoizedState),$f(r,a.next.queue,{},Qi(r))}function w4(){var r=Mc(!1);return r=_c.bind(null,an,r.queue,!0,!1),Ma().memoizedState=r,[!1,r]}function Vr(){var r=Nl(to)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:a0(r),a]}function x1(){var r=Ac(to)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:a0(r),a]}function Tu(){return br(_S)}function S1(){var r=Ma(),a=Er.identifierPrefix;if(In){var u=dd,g=fd;u=(g&~(1<<32-ea(g)-1)).toString(32)+u,a="_"+a+"R_"+u,u=lE++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=Sfe++,a="_"+a+"r_"+u.toString(32)+"_";return r.memoizedState=a}function w1(){return Ma().memoizedState=X8.bind(null,an)}function X8(r,a){for(var u=r.return;u!==null;){switch(u.tag){case 24:case 3:var g=Qi(u),x=xs(g),w=Oa(u,x,g);w!==null&&(Ol(g,"refresh()",r),Br(w,u,g),i0(w,u,g)),r=d4(),a!=null&&w!==null&&console.error("The seed argument is not enabled outside experimental channels."),x.payload={cache:r};return}u=u.return}}function E4(r,a,u){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=Qi(r);var x={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};Dr(r)?Sp(a,x):(x=r4(r,a,x,g),x!==null&&(Ol(g,"dispatch()",r),Br(x,r,g),d0(x,a,g)))}function E1(r,a,u){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=Qi(r),$f(r,a,u,g)&&Ol(g,"setState()",r)}function $f(r,a,u,g){var x={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Dr(r))Sp(a,x);else{var w=r.alternate;if(r.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null)){var M=$e.H;$e.H=Bu;try{var D=a.lastRenderedState,q=w(D,u);if(x.hasEagerState=!0,x.eagerState=q,Io(q,D))return pc(r,a,x,0),Er===null&&Jd(),!1}catch{}finally{$e.H=M}}if(u=r4(r,a,x,g),u!==null)return Br(u,r,g),d0(u,a,g),!0}return!1}function Xi(r,a,u,g){if($e.T===null&&wm===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:Hn(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Dr(r)){if(a)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else a=r4(r,u,g,2),a!==null&&(Ol(2,"setOptimistic()",r),Br(a,r,2))}function Dr(r){var a=r.alternate;return r===an||a!==null&&a===an}function Sp(r,a){Ky=oE=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function d0(r,a,u){if((u&4194048)!==0){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,gn(r,u)}}function h0(r){if(r!==null&&typeof r!="function"){var a=String(r);bL.has(a)||(bL.add(a),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function wp(r,a,u,g){var x=r.memoizedState,w=u(g,x);if(r.mode&co){ot(!0);try{w=u(g,x)}finally{ot(!1)}}w===void 0&&(a=ce(a)||"Component",mL.has(a)||(mL.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))),x=w==null?x:yn({},x,w),r.memoizedState=x,r.lanes===0&&(r.updateQueue.baseState=x)}function Cs(r,a,u,g,x,w,M){var D=r.stateNode;if(typeof D.shouldComponentUpdate=="function"){if(u=D.shouldComponentUpdate(g,w,M),r.mode&co){ot(!0);try{u=D.shouldComponentUpdate(g,w,M)}finally{ot(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(a)||"Component"),u}return a.prototype&&a.prototype.isPureReactComponent?!Xh(u,g)||!Xh(x,w):!0}function Ep(r,a,u,g){var x=a.state;typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,g),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,g),a.state!==x&&(r=ue(r)||"Component",cL.has(r)||(cL.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),BA.enqueueReplaceState(a,a.state,null))}function Au(r,a){var u=a;if("ref"in a){u={};for(var g in a)g!=="ref"&&(u[g]=a[g])}if(r=r.defaultProps){u===a&&(u=yn({},u));for(var x in r)u[x]===void 0&&(u[x]=r[x])}return u}function T1(r){mA(r),console.warn(`%s

%s
`,Qy?"An error occurred in the <"+Qy+"> 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 T4(r){var a=Qy?"The above error occurred in the <"+Qy+"> component.":"The above error occurred in one of your React components.",u="React will try to recreate this component tree from scratch using the error boundary you provided, "+((jA||"Anonymous")+".");if(typeof r=="object"&&r!==null&&typeof r.environmentName=="string"){var g=r.environmentName;r=[`%o

%s

%s
`,r,a,u].slice(0),typeof r[0]=="string"?r.splice(0,1,tV+" "+r[0],nV,NE+g+NE,rV):r.splice(0,0,tV,nV,NE+g+NE,rV),r.unshift(console),g=$fe.apply(console.error,r),g()}else console.error(`%o

%s

%s
`,r,a,u)}function A4(r){mA(r)}function Tp(r,a){try{Qy=a.source?ue(a.source):null,jA=null;var u=a.value;if($e.actQueue!==null)$e.thrownErrors.push(u);else{var g=r.onUncaughtError;g(u,{componentStack:a.stack})}}catch(x){setTimeout(function(){throw x})}}function C4(r,a,u){try{Qy=u.source?ue(u.source):null,jA=ue(a);var g=r.onCaughtError;g(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function A1(r,a,u){return u=xs(u),u.tag=NA,u.payload={element:null},u.callback=function(){Be(a.source,Tp,r,a)},u}function C1(r){return r=xs(r),r.tag=NA,r}function Ap(r,a,u,g){var x=u.type.getDerivedStateFromError;if(typeof x=="function"){var w=g.value;r.payload=function(){return x(w)},r.callback=function(){$6(u),Be(g.source,C4,a,u,g)}}var M=u.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(r.callback=function(){$6(u),Be(g.source,C4,a,u,g),typeof x!="function"&&(J0===null?J0=new Set([this]):J0.add(this)),yfe(this,g),typeof x=="function"||(u.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(u)||"Unknown")})}function X6(r,a,u,g,x){if(u.flags|=32768,ul&&Ls(r,x),g!==null&&typeof g=="object"&&typeof g.then=="function"){if(a=u.alternate,a!==null&&xc(a,u,x,!0),In&&($c=!0),u=$l.current,u!==null){switch(u.tag){case 31:case 13:return Qs===null?Kf():u.alternate===null&&ti===Sd&&(ti=cE),u.flags&=-257,u.flags|=65536,u.lanes=x,g===rE?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([g]):a.add(g),da(r,g,x)),!1;case 22:return u.flags|=65536,g===rE?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([g])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([g]):u.add(g)),da(r,g,x)),!1}throw Error("Unexpected Suspense handler tag ("+u.tag+"). This is a bug in React.")}return da(r,g,x),Kf(),!1}if(In)return $c=!0,a=$l.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=x,g!==SA&&ps(Ta(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:g}),u))):(g!==SA&&ps(Ta(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:g}),u)),r=r.current.alternate,r.flags|=65536,x&=-x,r.lanes|=x,g=Ta(g,u),x=A1(r.stateNode,g,x),op(r,x),ti!==W0&&(ti=Mm)),!1;var w=Ta(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:g}),u);if(SS===null?SS=[w]:SS.push(w),ti!==W0&&(ti=Mm),a===null)return!0;g=Ta(g,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,r=x&-x,u.lanes|=r,r=A1(u.stateNode,g,r),op(u,r),!1;case 1:if(a=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(J0===null||!J0.has(w))))return u.flags|=65536,x&=-x,u.lanes|=x,x=C1(x),Ap(x,r,u,g),op(u,x),!1}u=u.return}while(u!==null);return!1}function Wi(r,a,u,g){a.child=r===null?JI(a,null,u,g):Cm(a,r.child,u,g)}function O4(r,a,u,g,x){u=u.render;var w=a.ref;if("ref"in g){var M={};for(var D in g)D!=="ref"&&(M[D]=g[D])}else M=g;return Eo(a),g=Wr(r,a,u,M,w,x),D=cp(),r!==null&&!ji?(Ec(r,a,x),Os(r,a,x)):(In&&D&&o1(a),a.flags|=1,Wi(r,a,g,x),a.child)}function M4(r,a,u,g,x){if(r===null){var w=u.type;return typeof w=="function"&&!r1(w)&&w.defaultProps===void 0&&u.compare===null?(u=mc(w),a.tag=15,a.type=u,m0(a,w),R4(r,a,u,g,x)):(r=Mf(u.type,null,g,a,a.mode,x),r.ref=a.ref,r.return=a,a.child=r)}if(w=r.child,!I1(r,x)){var M=w.memoizedProps;if(u=u.compare,u=u!==null?u:Xh,u(M,g)&&r.ref===a.ref)return Os(r,a,x)}return a.flags|=1,r=fs(w,g),r.ref=a.ref,r.return=a,a.child=r}function R4(r,a,u,g,x){if(r!==null){var w=r.memoizedProps;if(Xh(w,g)&&r.ref===a.ref&&a.type===r.type)if(ji=!1,a.pendingProps=g=w,I1(r,x))(r.flags&131072)!==0&&(ji=!0);else return a.lanes=r.lanes,Os(r,a,x)}return R1(r,a,u,g,x)}function O1(r,a,u,g){var x=g.children,w=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:Kx,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((a.flags&128)!==0){if(w=w!==null?w.baseLanes|u:u,r!==null){for(g=a.child=r.child,x=0;g!==null;)x=x|g.lanes|g.childLanes,g=g.sibling;g=x&~w}else g=0,a.child=null;return _4(r,a,w,u,g)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&rp(a,w!==null?w.cachePool:null),w!==null?wc(a,w):Dl(a),d1(a);else return g=a.lanes=536870912,_4(r,a,w!==null?w.baseLanes|u:u,u,g)}else w!==null?(rp(a,w.cachePool),wc(a,w),_o(a),a.memoizedState=null):(r!==null&&rp(a,null),Dl(a),_o(a));return Wi(r,a,x,u),a.child}function p0(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:Kx,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function _4(r,a,u,g,x){var w=np();return w=w===null?null:{parent:Li._currentValue,pool:w},a.memoizedState={baseLanes:u,cachePool:w},r!==null&&rp(a,null),Dl(a),d1(a),r!==null&&xc(r,a,g,!0),a.childLanes=x,null}function Cp(r,a){var u=a.hidden;return u!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,u===!0?"hidden":u===!1?"hidden={false}":"hidden={...}",u?'mode="hidden"':'mode="visible"'),a=Rp({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function D4(r,a,u){return Cm(a,r.child,null,u),r=Cp(a,a.pendingProps),r.flags|=2,sa(a),a.memoizedState=null,r}function W6(r,a,u){var g=a.pendingProps,x=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(In){if(g.mode==="hidden")return r=Cp(a,g),a.lanes=536870912,p0(null,r);if(sp(a),(r=zr)?(u=ty(r,Ws),u=u!==null&&u.data===zm?u:null,u!==null&&(g={dehydrated:u,treeContext:q6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return a.lanes=536870912,null}return Cp(a,g)}var w=r.memoizedState;if(w!==null){var M=w.dehydrated;if(sp(a),x)if(a.flags&256)a.flags&=-257,a=D4(r,a,u);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Xa(),(u&536870912)!==0&&S0(a),ji||xc(r,a,u,!1),x=(u&r.childLanes)!==0,ji||x){if(g=Er,g!==null&&(M=kt(g,u),M!==0&&M!==w.retryLane))throw w.retryLane=M,Fi(r,M),Br(g,r,M),PA;Kf(),a=D4(r,a,u)}else r=w.treeContext,zr=Do(M.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!1,r!==null&&G6(a,r),a=Cp(a,g),a.flags|=4096;return a}return w=r.child,g={mode:g.mode,children:g.children},(u&536870912)!==0&&(u&r.lanes)!==0&&S0(a),r=fs(w,g),r.ref=a.ref,a.child=r,r.return=a,r}function M1(r,a){var u=a.ref;if(u===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(r===null||r.ref!==u)&&(a.flags|=4194816)}}function R1(r,a,u,g,x){if(u.prototype&&typeof u.prototype.render=="function"){var w=ce(u)||"Unknown";xL[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),xL[w]=!0)}return a.mode&co&&Vu.recordLegacyContextWarning(a,null),r===null&&(m0(a,a.type),u.contextTypes&&(w=ce(u)||"Unknown",wL[w]||(wL[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)))),Eo(a),u=Wr(r,a,u,g,void 0,x),g=cp(),r!==null&&!ji?(Ec(r,a,x),Os(r,a,x)):(In&&g&&o1(a),a.flags|=1,Wi(r,a,u,x),a.child)}function Hf(r,a,u,g,x,w){return Eo(a),bd=-1,pS=r!==null&&r.type!==a.type,a.updateQueue=null,u=Lf(a,g,u,x),p1(r,a),g=cp(),r!==null&&!ji?(Ec(r,a,w),Os(r,a,w)):(In&&g&&o1(a),a.flags|=1,Wi(r,a,u,w),a.child)}function N4(r,a,u,g,x){switch(d(a)){case!1:var w=a.stateNode,M=new a.type(a.memoizedProps,w.context).state;w.updater.enqueueSetState(w,M,null);break;case!0:a.flags|=128,a.flags|=65536,w=Error("Simulated error coming from DevTools");var D=x&-x;if(a.lanes|=D,M=Er,M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");D=C1(D),Ap(D,M,a,Ta(w,a)),op(a,D)}if(Eo(a),a.stateNode===null){if(M=$0,w=u.contextType,"contextType"in u&&w!==null&&(w===void 0||w.$$typeof!==Bl)&&!vL.has(u)&&(vL.add(u),D=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===gy?" 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(u)||"Component",D)),typeof w=="object"&&w!==null&&(M=br(w)),w=new u(g,M),a.mode&co){ot(!0);try{w=new u(g,M)}finally{ot(!1)}}if(M=a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=BA,a.stateNode=w,w._reactInternals=a,w._reactInternalInstance=uL,typeof u.getDerivedStateFromProps=="function"&&M===null&&(M=ce(u)||"Component",fL.has(M)||(fL.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 u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"){var q=D=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?D="componentWillReceiveProps":typeof w.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof w.componentWillUpdate=="function"&&w.componentWillUpdate.__suppressDeprecationWarning!==!0?q="componentWillUpdate":typeof w.UNSAFE_componentWillUpdate=="function"&&(q="UNSAFE_componentWillUpdate"),M!==null||D!==null||q!==null){w=ce(u)||"Component";var Q=typeof u.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";hL.has(w)||(hL.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,Q,M!==null?`
  `+M:"",D!==null?`
  `+D:"",q!==null?`
  `+q:""))}}w=a.stateNode,M=ce(u)||"Component",w.render||(u.prototype&&typeof u.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),u.childContextTypes&&!yL.has(u)&&(yL.add(u),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)),u.contextTypes&&!gL.has(u)&&(gL.add(u),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),u.prototype&&u.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(u)||"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),D=w.props!==g,w.props!==void 0&&D&&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"||dL.has(u)||(dL.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(u))),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 u.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M),(D=w.state)&&(typeof D!="object"||Ei(D))&&console.error("%s.state: must be set to an object or null",M),typeof w.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),w=a.stateNode,w.props=g,w.state=a.memoizedState,w.refs={},bs(a),M=u.contextType,w.context=typeof M=="object"&&M!==null?br(M):$0,w.state===g&&(M=ce(u)||"Component",pL.has(M)||(pL.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))),a.mode&co&&Vu.recordLegacyContextWarning(a,w),Vu.recordUnsafeLifecycleWarnings(a,w),w.state=a.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(wp(a,u,M,g),w.state=a.memoizedState),typeof u.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(a)||"Component"),BA.enqueueReplaceState(w,w.state,null)),_l(a,g,w,x),Ss(),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),w=!0}else if(r===null){w=a.stateNode;var we=a.memoizedProps;D=Au(u,we),w.props=D;var Ae=w.context;q=u.contextType,M=$0,typeof q=="object"&&q!==null&&(M=br(q)),Q=u.getDerivedStateFromProps,q=typeof Q=="function"||typeof w.getSnapshotBeforeUpdate=="function",we=a.pendingProps!==we,q||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(we||Ae!==M)&&Ep(a,w,g,M),X0=!1;var ge=a.memoizedState;w.state=ge,_l(a,g,w,x),Ss(),Ae=a.memoizedState,we||ge!==Ae||X0?(typeof Q=="function"&&(wp(a,u,Q,g),Ae=a.memoizedState),(D=X0||Cs(a,u,D,g,ge,Ae,M))?(q||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"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728)):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),a.memoizedProps=g,a.memoizedState=Ae),w.props=g,w.state=Ae,w.context=M,w=D):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Lu)!==Zt&&(a.flags|=134217728),w=!1)}else{w=a.stateNode,Ja(r,a),M=a.memoizedProps,q=Au(u,M),w.props=q,Q=a.pendingProps,ge=w.context,Ae=u.contextType,D=$0,typeof Ae=="object"&&Ae!==null&&(D=br(Ae)),we=u.getDerivedStateFromProps,(Ae=typeof we=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==Q||ge!==D)&&Ep(a,w,g,D),X0=!1,ge=a.memoizedState,w.state=ge,_l(a,g,w,x),Ss();var Le=a.memoizedState;M!==Q||ge!==Le||X0||r!==null&&r.dependencies!==null&&Zh(r.dependencies)?(typeof we=="function"&&(wp(a,u,we,g),Le=a.memoizedState),(q=X0||Cs(a,u,q,g,ge,Le,D)||r!==null&&r.dependencies!==null&&Zh(r.dependencies))?(Ae||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(g,Le,D),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(g,Le,D)),typeof w.componentDidUpdate=="function"&&(a.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=Le),w.props=g,w.state=Le,w.context=D,w=q):(typeof w.componentDidUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),w=!1)}if(D=w,M1(r,a),M=(a.flags&128)!==0,D||M){if(D=a.stateNode,Re(a),M&&typeof u.getDerivedStateFromError!="function")u=null,Lo=-1;else if(u=jI(D),a.mode&co){ot(!0);try{jI(D)}finally{ot(!1)}}a.flags|=1,r!==null&&M?(a.child=Cm(a,r.child,null,x),a.child=Cm(a,null,u,x)):Wi(r,a,u,x),a.memoizedState=D.state,r=a.child}else r=Os(r,a,x);return x=a.stateNode,w&&x.props!==g&&(Zy||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(a)||"a component"),Zy=!0),r}function Op(r,a,u,g){return gu(),a.flags|=256,Wi(r,a,u,g),a.child}function m0(r,a){a&&a.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
  %s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(r=ce(a)||"Unknown",EL[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),EL[r]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=ce(a)||"Unknown",SL[a]||(console.error("%s: Function components do not support contextType.",a),SL[a]=!0))}function _1(r){return{baseLanes:r,cachePool:s1()}}function Mp(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=hl),r}function K6(r,a,u){var g,x=a.pendingProps;c(a)&&(a.flags|=128);var w=!1,M=(a.flags&128)!==0;if((g=M)||(g=r!==null&&r.memoizedState===null?!1:(Ai.current&dS)!==0),g&&(w=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,r===null){if(In){if(w?la(a):_o(a),(r=zr)?(u=ty(r,Ws),u=u!==null&&u.data!==zm?u:null,u!==null&&(g={dehydrated:u,treeContext:q6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Ia=a,zr=null)):u=null,u===null)throw yc(a,r),mu(a);return ny(u)?a.lanes=32:a.lanes=536870912,null}var D=x.children;if(x=x.fallback,w){_o(a);var q=a.mode;return D=Rp({mode:"hidden",children:D},q),x=ds(x,q,u,null),D.return=a,x.return=a,D.sibling=x,a.child=D,x=a.child,x.memoizedState=_1(u),x.childLanes=Mp(r,g,u),a.memoizedState=UA,p0(null,x)}return la(a),D1(a,D)}var Q=r.memoizedState;if(Q!==null){var we=Q.dehydrated;if(we!==null){if(M)a.flags&256?(la(a),a.flags&=-257,a=N1(r,a,u)):a.memoizedState!==null?(_o(a),a.child=r.child,a.flags|=128,a=null):(_o(a),D=x.fallback,q=a.mode,x=Rp({mode:"visible",children:x.children},q),D=ds(D,q,u,null),D.flags|=2,x.return=a,D.return=a,x.sibling=D,a.child=x,Cm(a,r.child,null,u),x=a.child,x.memoizedState=_1(u),x.childLanes=Mp(r,g,u),a.memoizedState=UA,a=p0(null,x));else if(la(a),Xa(),(u&536870912)!==0&&S0(a),ny(we)){if(g=we.nextSibling&&we.nextSibling.dataset,g){D=g.dgst;var Ae=g.msg;q=g.stck;var ge=g.cstck}w=Ae,g=D,x=q,we=ge,D=w,q=we,D=Error(D||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=x||"",D.digest=g,g=q===void 0?null:q,x={value:D,source:null,stack:g},typeof g=="string"&&xA.set(D,x),ps(x),a=N1(r,a,u)}else if(ji||xc(r,a,u,!1),g=(u&r.childLanes)!==0,ji||g){if(g=Er,g!==null&&(x=kt(g,u),x!==0&&x!==Q.retryLane))throw Q.retryLane=x,Fi(r,x),Br(g,r,x),PA;gx(we)||Kf(),a=N1(r,a,u)}else gx(we)?(a.flags|=192,a.child=r.child,a=null):(r=Q.treeContext,zr=Do(we.nextSibling),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!1,r!==null&&G6(a,r),a=D1(a,x.children),a.flags|=4096);return a}}return w?(_o(a),D=x.fallback,q=a.mode,ge=r.child,we=ge.sibling,x=fs(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,we!==null?D=fs(we,D):(D=ds(D,q,u,null),D.flags|=2),D.return=a,x.return=a,x.sibling=D,a.child=x,p0(null,x),x=a.child,D=r.child.memoizedState,D===null?D=_1(u):(q=D.cachePool,q!==null?(ge=Li._currentValue,q=q.parent!==ge?{parent:ge,pool:ge}:q):q=s1(),D={baseLanes:D.baseLanes|u,cachePool:q}),x.memoizedState=D,x.childLanes=Mp(r,g,u),a.memoizedState=UA,p0(r.child,x)):(Q!==null&&(u&62914560)===u&&(u&r.lanes)!==0&&S0(a),la(a),u=r.child,r=u.sibling,u=fs(u,{mode:"visible",children:x.children}),u.return=a,u.sibling=null,r!==null&&(g=a.deletions,g===null?(a.deletions=[r],a.flags|=16):g.push(r)),a.child=u,a.memoizedState=null,u)}function D1(r,a){return a=Rp({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Rp(r,a){return r=E(22,r,null,a),r.lanes=0,r}function N1(r,a,u){return Cm(a,r.child,null,u),r=D1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function k4(r,a,u){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),yu(r.return,a,u)}function k1(r,a,u,g,x,w){var M=r.memoizedState;M===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:x,treeForkCount:w}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=u,M.tailMode=x,M.treeForkCount=w)}function z1(r,a,u){var g=a.pendingProps,x=g.revealOrder,w=g.tail,M=g.children,D=Ai.current;if((g=(D&dS)!==0)?(D=D&Xy|dS,a.flags|=128):D&=Xy,K(Ai,D,a),D=x??"null",x!=="forwards"&&x!=="unstable_legacy-backwards"&&x!=="together"&&x!=="independent"&&!TL[D])if(TL[D]=!0,x==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(x==="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 x=="string")switch(x.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.',x,x.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.',x,x.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',x);D=w??"null",uE[D]||(w==null?(x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&(uE[D]=!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"?(uE[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',w)):x!=="forwards"&&x!=="backwards"&&x!=="unstable_legacy-backwards"&&(uE[D]=!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((x==="forwards"||x==="backwards"||x==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(Ei(M)){for(D=0;D<M.length;D++)if(!kn(M[D],D))break e}else if(D=se(M),typeof D=="function"){if(D=D.call(M))for(var q=D.next(),Q=0;!q.done;q=D.next()){if(!kn(q.value,Q))break e;Q++}}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?',x);if(Wi(r,a,M,u),In?(gc(),M=Qx):M=0,!g&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&k4(r,u,a);else if(r.tag===19)k4(r,u,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(x){case"forwards":for(u=a.child,x=null;u!==null;)r=u.alternate,r!==null&&Es(r)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),k1(a,!1,x,u,w,M);break;case"backwards":case"unstable_legacy-backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(r=x.alternate,r!==null&&Es(r)===null){a.child=x;break}r=x.sibling,x.sibling=u,u=x,x=r}k1(a,!0,u,null,w,M);break;case"together":k1(a,!1,null,null,void 0,M);break;default:a.memoizedState=null}return a.child}function Os(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),Lo=-1,Q0|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(xc(r,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(r=a.child,u=fs(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=fs(r,r.pendingProps),u.return=a;u.sibling=null}return a.child}function I1(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Zh(r)))}function z4(r,a,u){switch(a.tag){case 3:Z(a,a.stateNode.containerInfo),ms(a,Li,r.memoizedState.cache),gu();break;case 27:case 5:Ee(a);break;case 4:Z(a,a.stateNode.containerInfo);break;case 10:ms(a,a.type,a.memoizedProps.value);break;case 12:(u&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var g=a.stateNode;g.effectDuration=-0,g.passiveEffectDuration=-0;break;case 31:if(a.memoizedState!==null)return a.flags|=128,sp(a),null;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(la(a),a.flags|=128,null):(u&a.child.childLanes)!==0?K6(r,a,u):(la(a),r=Os(r,a,u),r!==null?r.sibling:null);la(a);break;case 19:var x=(r.flags&128)!==0;if(g=(u&a.childLanes)!==0,g||(xc(r,a,u,!1),g=(u&a.childLanes)!==0),x){if(g)return z1(r,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),K(Ai,Ai.current,a),g)break;return null;case 22:return a.lanes=0,O1(r,a,u,a.pendingProps);case 24:ms(a,Li,r.memoizedState.cache)}return Os(r,a,u)}function L1(r,a,u){if(a._debugNeedsRemount&&r!==null){u=Mf(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes),u._debugStack=a._debugStack,u._debugTask=a._debugTask;var g=a.return;if(g===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,u._debugInfo=a._debugInfo,a===g.child)g.child=u;else{var x=g.child;if(x===null)throw Error("Expected parent to have a child.");for(;x.sibling!==a;)if(x=x.sibling,x===null)throw Error("Expected to find the previous sibling.");x.sibling=u}return a=g.deletions,a===null?(g.deletions=[r],g.flags|=16):a.push(r),u.flags|=2,u}if(r!==null)if(r.memoizedProps!==a.pendingProps||a.type!==r.type)ji=!0;else{if(!I1(r,u)&&(a.flags&128)===0)return ji=!1,z4(r,a,u);ji=(r.flags&131072)!==0}else ji=!1,(g=In)&&(gc(),g=(a.flags&1048576)!==0),g&&(g=a.index,gc(),o4(a,Qx,g));switch(a.lanes=0,a.tag){case 16:e:if(g=a.pendingProps,r=Mo(a.elementType),a.type=r,typeof r=="function")r1(r)?(g=Au(r,g),a.tag=1,a.type=r=mc(r),a=N4(null,a,r,g,u)):(a.tag=0,m0(a,r),a.type=r=mc(r),a=R1(null,a,r,g,u));else{if(r!=null){if(x=r.$$typeof,x===Nu){a.tag=11,a.type=r=n1(r),a=O4(null,a,r,g,u);break e}else if(x===ad){a.tag=14,a=M4(null,a,r,g,u);break e}}throw a="",r!==null&&typeof r=="object"&&r.$$typeof===si&&(a=" Did you wrap a component in React.lazy() more than once?"),u=ce(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return R1(r,a,a.type,a.pendingProps,u);case 1:return g=a.type,x=Au(g,a.pendingProps),N4(r,a,g,x,u);case 3:e:{if(Z(a,a.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");g=a.pendingProps;var w=a.memoizedState;x=w.element,Ja(r,a),_l(a,g,null,u);var M=a.memoizedState;if(g=M.cache,ms(a,Li,g),g!==w.cache&&bc(a,[Li],u,!0),Ss(),g=M.element,w.isDehydrated)if(w={element:g,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){a=Op(r,a,g,u);break e}else if(g!==x){x=Ta(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ps(x),a=Op(r,a,g,u);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(zr=Do(r.firstChild),Ia=a,In=!0,H0=null,$c=!1,Ul=null,Ws=!0,u=JI(a,null,g,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(gu(),g===x){a=Os(r,a,u);break e}Wi(r,a,g,u)}a=a.child}return a;case 26:return M1(r,a),r===null?(u=bx(a.type,null,a.pendingProps,null))?a.memoizedState=u:In||(u=a.type,r=a.pendingProps,g=oe(ll.current),g=Q1(g).createElement(u),g[na]=a,g[pa]=r,jn(g,u,r),vt(g),a.stateNode=g):a.memoizedState=bx(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Ee(a),r===null&&In&&(g=oe(ll.current),x=he(),g=a.stateNode=Vl(a.type,a.pendingProps,g,x,!1),$c||(x=dx(g,a.type,a.pendingProps,x),x!==null&&(Rf(a,0).serverProps=x)),Ia=a,Ws=!0,x=zr,Du(a.type)?(cC=x,zr=Do(g.firstChild)):zr=x),Wi(r,a,a.pendingProps.children,u),M1(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&In&&(w=he(),g=Fg(a.type,w.ancestorInfo),x=zr,(M=!x)||(M=ww(x,a.type,a.pendingProps,Ws),M!==null?(a.stateNode=M,$c||(w=dx(M,a.type,a.pendingProps,w),w!==null&&(Rf(a,0).serverProps=w)),Ia=a,zr=Do(M.firstChild),Ws=!1,w=!0):w=!1,M=!w),M&&(g&&yc(a,x),mu(a))),Ee(a),x=a.type,w=a.pendingProps,M=r!==null?r.memoizedProps:null,g=w.children,Xp(x,w)?g=null:M!==null&&Xp(x,M)&&(a.flags|=32),a.memoizedState!==null&&(x=Wr(r,a,up,null,null,u),_S._currentValue=x),M1(r,a),Wi(r,a,g,u),a.child;case 6:return r===null&&In&&(u=a.pendingProps,r=he(),g=r.ancestorInfo.current,u=g!=null?Wd(u,g.tag,r.ancestorInfo.implicitRootScope):!0,r=zr,(g=!r)||(g=ir(r,a.pendingProps,Ws),g!==null?(a.stateNode=g,Ia=a,zr=null,g=!0):g=!1,g=!g),g&&(u&&yc(a,r),mu(a))),null;case 13:return K6(r,a,u);case 4:return Z(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Cm(a,null,g,u):Wi(r,a,g,u),a.child;case 11:return O4(r,a,a.type,a.pendingProps,u);case 7:return Wi(r,a,a.pendingProps,u),a.child;case 8:return Wi(r,a,a.pendingProps.children,u),a.child;case 12:return a.flags|=4,a.flags|=2048,g=a.stateNode,g.effectDuration=-0,g.passiveEffectDuration=-0,Wi(r,a,a.pendingProps.children,u),a.child;case 10:return g=a.type,x=a.pendingProps,w=x.value,"value"in x||AL||(AL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ms(a,g,w),Wi(r,a,x.children,u),a.child;case 9:return x=a.type._context,g=a.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."),Eo(a),x=br(x),g=MA(g,x,void 0),a.flags|=1,Wi(r,a,g,u),a.child;case 14:return M4(r,a,a.type,a.pendingProps,u);case 15:return R4(r,a,a.type,a.pendingProps,u);case 19:return z1(r,a,u);case 31:return W6(r,a,u);case 22:return O1(r,a,u,a.pendingProps);case 24:return Eo(a),g=br(Li),r===null?(x=np(),x===null&&(x=Er,w=d4(),x.pooledCache=w,Df(w),w!==null&&(x.pooledCacheLanes|=u),x=w),a.memoizedState={parent:g,cache:x},bs(a),ms(a,Li,x)):((r.lanes&u)!==0&&(Ja(r,a),_l(a,null,null,u),Ss()),x=r.memoizedState,w=a.memoizedState,x.parent!==g?(x={parent:g,cache:g},a.memoizedState=x,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=x),ms(a,Li,g)):(g=w.cache,ms(a,Li,g),g!==x.cache&&bc(a,[Li],u,!0))),Wi(r,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ms(r){r.flags|=4}function I4(r,a,u,g,x){if((a=(r.mode&dfe)!==Zt)&&(a=!1),a){if(r.flags|=16777216,(x&335544128)===x)if(r.stateNode.complete)r.flags|=8192;else if(G1())r.flags|=8192;else throw Am=rE,_A}else r.flags&=-16777217}function V1(r,a){if(a.type!=="stylesheet"||(a.state.loading&eu)!==Vm)r.flags&=-16777217;else if(r.flags|=16777216,!ly(a))if(G1())r.flags|=8192;else throw Am=rE,_A}function _p(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ve():536870912,r.lanes|=a,Dm|=a)}function g0(r,a){if(!In)switch(r.tailMode){case"hidden":a=r.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:g.sibling=null}}function rr(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=0,g=0;if(a)if((r.mode&xn)!==Zt){for(var x=r.selfBaseDuration,w=r.child;w!==null;)u|=w.lanes|w.childLanes,g|=w.subtreeFlags&65011712,g|=w.flags&65011712,x+=w.treeBaseDuration,w=w.sibling;r.treeBaseDuration=x}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags&65011712,g|=x.flags&65011712,x.return=r,x=x.sibling;else if((r.mode&xn)!==Zt){x=r.actualDuration,w=r.selfBaseDuration;for(var M=r.child;M!==null;)u|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,x+=M.actualDuration,w+=M.treeBaseDuration,M=M.sibling;r.actualDuration=x,r.treeBaseDuration=w}else for(x=r.child;x!==null;)u|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=g,r.childLanes=u,a}function Q6(r,a,u){var g=a.pendingProps;switch(l4(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rr(a),null;case 1:return rr(a),null;case 3:return u=a.stateNode,g=null,r!==null&&(g=r.memoizedState.cache),a.memoizedState.cache!==g&&(a.flags|=2048),gs(Li,a),ae(a),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(_f(a)?(Qh(),Ms(a)):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,c4())),rr(a),null;case 26:var x=a.type,w=a.memoizedState;return r===null?(Ms(a),w!==null?(rr(a),V1(a,w)):(rr(a),I4(a,x,null,g,u))):w?w!==r.memoizedState?(Ms(a),rr(a),V1(a,w)):(rr(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Ms(a),rr(a),I4(a,x,r,g,u)),null;case 27:if(te(a),u=oe(ll.current),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}r=he(),_f(a)?s4(a):(r=Vl(x,g,u,r,!0),a.stateNode=r,Ms(a))}return rr(a),null;case 5:if(te(a),x=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(!g){if(a.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 rr(a),null}var M=he();if(_f(a))s4(a);else{switch(w=oe(ll.current),Fg(x,M.ancestorInfo),M=M.context,w=Q1(w),M){case ov:w=w.createElementNS(Dn,x);break;case RE:w=w.createElementNS(Cn,x);break;default:switch(x){case"svg":w=w.createElementNS(Dn,x);break;case"math":w=w.createElementNS(Cn,x);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(x,{is:g.is}):w.createElement(x),x.indexOf("-")===-1&&(x!==x.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",x),Object.prototype.toString.call(w)!=="[object HTMLUnknownElement]"||jl.call(WL,x)||(WL[x]=!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.",x)))}}w[na]=a,w[pa]=g;e:for(M=a.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===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=w;e:switch(jn(w,x,g),x){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Ms(a)}}return rr(a),I4(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,u),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==g&&Ms(a);else{if(typeof g!="string"&&a.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(r=oe(ll.current),u=he(),_f(a)){if(r=a.stateNode,u=a.memoizedProps,x=!$c,g=null,w=Ia,w!==null)switch(w.tag){case 3:x&&(x=Kp(r,u,g),x!==null&&(Rf(a,0).serverProps=x));break;case 27:case 5:g=w.memoizedProps,x&&(x=Kp(r,u,g),x!==null&&(Rf(a,0).serverProps=x))}r[na]=a,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||Fp(r.nodeValue,u)),r||mu(a,!0)}else x=u.ancestorInfo.current,x!=null&&Wd(g,x.tag,u.ancestorInfo.implicitRootScope),r=Q1(r).createTextNode(g),r[na]=a,a.stateNode=r}return rr(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(g=_f(a),u!==null){if(r===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");r[na]=a,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(u=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration));r=!1}else u=c4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return a.flags&256?(sa(a),a):(sa(a),null);if((a.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return rr(a),null;case 13:if(g=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(x=g,w=_f(a),x!==null&&x.dehydrated!==null){if(r===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=a.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[na]=a,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration))}else Qh(),gu(),(a.flags&128)===0&&(x=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&xn)!==Zt&&x!==null&&(x=a.child,x!==null&&(a.treeBaseDuration-=x.treeBaseDuration));x=!1}else x=c4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=x),x=!0;if(!x)return a.flags&256?(sa(a),a):(sa(a),null)}return sa(a),(a.flags&128)!==0?(a.lanes=u,(a.mode&xn)!==Zt&&Co(a),a):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=a.child,x=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(x=g.alternate.memoizedState.cachePool.pool),w=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(w=g.memoizedState.cachePool.pool),w!==x&&(g.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),_p(a,a.updateQueue),rr(a),(a.mode&xn)!==Zt&&u&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return ae(a),r===null&&qp(a.stateNode.containerInfo),rr(a),null;case 10:return gs(a.type,a),rr(a),null;case 19:if(le(Ai,a),g=a.memoizedState,g===null)return rr(a),null;if(x=(a.flags&128)!==0,w=g.rendering,w===null)if(x)g0(g,!1);else{if(ti!==Sd||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(w=Es(r),w!==null){for(a.flags|=128,g0(g,!1),r=w.updateQueue,a.updateQueue=r,_p(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)e0(u,r),u=u.sibling;return K(Ai,Ai.current&Xy|dS,a),In&&hs(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&Jr()>gE&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304)}else{if(!x)if(r=Es(w),r!==null){if(a.flags|=128,x=!0,r=r.updateQueue,a.updateQueue=r,_p(a,r),g0(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!In)return rr(a),null}else 2*Jr()-g.renderingStartTime>gE&&u!==536870912&&(a.flags|=128,x=!0,g0(g,!1),a.lanes=4194304);g.isBackwards?(w.sibling=a.child,a.child=w):(r=g.last,r!==null?r.sibling=w:a.child=w,g.last=w)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=Jr(),r.sibling=null,u=Ai.current,u=x?u&Xy|dS:u&Xy,K(Ai,u,a),In&&hs(a,g.treeForkCount),r):(rr(a),null);case 22:case 23:return sa(a),ws(a),g=a.memoizedState!==null,r!==null?r.memoizedState!==null!==g&&(a.flags|=8192):g&&(a.flags|=8192),g?(u&536870912)!==0&&(a.flags&128)===0&&(rr(a),a.subtreeFlags&6&&(a.flags|=8192)):rr(a),u=a.updateQueue,u!==null&&_p(a,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),g=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),g!==u&&(a.flags|=2048),r!==null&&le(Em,a),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),gs(Li,a),rr(a),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z6(r,a){switch(l4(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Co(a),a):null;case 3:return gs(Li,a),ae(a),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return te(a),null;case 31:if(a.memoizedState!==null){if(sa(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Co(a),a):null;case 13:if(sa(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Co(a),a):null;case 19:return le(Ai,a),null;case 4:return ae(a),null;case 10:return gs(a.type,a),null;case 22:case 23:return sa(a),ws(a),r!==null&&le(Em,a),r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&xn)!==Zt&&Co(a),a):null;case 24:return gs(Li,a),null;case 25:return null;default:return null}}function J6(r,a){switch(l4(a),a.tag){case 3:gs(Li,a),ae(a);break;case 26:case 27:case 5:te(a);break;case 4:ae(a);break;case 31:a.memoizedState!==null&&sa(a);break;case 13:sa(a);break;case 19:le(Ai,a);break;case 10:gs(a.type,a);break;case 22:case 23:sa(a),ws(a),r!==null&&le(Em,a);break;case 24:gs(Li,a)}}function Rs(r){return(r.mode&xn)!==Zt}function L4(r,a){Rs(r)?(Qo(),Gf(a,r),ys()):Gf(a,r)}function qf(r,a,u){Rs(r)?(Qo(),Cu(u,r,a),ys()):Cu(u,r,a)}function Gf(r,a){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var x=g.next;u=x;do{if((u.tag&r)===r&&(g=void 0,(r&Vo)!==aE&&(rv=!0),g=Be(a,vfe,u),(r&Vo)!==aE&&(rv=!1),g!==void 0&&typeof g!="function")){var w=void 0;w=(u.tag&Hl)!==0?"useLayoutEffect":(u.tag&Vo)!==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,Be(a,function(D,q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",D,q)},w,M)}u=u.next}while(u!==x)}}catch(D){Yn(a,a.return,D)}}function Cu(r,a,u){try{var g=a.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var w=x.next;g=w;do{if((g.tag&r)===r){var M=g.inst,D=M.destroy;D!==void 0&&(M.destroy=void 0,(r&Vo)!==aE&&(rv=!0),x=a,Be(x,bfe,x,u,D),(r&Vo)!==aE&&(rv=!1))}g=g.next}while(g!==w)}}catch(q){Yn(a,a.return,q)}}function V4(r,a){Rs(r)?(Qo(),Gf(a,r),ys()):Gf(a,r)}function B1(r,a,u){Rs(r)?(Qo(),Cu(u,r,a),ys()):Cu(u,r,a)}function y0(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Zy||(u.props!==r.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(r)||"instance"),u.state!==r.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(r)||"instance"));try{Be(r,f1,a,u)}catch(g){Yn(r,r.return,g)}}}function ew(r,a,u){return r.getSnapshotBeforeUpdate(a,u)}function B4(r,a){var u=a.memoizedProps,g=a.memoizedState;a=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Zy||(a.props!==r.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(r)||"instance"),a.state!==r.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(r)||"instance"));try{var x=Au(r.type,u),w=Be(r,ew,a,x,g);u=CL,w!==void 0||u.has(r.type)||(u.add(r.type),Be(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(r))})),a.__reactInternalSnapshotBeforeUpdate=w}catch(M){Yn(r,r.return,M)}}function j4(r,a,u){u.props=Au(r.type,r.memoizedProps),u.state=r.memoizedState,Rs(r)?(Qo(),Be(r,GI,r,a,u),ys()):Be(r,GI,r,a,u)}function P4(r){var a=r.ref;if(a!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}if(typeof a=="function")if(Rs(r))try{Qo(),r.refCleanup=a(u)}finally{ys()}else r.refCleanup=a(u);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(r)),a.current=u}}function Ff(r,a){try{Be(r,P4,r)}catch(u){Yn(r,a,u)}}function zl(r,a){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(Rs(r))try{Qo(),Be(r,g)}finally{ys(r)}else Be(r,g)}catch(x){Yn(r,a,x)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(Rs(r))try{Qo(),Be(r,u,null)}finally{ys(r)}else Be(r,u,null)}catch(x){Yn(r,a,x)}else u.current=null}function U4(r,a,u,g){var x=r.memoizedProps,w=x.id,M=x.onCommit;x=x.onRender,a=a===null?"mount":"update",Jw&&(a="nested-update"),typeof x=="function"&&x(w,a,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof M=="function"&&M(w,a,g,u)}function Yf(r,a,u,g){var x=r.memoizedProps;r=x.id,x=x.onPostCommit,a=a===null?"mount":"update",Jw&&(a="nested-update"),typeof x=="function"&&x(r,a,g,u)}function $4(r){var a=r.type,u=r.memoizedProps,g=r.stateNode;try{Be(r,hw,g,a,u,r)}catch(x){Yn(r,r.return,x)}}function j1(r,a,u){try{Be(r,px,r.stateNode,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function H4(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Du(r.type)||r.tag===4}function v0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||H4(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Du(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function P1(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?(mw(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a)):(mw(u),a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(r),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Gi));else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode,a=null),r=r.child,r!==null))for(P1(r,a,u),r=r.sibling;r!==null;)P1(r,a,u),r=r.sibling}function b0(r,a,u){var g=r.tag;if(g===5||g===6)r=r.stateNode,a?u.insertBefore(r,a):u.appendChild(r);else if(g!==4&&(g===27&&Du(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(b0(r,a,u),r=r.sibling;r!==null;)b0(r,a,u),r=r.sibling}function tw(r){for(var a,u=r.return;u!==null;){if(H4(u)){a=u;break}u=u.return}if(a==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(a.tag){case 27:a=a.stateNode,u=v0(r),b0(r,u,a);break;case 5:u=a.stateNode,a.flags&32&&(pw(u),a.flags&=-33),a=v0(r),b0(r,a,u);break;case 3:case 4:a=a.stateNode.containerInfo,u=v0(r),P1(r,u,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function q4(r){var a=r.stateNode,u=r.memoizedProps;try{Be(r,Qp,r.type,u,a,r)}catch(g){Yn(r,r.return,g)}}function nw(r,a){return a.tag===31?(a=a.memoizedState,r.memoizedState!==null&&a===null):a.tag===13?(r=r.memoizedState,a=a.memoizedState,r!==null&&r.dehydrated!==null&&(a===null||a.dehydrated===null)):a.tag===3?r.memoizedState.isDehydrated&&(a.flags&256)===0:!1}function G4(r,a){if(r=r.containerInfo,lC=kE,r=L6(r),Jb(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var g=u.getSelection&&u.getSelection();if(g&&g.rangeCount!==0){u=g.anchorNode;var x=g.anchorOffset,w=g.focusNode;g=g.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var M=0,D=-1,q=-1,Q=0,we=0,Ae=r,ge=null;t:for(;;){for(var Le;Ae!==u||x!==0&&Ae.nodeType!==3||(D=M+x),Ae!==w||g!==0&&Ae.nodeType!==3||(q=M+g),Ae.nodeType===3&&(M+=Ae.nodeValue.length),(Le=Ae.firstChild)!==null;)ge=Ae,Ae=Le;for(;;){if(Ae===r)break t;if(ge===u&&++Q===x&&(D=M),ge===w&&++we===g&&(q=M),(Le=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Le}u=D===-1||q===-1?null:{start:D,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(sC={focusedElem:r,selectionRange:u},kE=!1,ga=a;ga!==null;)if(a=ga,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,ga=r;else for(;ga!==null;){switch(r=a=ga,u=r.alternate,x=r.flags,r.tag){case 0:if((x&4)!==0&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)x=r[u],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:(x&1024)!==0&&u!==null&&B4(r,u);break;case 3:if((x&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)ey(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ey(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((x&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(r=a.sibling,r!==null){r.return=a.return,ga=r;break}ga=a.return}}function li(r,a,u){var g=zi(),x=To(),w=Ko(),M=oa(),D=u.flags;switch(u.tag){case 0:case 11:case 15:Jo(r,u),D&4&&L4(u,Hl|Zs);break;case 1:if(Jo(r,u),D&4)if(r=u.stateNode,a===null)u.type.defaultProps||"ref"in u.memoizedProps||Zy||(r.props!==u.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(u)||"instance"),r.state!==u.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(u)||"instance")),Rs(u)?(Qo(),Be(u,RA,u,r),ys()):Be(u,RA,u,r);else{var q=Au(u.type,a.memoizedProps);a=a.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Zy||(r.props!==u.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(u)||"instance"),r.state!==u.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(u)||"instance")),Rs(u)?(Qo(),Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate),ys()):Be(u,$I,u,r,q,a,r.__reactInternalSnapshotBeforeUpdate)}D&64&&y0(u),D&512&&Ff(u,u.return);break;case 3:if(a=Ml(),Jo(r,u),D&64&&(D=u.updateQueue,D!==null)){if(q=null,u.child!==null)switch(u.child.tag){case 27:case 5:q=u.child.stateNode;break;case 1:q=u.child.stateNode}try{Be(u,f1,D,q)}catch(we){Yn(u,u.return,we)}}r.effectDuration+=Wa(a);break;case 27:a===null&&D&4&&q4(u);case 26:case 5:if(Jo(r,u),a===null){if(D&4)$4(u);else if(D&64){r=u.type,a=u.memoizedProps,q=u.stateNode;try{Be(u,Z1,q,r,a,u)}catch(we){Yn(u,u.return,we)}}}D&512&&Ff(u,u.return);break;case 12:if(D&4){D=Ml(),Jo(r,u),r=u.stateNode,r.effectDuration+=Sc(D);try{Be(u,U4,u,a,q0,r.effectDuration)}catch(we){Yn(u,u.return,we)}}else Jo(r,u);break;case 31:Jo(r,u),D&4&&Y4(r,u);break;case 13:Jo(r,u),D&4&&X4(r,u),D&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(D=Zf.bind(null,u),Q8(r,D))));break;case 22:if(D=u.memoizedState!==null||xd,!D){a=a!==null&&a.memoizedState!==null||Pi,q=xd;var Q=Pi;xd=D,(Pi=a)&&!Q?(el(r,u,(u.subtreeFlags&8772)!==0),(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Jg(u,$t,Xt)):Jo(r,u),xd=q,Pi=Q}break;case 30:break;default:Jo(r,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(u,$t,Xt,ei,jr),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&.05<Xt-$t&&(nw(u.return.alternate,u.return)||us(u,$t,Xt,"Mount"))),Ca(g),Ao(x),jr=w,ui=M}function Ii(r){var a=r.alternate;a!==null&&(r.alternate=null,Ii(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Oe(a)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function _s(r,a,u){for(u=u.child;u!==null;)F4(r,a,u),u=u.sibling}function F4(r,a,u){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(Iu,u)}catch(Q){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Q))}var g=zi(),x=To(),w=Ko(),M=oa();switch(u.tag){case 26:Pi||zl(u,a),_s(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(r=u.stateNode,r.parentNode.removeChild(r));break;case 27:Pi||zl(u,a);var D=Ui,q=fl;Du(u.type)&&(Ui=u.stateNode,fl=!1),_s(r,a,u),Be(u,Zp,u.stateNode),Ui=D,fl=q;break;case 5:Pi||zl(u,a);case 6:if(D=Ui,q=fl,Ui=null,_s(r,a,u),Ui=D,fl=q,Ui!==null)if(fl)try{Be(u,C0,Ui,u.stateNode)}catch(Q){Yn(u,a,Q)}else try{Be(u,gw,Ui,u.stateNode)}catch(Q){Yn(u,a,Q)}break;case 18:Ui!==null&&(fl?(r=Ui,Wp(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),N0(r)):Wp(Ui,u.stateNode));break;case 4:D=Ui,q=fl,Ui=u.stateNode.containerInfo,fl=!0,_s(r,a,u),Ui=D,fl=q;break;case 0:case 11:case 14:case 15:Cu(Vo,u,a),Pi||qf(u,a,Hl),_s(r,a,u);break;case 1:Pi||(zl(u,a),D=u.stateNode,typeof D.componentWillUnmount=="function"&&j4(u,a,D)),_s(r,a,u);break;case 21:_s(r,a,u);break;case 22:Pi=(D=Pi)||u.memoizedState!==null,_s(r,a,u),Pi=D;break;default:_s(r,a,u)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(g),Ao(x),jr=w,ui=M}function Y4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Be(a,yx,r)}catch(u){Yn(a,a.return,u)}}}function X4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Be(a,Bc,r)}catch(u){Yn(a,a.return,u)}}function Dp(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new OL),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new OL),a;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function Np(r,a){var u=Dp(r);a.forEach(function(g){if(!u.has(g)){if(u.add(g),ul)if(Jy!==null&&ev!==null)Ls(ev,Jy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var x=Mu.bind(null,r,g);g.then(x,x)}})}function Ki(r,a){var u=a.deletions;if(u!==null)for(var g=0;g<u.length;g++){var x=r,w=a,M=u[g],D=zi(),q=w;e:for(;q!==null;){switch(q.tag){case 27:if(Du(q.type)){Ui=q.stateNode,fl=!1;break e}break;case 5:Ui=q.stateNode,fl=!1;break e;case 3:case 4:Ui=q.stateNode.containerInfo,fl=!0;break e}q=q.return}if(Ui===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");F4(x,w,M),Ui=null,fl=!1,(M.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(M,$t,Xt,"Unmount"),Ca(D),x=M,w=x.alternate,w!==null&&(w.return=null),x.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)W4(a,r),a=a.sibling}function W4(r,a){var u=zi(),g=To(),x=Ko(),w=oa(),M=r.alternate,D=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Ki(a,r),ro(r),D&4&&(Cu(Vo|Zs,r,r.return),Gf(Vo|Zs,r),qf(r,r.return,Hl|Zs));break;case 1:if(Ki(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&64&&xd&&(D=r.updateQueue,D!==null&&(M=D.callbacks,M!==null))){var q=D.shared.hiddenCallbacks;D.shared.hiddenCallbacks=q===null?M:q.concat(M)}break;case 26:if(q=ju,Ki(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),D&4){var Q=M!==null?M.memoizedState:null;if(D=r.memoizedState,M===null)if(D===null)if(r.stateNode===null){e:{D=r.type,M=r.memoizedProps,q=q.ownerDocument||q;t:switch(D){case"title":Q=q.getElementsByTagName("title")[0],(!Q||Q[dm]||Q[na]||Q.namespaceURI===Dn||Q.hasAttribute("itemprop"))&&(Q=q.createElement(D),q.head.insertBefore(Q,q.querySelector("head > title"))),jn(Q,D,M),Q[na]=r,vt(Q),D=Q;break e;case"link":var we=Aw("link","href",q).get(D+(M.href||""));if(we){for(var Ae=0;Ae<we.length;Ae++)if(Q=we[Ae],Q.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&Q.getAttribute("rel")===(M.rel==null?null:M.rel)&&Q.getAttribute("title")===(M.title==null?null:M.title)&&Q.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){we.splice(Ae,1);break t}}Q=q.createElement(D),jn(Q,D,M),q.head.appendChild(Q);break;case"meta":if(we=Aw("meta","content",q).get(D+(M.content||""))){for(Ae=0;Ae<we.length;Ae++)if(Q=we[Ae],xt(M.content,"content"),Q.getAttribute("content")===(M.content==null?null:""+M.content)&&Q.getAttribute("name")===(M.name==null?null:M.name)&&Q.getAttribute("property")===(M.property==null?null:M.property)&&Q.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&Q.getAttribute("charset")===(M.charSet==null?null:M.charSet)){we.splice(Ae,1);break t}}Q=q.createElement(D),jn(Q,D,M),q.head.appendChild(Q);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+D+'". This is a bug in React.')}Q[na]=r,vt(Q),D=Q}r.stateNode=D}else wx(q,r.type,r.stateNode);else r.stateNode=ay(q,D,r.memoizedProps);else Q!==D?(Q===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):Q.count--,D===null?wx(q,r.type,r.stateNode):ay(q,D,r.memoizedProps)):D===null&&r.stateNode!==null&&j1(r,r.memoizedProps,M.memoizedProps)}break;case 27:Ki(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),M!==null&&D&4&&j1(r,r.memoizedProps,M.memoizedProps);break;case 5:if(Ki(a,r),ro(r),D&512&&(Pi||M===null||zl(M,M.return)),r.flags&32){q=r.stateNode;try{Be(r,pw,q)}catch(wt){Yn(r,r.return,wt)}}D&4&&r.stateNode!=null&&(q=r.memoizedProps,j1(r,q,M!==null?M.memoizedProps:q)),D&1024&&($A=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ki(a,r),ro(r),D&4){if(r.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.");D=r.memoizedProps,M=M!==null?M.memoizedProps:D,q=r.stateNode;try{Be(r,K8,q,M,D)}catch(wt){Yn(r,r.return,wt)}}break;case 3:if(q=Ml(),_E=null,Q=ju,ju=Jp(a.containerInfo),Ki(a,r),ju=Q,ro(r),D&4&&M!==null&&M.memoizedState.isDehydrated)try{Be(r,iy,a.containerInfo)}catch(wt){Yn(r,r.return,wt)}$A&&($A=!1,kp(r)),a.effectDuration+=Wa(q);break;case 4:D=ju,ju=Jp(r.stateNode.containerInfo),Ki(a,r),ro(r),ju=D;break;case 12:D=Ml(),Ki(a,r),ro(r),r.stateNode.effectDuration+=Sc(D);break;case 31:Ki(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Np(r,D)));break;case 13:Ki(a,r),ro(r),r.child.flags&8192&&r.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(mE=Jr()),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Np(r,D)));break;case 22:q=r.memoizedState!==null;var ge=M!==null&&M.memoizedState!==null,Le=xd,gt=Pi;if(xd=Le||q,Pi=gt||ge,Ki(a,r),Pi=gt,xd=Le,ge&&!q&&!Le&&!gt&&(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&Jg(r,$t,Xt),ro(r),D&8192)e:for(a=r.stateNode,a._visibility=q?a._visibility&~Kx:a._visibility|Kx,!q||M===null||ge||xd||Pi||(Dc(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")),M=null,a=r;;){if(a.tag===5||a.tag===26){if(M===null){ge=M=a;try{Q=ge.stateNode,q?Be(ge,vw,Q):Be(ge,Sw,ge.stateNode,ge.memoizedProps)}catch(wt){Yn(ge,ge.return,wt)}}}else if(a.tag===6){if(M===null){ge=a;try{we=ge.stateNode,q?Be(ge,bw,we):Be(ge,J1,we,ge.memoizedProps)}catch(wt){Yn(ge,ge.return,wt)}}}else if(a.tag===18){if(M===null){ge=a;try{Ae=ge.stateNode,q?Be(ge,yw,Ae):Be(ge,xw,ge.stateNode)}catch(wt){Yn(ge,ge.return,wt)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;M===a&&(M=null),a=a.return}M===a&&(M=null),a.sibling.return=a.return,a=a.sibling}D&4&&(D=r.updateQueue,D!==null&&(M=D.retryQueue,M!==null&&(D.retryQueue=null,Np(r,M))));break;case 19:Ki(a,r),ro(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,Np(r,D)));break;case 30:break;case 21:break;default:Ki(a,r),ro(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(r,$t,Xt,ei,jr),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Xt-$t&&(nw(r.return.alternate,r.return)||us(r,$t,Xt,"Mount"))),Ca(u),Ao(g),jr=x,ui=w}function ro(r){var a=r.flags;if(a&2){try{Be(r,tw,r)}catch(u){Yn(r,r.return,u)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function kp(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;kp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Jo(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)li(r,a.alternate,a),a=a.sibling}function K4(r){var a=zi(),u=To(),g=Ko(),x=oa();switch(r.tag){case 0:case 11:case 14:case 15:qf(r,r.return,Hl),Dc(r);break;case 1:zl(r,r.return);var w=r.stateNode;typeof w.componentWillUnmount=="function"&&j4(r,r.return,w),Dc(r);break;case 27:Be(r,Zp,r.stateNode);case 26:case 5:zl(r,r.return),Dc(r);break;case 22:r.memoizedState===null&&Dc(r);break;case 30:Dc(r);break;default:Dc(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),Ao(u),jr=g,ui=x}function Dc(r){for(r=r.child;r!==null;)K4(r),r=r.sibling}function Q4(r,a,u,g){var x=zi(),w=To(),M=Ko(),D=oa(),q=u.flags;switch(u.tag){case 0:case 11:case 15:el(r,u,g),L4(u,Hl);break;case 1:if(el(r,u,g),a=u.stateNode,typeof a.componentDidMount=="function"&&Be(u,RA,u,a),a=u.updateQueue,a!==null){r=u.stateNode;try{Be(u,lp,a,r)}catch(Q){Yn(u,u.return,Q)}}g&&q&64&&y0(u),Ff(u,u.return);break;case 27:q4(u);case 26:case 5:el(r,u,g),g&&a===null&&q&4&&$4(u),Ff(u,u.return);break;case 12:if(g&&q&4){q=Ml(),el(r,u,g),g=u.stateNode,g.effectDuration+=Sc(q);try{Be(u,U4,u,a,q0,g.effectDuration)}catch(Q){Yn(u,u.return,Q)}}else el(r,u,g);break;case 31:el(r,u,g),g&&q&4&&Y4(r,u);break;case 13:el(r,u,g),g&&q&4&&X4(r,u);break;case 22:u.memoizedState===null&&el(r,u,g),Ff(u,u.return);break;case 30:break;default:el(r,u,g)}(u.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(u,$t,Xt,ei,jr),Ca(x),Ao(w),jr=M,ui=D}function el(r,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)Q4(r,a.alternate,a,u),a=a.sibling}function zp(r,a){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(r!=null&&Df(r),u!=null&&ep(u))}function Ip(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(Df(a),r!=null&&ep(r))}function tl(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(a=a.child;a!==null;){var w=a.sibling;U1(r,a,u,g,w!==null?w.actualStartTime:x),a=w}}function U1(r,a,u,g,x){var w=zi(),M=To(),D=Ko(),q=oa(),Q=P0,we=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&e1(a,a.actualStartTime,x,ra,u),tl(r,a,u,g,x),we&2048&&V4(a,Bo|Zs);break;case 1:(a.mode&xn)!==Zt&&0<a.actualStartTime&&((a.flags&128)!==0?t1(a,a.actualStartTime,x,[]):(a.flags&1)!==0&&e1(a,a.actualStartTime,x,ra,u)),tl(r,a,u,g,x);break;case 3:var Ae=Ml(),ge=ra;ra=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,tl(r,a,u,g,x),ra=ge,we&2048&&(u=null,a.alternate!==null&&(u=a.alternate.memoizedState.cache),g=a.memoizedState.cache,g!==u&&(Df(g),u!=null&&ep(u))),r.passiveEffectDuration+=Wa(Ae);break;case 12:if(we&2048){we=Ml(),tl(r,a,u,g,x),r=a.stateNode,r.passiveEffectDuration+=Sc(we);try{Be(a,Yf,a,a.alternate,q0,r.passiveEffectDuration)}catch(Le){Yn(a,a.return,Le)}}else tl(r,a,u,g,x);break;case 31:we=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae!==null&&ge===null?(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&t1(a,a.actualStartTime,x,Ae)):ra=!0):ra=!1,tl(r,a,u,g,x),ra=we;break;case 13:we=ra,Ae=a.alternate!==null?a.alternate.memoizedState:null,ge=a.memoizedState,Ae===null||Ae.dehydrated===null||ge!==null&&ge.dehydrated!==null?ra=!1:(ge=a.deletions,ge!==null&&0<ge.length&&ge[0].tag===18?(ra=!1,Ae=Ae.hydrationErrors,Ae!==null&&t1(a,a.actualStartTime,x,Ae)):ra=!0),tl(r,a,u,g,x),ra=we;break;case 23:break;case 22:ge=a.stateNode,Ae=a.alternate,a.memoizedState!==null?ge._visibility&cd?tl(r,a,u,g,x):x0(r,a,u,g,x):ge._visibility&cd?tl(r,a,u,g,x):(ge._visibility|=cd,Ou(r,a,u,g,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),x),(a.mode&xn)===Zt||ra||(r=a.actualStartTime,0<=r&&.05<x-r&&Jg(a,r,x),0<=$t&&0<=Xt&&.05<Xt-$t&&Jg(a,$t,Xt))),we&2048&&zp(Ae,a);break;case 24:tl(r,a,u,g,x),we&2048&&Ip(a.alternate,a);break;default:tl(r,a,u,g,x)}(a.mode&xn)!==Zt&&((r=!ra&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(u=a.actualStartTime,0<=u&&.05<x-u&&us(a,u,x,"Mount")),0<=$t&&0<=Xt&&((ui||.05<ei)&&cs(a,$t,Xt,ei,jr),r&&.05<Xt-$t&&us(a,$t,Xt,"Mount"))),Ca(w),Ao(M),jr=D,ui=q,P0=Q}function Ou(r,a,u,g,x,w){for(x=x&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var M=a.sibling;$1(r,a,u,g,x,M!==null?M.actualStartTime:w),a=M}}function $1(r,a,u,g,x,w){var M=zi(),D=To(),q=Ko(),Q=oa(),we=P0;x&&(a.mode&xn)!==Zt&&0<a.actualStartTime&&(a.flags&1)!==0&&e1(a,a.actualStartTime,w,ra,u);var Ae=a.flags;switch(a.tag){case 0:case 11:case 15:Ou(r,a,u,g,x,w),V4(a,Bo);break;case 23:break;case 22:var ge=a.stateNode;a.memoizedState!==null?ge._visibility&cd?Ou(r,a,u,g,x,w):x0(r,a,u,g,w):(ge._visibility|=cd,Ou(r,a,u,g,x,w)),x&&Ae&2048&&zp(a.alternate,a);break;case 24:Ou(r,a,u,g,x,w),x&&Ae&2048&&Ip(a.alternate,a);break;default:Ou(r,a,u,g,x,w)}(a.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(a,$t,Xt,ei,jr),Ca(M),Ao(D),jr=q,ui=Q,P0=we}function x0(r,a,u,g,x){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(var w=a.child;w!==null;){a=w.sibling;var M=r,D=u,q=g,Q=a!==null?a.actualStartTime:x,we=P0;(w.mode&xn)!==Zt&&0<w.actualStartTime&&(w.flags&1)!==0&&e1(w,w.actualStartTime,Q,ra,D);var Ae=w.flags;switch(w.tag){case 22:x0(M,w,D,q,Q),Ae&2048&&zp(w.alternate,w);break;case 24:x0(M,w,D,q,Q),Ae&2048&&Ip(w.alternate,w);break;default:x0(M,w,D,q,Q)}P0=we,w=a}}function Nc(r,a,u){if(r.subtreeFlags&gS)for(r=r.child;r!==null;)Z4(r,a,u),r=r.sibling}function Z4(r,a,u){switch(r.tag){case 26:Nc(r,a,u),r.flags&gS&&r.memoizedState!==null&&sy(u,ju,r.memoizedState,r.memoizedProps);break;case 5:Nc(r,a,u);break;case 3:case 4:var g=ju;ju=Jp(r.stateNode.containerInfo),Nc(r,a,u),ju=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=gS,gS=16777216,Nc(r,a,u),gS=g):Nc(r,a,u));break;default:Nc(r,a,u)}}function Ds(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Xf(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,H1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)rw(r),r=r.sibling}function rw(r){var a=zi(),u=To(),g=Ko(),x=oa();switch(r.tag){case 0:case 11:case 15:Xf(r),r.flags&2048&&B1(r,r.return,Bo|Zs);break;case 3:var w=Ml();Xf(r),r.stateNode.passiveEffectDuration+=Wa(w);break;case 12:w=Ml(),Xf(r),r.stateNode.passiveEffectDuration+=Sc(w);break;case 22:w=r.stateNode,r.memoizedState!==null&&w._visibility&cd&&(r.return===null||r.return.tag!==13)?(w._visibility&=~cd,Lp(r),(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(r,$t,Xt,"Disconnect")):Xf(r);break;default:Xf(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),Ao(u),ui=x,jr=g}function Lp(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var g=a[u],x=zi();ga=g,H1(g,r),(g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&.05<Xt-$t&&us(g,$t,Xt,"Unmount"),Ca(x)}Ds(r)}for(r=r.child;r!==null;)Ns(r),r=r.sibling}function Ns(r){var a=zi(),u=To(),g=Ko(),x=oa();switch(r.tag){case 0:case 11:case 15:B1(r,r.return,Bo),Lp(r);break;case 22:var w=r.stateNode;w._visibility&cd&&(w._visibility&=~cd,Lp(r));break;default:Lp(r)}(r.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(r,$t,Xt,ei,jr),Ca(a),Ao(u),ui=x,jr=g}function H1(r,a){for(;ga!==null;){var u=ga,g=u,x=a,w=zi(),M=To(),D=Ko(),q=oa();switch(g.tag){case 0:case 11:case 15:B1(g,x,Bo);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(x=g.memoizedState.cachePool.pool,x!=null&&Df(x));break;case 24:ep(g.memoizedState.cache)}if((g.mode&xn)!==Zt&&0<=$t&&0<=Xt&&(ui||.05<ei)&&cs(g,$t,Xt,ei,jr),Ca(w),Ao(M),ui=q,jr=D,g=u.child,g!==null)g.return=u,ga=g;else e:for(u=r;ga!==null;){if(g=ga,w=g.sibling,M=g.return,Ii(g),g===u){ga=null;break e}if(w!==null){w.return=M,ga=w;break e}ga=M}}}function iw(){Tfe.forEach(function(r){return r()})}function Vp(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||$e.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Qi(r){if((Gn&ia)!==ya&&wn!==0)return wn&-wn;var a=$e.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(r),Hn()):cr()}function Sr(){if(hl===0)if((wn&536870912)===0||In){var r=V0;V0<<=1,(V0&3932160)===0&&(V0=262144),hl=r}else hl=536870912;return r=$l.current,r!==null&&(r.flags|=32),hl}function Br(r,a,u){if(rv&&console.error("useInsertionEffect must not schedule updates."),JA&&(bE=!0),(r===Er&&(pr===Rm||pr===_m)||r.cancelPendingCommit!==null)&&(_a(r,0),Ra(r,wn,hl,!1)),pt(r,u),(Gn&ia)!==ya&&r===Er){if(sl)switch(a.tag){case 0:case 11:case 15:r=On&&ue(On)||"Unknown",$L.has(r)||($L.add(r),a=ue(a)||"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",a,r,r));break;case 1:UL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UL=!0)}}else ul&&Fn(r,a,u),$p(a),r===Er&&((Gn&ia)===ya&&(Z0|=u),ti===W0&&Ra(r,wn,hl,!1)),Na(r)}function aw(r,a,u){if((Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(wn!==0&&On!==null){var g=On,x=Jr();switch(zI){case bS:case Rm:var w=nS;kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",w,x,qs,void 0,"primary-light")):console.timeStamp("Suspended",w,x,qs,void 0,"primary-light"));break;case _m:w=nS,kr&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",w,x,qs,void 0,"primary-light")):console.timeStamp("Action",w,x,qs,void 0,"primary-light"));break;default:kr&&(g=x-nS,3>g||console.timeStamp("Blocked",nS,x,qs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}w=(u=!u&&(a&127)===0&&(a&r.expiredLanes)===0||Ze(r,a))?gi(r,a):Y1(r,a,!0);var M=u;do{if(w===Sd){tv&&!u&&Ra(r,a,0,!1),a=pr,nS=Vi(),zI=a;break}else{if(g=Jr(),x=r.current.alternate,M&&!Bp(x)){wo(a),x=ma,w=g,!kr||w<=x||(yi?yi.run(console.timeStamp.bind(console,"Teared Render",x,w,$n,Pn,"error")):console.timeStamp("Teared Render",x,w,$n,Pn,"error")),Il(a,g),w=Y1(r,a,!1),M=!1;continue}if(w===Mm){if(M=a,r.errorRecoveryDisabledLanes&M)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){wo(a),t4(ma,g,a,yi),Il(a,g),a=D;e:{g=r,w=M,M=SS;var q=g.current.memoizedState.isDehydrated;if(q&&(_a(g,D).flags|=256),D=Y1(g,D,!1),D!==Mm){if(GA&&!q){g.errorRecoveryDisabledLanes|=w,Z0|=w,w=W0;break e}g=jo,jo=M,g!==null&&(jo===null?jo=g:jo.push.apply(jo,g))}w=D}if(M=!1,w!==Mm)continue;g=Jr()}}if(w===vS){wo(a),t4(ma,g,a,yi),Il(a,g),_a(r,0),Ra(r,a,0,!0);break}e:{switch(u=r,w){case Sd:case vS:throw Error("Root did not complete. This is a bug in React.");case W0:if((a&4194048)!==a)break;case fE:wo(a),j6(ma,g,a,yi),Il(a,g),x=a,(x&127)!==0?Kw=g:(x&4194048)!==0&&(Qw=g),Ra(u,a,hl,!K0);break e;case Mm:jo=null;break;case cE:case ML:break;default:throw Error("Unknown root exit status.")}if($e.actQueue!==null)fa(u,x,a,jo,wS,pE,hl,Z0,Dm,w,null,null,ma,g);else{if((a&62914560)===a&&(M=mE+DL-Jr(),10<M)){if(Ra(u,a,hl,!K0),Bt(u,0,!0)!==0)break e;Pu=a,u.timeoutHandle=KL(J4.bind(null,u,x,jo,wS,pE,a,hl,Z0,Dm,K0,w,"Throttled",ma,g),M);break e}J4(u,x,jo,wS,pE,a,hl,Z0,Dm,K0,w,null,ma,g)}}}break}while(!0);Na(r)}function J4(r,a,u,g,x,w,M,D,q,Q,we,Ae,ge,Le){r.timeoutHandle=Lm;var gt=a.subtreeFlags,wt=null;if((gt&8192||(gt&16785408)===16785408)&&(wt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gi},Z4(a,w,wt),gt=(w&62914560)===w?mE-Jr():(w&4194048)===w?_L-Jr():0,gt=Ex(wt,gt),gt!==null)){Pu=w,r.cancelPendingCommit=gt(fa.bind(null,r,a,w,u,g,x,M,D,q,we,wt,wt.waitingForViewTransition?"Waiting for the previous Animation":0<wt.count?0<wt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":wt.imgCount===1?"Suspended on an Image":0<wt.imgCount?"Suspended on Images":null,ge,Le)),Ra(r,w,M,!Q);return}fa(r,a,w,u,g,x,M,D,q,we,wt,Ae,ge,Le)}function Bp(r){for(var a=r;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var g=0;g<u.length;g++){var x=u[g],w=x.getSnapshot;x=x.value;try{if(!Io(w(),x))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ra(r,a,u,g){a&=~FA,a&=~Z0,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var x=a;0<x;){var w=31-ea(x),M=1<<w;g[w]=-1,x&=~M}u!==0&&yt(r,u,a)}function Wf(){return(Gn&(ia|ql))===ya?(w0(0),!1):!0}function q1(){if(On!==null){if(pr===dl)var r=On.return;else r=On,vc(),Tc(r),Fy=null,fS=0,r=On;for(;r!==null;)J6(r.alternate,r),r=r.return;On=null}}function Il(r,a){(r&127)!==0&&(bm=a),(r&4194048)!==0&&(md=a),(r&62914560)!==0&&(NI=a),(r&2080374784)!==0&&(kI=a)}function _a(r,a){kr&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pn,"primary-light"));var u=ma;if(ma=Vi(),wn!==0&&0<u){if(wo(wn),ti===cE||ti===W0)j6(u,ma,a,yi);else{var g=ma,x=yi;if(kr&&!(g<=u)){var w=(a&738197653)===a?"tertiary-dark":"primary-dark",M=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";x?x.run(console.timeStamp.bind(console,M,u,g,$n,Pn,w)):console.timeStamp(M,u,g,$n,Pn,w)}}Il(wn,ma)}if(u=yi,yi=null,(a&127)!==0){yi=Jx,x=0<=Hc&&Hc<bm?bm:Hc,g=0<=xm&&xm<bm?bm:xm,w=0<=g?g:0<=x?x:ma,0<=Kw?(wo(2),P6(Kw,w,a,u)):Zw&127,u=x;var D=g,q=eS,Q=0<Hy,we=G0===Zx,Ae=G0===Ww;if(x=ma,g=Jx,w=TA,M=AA,kr){if($n="Blocking",0<u?u>x&&(u=x):u=x,0<D?D>u&&(D=u):D=u,q!==null&&u>D){var ge=Q?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,Q?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)):console.timeStamp(Q?"Consecutive":"Event: "+q,D,u,$n,Pn,ge)}x>u&&(D=we?"error":(a&738197653)===a?"tertiary-light":"primary-light",we=Ae?"Promise Resolved":we?"Cascading Update":5<x-u?"Update Blocked":"Update",Ae=[],M!=null&&Ae.push(["Component name",M]),w!=null&&Ae.push(["Method name",w]),u={start:u,end:x,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:D}}},g?g.run(performance.measure.bind(performance,we,u)):performance.measure(we,u))}Hc=-1.1,G0=0,AA=TA=null,Kw=-1.1,Hy=xm,xm=-1.1,bm=Vi()}if((a&4194048)!==0&&(yi=tS,x=0<=gd&&gd<md?md:gd,u=0<=Ks&&Ks<md?md:Ks,g=0<=F0&&F0<md?md:F0,w=0<=g?g:0<=u?u:ma,0<=Qw?(wo(256),P6(Qw,w,a,yi)):Zw&4194048,Ae=g,D=Sm,q=0<Y0,Q=CA===Ww,w=ma,g=tS,M=_I,we=DI,kr&&($n="Transition",0<u?u>w&&(u=w):u=w,0<x?x>u&&(x=u):x=u,0<Ae?Ae>x&&(Ae=x):Ae=x,x>Ae&&D!==null&&(ge=q?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)):console.timeStamp(q?"Consecutive":"Event: "+D,Ae,x,$n,Pn,ge)),u>x&&(g?g.run(console.timeStamp.bind(console,"Action",x,u,$n,Pn,"primary-dark")):console.timeStamp("Action",x,u,$n,Pn,"primary-dark")),w>u&&(x=Q?"Promise Resolved":5<w-u?"Update Blocked":"Update",Ae=[],we!=null&&Ae.push(["Component name",we]),M!=null&&Ae.push(["Method name",M]),u={start:u,end:w,detail:{devtools:{properties:Ae,track:$n,trackGroup:Pn,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,x,u)):performance.measure(x,u))),Ks=gd=-1.1,CA=0,Qw=-1.1,Y0=F0,F0=-1.1,md=Vi()),(a&62914560)!==0&&(Zw&62914560)!==0&&(wo(4194304),n4(NI,ma)),(a&2080374784)!==0&&(Zw&2080374784)!==0&&(wo(268435456),n4(kI,ma)),u=r.timeoutHandle,u!==Lm&&(r.timeoutHandle=Lm,Vfe(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Pu=0,q1(),Er=r,On=u=fs(r.current,null),wn=a,pr=dl,Gl=null,K0=!1,tv=Ze(r,a),GA=!1,ti=Sd,Dm=hl=FA=Z0=Q0=0,jo=SS=null,pE=!1,(a&8)!==0&&(a|=a&32),g=r.entangledLanes,g!==0)for(r=r.entanglements,g&=a;0<g;)x=31-ea(g),w=1<<x,a|=r[x],g&=~w;return Gc=a,Jd(),r=TI(),1e3<r-EI&&($e.recentlyCreatedOwnerStacks=0,EI=r),Vu.discardPendingWarnings(),u}function ex(r,a){an=null,$e.H=mS,$e.getCurrentStack=null,sl=!1,No=null,a===Gy||a===nE?(a=ip(),pr=bS):a===_A?(a=ip(),pr=RL):pr=a===PA?qA:a!==null&&typeof a=="object"&&typeof a.then=="function"?xS:dE,Gl=a;var u=On;u===null?(ti=vS,Tp(r,Ta(a,r.current))):u.mode&xn&&t0(u)}function G1(){var r=$l.current;return r===null?!0:(wn&4194048)===wn?Qs===null:(wn&62914560)===wn||(wn&536870912)!==0?r===Qs:!1}function tx(){var r=$e.H;return $e.H=mS,r===null?mS:r}function F1(){var r=$e.A;return $e.A=Efe,r}function S0(r){yi===null&&(yi=r._debugTask==null?null:r._debugTask)}function Kf(){ti=W0,K0||(wn&4194048)!==wn&&$l.current!==null||(tv=!0),(Q0&134217727)===0&&(Z0&134217727)===0||Er===null||Ra(Er,wn,hl,!1)}function Y1(r,a,u){var g=Gn;Gn|=ia;var x=tx(),w=F1();if(Er!==r||wn!==a){if(ul){var M=r.memoizedUpdaters;0<M.size&&(Ls(r,wn),M.clear()),bn(r,a)}wS=null,_a(r,a)}a=!1,M=ti;e:do try{if(pr!==dl&&On!==null){var D=On,q=Gl;switch(pr){case qA:q1(),M=fE;break e;case bS:case Rm:case _m:case xS:$l.current===null&&(a=!0);var Q=pr;if(pr=dl,Gl=null,Qf(r,D,q,Q),u&&tv){M=Sd;break e}break;default:Q=pr,pr=dl,Gl=null,Qf(r,D,q,Q)}}ks(),M=ti;break}catch(we){ex(r,we)}while(!0);return a&&r.shellSuspendCounter++,vc(),Gn=g,$e.H=x,$e.A=w,On===null&&(Er=null,wn=0,Jd()),M}function ks(){for(;On!==null;)rx(On)}function gi(r,a){var u=Gn;Gn|=ia;var g=tx(),x=F1();if(Er!==r||wn!==a){if(ul){var w=r.memoizedUpdaters;0<w.size&&(Ls(r,wn),w.clear()),bn(r,a)}wS=null,gE=Jr()+NL,_a(r,a)}else tv=Ze(r,a);e:do try{if(pr!==dl&&On!==null)t:switch(a=On,w=Gl,pr){case dE:pr=dl,Gl=null,Qf(r,a,w,dE);break;case Rm:case _m:if(Oo(w)){pr=dl,Gl=null,wi(a);break}a=function(){pr!==Rm&&pr!==_m||Er!==r||(pr=hE),Na(r)},w.then(a,a);break e;case bS:pr=hE;break e;case RL:pr=HA;break e;case hE:Oo(w)?(pr=dl,Gl=null,wi(a)):(pr=dl,Gl=null,Qf(r,a,w,hE));break;case HA:var M=null;switch(On.tag){case 26:M=On.memoizedState;case 5:case 27:var D=On;if(M?ly(M):D.stateNode.complete){pr=dl,Gl=null;var q=D.sibling;if(q!==null)On=q;else{var Q=D.return;Q!==null?(On=Q,jp(Q)):On=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}pr=dl,Gl=null,Qf(r,a,w,HA);break;case xS:pr=dl,Gl=null,Qf(r,a,w,xS);break;case qA:q1(),ti=fE;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$e.actQueue!==null?ks():nx();break}catch(we){ex(r,we)}while(!0);return vc(),$e.H=g,$e.A=x,Gn=u,On!==null?Sd:(Er=null,wn=0,Jd(),ti)}function nx(){for(;On!==null&&!Ey();)rx(On)}function rx(r){var a=r.alternate;(r.mode&xn)!==Zt?(l1(r),a=Be(r,L1,a,r,Gc),t0(r)):a=Be(r,L1,a,r,Gc),r.memoizedProps=r.pendingProps,a===null?jp(r):On=a}function wi(r){var a=Be(r,W8,r);r.memoizedProps=r.pendingProps,a===null?jp(r):On=a}function W8(r){var a=r.alternate,u=(r.mode&xn)!==Zt;switch(u&&l1(r),r.tag){case 15:case 0:a=Hf(a,r,r.pendingProps,r.type,void 0,wn);break;case 11:a=Hf(a,r,r.pendingProps,r.type.render,r.ref,wn);break;case 5:Tc(r);default:J6(a,r),r=On=e0(r,Gc),a=L1(a,r,Gc)}return u&&t0(r),a}function Qf(r,a,u,g){vc(),Tc(a),Fy=null,fS=0;var x=a.return;try{if(X6(r,x,a,u,wn)){ti=vS,Tp(r,Ta(u,r.current)),On=null;return}}catch(w){if(x!==null)throw On=x,w;ti=vS,Tp(r,Ta(u,r.current)),On=null;return}a.flags&32768?(In||g===dE?r=!0:tv||(wn&536870912)!==0?r=!1:(K0=r=!0,(g===Rm||g===_m||g===bS||g===xS)&&(g=$l.current,g!==null&&g.tag===13&&(g.flags|=16384))),Mr(a,r)):jp(a)}function jp(r){var a=r;do{if((a.flags&32768)!==0){Mr(a,K0);return}var u=a.alternate;if(r=a.return,l1(a),u=Be(a,Q6,u,a,Gc),(a.mode&xn)!==Zt&&Nf(a),u!==null){On=u;return}if(a=a.sibling,a!==null){On=a;return}On=a=r}while(a!==null);ti===Sd&&(ti=ML)}function Mr(r,a){do{var u=Z6(r.alternate,r);if(u!==null){u.flags&=32767,On=u;return}if((r.mode&xn)!==Zt){Nf(r),u=r.actualDuration;for(var g=r.child;g!==null;)u+=g.actualDuration,g=g.sibling;r.actualDuration=u}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(r=r.sibling,r!==null)){On=r;return}On=r=u}while(r!==null);ti=fE,On=null}function fa(r,a,u,g,x,w,M,D,q,Q,we,Ae,ge,Le){r.cancelPendingCommit=null;do kc();while($i!==eh);if(Vu.flushLegacyContextWarning(),Vu.flushPendingUnsafeLifecycleWarnings(),(Gn&(ia|ql))!==ya)throw Error("Should not already be working.");if(wo(u),Q===Mm?t4(ge,Le,u,yi):g!==null?G8(ge,Le,u,g,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,yi):q8(ge,Le,u,yi),a!==null){if(u===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),a===r.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=a.lanes|a.childLanes,w|=bA,ut(r,u,w,M,D,q),r===Er&&(On=Er=null,wn=0),nv=a,th=r,Pu=u,WA=w,QA=x,BL=g,KA=Le,jL=Ae,Uu=yE,PL=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Up(sd,function(){return MS=window.event,Uu===yE&&(Uu=XA),Da(),null})):(r.callbackNode=null,r.callbackPriority=0),pd=null,q0=Vi(),Ae!==null&&F8(Le,q0,Ae,yi),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null,x=Qn.p,Qn.p=Ti,M=Gn,Gn|=ql;try{G4(r,a,u)}finally{Gn=M,Qn.p=x,$e.T=g}}$i=zL,zs(),ix(),ax()}}function zs(){if($i===zL){$i=eh;var r=th,a=nv,u=Pu,g=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||g){g=$e.T,$e.T=null;var x=Qn.p;Qn.p=Ti;var w=Gn;Gn|=ql;try{Jy=u,ev=r,Aa(),W4(a,r),ev=Jy=null,u=sC;var M=L6(r.containerInfo),D=u.focusedElem,q=u.selectionRange;if(M!==D&&D&&D.ownerDocument&&Zg(D.ownerDocument.documentElement,D)){if(q!==null&&Jb(D)){var Q=q.start,we=q.end;if(we===void 0&&(we=Q),"selectionStart"in D)D.selectionStart=Q,D.selectionEnd=Math.min(we,D.value.length);else{var Ae=D.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Le=ge.getSelection(),gt=D.textContent.length,wt=Math.min(q.start,gt),Rr=q.end===void 0?wt:Math.min(q.end,gt);!Le.extend&&wt>Rr&&(M=Rr,Rr=wt,wt=M);var Un=I6(D,wt),pe=I6(D,Rr);if(Un&&pe&&(Le.rangeCount!==1||Le.anchorNode!==Un.node||Le.anchorOffset!==Un.offset||Le.focusNode!==pe.node||Le.focusOffset!==pe.offset)){var ye=Ae.createRange();ye.setStart(Un.node,Un.offset),Le.removeAllRanges(),wt>Rr?(Le.addRange(ye),Le.extend(pe.node,pe.offset)):(ye.setEnd(pe.node,pe.offset),Le.addRange(ye))}}}}for(Ae=[],Le=D;Le=Le.parentNode;)Le.nodeType===1&&Ae.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Ae.length;D++){var xe=Ae[D];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}kE=!!lC,sC=lC=null}finally{Gn=w,Qn.p=x,$e.T=g}}r.current=a,$i=IL}}function ix(){if($i===IL){$i=eh;var r=PL;if(r!==null){q0=Vi();var a=hd,u=q0;!kr||u<=a||console.timeStamp(r,a,u,$n,Pn,"secondary-light")}r=th,a=nv,u=Pu;var g=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||g){g=$e.T,$e.T=null;var x=Qn.p;Qn.p=Ti;var w=Gn;Gn|=ql;try{Jy=u,ev=r,Aa(),li(r,a.alternate,a),ev=Jy=null}finally{Gn=w,Qn.p=x,$e.T=g}}r=KA,a=jL,hd=Vi(),r=a===null?r:q0,a=hd,u=Uu===YA,g=yi,pd!==null?U6(r,a,pd,!1,g):!kr||a<=r||(g?g.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",r,a,$n,Pn,u?"error":"secondary-dark")),$i=LL}}function ax(){if($i===VL||$i===LL){if($i===VL){var r=hd;hd=Vi();var a=hd,u=Uu===YA;!kr||a<=r||console.timeStamp(u?"Interrupted View Transition":"Starting Animation",r,a,$n,Pn,u?" error":"secondary-light"),Uu!==YA&&(Uu=kL)}$i=eh,nA(),r=th;var g=nv;a=Pu,u=BL;var x=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;x?$i=vE:($i=eh,nv=th=null,lw(r,r.pendingLanes),Nm=0,TS=null);var w=r.pendingLanes;if(w===0&&(J0=null),x||rl(r),w=Fr(a),g=g.stateNode,ha&&typeof ha.onCommitFiberRoot=="function")try{var M=(g.current.flags&128)===128;switch(w){case Ti:var D=Ty;break;case ta:D=Ay;break;case ko:D=sd;break;case jc:D=cm;break;default:D=sd}ha.onCommitFiberRoot(Iu,g,D,M)}catch(Ae){$s||($s=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(ul&&r.memoizedUpdaters.clear(),iw(),u!==null){M=$e.T,D=Qn.p,Qn.p=Ti,$e.T=null;try{var q=r.onRecoverableError;for(g=0;g<u.length;g++){var Q=u[g],we=ow(Q.stack);Be(Q.source,q,Q.value,we)}}finally{$e.T=M,Qn.p=D}}(Pu&3)!==0&&kc(),Na(r),w=r.pendingLanes,(a&261930)!==0&&(w&42)!==0?(eE=!0,r===ZA?ES++:(ES=0,ZA=r)):ES=0,x||Il(a,hd),w0(0)}}function ow(r){return r={componentStack:r},Object.defineProperty(r,"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.')}}),r}function lw(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,ep(a)))}function kc(){return zs(),ix(),ax(),Da()}function Da(){if($i!==vE)return!1;var r=th,a=WA;WA=0;var u=Fr(Pu),g=ko>u?ko:u;u=$e.T;var x=Qn.p;try{Qn.p=g,$e.T=null;var w=QA;QA=null,g=th;var M=Pu;if($i=eh,nv=th=null,Pu=0,(Gn&(ia|ql))!==ya)throw Error("Cannot flush passive effects while already rendering.");wo(M),JA=!0,bE=!1;var D=0;if(pd=null,D=Jr(),Uu===kL)n4(hd,D,gfe);else{var q=hd,Q=D,we=Uu===XA;!kr||Q<=q||(yi?yi.run(console.timeStamp.bind(console,we?"Waiting for Paint":"Waiting",q,Q,$n,Pn,"secondary-light")):console.timeStamp(we?"Waiting for Paint":"Waiting",q,Q,$n,Pn,"secondary-light"))}q=Gn,Gn|=ql;var Ae=g.current;Aa(),rw(Ae);var ge=g.current;Ae=KA,Aa(),U1(g,ge,M,w,Ae),rl(g),Gn=q;var Le=Jr();if(ge=D,Ae=yi,pd!==null?U6(ge,Le,pd,!0,Ae):!kr||Le<=ge||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",ge,Le,$n,Pn,"secondary-dark")):console.timeStamp("Remaining Effects",ge,Le,$n,Pn,"secondary-dark")),Il(M,Le),w0(0,!1),bE?g===TS?Nm++:(Nm=0,TS=g):Nm=0,bE=JA=!1,ha&&typeof ha.onPostCommitFiberRoot=="function")try{ha.onPostCommitFiberRoot(Iu,g)}catch(wt){$s||($s=!0,console.error("React instrumentation encountered an error: %o",wt))}var gt=g.current.stateNode;return gt.effectDuration=0,gt.passiveEffectDuration=0,!0}finally{Qn.p=x,$e.T=u,lw(r,a)}}function nl(r,a,u){a=Ta(u,a),Ka(a),a=A1(r.stateNode,a,2),r=Oa(r,a,2),r!==null&&(pt(r,2),Na(r))}function Yn(r,a,u){if(rv=!1,r.tag===3)nl(r,r,u);else{for(;a!==null;){if(a.tag===3){nl(a,r,u);return}if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(J0===null||!J0.has(g))){r=Ta(u,r),Ka(r),u=C1(2),g=Oa(a,u,2),g!==null&&(Ap(u,g,a,r),pt(g,2),Na(g));return}}a=a.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`,u)}}function da(r,a,u){var g=r.pingCache;if(g===null){g=r.pingCache=new Afe;var x=new Set;g.set(a,x)}else x=g.get(a),x===void 0&&(x=new Set,g.set(a,x));x.has(u)||(GA=!0,x.add(u),g=sw.bind(null,r,a,u),ul&&Ls(r,u),a.then(g,g))}function sw(r,a,u){var g=r.pingCache;g!==null&&g.delete(a),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,(u&127)!==0?0>Hc&&(bm=Hc=Vi(),Jx=Xw("Promise Resolved"),G0=Ww):(u&4194048)!==0&&0>Ks&&(md=Ks=Vi(),tS=Xw("Promise Resolved"),CA=Ww),Vp()&&$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`),Er===r&&(wn&u)===u&&(ti===W0||ti===cE&&(wn&62914560)===wn&&Jr()-mE<DL?(Gn&ia)===ya&&_a(r,0):FA|=u,Dm===wn&&(Dm=0)),Na(r)}function Is(r,a){a===0&&(a=Ve()),r=Fi(r,a),r!==null&&(pt(r,a),Na(r))}function Zf(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),Is(r,u)}function Mu(r,a){var u=0;switch(r.tag){case 31:case 13:var g=r.stateNode,x=r.memoizedState;x!==null&&(u=x.retryLane);break;case 19:g=r.stateNode;break;case 22:g=r.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}g!==null&&g.delete(a),Is(r,u)}function Pp(r,a,u){if((a.subtreeFlags&67117056)!==0)for(a=a.child;a!==null;){var g=r,x=a,w=x.type===z0;w=u||w,x.tag!==22?x.flags&67108864?w&&Be(x,X1,g,x):Pp(g,x,w):x.memoizedState===null&&(w&&x.flags&8192?Be(x,X1,g,x):x.subtreeFlags&67108864&&Be(x,Pp,g,x,w)),a=a.sibling}}function X1(r,a){ot(!0);try{K4(a),Ns(a),Q4(r,a.alternate,a,!1),$1(r,a,0,null,!1,0)}finally{ot(!1)}}function rl(r){var a=!0;r.current.mode&(co|Lu)||(a=!1),Pp(r,r.current,a)}function ox(r){if((Gn&ia)===ya){var a=r.tag;if(a===3||a===1||a===0||a===11||a===14||a===15){if(a=ue(r)||"ReactComponent",xE!==null){if(xE.has(a))return;xE.add(a)}else xE=new Set([a]);Be(r,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 Ls(r,a){ul&&r.memoizedUpdaters.forEach(function(u){Fn(r,u,a)})}function Up(r,a){var u=$e.actQueue;return u!==null?(u.push(a),Mfe):L0(r,a)}function $p(r){Vp()&&$e.actQueue===null&&Be(r,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(r))})}function Na(r){r!==iv&&r.next===null&&(iv===null?SE=iv=r:iv=iv.next=r),wE=!0,$e.actQueue!==null?tC||(tC=!0,cw()):eC||(eC=!0,cw())}function w0(r,a){if(!nC&&wE){nC=!0;do for(var u=!1,g=SE;g!==null;){if(r!==0){var x=g.pendingLanes;if(x===0)var w=0;else{var M=g.suspendedLanes,D=g.pingedLanes;w=(1<<31-ea(42|r)+1)-1,w&=x&~(M&~D),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,sx(g,w))}else w=wn,w=Bt(g,g===Er?w:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Lm),(w&3)===0||Ze(g,w)||(u=!0,sx(g,w));g=g.next}while(u);nC=!1}}function uw(){MS=window.event,Jf()}function Jf(){wE=tC=eC=!1;var r=0;nh!==0&&E0()&&(r=nh);for(var a=Jr(),u=null,g=SE;g!==null;){var x=g.next,w=lx(g,a);w===0?(g.next=null,u===null?SE=x:u.next=x,x===null&&(iv=u)):(u=g,(r!==0||(w&3)!==0)&&(wE=!0)),g=x}$i!==eh&&$i!==vE||w0(r),nh!==0&&(nh=0)}function lx(r,a){for(var u=r.suspendedLanes,g=r.pingedLanes,x=r.expirationTimes,w=r.pendingLanes&-62914561;0<w;){var M=31-ea(w),D=1<<M,q=x[M];q===-1?((D&u)===0||(D&g)!==0)&&(x[M]=be(D,a)):q<=a&&(r.expiredLanes|=D),w&=~D}if(a=Er,u=wn,u=Bt(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Lm),g=r.callbackNode,u===0||r===a&&(pr===Rm||pr===_m)||r.cancelPendingCommit!==null)return g!==null&&ux(g),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||Ze(r,u)){if(a=u&-u,a!==r.callbackPriority||$e.actQueue!==null&&g!==rC)ux(g);else return a;switch(Fr(u)){case Ti:case ta:u=Ay;break;case ko:u=sd;break;case jc:u=cm;break;default:u=sd}return g=Hp.bind(null,r),$e.actQueue!==null?($e.actQueue.push(g),u=rC):u=L0(u,g),r.callbackPriority=a,r.callbackNode=u,a}return g!==null&&ux(g),r.callbackPriority=2,r.callbackNode=null,2}function Hp(r,a){if(eE=Jw=!1,MS=window.event,$i!==eh&&$i!==vE)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(Uu===yE&&(Uu=XA),kc()&&r.callbackNode!==u)return null;var g=wn;return g=Bt(r,r===Er?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Lm),g===0?null:(aw(r,g,a),lx(r,Jr()),r.callbackNode!=null&&r.callbackNode===u?Hp.bind(null,r):null)}function sx(r,a){if(kc())return null;Jw=eE,eE=!1,aw(r,a,!0)}function ux(r){r!==rC&&r!==null&&wy(r)}function cw(){$e.actQueue!==null&&$e.actQueue.push(function(){return Jf(),null}),Bfe(function(){(Gn&(ia|ql))!==ya?L0(Ty,uw):Jf()})}function Hn(){if(nh===0){var r=wm;r===0&&(r=fm,fm<<=1,(fm&261888)===0&&(fm=256)),nh=r}return nh}function dr(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(xt(r,"action"),hc(""+r))}function Mn(r,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,r.id&&u.setAttribute("form",r.id),a.parentNode.insertBefore(u,a),r=new FormData(r),u.parentNode.removeChild(u),r}function zn(r,a,u,g,x){if(a==="submit"&&u&&u.stateNode===x){var w=dr((x[pa]||null).action),M=g.submitter;M&&(a=(a=M[pa]||null)?dr(a.formAction):M.getAttribute("formAction"),a!==null&&(w=a,M=null));var D=new Uw("action","action",null,g,x);r.push({event:D,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(nh!==0){var q=M?Mn(x,M):new FormData(x),Q={pending:!0,data:q,method:x.method,action:w};Object.freeze(Q),c0(u,Q,null,q)}}else typeof w=="function"&&(D.preventDefault(),q=M?Mn(x,M):new FormData(x),Q={pending:!0,data:q,method:x.method,action:w},Object.freeze(Q),c0(u,Q,w,q))},currentTarget:x}]})}}function Xn(r,a,u){r.currentTarget=u;try{a(r)}catch(g){mA(g)}r.currentTarget=null}function io(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var g=r[u];e:{var x=void 0,w=g.event;if(g=g.listeners,a)for(var M=g.length-1;0<=M;M--){var D=g[M],q=D.instance,Q=D.currentTarget;if(D=D.listener,q!==x&&w.isPropagationStopped())break e;q!==null?Be(q,Xn,w,D,Q):Xn(w,D,Q),x=q}else for(M=0;M<g.length;M++){if(D=g[M],q=D.instance,Q=D.currentTarget,D=D.listener,q!==x&&w.isPropagationStopped())break e;q!==null?Be(q,Xn,w,D,Q):Xn(w,D,Q),x=q}}}}function sn(r,a){iC.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var u=a[Px];u===void 0&&(u=a[Px]=new Set);var g=r+"__bubble";u.has(g)||(Vs(a,r,2,!1),u.add(g))}function zc(r,a,u){iC.has(r)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var g=0;a&&(g|=4),Vs(u,r,g,a)}function qp(r){if(!r[EE]){r[EE]=!0,hm.forEach(function(u){u!=="selectionchange"&&(iC.has(u)||zc(u,!1,r),zc(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[EE]||(a[EE]=!0,zc("selectionchange",!1,a))}}function Vs(r,a,u,g){switch(dy(a)){case Ti:var x=Zi;break;case ta:x=Z8;break;default:x=fy}u=x.bind(null,a,u,r),x=void 0,!aA||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),g?x!==void 0?r.addEventListener(a,u,{capture:!0,passive:x}):r.addEventListener(a,u,!0):x!==void 0?r.addEventListener(a,u,{passive:x}):r.addEventListener(a,u,!1)}function Nr(r,a,u,g,x){var w=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var D=g.stateNode.containerInfo;if(D===x)break;if(M===4)for(M=g.return;M!==null;){var q=M.tag;if((q===3||q===4)&&M.stateNode.containerInfo===x)return;M=M.return}for(;D!==null;){if(M=tt(D),M===null)return;if(q=M.tag,q===5||q===6||q===26||q===27){g=w=M;continue e}D=D.parentNode}}g=g.return}Ef(function(){var Q=w,we=Hh(u),Ae=[];e:{var ge=wI.get(r);if(ge!==void 0){var Le=Uw,gt=r;switch(r){case"keypress":if(Kd(u)===0)break e;case"keydown":case"keyup":Le=Hce;break;case"focusin":gt="focus",Le=uA;break;case"focusout":gt="blur",Le=uA;break;case"beforeblur":case"afterblur":Le=uA;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=sI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=Dce;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Fce;break;case vI:case bI:case xI:Le=zce;break;case SI:Le=Xce;break;case"scroll":case"scrollend":Le=Rce;break;case"wheel":Le=Kce;break;case"copy":case"cut":case"paste":Le=Lce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=cI;break;case"toggle":case"beforetoggle":Le=Zce}var wt=(a&4)!==0,Rr=!wt&&(r==="scroll"||r==="scrollend"),Un=wt?ge!==null?ge+"Capture":null:ge;wt=[];for(var pe=Q,ye;pe!==null;){var xe=pe;if(ye=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ye===null||Un===null||(xe=os(pe,Un),xe!=null&&wt.push(il(pe,xe,ye))),Rr)break;pe=pe.return}0<wt.length&&(ge=new Le(ge,gt,null,u,we),Ae.push({event:ge,listeners:wt}))}}if((a&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",ge&&u!==$x&&(gt=u.relatedTarget||u.fromElement)&&(tt(gt)||gt[cl]))break e;if((Le||ge)&&(ge=we.window===we?we:(ge=we.ownerDocument)?ge.defaultView||ge.parentWindow:window,Le?(gt=u.relatedTarget||u.toElement,Le=Q,gt=gt?tt(gt):null,gt!==null&&(Rr=z(gt),wt=gt.tag,gt!==Rr||wt!==5&&wt!==27&&wt!==6)&&(gt=null)):(Le=null,gt=Q),Le!==gt)){if(wt=sI,xe="onMouseLeave",Un="onMouseEnter",pe="mouse",(r==="pointerout"||r==="pointerover")&&(wt=cI,xe="onPointerLeave",Un="onPointerEnter",pe="pointer"),Rr=Le==null?ge:We(Le),ye=gt==null?ge:We(gt),ge=new wt(xe,pe+"leave",Le,u,we),ge.target=Rr,ge.relatedTarget=ye,xe=null,tt(we)===Q&&(wt=new wt(Un,pe+"enter",gt,u,we),wt.target=ye,wt.relatedTarget=Rr,xe=wt),Rr=xe,Le&&gt)t:{for(wt=cx,Un=Le,pe=gt,ye=0,xe=Un;xe;xe=wt(xe))ye++;xe=0;for(var Ge=pe;Ge;Ge=wt(Ge))xe++;for(;0<ye-xe;)Un=wt(Un),ye--;for(;0<xe-ye;)pe=wt(pe),xe--;for(;ye--;){if(Un===pe||pe!==null&&Un===pe.alternate){wt=Un;break t}Un=wt(Un),pe=wt(pe)}wt=null}else wt=null;Le!==null&&ao(Ae,ge,Le,wt,!1),gt!==null&&Rr!==null&&ao(Ae,Rr,gt,wt,!0)}}e:{if(ge=Q?We(Q):window,Le=ge.nodeName&&ge.nodeName.toLowerCase(),Le==="select"||Le==="input"&&ge.type==="file")var bt=Fh;else if(Gh(ge))if(gI)bt=Qg;else{bt=Zb;var on=Qb}else Le=ge.nodeName,!Le||Le.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?Q&&$h(Q.elementType)&&(bt=Fh):bt=Yh;if(bt&&(bt=bt(r,Q))){Kb(Ae,bt,u,we);break e}on&&on(r,ge,Q),r==="focusout"&&Q&&ge.type==="number"&&Q.memoizedProps.value!=null&&Pb(ge,"number",ge.value)}switch(on=Q?We(Q):window,r){case"focusin":(Gh(on)||on.contentEditable==="true")&&(Iy=on,fA=Q,Wx=null);break;case"focusout":Wx=fA=Iy=null;break;case"mousedown":dA=!0;break;case"contextmenu":case"mouseup":case"dragend":dA=!1,V6(Ae,u,we);break;case"selectionchange":if(nfe)break;case"keydown":case"keyup":V6(Ae,u,we)}var Pt;if(cA)e:{switch(r){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else zy?pu(r,u)&&(Nt="onCompositionEnd"):r==="keydown"&&u.keyCode===fI&&(Nt="onCompositionStart");Nt&&(dI&&u.locale!=="ko"&&(zy||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&zy&&(Pt=Xb()):(j0=we,oA="value"in j0?j0.value:j0.textContent,zy=!0)),on=Bs(Q,Nt),0<on.length&&(Nt=new uI(Nt,r,null,u,we),Ae.push({event:Nt,listeners:on}),Pt?Nt.data=Pt:(Pt=Xg(u),Pt!==null&&(Nt.data=Pt)))),(Pt=efe?Wg(r,u):D6(r,u))&&(Nt=Bs(Q,"onBeforeInput"),0<Nt.length&&(on=new Bce("onBeforeInput","beforeinput",null,u,we),Ae.push({event:on,listeners:Nt}),on.data=Pt)),zn(Ae,r,Q,u,we)}io(Ae,a)})}function il(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Bs(r,a){for(var u=a+"Capture",g=[];r!==null;){var x=r,w=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||w===null||(x=os(r,u),x!=null&&g.unshift(il(r,x,w)),x=os(r,a),x!=null&&g.push(il(r,x,w))),r.tag===3)return g;r=r.return}return[]}function cx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function ao(r,a,u,g,x){for(var w=a._reactName,M=[];u!==null&&u!==g;){var D=u,q=D.alternate,Q=D.stateNode;if(D=D.tag,q!==null&&q===g)break;D!==5&&D!==26&&D!==27||Q===null||(q=Q,x?(Q=os(u,w),Q!=null&&M.unshift(il(u,Q,q))):x||(Q=os(u,w),Q!=null&&M.push(il(u,Q,q)))),u=u.return}M.length!==0&&r.push({event:a,listeners:M})}function Ic(r,a){Yb(r,a),r!=="input"&&r!=="textarea"&&r!=="select"||a==null||a.value!==null||oI||(oI=!0,r==="select"&&a.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.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var u={registrationNameDependencies:Hs,possibleRegistrationNames:My};$h(r)||typeof a.is=="string"||$8(r,a,u),a.contentEditable&&!a.suppressContentEditableWarning&&a.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 Qr(r,a,u,g){a!==u&&(u=Ru(u),Ru(a)!==u&&(g[r]=a))}function oo(r,a,u){a.forEach(function(g){u[ed(g)]=g==="style"?Ll(r):r.getAttribute(g)})}function al(r,a){a===!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.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)}function Gp(r,a){return r=r.namespaceURI===Cn||r.namespaceURI===Dn?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=a,r.innerHTML}function Ru(r){return Mt(r)&&(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.",st(r)),Qt(r)),(typeof r=="string"?r:""+r).replace(Rfe,`
`).replace(_fe,"")}function Fp(r,a){return a=Ru(a),Ru(r)===a}function Kn(r,a,u,g,x,w){switch(u){case"children":typeof g=="string"?(Wd(g,a,!1),a==="body"||a==="textarea"&&g===""||as(r,g)):(typeof g=="number"||typeof g=="bigint")&&(Wd(""+g,a,!1),a!=="body"&&as(r,""+g));break;case"className":Ih(r,"class",g);break;case"tabIndex":Ih(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Ih(r,u,g);break;case"style":wf(r,g,w);break;case"data":if(a!=="object"){Ih(r,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||u!=="href")){console.error(u==="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.',u,u),r.removeAttribute(u);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"action":case"formAction":if(g!=null&&(a==="form"?u==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof g=="function"&&(x.encType==null&&x.method==null||CE||(CE=!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.")),x.target==null||AE||(AE=!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."))):a==="input"||a==="button"?u==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||x.type==="submit"||x.type==="image"||TE?a!=="button"||x.type==null||x.type==="submit"||TE?typeof g=="function"&&(x.name==null||GL||(GL=!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.')),x.formEncType==null&&x.formMethod==null||CE||(CE=!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.")),x.formTarget==null||AE||(AE=!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."))):(TE=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(TE=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(u==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof g=="function"){r.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(u==="formAction"?(a!=="input"&&Kn(r,a,"name",x.name,x,null),Kn(r,a,"formEncType",x.formEncType,x,null),Kn(r,a,"formMethod",x.formMethod,x,null),Kn(r,a,"formTarget",x.formTarget,x,null)):(Kn(r,a,"encType",x.encType,x,null),Kn(r,a,"method",x.method,x,null),Kn(r,a,"target",x.target,x,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}xt(g,u),g=hc(""+g),r.setAttribute(u,g);break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));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(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"multiple":r.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":r.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"){r.removeAttribute("xlink:href");break}xt(g,u),u=hc(""+g),r.setAttributeNS(km,"xlink:href",u);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"?(xt(g,u),r.setAttribute(u,""+g)):r.removeAttribute(u);break;case"inert":g!==""||OE[u]||(OE[u]=!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.",u));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"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":g===!0?r.setAttribute(u,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?(xt(g,u),r.setAttribute(u,g)):r.removeAttribute(u);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?r.removeAttribute(u):(xt(g,u),r.setAttribute(u,g));break;case"popover":sn("beforetoggle",r),sn("toggle",r),mf(r,"popover",g);break;case"xlinkActuate":is(r,km,"xlink:actuate",g);break;case"xlinkArcrole":is(r,km,"xlink:arcrole",g);break;case"xlinkRole":is(r,km,"xlink:role",g);break;case"xlinkShow":is(r,km,"xlink:show",g);break;case"xlinkTitle":is(r,km,"xlink:title",g);break;case"xlinkType":is(r,km,"xlink:type",g);break;case"xmlBase":is(r,aC,"xml:base",g);break;case"xmlLang":is(r,aC,"xml:lang",g);break;case"xmlSpace":is(r,aC,"xml:space",g);break;case"is":w!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),mf(r,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":FL||g==null||typeof g!="object"||(FL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",g));default:!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N"?(u=Fb(u),mf(r,u,g)):Hs.hasOwnProperty(u)&&g!=null&&typeof g!="function"&&al(u,g)}}function js(r,a,u,g,x,w){switch(u){case"style":wf(r,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(u=g.__html,u!=null){if(x.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"children":typeof g=="string"?as(r,g):(typeof g=="number"||typeof g=="bigint")&&as(r,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),sn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),sn("scrollend",r));break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=Gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Hs.hasOwnProperty(u))g!=null&&typeof g!="function"&&al(u,g);else e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),a=u.slice(2,x?u.length-7:void 0),w=r[pa]||null,w=w!=null?w[u]:null,typeof w=="function"&&r.removeEventListener(a,w,x),typeof g=="function")){typeof w!="function"&&w!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,g,x);break e}u in r?r[u]=g:g===!0?r.setAttribute(u,""):mf(r,u,g)}}}function jn(r,a,u){switch(Ic(a,u),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",r),sn("load",r);var g=!1,x=!1,w;for(w in u)if(u.hasOwnProperty(w)){var M=u[w];if(M!=null)switch(w){case"src":g=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Kn(r,a,w,M,u,null)}}x&&Kn(r,a,"srcSet",u.srcSet,u,null),g&&Kn(r,a,"src",u.src,u,null);return;case"input":Bn("input",u),sn("invalid",r);var D=w=M=x=null,q=null,Q=null;for(g in u)if(u.hasOwnProperty(g)){var we=u[g];if(we!=null)switch(g){case"name":x=we;break;case"type":M=we;break;case"checked":q=we;break;case"defaultChecked":Q=we;break;case"value":w=we;break;case"defaultValue":D=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Kn(r,a,g,we,u,null)}}gf(r,u),O6(r,w,D,q,Q,M,x,!1);return;case"select":Bn("select",u),sn("invalid",r),g=M=w=null;for(x in u)if(u.hasOwnProperty(x)&&(D=u[x],D!=null))switch(x){case"value":w=D;break;case"defaultValue":M=D;break;case"multiple":g=D;default:Kn(r,a,x,D,u,null)}yf(r,u),a=w,u=M,r.multiple=!!g,a!=null?dc(r,!!g,a,!1):u!=null&&dc(r,!!g,u,!0);return;case"textarea":Bn("textarea",u),sn("invalid",r),w=x=g=null;for(M in u)if(u.hasOwnProperty(M)&&(D=u[M],D!=null))switch(M){case"value":g=D;break;case"defaultValue":x=D;break;case"children":w=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Kn(r,a,M,D,u,null)}vf(r,u),bf(r,g,x,w);return;case"option":Ub(r,u);for(q in u)if(u.hasOwnProperty(q)&&(g=u[q],g!=null))switch(q){case"selected":r.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Kn(r,a,q,g,u,null)}return;case"dialog":sn("beforetoggle",r),sn("toggle",r),sn("cancel",r),sn("close",r);break;case"iframe":case"object":sn("load",r);break;case"video":case"audio":for(g=0;g<AS.length;g++)sn(AS[g],r);break;case"image":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"embed":case"source":case"link":sn("error",r),sn("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in u)if(u.hasOwnProperty(Q)&&(g=u[Q],g!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Kn(r,a,Q,g,u,null)}return;default:if($h(a)){for(we in u)u.hasOwnProperty(we)&&(g=u[we],g!==void 0&&js(r,a,we,g,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(g=u[D],g!=null&&Kn(r,a,D,g,u,null))}function Lc(r,a,u,g){switch(Ic(a,g),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,w=null,M=null,D=null,q=null,Q=null,we=null;for(Le in u){var Ae=u[Le];if(u.hasOwnProperty(Le)&&Ae!=null)switch(Le){case"checked":break;case"value":break;case"defaultValue":q=Ae;default:g.hasOwnProperty(Le)||Kn(r,a,Le,null,g,Ae)}}for(var ge in g){var Le=g[ge];if(Ae=u[ge],g.hasOwnProperty(ge)&&(Le!=null||Ae!=null))switch(ge){case"type":w=Le;break;case"name":x=Le;break;case"checked":Q=Le;break;case"defaultChecked":we=Le;break;case"value":M=Le;break;case"defaultValue":D=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Le!==Ae&&Kn(r,a,ge,Le,g,Ae)}}a=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,g=g.type==="checkbox"||g.type==="radio"?g.checked!=null:g.value!=null,a||!g||qL||(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"),qL=!0),!a||g||HL||(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"),HL=!0),Lh(r,M,D,q,Q,we,w,x);return;case"select":Le=M=D=ge=null;for(w in u)if(q=u[w],u.hasOwnProperty(w)&&q!=null)switch(w){case"value":break;case"multiple":Le=q;default:g.hasOwnProperty(w)||Kn(r,a,w,null,g,q)}for(x in g)if(w=g[x],q=u[x],g.hasOwnProperty(x)&&(w!=null||q!=null))switch(x){case"value":ge=w;break;case"defaultValue":D=w;break;case"multiple":M=w;default:w!==q&&Kn(r,a,x,w,g,q)}g=D,a=M,u=Le,ge!=null?dc(r,!!a,ge,!1):!!u!=!!a&&(g!=null?dc(r,!!a,g,!0):dc(r,!!a,a?[]:"",!1));return;case"textarea":Le=ge=null;for(D in u)if(x=u[D],u.hasOwnProperty(D)&&x!=null&&!g.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Kn(r,a,D,null,g,x)}for(M in g)if(x=g[M],w=u[M],g.hasOwnProperty(M)&&(x!=null||w!=null))switch(M){case"value":ge=x;break;case"defaultValue":Le=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:x!==w&&Kn(r,a,M,x,g,w)}Yd(r,ge,Le);return;case"option":for(var gt in u)if(ge=u[gt],u.hasOwnProperty(gt)&&ge!=null&&!g.hasOwnProperty(gt))switch(gt){case"selected":r.selected=!1;break;default:Kn(r,a,gt,null,g,ge)}for(q in g)if(ge=g[q],Le=u[q],g.hasOwnProperty(q)&&ge!==Le&&(ge!=null||Le!=null))switch(q){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:Kn(r,a,q,ge,g,Le)}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 wt in u)ge=u[wt],u.hasOwnProperty(wt)&&ge!=null&&!g.hasOwnProperty(wt)&&Kn(r,a,wt,null,g,ge);for(Q in g)if(ge=g[Q],Le=u[Q],g.hasOwnProperty(Q)&&ge!==Le&&(ge!=null||Le!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Kn(r,a,Q,ge,g,Le)}return;default:if($h(a)){for(var Rr in u)ge=u[Rr],u.hasOwnProperty(Rr)&&ge!==void 0&&!g.hasOwnProperty(Rr)&&js(r,a,Rr,void 0,g,ge);for(we in g)ge=g[we],Le=u[we],!g.hasOwnProperty(we)||ge===Le||ge===void 0&&Le===void 0||js(r,a,we,ge,g,Le);return}}for(var Un in u)ge=u[Un],u.hasOwnProperty(Un)&&ge!=null&&!g.hasOwnProperty(Un)&&Kn(r,a,Un,null,g,ge);for(Ae in g)ge=g[Ae],Le=u[Ae],!g.hasOwnProperty(Ae)||ge===Le||ge==null&&Le==null||Kn(r,a,Ae,ge,g,Le)}function ed(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function Ll(r){var a={};r=r.style;for(var u=0;u<r.length;u++){var g=r[u];a[g]=r.getPropertyValue(g)}return a}function W1(r,a,u){if(a!=null&&typeof a!="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,x=g="",w;for(w in a)if(a.hasOwnProperty(w)){var M=a[w];M!=null&&typeof M!="boolean"&&M!==""&&(w.indexOf("--")===0?(Ut(M,w),g+=x+w+":"+(""+M).trim()):typeof M!="number"||M===0||pn.has(w)?(Ut(M,w),g+=x+w.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+(""+M).trim()):g+=x+w.replace(Rt,"-$1").toLowerCase().replace(Ht,"-ms-")+":"+M+"px",x=";")}g=g||null,a=r.getAttribute("style"),a!==g&&(g=Ru(g),Ru(a)!==g&&(u.style=Ll(r)))}}function lo(r,a,u,g,x,w){if(x.delete(u),r=r.getAttribute(u),r===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(xt(g,a),r===""+g)return}Qr(a,r,g,w)}function fx(r,a,u,g,x,w){if(x.delete(u),r=r.getAttribute(u),r===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}Qr(a,r,g,w)}function td(r,a,u,g,x,w){if(x.delete(u),r=r.getAttribute(u),r===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(xt(g,u),r===""+g)return}Qr(a,r,g,w)}function K1(r,a,u,g,x,w){if(x.delete(u),r=r.getAttribute(u),r===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)&&(xt(g,a),r===""+g))return}Qr(a,r,g,w)}function ka(r,a,u,g,x,w){if(x.delete(u),r=r.getAttribute(u),r===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(xt(g,a),u=hc(""+g),r===u)return}Qr(a,r,g,w)}function dx(r,a,u,g){for(var x={},w=new Set,M=r.attributes,D=0;D<M.length;D++)switch(M[D].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:w.add(M[D].name)}if($h(a)){for(var q in u)if(u.hasOwnProperty(q)){var Q=u[q];if(Q!=null){if(Hs.hasOwnProperty(q))typeof Q!="function"&&al(q,Q);else if(u.suppressHydrationWarning!==!0)switch(q){case"children":typeof Q!="string"&&typeof Q!="number"||Qr("children",r.textContent,Q,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Gp(r,Q),Qr(q,M,Q,x));continue;case"style":w.delete(q),W1(r,Q,x);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":w.delete(q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",q);continue;case"className":w.delete("class"),M=Ug(r,"class",Q),Qr("className",M,Q,x);continue;default:g.context===wd&&a!=="svg"&&a!=="math"?w.delete(q.toLowerCase()):w.delete(q),M=Ug(r,q,Q),Qr(q,M,Q,x)}}}}else for(Q in u)if(u.hasOwnProperty(Q)&&(q=u[Q],q!=null)){if(Hs.hasOwnProperty(Q))typeof q!="function"&&al(Q,q);else if(u.suppressHydrationWarning!==!0)switch(Q){case"children":typeof q!="string"&&typeof q!="number"||Qr("children",r.textContent,q,x);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,q=q?q.__html:void 0,q!=null&&(q=Gp(r,q),M!==q&&(x[Q]={__html:M}));continue;case"className":lo(r,Q,"class",q,w,x);continue;case"tabIndex":lo(r,Q,"tabindex",q,w,x);continue;case"style":w.delete(Q),W1(r,q,x);continue;case"multiple":w.delete(Q),Qr(Q,r.multiple,q,x);continue;case"muted":w.delete(Q),Qr(Q,r.muted,q,x);continue;case"autoFocus":w.delete("autofocus"),Qr(Q,r.autofocus,q,x);continue;case"data":if(a!=="object"){w.delete(Q),M=r.getAttribute("data"),Qr(Q,M,q,x);continue}case"src":case"href":if(!(q!==""||a==="a"&&Q==="href"||a==="object"&&Q==="data")){console.error(Q==="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.',Q,Q);continue}ka(r,Q,Q,q,w,x);continue;case"action":case"formAction":if(M=r.getAttribute(Q),typeof q=="function"){w.delete(Q.toLowerCase()),Q==="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===Dfe){w.delete(Q.toLowerCase()),Qr(Q,"function",q,x);continue}ka(r,Q,Q.toLowerCase(),q,w,x);continue;case"xlinkHref":ka(r,Q,"xlink:href",q,w,x);continue;case"contentEditable":td(r,Q,"contenteditable",q,w,x);continue;case"spellCheck":td(r,Q,"spellcheck",q,w,x);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":td(r,Q,Q,q,w,x);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":fx(r,Q,Q.toLowerCase(),q,w,x);continue;case"capture":case"download":e:{D=r;var we=M=Q,Ae=x;if(w.delete(we),D=D.getAttribute(we),D===null)switch(typeof q){case"undefined":case"function":case"symbol":break e;default:if(q===!1)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":break;case"boolean":if(q===!0&&D==="")break e;break;default:if(xt(q,M),D===""+q)break e}Qr(M,D,q,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(D=r,we=M=Q,Ae=x,w.delete(we),D=D.getAttribute(we),D===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(q)||1>q)break e}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(q)||1>q)&&(xt(q,M),D===""+q))break e}Qr(M,D,q,Ae)}continue;case"rowSpan":K1(r,Q,"rowspan",q,w,x);continue;case"start":K1(r,Q,Q,q,w,x);continue;case"xHeight":lo(r,Q,"x-height",q,w,x);continue;case"xlinkActuate":lo(r,Q,"xlink:actuate",q,w,x);continue;case"xlinkArcrole":lo(r,Q,"xlink:arcrole",q,w,x);continue;case"xlinkRole":lo(r,Q,"xlink:role",q,w,x);continue;case"xlinkShow":lo(r,Q,"xlink:show",q,w,x);continue;case"xlinkTitle":lo(r,Q,"xlink:title",q,w,x);continue;case"xlinkType":lo(r,Q,"xlink:type",q,w,x);continue;case"xmlBase":lo(r,Q,"xml:base",q,w,x);continue;case"xmlLang":lo(r,Q,"xml:lang",q,w,x);continue;case"xmlSpace":lo(r,Q,"xml:space",q,w,x);continue;case"inert":q!==""||OE[Q]||(OE[Q]=!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.",Q)),fx(r,Q,Q,q,w,x);continue;default:if(!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"){D=Fb(Q),M=!1,g.context===wd&&a!=="svg"&&a!=="math"?w.delete(D.toLowerCase()):(we=Q.toLowerCase(),we=_y.hasOwnProperty(we)&&_y[we]||null,we!==null&&we!==Q&&(M=!0,w.delete(we)),w.delete(D));e:if(we=r,Ae=D,D=q,oi(Ae))if(we.hasAttribute(Ae))we=we.getAttribute(Ae),xt(D,Ae),D=we===""+D?D:we;else{switch(typeof D){case"function":case"symbol":break e;case"boolean":if(we=Ae.toLowerCase().slice(0,5),we!=="data-"&&we!=="aria-")break e}D=D===void 0?void 0:null}else D=void 0;M||Qr(Q,D,q,x)}}}return 0<w.size&&u.suppressHydrationWarning!==!0&&oo(r,w,x),Object.keys(x).length===0?null:x}function so(r,a){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+a+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+a+" "+r[r.length-1]}}function hx(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),g=0;g<u.length;g++){var x=u[g],w=x.transferSize,M=x.initiatorType,D=x.duration;if(w&&D&&hx(M)){for(M=0,D=x.responseEnd,g+=1;g<u.length;g++){var q=u[g],Q=q.startTime;if(Q>D)break;var we=q.transferSize,Ae=q.initiatorType;we&&hx(Ae)&&(q=q.responseEnd,M+=we*(q<D?1:(D-Q)/(q-Q)))}if(--g,a+=8*(w+M)/(x.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}function Q1(r){return r.nodeType===9?r:r.ownerDocument}function _u(r){switch(r){case Dn:return ov;case Cn:return RE;default:return wd}}function Yp(r,a){if(r===wd)switch(a){case"svg":return ov;case"math":return RE;default:return wd}return r===ov&&a==="foreignObject"?wd:r}function Xp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function E0(){var r=window.event;return r&&r.type==="popstate"?r===uC?!1:(uC=r,!0):(uC=null,!1)}function T0(){var r=window.event;return r&&r!==MS?r.type:null}function A0(){var r=window.event;return r&&r!==MS?r.timeStamp:-1.1}function dw(r){setTimeout(function(){throw r})}function hw(r,a,u){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src?r.src=u.src:u.srcSet&&(r.srcset=u.srcSet)}}function Z1(){}function px(r,a,u,g){Lc(r,a,u,g),r[pa]=g}function pw(r){as(r,"")}function K8(r,a,u){r.nodeValue=u}function mw(r){if(!r.__reactWarnedAboutChildrenConflict){var a=r[pa]||null;if(a!==null){var u=Ne(r);u!==null&&(typeof a.children=="string"||typeof a.children=="number"?(r.__reactWarnedAboutChildrenConflict=!0,Be(u,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.')})):a.dangerouslySetInnerHTML!=null&&(r.__reactWarnedAboutChildrenConflict=!0,Be(u,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 Du(r){return r==="head"}function gw(r,a){r.removeChild(a)}function C0(r,a){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(a)}function Wp(r,a){var u=a,g=0;do{var x=u.nextSibling;if(r.removeChild(u),x&&x.nodeType===8)if(u=x.data,u===OS||u===ME){if(g===0){r.removeChild(x),N0(a);return}g--}else if(u===CS||u===rh||u===Im||u===av||u===zm)g++;else if(u===kfe)Zp(r.ownerDocument.documentElement);else if(u===Ife){u=r.ownerDocument.head,Zp(u);for(var w=u.firstChild;w;){var M=w.nextSibling,D=w.nodeName;w[dm]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=M}}else u===zfe&&Zp(r.ownerDocument.body);u=x}while(u);N0(a)}function mx(r,a){var u=r;r=0;do{var g=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),g&&g.nodeType===8)if(u=g.data,u===OS){if(r===0)break;r--}else u!==CS&&u!==rh&&u!==Im&&u!==av||r++;u=g}while(u)}function yw(r){mx(r,!0)}function vw(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function bw(r){r.nodeValue=""}function xw(r){mx(r,!1)}function Sw(r,a){a=a[Lfe],a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function J1(r,a){r.nodeValue=a}function ey(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":ey(u),Oe(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function ww(r,a,u,g){for(;r.nodeType===1;){var x=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[dm])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(w=r.getAttribute("rel"),w==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(w!==x.rel||r.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||r.getAttribute("title")!==(x.title==null?null:x.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(w=r.getAttribute("src"),(w!==(x.src==null?null:x.src)||r.getAttribute("type")!==(x.type==null?null:x.type)||r.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&w&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){xt(x.name,"name");var w=x.name==null?null:""+x.name;if(x.type==="hidden"&&r.getAttribute("name")===w)return r}else return r;if(r=Do(r.nextSibling),r===null)break}return null}function ir(r,a,u){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=Do(r.nextSibling),r===null))return null;return r}function ty(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Do(r.nextSibling),r===null))return null;return r}function gx(r){return r.data===rh||r.data===Im}function ny(r){return r.data===av||r.data===rh&&r.ownerDocument.readyState!==XL}function Q8(r,a){var u=r.ownerDocument;if(r.data===Im)r._reactRetry=a;else if(r.data!==rh||u.readyState!==XL)a();else{var g=function(){a(),u.removeEventListener("DOMContentLoaded",g)};u.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function Do(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a===CS||a===av||a===rh||a===Im||a===zm||a===oC||a===YL)break;if(a===OS||a===ME)return null}}return r}function Ew(r){if(r.nodeType===1){for(var a=r.nodeName.toLowerCase(),u={},g=r.attributes,x=0;x<g.length;x++){var w=g[x];u[ed(w.name)]=w.name.toLowerCase()==="style"?Ll(r):w.value}return{type:a,props:u}}return r.nodeType===8?r.data===zm?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:r.nodeValue}function Kp(r,a,u){return u===null||u[Nfe]!==!0?(r.nodeValue===a?r=null:(a=Ru(a),r=Ru(r.nodeValue)===a?null:r.nodeValue),r):null}function Vc(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===OS||u===ME){if(a===0)return Do(r.nextSibling);a--}else u!==CS&&u!==av&&u!==rh&&u!==Im&&u!==zm||a++}r=r.nextSibling}return null}function ry(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===CS||u===av||u===rh||u===Im||u===zm){if(a===0)return r;a--}else u!==OS&&u!==ME||a++}r=r.previousSibling}return null}function iy(r){N0(r)}function yx(r){N0(r)}function Bc(r){N0(r)}function Vl(r,a,u,g,x){switch(x&&Fg(r,g.ancestorInfo),a=Q1(u),r){case"html":if(r=a.documentElement,!r)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 r;case"head":if(r=a.head,!r)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 r;case"body":if(r=a.body,!r)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 r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qp(r,a,u,g){if(!u[cl]&&Ne(u)){var x=u.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.",x,x,x)}switch(r){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(x=u.attributes;x.length;)u.removeAttributeNode(x[0]);jn(u,r,a),u[na]=g,u[pa]=a}function Zp(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Oe(r)}function Jp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function vx(r,a,u){var g=lv;if(g&&typeof a=="string"&&a){var x=Or(a);x='link[rel="'+r+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),eV.has(x)||(eV.add(x),r={rel:r,crossOrigin:u,href:a},g.querySelector(x)===null&&(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}}function bx(r,a,u,g){var x=(x=ll.current)?Jp(x):null;if(!x)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(u=O0(u.href),a=Et(x).hoistableStyles,g=a.get(u),g||(g={type:"style",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=O0(u.href);var w=Et(x).hoistableStyles,M=w.get(r);if(!M&&(x=x.ownerDocument||x,M={type:"stylesheet",instance:null,count:0,state:{loading:Vm,preload:null}},w.set(r,M),(w=x.querySelector(nd(r)))&&!w._p&&(M.instance=w,M.state.loading=RS|eu),!tu.has(r))){var D={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy};tu.set(r,D),w||Tw(x,r,D,M.state)}if(a&&g===null)throw u=`

  - `+em(a)+`
  + `+em(u),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."+u);return M}if(a&&g!==null)throw u=`

  - `+em(a)+`
  + `+em(u),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."+u);return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(u=M0(u),a=Et(x).hoistableScripts,g=a.get(u),g||(g={type:"script",instance:null,count:0,state:null},a.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function em(r){var a=0,u="<link";return typeof r.rel=="string"?(a++,u+=' rel="'+r.rel+'"'):jl.call(r,"rel")&&(a++,u+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(a++,u+=' href="'+r.href+'"'):jl.call(r,"href")&&(a++,u+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(a++,u+=' precedence="'+r.precedence+'"'):jl.call(r,"precedence")&&(a++,u+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>a&&(u+=" ..."),u+" />"}function O0(r){return'href="'+Or(r)+'"'}function nd(r){return'link[rel="stylesheet"]['+r+"]"}function xx(r){return yn({},r,{"data-precedence":r.precedence,precedence:null})}function Tw(r,a,u,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=RS:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=RS}),a.addEventListener("error",function(){return g.loading|=ZL}),jn(a,"link",u),vt(a),r.head.appendChild(a))}function M0(r){return'[src="'+Or(r)+'"]'}function rd(r){return"script[async]"+r}function ay(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+Or(u.href)+'"]');if(g)return a.instance=g,vt(g),g;var x=yn({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),vt(g),jn(g,"style",x),oy(g,u.precedence,r),a.instance=g;case"stylesheet":x=O0(u.href);var w=r.querySelector(nd(x));if(w)return a.state.loading|=eu,a.instance=w,vt(w),w;g=xx(u),(x=tu.get(x))&&Sx(g,x),w=(r.ownerDocument||r).createElement("link"),vt(w);var M=w;return M._p=new Promise(function(D,q){M.onload=D,M.onerror=q}),jn(w,"link",g),a.state.loading|=eu,oy(w,u.precedence,r),a.instance=w;case"script":return w=M0(u.src),(x=r.querySelector(rd(w)))?(a.instance=x,vt(x),x):(g=u,(x=tu.get(w))&&(g=yn({},u),id(g,x)),r=r.ownerDocument||r,x=r.createElement("script"),vt(x),jn(x,"link",g),r.head.appendChild(x),a.instance=x);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+a.type+'". this is a bug in React.')}else a.type==="stylesheet"&&(a.state.loading&eu)===Vm&&(g=a.instance,a.state.loading|=eu,oy(g,u.precedence,r));return a.instance}function oy(r,a,u){for(var g=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=g.length?g[g.length-1]:null,w=x,M=0;M<g.length;M++){var D=g[M];if(D.dataset.precedence===a)w=D;else if(w!==x)break}w?w.parentNode.insertBefore(r,w.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function Sx(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function id(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}function Aw(r,a,u){if(_E===null){var g=new Map,x=_E=new Map;x.set(u,g)}else x=_E,g=x.get(u),g||(g=new Map,x.set(u,g));if(g.has(r))return g;for(g.set(r,null),u=u.getElementsByTagName(r),x=0;x<u.length;x++){var w=u[x];if(!(w[dm]||w[na]||r==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!==Dn){var M=w.getAttribute(a)||"";M=r+M;var D=g.get(M);D?D.push(w):g.set(M,[w])}}return g}function wx(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function _n(r,a,u){var g=!u.ancestorInfo.containerTagInScope;if(u.context===ov||a.itemProp!=null)return!g||a.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="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.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.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 a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError){if(a.rel==="stylesheet"&&typeof a.precedence=="string"){r=a.href;var x=a.onError,w=a.disabled;u=[],a.onLoad&&u.push("`onLoad`"),x&&u.push("`onError`"),w!=null&&u.push("`disabled`"),x=so(u,"and"),x+=u.length===1?" prop":" props",w=u.length===1?"an "+x:"the "+x,u.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.',r,w,x)}g&&(typeof a.rel!="string"||typeof a.href!="string"||a.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"):(a.onError||a.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(a.rel){case"stylesheet":return r=a.precedence,a=a.disabled,typeof r!="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 r=="string"&&a==null;default:return!0}case"script":if(r=a.async&&typeof a.async!="function"&&typeof a.async!="symbol",!r||a.onLoad||a.onError||!a.src||typeof a.src!="string"){g&&(r?a.onLoad||a.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.",r)}return!1}function ly(r){return!(r.type==="stylesheet"&&(r.state.loading&JL)===Vm)}function sy(r,a,u,g){if(u.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(u.state.loading&eu)===Vm){if(u.instance===null){var x=O0(g.href),w=a.querySelector(nd(x));if(w){a=w._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=tm.bind(r),a.then(r,r)),u.state.loading|=eu,u.instance=w,vt(w);return}w=a.ownerDocument||a,g=xx(g),(x=tu.get(x))&&Sx(g,x),w=w.createElement("link"),vt(w);var M=w;M._p=new Promise(function(D,q){M.onload=D,M.onerror=q}),jn(w,"link",g),u.instance=w}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&JL)===Vm&&(r.count++,u=tm.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}function Ex(r,a){return r.stylesheets&&r.count===0&&R0(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var g=setTimeout(function(){if(r.stylesheets&&R0(r,r.stylesheets),r.unsuspend){var w=r.unsuspend;r.unsuspend=null,w()}},jfe+a);0<r.imgBytes&&fC===0&&(fC=125*fw()*Ufe);var x=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&R0(r,r.stylesheets),r.unsuspend)){var w=r.unsuspend;r.unsuspend=null,w()}},(r.imgBytes>fC?50:Pfe)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(x)}}:null}function tm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)R0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function R0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,DE=new Map,a.forEach(nm,r),DE=null,tm.call(r))}function nm(r,a){if(!(a.state.loading&eu)){var u=DE.get(r);if(u)var g=u.get(dC);else{u=new Map,DE.set(r,u);for(var x=r.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<x.length;w++){var M=x[w];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),g=M)}g&&u.set(dC,g)}x=a.instance,M=x.getAttribute("data-precedence"),w=u.get(M)||g,w===g&&u.set(dC,x),u.set(M,x),this.count++,g=tm.bind(this),x.addEventListener("load",g),x.addEventListener("error",g),w?w.parentNode.insertBefore(x,w.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(x,r.firstChild)),a.state.loading|=eu}}function uy(r,a,u,g,x,w,M,D,q){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Lm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=g,this.onUncaughtError=x,this.onCaughtError=w,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],a=0;31>a;a++)r.push(new Set);this._debugRootType=u?"hydrateRoot()":"createRoot()"}function Cw(r,a,u,g,x,w,M,D,q,Q,we,Ae){return r=new uy(r,a,u,M,q,Q,we,Ae,D),a=ffe,w===!0&&(a|=co|Lu),a|=xn,w=E(3,null,null,a),r.current=w,w.stateNode=r,a=d4(),Df(a),r.pooledCache=a,Df(a),w.memoizedState={element:g,isDehydrated:u,cache:a},bs(w),r}function Tx(r){return r?(r=$0,r):$0}function Ax(r,a,u,g,x,w){if(ha&&typeof ha.onScheduleFiberRoot=="function")try{ha.onScheduleFiberRoot(Iu,g,u)}catch(M){$s||($s=!0,console.error("React instrumentation encountered an error: %o",M))}x=Tx(x),g.context===null?g.context=x:g.pendingContext=x,sl&&No!==null&&!iV&&(iV=!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(No)||"Unknown")),g=xs(a),g.payload={element:u},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),u=Oa(r,g,a),u!==null&&(Ol(a,"root.render()",null),Br(u,r,a),i0(u,r,a))}function Ow(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function cy(r,a){Ow(r,a),(r=r.alternate)&&Ow(r,a)}function Cx(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&Br(a,r,67108864),cy(r,67108864)}}function ar(r){if(r.tag===13||r.tag===31){var a=Qi(r);a=jt(a);var u=Fi(r,a);u!==null&&Br(u,r,a),cy(r,a)}}function Ox(){return No}function Zi(r,a,u,g){var x=$e.T;$e.T=null;var w=Qn.p;try{Qn.p=Ti,fy(r,a,u,g)}finally{Qn.p=w,$e.T=x}}function Z8(r,a,u,g){var x=$e.T;$e.T=null;var w=Qn.p;try{Qn.p=ta,fy(r,a,u,g)}finally{Qn.p=w,$e.T=x}}function fy(r,a,u,g){if(kE){var x=Mx(g);if(x===null)Nr(r,a,g,zE,u),im(r,g);else if(Mw(x,r,a,u,g))g.stopPropagation();else if(im(r,g),a&4&&-1<Hfe.indexOf(r)){for(;x!==null;){var w=Ne(x);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var M=Rn(w.pendingLanes);if(M!==0){var D=w;for(D.pendingLanes|=2,D.entangledLanes|=2;M;){var q=1<<31-ea(M);D.entanglements[1]|=q,M&=~q}Na(w),(Gn&(ia|ql))===ya&&(gE=Jr()+NL,w0(0))}}break;case 31:case 13:D=Fi(w,2),D!==null&&Br(D,w,2),Wf(),cy(w,2)}if(w=Mx(g),w===null&&Nr(r,a,g,zE,u),w===x)break;x=w}x!==null&&g.stopPropagation()}else Nr(r,a,g,null,u)}}function Mx(r){return r=Hh(r),rm(r)}function rm(r){if(zE=null,r=tt(r),r!==null){var a=z(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=B(a),r!==null)return r;r=null}else if(u===31){if(r=V(a),r!==null)return r;r=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return zE=r,null}function dy(r){switch(r){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 Ti;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 ta;case"message":switch(rA()){case Ty:return Ti;case Ay:return ta;case sd:case kw:return ko;case cm:return jc;default:return ko}default:return ko}}function im(r,a){switch(r){case"focusin":case"focusout":ih=null;break;case"dragenter":case"dragleave":ah=null;break;case"mouseover":case"mouseout":oh=null;break;case"pointerover":case"pointerout":DS.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":NS.delete(a.pointerId)}}function _0(r,a,u,g,x,w){return r===null||r.nativeEvent!==w?(r={blockedOn:a,domEventName:u,eventSystemFlags:g,nativeEvent:w,targetContainers:[x]},a!==null&&(a=Ne(a),a!==null&&Cx(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),r)}function Mw(r,a,u,g,x){switch(a){case"focusin":return ih=_0(ih,r,a,u,g,x),!0;case"dragenter":return ah=_0(ah,r,a,u,g,x),!0;case"mouseover":return oh=_0(oh,r,a,u,g,x),!0;case"pointerover":var w=x.pointerId;return DS.set(w,_0(DS.get(w)||null,r,a,u,g,x)),!0;case"gotpointercapture":return w=x.pointerId,NS.set(w,_0(NS.get(w)||null,r,a,u,g,x)),!0}return!1}function hy(r){var a=tt(r.target);if(a!==null){var u=z(a);if(u!==null){if(a=u.tag,a===13){if(a=B(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===31){if(a=V(u),a!==null){r.blockedOn=a,J(r.priority,function(){ar(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function D0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=Mx(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),x=g;$x!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),$x=x,u.target.dispatchEvent(g),$x===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."),$x=null}else return a=Ne(u),a!==null&&Cx(a),r.blockedOn=u,!1;a.shift()}return!0}function Rw(r,a,u){D0(r)&&u.delete(a)}function _w(){hC=!1,ih!==null&&D0(ih)&&(ih=null),ah!==null&&D0(ah)&&(ah=null),oh!==null&&D0(oh)&&(oh=null),DS.forEach(Rw),NS.forEach(Rw)}function py(r,a){r.blockedOn===a&&(r.blockedOn=null,hC||(hC=!0,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,_w)))}function Rx(r){IE!==r&&(IE=r,Zr.unstable_scheduleCallback(Zr.unstable_NormalPriority,function(){IE===r&&(IE=null);for(var a=0;a<r.length;a+=3){var u=r[a],g=r[a+1],x=r[a+2];if(typeof g!="function"){if(rm(g||u)===null)continue;break}var w=Ne(u);w!==null&&(r.splice(a,3),a-=3,u={pending:!0,data:x,method:u.method,action:g},Object.freeze(u),c0(w,u,g,x))}}))}function N0(r){function a(q){return py(q,r)}ih!==null&&py(ih,r),ah!==null&&py(ah,r),oh!==null&&py(oh,r),DS.forEach(a),NS.forEach(a);for(var u=0;u<lh.length;u++){var g=lh[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<lh.length&&(u=lh[0],u.blockedOn===null);)hy(u),u.blockedOn===null&&lh.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var x=u[g],w=u[g+1],M=x[pa]||null;if(typeof w=="function")M||Rx(u);else if(M){var D=null;if(w&&w.hasAttribute("formAction")){if(x=w,M=w[pa]||null)D=M.formAction;else if(rm(x)!==null)continue}else D=M.action;typeof D=="function"?u[g+1]=D:(u.splice(g,3),g-=3),Rx(u)}}}function Dw(){function r(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(M){return x=M})},focusReset:"manual",scroll:"manual"})}function a(){x!==null&&(x(),x=null),g||setTimeout(u,20)}function u(){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,x=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){g=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),x!==null&&(x(),x=null)}}}function Ps(r){this._internalRoot=r}function am(r){this._internalRoot=r}function _x(r){r[cl]&&(r._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 Zr=EC(),Dx=Ad(),J8=jE(),yn=Object.assign,Nx=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),k0=Symbol.for("react.portal"),Ji=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),my=Symbol.for("react.profiler"),gy=Symbol.for("react.consumer"),Bl=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),uo=Symbol.for("react.suspense"),yy=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),si=Symbol.for("react.lazy"),kx=Symbol.for("react.activity"),eA=Symbol.for("react.memo_cache_sentinel"),od=Symbol.iterator,Nw=Symbol.for("react.client.reference"),Ei=Array.isArray,$e=Dx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qn=J8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tA=Object.freeze({pending:!1,data:null,method:null,action:null}),zx=[],Ix=[],ku=-1,zu=$(null),Us=$(null),ll=$(null),om=$(null),lm=0,ld,I0,Lx,sm,vy,by,um;F.__reactDisabledLog=!0;var xy,Vx,Bx=!1,Sy=new(typeof WeakMap=="function"?WeakMap:Map),No=null,sl=!1,jl=Object.prototype.hasOwnProperty,L0=Zr.unstable_scheduleCallback,wy=Zr.unstable_cancelCallback,Ey=Zr.unstable_shouldYield,nA=Zr.unstable_requestPaint,Jr=Zr.unstable_now,rA=Zr.unstable_getCurrentPriorityLevel,Ty=Zr.unstable_ImmediatePriority,Ay=Zr.unstable_UserBlockingPriority,sd=Zr.unstable_NormalPriority,kw=Zr.unstable_LowPriority,cm=Zr.unstable_IdlePriority,zw=Zr.log,Iw=Zr.unstable_setDisableYieldValue,Iu=null,ha=null,$s=!1,ul=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ea=Math.clz32?Math.clz32:At,Cy=Math.log,jx=Math.LN2,fm=256,V0=262144,Pl=4194304,Ti=2,ta=8,ko=32,jc=268435456,za=Math.random().toString(36).slice(2),na="__reactFiber$"+za,pa="__reactProps$"+za,cl="__reactContainer$"+za,Px="__reactEvents$"+za,Lw="__reactListeners$"+za,Oy="__reactHandles$"+za,Ux="__reactResources$"+za,dm="__reactMarker$"+za,hm=new Set,Hs={},My={},B0={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vw=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]*$"),Ry={},pm={},Bw=/[\n"\\]/g,jw=!1,mm=!1,l=!1,f=!1,m=!1,b=!1,A=["value","defaultValue"],O=!1,j=/["'&<>\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(" "),ze=ve.concat(["button"]),qe="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},Ie={},Ue={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"]},Rt=/([A-Z])/g,Ht=/^ms-/,hr=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Te=/-(.)/g,ke=/;\s*$/,Ye={},Lt={},qn=!1,Dt=!1,pn=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(" ")),Cn="http://www.w3.org/1998/Math/MathML",Dn="http://www.w3.org/2000/svg",Pc=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"]]),_y={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"},aI={"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},Dy={},Ece=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]*$"),Tce=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]*$"),oI=!1,zo={},lI=/^on./,Ace=/^on[^A-Z]/,Cce=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]*$"),Oce=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]*$"),Mce=/^[\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,$x=null,Ny=null,ky=null,iA=!1,Uc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aA=!1;if(Uc)try{var Hx={};Object.defineProperty(Hx,"passive",{get:function(){aA=!0}}),window.addEventListener("test",Hx,Hx),window.removeEventListener("test",Hx,Hx)}catch{aA=!1}var j0=null,oA=null,Pw=null,gm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uw=Yr(gm),qx=yn({},gm,{view:0,detail:0}),Rce=Yr(qx),lA,sA,Gx,$w=yn({},qx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Gx&&(Gx&&r.type==="mousemove"?(lA=r.screenX-Gx.screenX,sA=r.screenY-Gx.screenY):sA=lA=0,Gx=r),lA)},movementY:function(r){return"movementY"in r?r.movementY:sA}}),sI=Yr($w),_ce=yn({},$w,{dataTransfer:0}),Dce=Yr(_ce),Nce=yn({},qx,{relatedTarget:0}),uA=Yr(Nce),kce=yn({},gm,{animationName:0,elapsedTime:0,pseudoElement:0}),zce=Yr(kce),Ice=yn({},gm,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Lce=Yr(Ice),Vce=yn({},gm,{data:0}),uI=Yr(Vce),Bce=uI,jce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pce={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"},Uce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$ce=yn({},qx,{key:function(r){if(r.key){var a=jce[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Kd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Pce[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tf,charCode:function(r){return r.type==="keypress"?Kd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Kd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Hce=Yr($ce),qce=yn({},$w,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cI=Yr(qce),Gce=yn({},qx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tf}),Fce=Yr(Gce),Yce=yn({},gm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xce=Yr(Yce),Wce=yn({},$w,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Kce=Yr(Wce),Qce=yn({},gm,{newState:0,oldState:0}),Zce=Yr(Qce),Jce=[9,13,27,32],fI=229,cA=Uc&&"CompositionEvent"in window,Fx=null;Uc&&"documentMode"in document&&(Fx=document.documentMode);var efe=Uc&&"TextEvent"in window&&!Fx,dI=Uc&&(!cA||Fx&&8<Fx&&11>=Fx),hI=32,pI=String.fromCharCode(hI),mI=!1,zy=!1,tfe={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},Yx=null,Xx=null,gI=!1;Uc&&(gI=Kg("input")&&(!document.documentMode||9<document.documentMode));var Io=typeof Object.is=="function"?Object.is:k6,nfe=Uc&&"documentMode"in document&&11>=document.documentMode,Iy=null,fA=null,Wx=null,dA=!1,Ly={animationend:Af("Animation","AnimationEnd"),animationiteration:Af("Animation","AnimationIteration"),animationstart:Af("Animation","AnimationStart"),transitionrun:Af("Transition","TransitionRun"),transitionstart:Af("Transition","TransitionStart"),transitioncancel:Af("Transition","TransitionCancel"),transitionend:Af("Transition","TransitionEnd")},hA={},yI={};Uc&&(yI=document.createElement("div").style,"AnimationEvent"in window||(delete Ly.animationend.animation,delete Ly.animationiteration.animation,delete Ly.animationstart.animation),"TransitionEvent"in window||delete Ly.transitionend.transition);var vI=Cf("animationend"),bI=Cf("animationiteration"),xI=Cf("animationstart"),rfe=Cf("transitionrun"),ife=Cf("transitionstart"),afe=Cf("transitioncancel"),SI=Cf("transitionend"),wI=new Map,pA="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(" ");pA.push("scrollEnd");var EI=0;if(typeof performance=="object"&&typeof performance.now=="function")var ofe=performance,TI=function(){return ofe.now()};else{var lfe=Date;TI=function(){return lfe.now()}}var mA=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},sfe="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,gA=1,yA=2,vA=3,qw="– ",Gw="+ ",AI="  ",kr=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",qs="Components ⚛",Pn="Scheduler ⚛",$n="Blocking",P0=!1,ud={color:"primary",properties:null,tooltipText:"",track:qs},U0={start:-0,end:-0,detail:{devtools:ud}},ufe=["Changed Props",""],CI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cfe=["Changed Props",CI],Kx=1,cd=2,Gs=[],Vy=0,bA=0,$0={};Object.freeze($0);var Fs=null,By=null,Zt=0,ffe=1,xn=2,co=8,Lu=16,dfe=32,OI=!1;try{var MI=Object.preventExtensions({})}catch{OI=!0}var xA=new WeakMap,jy=[],Py=0,Fw=null,Qx=0,Ys=[],Xs=0,ym=null,fd=1,dd="",Ia=null,zr=null,In=!1,$c=!1,Ul=null,H0=null,Ws=!1,SA=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."),wA=$(null),EA=$(null),RI={},Yw=null,Uy=null,$y=!1,hfe=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(u,g){r.push(g)}};this.abort=function(){a.aborted=!0,r.forEach(function(u){return u()})}},pfe=Zr.unstable_scheduleCallback,mfe=Zr.unstable_NormalPriority,Li={$$typeof:Bl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vi=Zr.unstable_now,Xw=console.createTask?console.createTask:function(){return null},Zx=1,Ww=2,ma=-0,q0=-0,hd=-0,pd=null,Lo=-1.1,vm=-0,ei=-0,$t=-1.1,Xt=-1.1,jr=null,ui=!1,bm=-0,Hc=-1.1,Jx=null,G0=0,TA=null,AA=null,xm=-1.1,eS=null,Hy=-1.1,Kw=-1.1,md=-0,gd=-1.1,Ks=-1.1,CA=0,tS=null,_I=null,DI=null,F0=-1.1,Sm=null,Y0=-1.1,Qw=-1.1,NI=-0,kI=-0,Zw=0,gfe=null,zI=0,nS=-1.1,Jw=!1,eE=!1,rS=null,OA=0,wm=0,qy=null,II=$e.S;$e.S=function(r,a){if(_L=Jr(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>gd&&0>Ks){gd=Vi();var u=A0(),g=T0();(u!==Y0||g!==Sm)&&(Y0=-1.1),F0=u,Sm=g}Y6(r,a)}II!==null&&II(r,a)};var Em=$(null),Vu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},iS=[],aS=[],oS=[],lS=[],sS=[],uS=[],Tm=new Set;Vu.recordUnsafeLifecycleWarnings=function(r,a){Tm.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&iS.push(r),r.mode&co&&typeof a.UNSAFE_componentWillMount=="function"&&aS.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&oS.push(r),r.mode&co&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&lS.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&sS.push(r),r.mode&co&&typeof a.UNSAFE_componentWillUpdate=="function"&&uS.push(r))},Vu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<iS.length&&(iS.forEach(function(D){r.add(ue(D)||"Component"),Tm.add(D.type)}),iS=[]);var a=new Set;0<aS.length&&(aS.forEach(function(D){a.add(ue(D)||"Component"),Tm.add(D.type)}),aS=[]);var u=new Set;0<oS.length&&(oS.forEach(function(D){u.add(ue(D)||"Component"),Tm.add(D.type)}),oS=[]);var g=new Set;0<lS.length&&(lS.forEach(function(D){g.add(ue(D)||"Component"),Tm.add(D.type)}),lS=[]);var x=new Set;0<sS.length&&(sS.forEach(function(D){x.add(ue(D)||"Component"),Tm.add(D.type)}),sS=[]);var w=new Set;if(0<uS.length&&(uS.forEach(function(D){w.add(ue(D)||"Component"),Tm.add(D.type)}),uS=[]),0<a.size){var M=T(a);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<r.size&&(M=T(r),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<u.size&&(M=T(u),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<x.size&&(M=T(x),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 tE=new Map,LI=new Set;Vu.recordLegacyContextWarning=function(r,a){for(var u=null,g=r;g!==null;)g.mode&co&&(u=g),g=g.return;u===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."):!LI.has(r.type)&&(g=tE.get(u),r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(g===void 0&&(g=[],tE.set(u,g)),g.push(r))},Vu.flushLegacyContextWarning=function(){tE.forEach(function(r){if(r.length!==0){var a=r[0],u=new Set;r.forEach(function(x){u.add(ue(x)||"Component"),LI.add(x.type)});var g=T(u);Be(a,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)})}})},Vu.discardPendingWarnings=function(){iS=[],aS=[],oS=[],lS=[],sS=[],uS=[],tE=new Map};var VI={react_stack_bottom_frame:function(r,a,u){var g=sl;sl=!0;try{return r(a,u)}finally{sl=g}}},MA=VI.react_stack_bottom_frame.bind(VI),BI={react_stack_bottom_frame:function(r){var a=sl;sl=!0;try{return r.render()}finally{sl=a}}},jI=BI.react_stack_bottom_frame.bind(BI),PI={react_stack_bottom_frame:function(r,a){try{a.componentDidMount()}catch(u){Yn(r,r.return,u)}}},RA=PI.react_stack_bottom_frame.bind(PI),UI={react_stack_bottom_frame:function(r,a,u,g,x){try{a.componentDidUpdate(u,g,x)}catch(w){Yn(r,r.return,w)}}},$I=UI.react_stack_bottom_frame.bind(UI),HI={react_stack_bottom_frame:function(r,a){var u=a.stack;r.componentDidCatch(a.value,{componentStack:u!==null?u:""})}},yfe=HI.react_stack_bottom_frame.bind(HI),qI={react_stack_bottom_frame:function(r,a,u){try{u.componentWillUnmount()}catch(g){Yn(r,a,g)}}},GI=qI.react_stack_bottom_frame.bind(qI),FI={react_stack_bottom_frame:function(r){var a=r.create;return r=r.inst,a=a(),r.destroy=a}},vfe=FI.react_stack_bottom_frame.bind(FI),YI={react_stack_bottom_frame:function(r,a,u){try{u()}catch(g){Yn(r,a,g)}}},bfe=YI.react_stack_bottom_frame.bind(YI),XI={react_stack_bottom_frame:function(r){var a=r._init;return a(r._payload)}},xfe=XI.react_stack_bottom_frame.bind(XI),Gy=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`."),_A=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."),nE=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."),rE={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.')}},Am=null,cS=!1,Fy=null,fS=0,Sn=null,DA,WI=DA=!1,KI={},QI={},ZI={};S=function(r,a,u){if(u!==null&&typeof u=="object"&&u._store&&(!u._store.validated&&u.key==null||u._store.validated===2)){if(typeof u._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.");u._store.validated=1;var g=ue(r),x=g||"null";if(!KI[x]){KI[x]=!0,u=u._owner,r=r._debugOwner;var w="";r&&typeof r.tag=="number"&&(x=ue(r))&&(w=`

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

Check the top-level render call using <`+g+">.");var M="";u!=null&&r!==u&&(g=null,typeof u.tag=="number"?g=ue(u):typeof u.name=="string"&&(g=u.name),g&&(M=" It was passed a child from "+g+".")),Be(a,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 Cm=xr(!0),JI=xr(!1),eL=0,tL=1,nL=2,NA=3,X0=!1,rL=!1,kA=null,zA=!1,Yy=$(null),iE=$(0),$l=$(null),Qs=null,Xy=1,dS=2,Ai=$(0),aE=0,Zs=1,Vo=2,Hl=4,Bo=8,Wy,iL=new Set,aL=new Set,IA=new Set,oL=new Set,yd=0,an=null,wr=null,Bi=null,oE=!1,Ky=!1,Om=!1,lE=0,hS=0,vd=null,Sfe=0,wfe=25,Pe=null,Js=null,bd=-1,pS=!1,mS={readContext:br,use:eo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useLayoutEffect:Xr,useInsertionEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useSyncExternalStore:Xr,useId:Xr,useHostTransitionStatus:Xr,useFormState:Xr,useActionState:Xr,useOptimistic:Xr,useMemoCache:Xr,useCacheRefresh:Xr};mS.useEffectEvent=Xr;var LA=null,lL=null,VA=null,sL=null,qc=null,Bu=null,sE=null;LA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",Vt(),If(a),As(r,a)},useContext:function(r){return Pe="useContext",Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",Vt(),If(a),gp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",Vt(),If(u),vp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",Vt(),If(a),Zo(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",Vt(),If(a),no(r,a)},useMemo:function(r,a){Pe="useMemo",Vt(),If(a);var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",Vt();var g=$e.H;$e.H=qc;try{return g1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",Vt(),b1(r)},useState:function(r){Pe="useState",Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",Vt(),w4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",Vt(),o0(r,a,u)},useId:function(){return Pe="useId",Vt(),S1()},useFormState:function(r,a){return Pe="useFormState",Vt(),h1(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",Vt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),w1()},useEffectEvent:function(r){return Pe="useEffectEvent",Vt(),yp(r)}},lL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),As(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){return Pe="useEffect",rt(),gp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),vp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",rt(),Zo(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=qc;try{return g1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",rt(),b1(r)},useState:function(r){Pe="useState",rt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),kl(r,a)},useTransition:function(){return Pe="useTransition",rt(),w4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),o0(r,a,u)},useId:function(){return Pe="useId",rt(),S1()},useActionState:function(r,a){return Pe="useActionState",rt(),Ts(r,a)},useFormState:function(r,a){return Pe="useFormState",rt(),h1(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",rt(),l0(r)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),w1()},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),yp(r)}},VA={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Bo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),bp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),dp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),h1(),u0(r)},useActionState:function(r){return Pe="useActionState",rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),s0(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},sL={readContext:function(r){return br(r)},use:eo,useCallback:function(r,a){return Pe="useCallback",rt(),ca(r,a)},useContext:function(r){return Pe="useContext",rt(),br(r)},useEffect:function(r,a){Pe="useEffect",rt(),Yi(2048,Bo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",rt(),bp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",rt(),Yi(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",rt();var u=$e.H;$e.H=sE;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",rt();var g=$e.H;$e.H=sE;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",rt(),Wn().memoizedState},useState:function(){Pe="useState",rt();var r=$e.H;$e.H=sE;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",rt(),x1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",rt(),dp(r,a,u)},useId:function(){return Pe="useId",rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",rt(),h1(),Rc(r)},useActionState:function(r){return Pe="useActionState",rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",rt(),b4(r,a)},useHostTransitionStatus:Tu,useMemoCache:vu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",rt(),ua(r)}},qc={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),Vt(),As(r,a)},useContext:function(r){return Pe="useContext",h(),Vt(),br(r)},useEffect:function(r,a){return Pe="useEffect",h(),Vt(),gp(r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),Vt(),vp(r,a,u)},useInsertionEffect:function(r,a){Pe="useInsertionEffect",h(),Vt(),Zo(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),Vt(),no(r,a)},useMemo:function(r,a){Pe="useMemo",h(),Vt();var u=$e.H;$e.H=qc;try{return Lr(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),Vt();var g=$e.H;$e.H=qc;try{return g1(r,a,u)}finally{$e.H=g}},useRef:function(r){return Pe="useRef",h(),Vt(),b1(r)},useState:function(r){Pe="useState",h(),Vt();var a=$e.H;$e.H=qc;try{return Vf(r)}finally{$e.H=a}},useDebugValue:function(){Pe="useDebugValue",h(),Vt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),Vt(),kl(r,a)},useTransition:function(){return Pe="useTransition",h(),Vt(),w4()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),Vt(),o0(r,a,u)},useId:function(){return Pe="useId",h(),Vt(),S1()},useFormState:function(r,a){return Pe="useFormState",h(),Vt(),Ts(r,a)},useActionState:function(r,a){return Pe="useActionState",h(),Vt(),Ts(r,a)},useOptimistic:function(r){return Pe="useOptimistic",h(),Vt(),l0(r)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",Vt(),w1()},useEffectEvent:function(r){return Pe="useEffectEvent",h(),Vt(),yp(r)}},Bu={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Bo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),bp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Nl(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Nl(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),cn(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),Vr()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),dp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),u0(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),u0(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),s0(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}},sE={readContext:function(r){return y(),br(r)},use:function(r){return h(),eo(r)},useCallback:function(r,a){return Pe="useCallback",h(),rt(),ca(r,a)},useContext:function(r){return Pe="useContext",h(),rt(),br(r)},useEffect:function(r,a){Pe="useEffect",h(),rt(),Yi(2048,Bo,r,a)},useImperativeHandle:function(r,a,u){return Pe="useImperativeHandle",h(),rt(),bp(r,a,u)},useInsertionEffect:function(r,a){return Pe="useInsertionEffect",h(),rt(),Yi(4,Vo,r,a)},useLayoutEffect:function(r,a){return Pe="useLayoutEffect",h(),rt(),Yi(4,Hl,r,a)},useMemo:function(r,a){Pe="useMemo",h(),rt();var u=$e.H;$e.H=Bu;try{return Pf(r,a)}finally{$e.H=u}},useReducer:function(r,a,u){Pe="useReducer",h(),rt();var g=$e.H;$e.H=Bu;try{return Ac(r,a,u)}finally{$e.H=g}},useRef:function(){return Pe="useRef",h(),rt(),Wn().memoizedState},useState:function(){Pe="useState",h(),rt();var r=$e.H;$e.H=Bu;try{return Ac(to)}finally{$e.H=r}},useDebugValue:function(){Pe="useDebugValue",h(),rt()},useDeferredValue:function(r,a){return Pe="useDeferredValue",h(),rt(),nr(r,a)},useTransition:function(){return Pe="useTransition",h(),rt(),x1()},useSyncExternalStore:function(r,a,u){return Pe="useSyncExternalStore",h(),rt(),dp(r,a,u)},useId:function(){return Pe="useId",h(),rt(),Wn().memoizedState},useFormState:function(r){return Pe="useFormState",h(),rt(),Rc(r)},useActionState:function(r){return Pe="useActionState",h(),rt(),Rc(r)},useOptimistic:function(r,a){return Pe="useOptimistic",h(),rt(),b4(r,a)},useMemoCache:function(r){return h(),vu(r)},useHostTransitionStatus:Tu,useCacheRefresh:function(){return Pe="useCacheRefresh",rt(),Wn().memoizedState},useEffectEvent:function(r){return Pe="useEffectEvent",h(),rt(),ua(r)}};var uL={},cL=new Set,fL=new Set,dL=new Set,hL=new Set,pL=new Set,mL=new Set,gL=new Set,yL=new Set,vL=new Set,bL=new Set;Object.freeze(uL);var BA={enqueueSetState:function(r,a,u){r=r._reactInternals;var g=Qi(r),x=xs(g);x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.setState()",r),Br(a,r,g),i0(a,r,g))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var g=Qi(r),x=xs(g);x.tag=tL,x.payload=a,u!=null&&(h0(u),x.callback=u),a=Oa(r,x,g),a!==null&&(Ol(g,"this.replaceState()",r),Br(a,r,g),i0(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Qi(r),g=xs(u);g.tag=nL,a!=null&&(h0(a),g.callback=a),a=Oa(r,g,u),a!==null&&(Ol(u,"this.forceUpdate()",r),Br(a,r,u),i0(a,r,u))}},Qy=null,jA=null,PA=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."),ji=!1,xL={},SL={},wL={},EL={},Zy=!1,TL={},uE={},UA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},AL=!1,CL=null;CL=new Set;var xd=!1,Pi=!1,$A=!1,OL=typeof WeakSet=="function"?WeakSet:Set,ga=null,Jy=null,ev=null,Ui=null,fl=!1,ju=null,ra=!1,gS=8192,Efe={getCacheForType:function(r){var a=br(Li),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return br(Li).controller.signal},getOwner:function(){return No}};if(typeof Symbol=="function"&&Symbol.for){var yS=Symbol.for;yS("selector.component"),yS("selector.has_pseudo_class"),yS("selector.role"),yS("selector.test_id"),yS("selector.text")}var Tfe=[],Afe=typeof WeakMap=="function"?WeakMap:Map,ya=0,ia=2,ql=4,Sd=0,vS=1,Mm=2,cE=3,W0=4,fE=6,ML=5,Gn=ya,Er=null,On=null,wn=0,dl=0,dE=1,Rm=2,bS=3,RL=4,HA=5,xS=6,hE=7,qA=8,_m=9,pr=dl,Gl=null,K0=!1,tv=!1,GA=!1,Gc=0,ti=Sd,Q0=0,Z0=0,FA=0,hl=0,Dm=0,SS=null,jo=null,pE=!1,mE=0,_L=0,DL=300,gE=1/0,NL=500,wS=null,yi=null,J0=null,yE=0,YA=1,XA=2,kL=3,eh=0,zL=1,IL=2,LL=3,VL=4,vE=5,$i=0,th=null,nv=null,Pu=0,WA=0,KA=-0,QA=null,BL=null,jL=null,Uu=yE,PL=null,Cfe=50,ES=0,ZA=null,JA=!1,bE=!1,Ofe=50,Nm=0,TS=null,rv=!1,xE=null,UL=!1,$L=new Set,Mfe={},SE=null,iv=null,eC=!1,tC=!1,wE=!1,nC=!1,nh=0,rC={};(function(){for(var r=0;r<pA.length;r++){var a=pA[r],u=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Wo(u,"on"+a)}Wo(vI,"onAnimationEnd"),Wo(bI,"onAnimationIteration"),Wo(xI,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(rfe,"onTransitionRun"),Wo(ife,"onTransitionStart"),Wo(afe,"onTransitionCancel"),Wo(SI,"onTransitionEnd")})(),ct("onMouseEnter",["mouseout","mouseover"]),ct("onMouseLeave",["mouseout","mouseover"]),ct("onPointerEnter",["pointerout","pointerover"]),ct("onPointerLeave",["pointerout","pointerover"]),Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var AS="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(" "),iC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(AS)),EE="_reactListening"+Math.random().toString(36).slice(2),HL=!1,qL=!1,TE=!1,GL=!1,AE=!1,CE=!1,FL=!1,OE={},Rfe=/\r\n?/g,_fe=/\u0000|\uFFFD/g,km="http://www.w3.org/1999/xlink",aC="http://www.w3.org/XML/1998/namespace",Dfe="javascript:throw new Error('React form unexpectedly submitted.')",Nfe="suppressHydrationWarning",zm="&",ME="/&",CS="$",OS="/$",rh="$?",Im="$~",av="$!",kfe="html",zfe="body",Ife="head",oC="F!",YL="F",XL="loading",Lfe="style",wd=0,ov=1,RE=2,lC=null,sC=null,WL={dialog:!0,webview:!0},uC=null,MS=void 0,KL=typeof setTimeout=="function"?setTimeout:void 0,Vfe=typeof clearTimeout=="function"?clearTimeout:void 0,Lm=-1,QL=typeof Promise=="function"?Promise:void 0,Bfe=typeof queueMicrotask=="function"?queueMicrotask:typeof QL<"u"?function(r){return QL.resolve(null).then(r).catch(dw)}:KL,cC=null,Vm=0,RS=1,ZL=2,JL=3,eu=4,tu=new Map,eV=new Set,Ed=Qn.d;Qn.d={f:function(){var r=Ed.f(),a=Wf();return r||a},r:function(r){var a=Ne(r);a!==null&&a.tag===5&&a.type==="form"?Uf(a):Ed.r(r)},D:function(r){Ed.D(r),vx("dns-prefetch",r,null)},C:function(r,a){Ed.C(r,a),vx("preconnect",r,a)},L:function(r,a,u){Ed.L(r,a,u);var g=lv;if(g&&r&&a){var x='link[rel="preload"][as="'+Or(a)+'"]';a==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Or(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Or(u.imageSizes)+'"]')):x+='[href="'+Or(r)+'"]';var w=x;switch(a){case"style":w=O0(r);break;case"script":w=M0(r)}tu.has(w)||(r=yn({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),tu.set(w,r),g.querySelector(x)!==null||a==="style"&&g.querySelector(nd(w))||a==="script"&&g.querySelector(rd(w))||(a=g.createElement("link"),jn(a,"link",r),vt(a),g.head.appendChild(a)))}},m:function(r,a){Ed.m(r,a);var u=lv;if(u&&r){var g=a&&typeof a.as=="string"?a.as:"script",x='link[rel="modulepreload"][as="'+Or(g)+'"][href="'+Or(r)+'"]',w=x;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=M0(r)}if(!tu.has(w)&&(r=yn({rel:"modulepreload",href:r},a),tu.set(w,r),u.querySelector(x)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(rd(w)))return}g=u.createElement("link"),jn(g,"link",r),vt(g),u.head.appendChild(g)}}},X:function(r,a){Ed.X(r,a);var u=lv;if(u&&r){var g=Et(u).hoistableScripts,x=M0(r),w=g.get(x);w||(w=u.querySelector(rd(x)),w||(r=yn({src:r,async:!0},a),(a=tu.get(x))&&id(r,a),w=u.createElement("script"),vt(w),jn(w,"link",r),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(x,w))}},S:function(r,a,u){Ed.S(r,a,u);var g=lv;if(g&&r){var x=Et(g).hoistableStyles,w=O0(r);a=a||"default";var M=x.get(w);if(!M){var D={loading:Vm,preload:null};if(M=g.querySelector(nd(w)))D.loading=RS|eu;else{r=yn({rel:"stylesheet",href:r,"data-precedence":a},u),(u=tu.get(w))&&Sx(r,u);var q=M=g.createElement("link");vt(q),jn(q,"link",r),q._p=new Promise(function(Q,we){q.onload=Q,q.onerror=we}),q.addEventListener("load",function(){D.loading|=RS}),q.addEventListener("error",function(){D.loading|=ZL}),D.loading|=eu,oy(M,a,g)}M={type:"stylesheet",instance:M,count:1,state:D},x.set(w,M)}}},M:function(r,a){Ed.M(r,a);var u=lv;if(u&&r){var g=Et(u).hoistableScripts,x=M0(r),w=g.get(x);w||(w=u.querySelector(rd(x)),w||(r=yn({src:r,async:!0,type:"module"},a),(a=tu.get(x))&&id(r,a),w=u.createElement("script"),vt(w),jn(w,"link",r),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},g.set(x,w))}}};var lv=typeof document>"u"?null:document,_E=null,jfe=6e4,Pfe=800,Ufe=500,fC=0,dC=null,DE=null,Bm=tA,_S={$$typeof:Bl,Provider:null,Consumer:null,_currentValue:Bm,_currentValue2:Bm,_threadCount:0},tV="%c%s%c",nV="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",rV="",NE=" ",$fe=Function.prototype.bind,iV=!1,aV=null,oV=null,lV=null,sV=null,uV=null,cV=null,fV=null,dV=null,hV=null,pV=null;aV=function(r,a,u,g){a=t(r,a),a!==null&&(u=n(a.memoizedState,u,0,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},oV=function(r,a,u){a=t(r,a),a!==null&&(u=s(a.memoizedState,u,0),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},lV=function(r,a,u,g){a=t(r,a),a!==null&&(u=i(a.memoizedState,u,g),a.memoizedState=u,a.baseState=u,r.memoizedProps=yn({},r.memoizedProps),u=Fi(r,2),u!==null&&Br(u,r,2))},sV=function(r,a,u){r.pendingProps=n(r.memoizedProps,a,0,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},uV=function(r,a){r.pendingProps=s(r.memoizedProps,a,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},cV=function(r,a,u){r.pendingProps=i(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Br(a,r,2)},fV=function(r){var a=Fi(r,2);a!==null&&Br(a,r,2)},dV=function(r){var a=Ve(),u=Fi(r,a);u!==null&&Br(u,r,a)},hV=function(r){d=r},pV=function(r){c=r};var kE=!0,zE=null,hC=!1,ih=null,ah=null,oh=null,DS=new Map,NS=new Map,lh=[],Hfe="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(" "),IE=null;if(am.prototype.render=Ps.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error("Cannot update an unmounted root.");var u=arguments;typeof u[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()."):N(u[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 u[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),u=r;var g=a.current,x=Qi(g);Ax(g,x,u,a,null,null)},am.prototype.unmount=Ps.prototype.unmount=function(){var r=arguments;if(typeof r[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()."),r=this._internalRoot,r!==null){this._internalRoot=null;var a=r.containerInfo;(Gn&(ia|ql))!==ya&&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."),Ax(r.current,2,null,r,null,null),Wf(),a[cl]=null}},am.prototype.unstable_scheduleHydration=function(r){if(r){var a=cr();r={blockedOn:null,target:r,priority:a};for(var u=0;u<lh.length&&a!==0&&a<lh[u].priority;u++);lh.splice(u,0,r),u===0&&hy(r)}},(function(){var r=Dx.version;if(r!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
  - react:      `+(r+`
  - react-dom:  19.2.4
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"),Qn.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error("Unable to find node on an unmounted component."):(r=Object.keys(r).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+r));return r=U(a),r=r!==null?X(r):null,r=r===null?null:r.stateNode,r},!(function(){var r={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:$e,reconcilerVersion:"19.2.4"};return r.overrideHookState=aV,r.overrideHookStateDeletePath=oV,r.overrideHookStateRenamePath=lV,r.overrideProps=sV,r.overridePropsDeletePath=uV,r.overridePropsRenamePath=cV,r.scheduleUpdate=fV,r.scheduleRetry=dV,r.setErrorHandler=hV,r.setSuspenseHandler=pV,r.scheduleRefresh=R,r.scheduleRoot=C,r.setRefreshHandler=_,r.getCurrentFiber=Ox,mn(r)})()&&Uc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var mV=window.location.protocol;/^(https?|file):$/.test(mV)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(mV==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}dv.createRoot=function(r,a){if(!N(r))throw Error("Target container is not a DOM element.");_x(r);var u=!1,g="",x=T1,w=T4,M=A4;return a!=null&&(a.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ol&&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 />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onUncaughtError!==void 0&&(x=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(M=a.onRecoverableError)),a=Cw(r,1,!1,null,null,u,g,null,x,w,M,Dw),r[cl]=a.current,qp(r),new Ps(a)},dv.hydrateRoot=function(r,a,u){if(!N(r))throw Error("Target container is not a DOM element.");_x(r),a===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,x="",w=T1,M=T4,D=A4,q=null;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(q=u.formState)),a=Cw(r,1,!0,a,u??null,g,x,q,w,M,D,Dw),a.context=Tx(null),u=a.current,g=Qi(u),g=jt(g),x=xs(g),x.callback=null,Oa(u,x,g),Ol(g,"hydrateRoot()",null),u=g,a.current.lanes=u,pt(a,u),Na(a),r[cl]=a.current,qp(r),new am(a)},dv.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),dv}var RC;function OV(){if(RC)return IS.exports;RC=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(),IS.exports=AV()):IS.exports=CV(),IS.exports}var MV=OV();function RV(e){return e.classList.contains("main-svg")||e.closest(".plotly-graph-div")!==null}function _V(e,t){DV(e,t),kV(),zV(e),IV(),LV()}function DV(e,t){const n=e.querySelector(".bglayer");if(!n||n.hasAttribute("data-maidr"))return;n.setAttribute("data-maidr","1");const i=Array.from(n.querySelectorAll(":scope > rect")),o=new Set,s=[];for(const v of i){const S=`${v.getAttribute("x")},${v.getAttribute("y")}`;o.has(S)||(o.add(S),s.push(v))}s.sort((v,S)=>{const T=Number.parseFloat(v.getAttribute("y")??"0"),E=Number.parseFloat(S.getAttribute("y")??"0");return Math.abs(T-E)>1?T-E:Number.parseFloat(v.getAttribute("x")??"0")-Number.parseFloat(S.getAttribute("x")??"0")});const c=[],d=t.subplots??[];for(const v of d)for(const S of v){const T=S.selector;if(T){const E=T.match(/id="([^"]+)"/);E&&c.push(E[1])}}const h="http://www.w3.org/2000/svg",y=Math.min(s.length,c.length);for(let v=0;v<y;v++){const S=s[v],T=document.createElementNS(h,"g");T.setAttribute("id",c[v]),S.parentNode.insertBefore(T,S),T.appendChild(S)}NV(n)}function NV(e){new MutationObserver(t=>{for(const n of t){if(n.type!=="attributes")continue;const i=n.target,o=i.closest('g[id^="axes_"][visibility="hidden"]');if(!o)continue;const s=e.querySelector(`g[id="${o.id}"]:not([visibility])`);if(!s)continue;const c=s.querySelector("rect");if(!c)continue;const d=i.getAttribute("stroke");d?(c.setAttribute("stroke",d),c.setAttribute("stroke-width",i.getAttribute("stroke-width")??"4")):(c.removeAttribute("stroke"),c.removeAttribute("stroke-width"))}}).observe(e,{attributes:!0,attributeFilter:["stroke","stroke-width"],subtree:!0})}function kV(){if(document.querySelector("style[data-maidr-plotly]"))return;const e=document.createElement("style");e.setAttribute("data-maidr-plotly","1"),e.textContent=`
    .svg-container { overflow: visible !important; }
    .svg-container article[id^="maidr-article"] {
      position: relative !important;
      width: 100% !important;
    }
    .svg-container article[id^="maidr-article"] > figure {
      position: relative !important;
      width: 100% !important;
    }
    .plotly-graph-div { overflow: visible !important; }
    .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 zV(e){function t(){const i=document.querySelector('div[id^="react-container-"]');if(i&&e){const o=e.getAttribute("height")??String(e.getBoundingClientRect().height);o&&(i.style.paddingTop=`${Number.parseFloat(o)}px`,requestAnimationFrame(()=>{try{window.dispatchEvent(new Event("resize"))}catch{}}))}}function n(){const i=document.querySelector('article[id^="maidr-article"]');if(!i){requestAnimationFrame(n);return}new MutationObserver(()=>t()).observe(i,{childList:!0,subtree:!0})}requestAnimationFrame(n)}function IV(){const e=document.querySelector(".modebar-container");if(!e)return;e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1");const t=e.querySelectorAll("a, button, input, [tabindex]");for(const n of t)n.setAttribute("tabindex","-1")}function LV(){const e=document.querySelector(".plotly-graph-div")??document.querySelector(".svg-container");e&&e.addEventListener("click",()=>{const t=document.querySelector('figure[id^="maidr-figure"] > div[tabindex="0"]');t&&t.focus()},!0)}var _t=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(_t||{}),En=(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))(En||{});function PE(e){return e!==null&&typeof e=="object"&&"supportsGridMode"in e&&typeof e.supportsGridMode=="function"}function VV(e){return e!==null&&typeof e=="object"&&"x"in e}function BV(e){return typeof e=="string"||typeof e=="number"}function jV(e){return e!==null&&typeof e=="object"&&"x"in e}class UE{stepTraceInSubplot(t,n){const i=t.activeTrace;if(!i)return null;const o=i.getCurrentXValue();t.moveOnce(n);const s=t.activeTrace;if(!s)return null;if(s.getId()===i.getId())return s.notifyOutOfBounds(),t.notifyOutOfBounds(),s;let c=!1;if(typeof i.getCurrentYValue=="function"&&typeof s.moveToXAndYValue=="function"){const d=i.getCurrentYValue();d!==null&&o!==null&&(c=s.moveToXAndYValue(o,d))}return c||s.moveToXValue(o),this.notifyLayerSwitch(t,s),s}computeIndexAndSegment(t,n,i,o){return i===_t.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,i){return i===_t.HORIZONTAL?{row:t,col:n}:{row:n,col:t}}extractXValueFromPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const o=t[0][i];return this.extractXFromPoint(o)}if(Array.isArray(t)&&Array.isArray(t[n])&&t[n][i]){const o=t[n][i];return this.extractXFromPoint(o)}return null}extractXValueFromValues(t,n,i){if(this.isValidPosition(t,n,i)){const o=t[n][i];return this.extractXFromValue(o)}return null}moveToXValueInPoints(t,n,i){if(Array.isArray(t)&&t.length===1&&Array.isArray(t[0])){const h=this.findPointIndexByX(t[0],n);if(h!==-1)return i(0,h),!0;{const y=this.findNearestPointIndexByX(t[0],n);if(y!==-1){const v=Hu(t[0][y]);if(typeof n=="number"&&typeof v=="number")return i(0,y),!0;if(typeof n=="string"&&typeof v=="string")return i(0,y),!0}}}let o=-1,s=-1,c=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 i(h,v),!0;const S=this.findNearestPointIndexByX(y,n);if(S!==-1){const T=Hu(y[S]);let E=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof T=="number"?(E=Math.abs(T-n),E<c&&(c=E,o=h,s=S,d="numeric")):typeof n=="string"&&typeof T=="string"?o===-1&&(o=h,s=S,d="categorical"):o===-1&&(o=h,s=S,d="generic")}}}if(o!==-1&&s!==-1){const h=t[o];if(Array.isArray(h)&&Hu(h[s]),d!==null)return i(o,s),!0}return!1}moveToXValueInValues(t,n,i){let o=-1,s=-1,c=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],S=this.extractXFromValue(v);if(S===n)return i(h,y),!0;if(typeof n=="number"&&typeof S=="number"){const T=Math.abs(S-n);T<c&&(c=T,o=h,s=y,d="numeric")}else typeof n=="string"&&typeof S=="string"?o===-1&&(o=h,s=y,d="categorical"):o===-1&&(o=h,s=y,d="generic")}return o!==-1&&s!==-1?(this.extractXFromValue(t[o][s]),i(o,s),!0):!1}extractXFromPoint(t){return jV(t)?t.x:null}extractXFromValue(t){return VV(t)?t.x:BV(t)?t:null}findPointIndexByX(t,n){return t.findIndex(i=>i.x===n)}isValidPosition(t,n,i){return n>=0&&n<t.length&&i>=0&&i<t[n].length}findNearestPointIndexByX(t,n){if(typeof n=="number"){let i=-1,o=Number.POSITIVE_INFINITY;for(let s=0;s<t.length;s++){const c=Hu(t[s]);if(typeof c=="number"){const d=Math.abs(c-n);d<o&&(o=d,i=s)}else if(typeof c=="string"){const d=Number(c);if(!Number.isNaN(d)){const h=Math.abs(d-n);h<o&&(o=h,i=s)}}}if(i!==-1)return Hu(t[i]),i}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(Hu(t[o])===n)return o;const i=Number(n);if(!Number.isNaN(i)){let o=-1,s=Number.POSITIVE_INFINITY;for(let c=0;c<t.length;c++){const d=Hu(t[c]);if(typeof d=="number"){const h=Math.abs(d-i);h<s&&(s=h,o=c)}else if(typeof d=="string"){const h=Number(d);if(!Number.isNaN(h)){const y=Math.abs(h-i);y<s&&(s=y,o=c)}}}if(o!==-1)return Hu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof Hu(t[o])=="string")return o}return t.length>0?(Hu(t[0]),0):-1}dispose(){}notifyLayerSwitch(t,n){if(n.state.empty)n.notifyStateUpdate();else{const i=t.getRow()+1,o=t.getSize(),s={...n.state,isLayerSwitch:!0,index:i,size:o};n.notifyObserversWithState(s)}}}function PV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function UV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function $V(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function HV(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function qV(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function GV(e){return e&&typeof e=="object"&&"value"in e}function Hu(e){return e?PV(e)||UV(e)||HV(e)||qV(e)||$V(e)?e.x:GV(e)?e.value:null:null}var qu=(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))(qu||{}),dn=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.COMMAND_PALETTE="COMMAND_PALETTE",e.GO_TO_EXTREMA="GO_TO_EXTREMA",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))(dn||{});class Yc{constructor(){P(this,"listeners");P(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(){}}P(fe,"ARTICLE","article"),P(fe,"DIV","div"),P(fe,"FIGURE","figure"),P(fe,"IMAGE","img"),P(fe,"INPUT","input"),P(fe,"STYLE","style"),P(fe,"TEXT_AREA","textarea"),P(fe,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),P(fe,"MAIDR_ARTICLE","maidr-article"),P(fe,"MAIDR_FIGURE","maidr-figure"),P(fe,"MAIDR_HIGHLIGHT","maidr-highlight"),P(fe,"REACT_CONTAINER","maidr-react-container"),P(fe,"REVIEW_INPUT","maidr-review-input"),P(fe,"TEXT_CONTAINER","maidr-text-container"),P(fe,"MAIDR_INSTRUCTION","maidr-instruction"),P(fe,"ROTOR_AREA","maidr-rotor-area"),P(fe,"SR_ONLY_CLASS","maidr-sr-only"),P(fe,"ARIA_LABEL","aria-label"),P(fe,"CIRCLE_X","cx"),P(fe,"CIRCLE_Y","cy"),P(fe,"D","d"),P(fe,"FILL","fill"),P(fe,"MARGIN","margin"),P(fe,"POINTS","points"),P(fe,"RADIUS","r"),P(fe,"ROLE","role"),P(fe,"STROKE","stroke"),P(fe,"STROKE_WIDTH","stroke-width"),P(fe,"TITLE","title"),P(fe,"VISIBILITY","visibility"),P(fe,"X1","x1"),P(fe,"X2","x2"),P(fe,"Y1","y1"),P(fe,"Y2","y2"),P(fe,"MAIDR_SUBPLOT","subplot"),P(fe,"MAIDR","maidr"),P(fe,"MAIDR_JSON_SELECTOR",'[maidr^="{"]'),P(fe,"AFTER_END","afterend"),P(fe,"APPLICATION","application"),P(fe,"ARE"," are "),P(fe,"CIRCLE","circle"),P(fe,"CLOSE_BRACKET","]"),P(fe,"COMMA",","),P(fe,"COMMA_SPACE",", "),P(fe,"EMPTY",""),P(fe,"HIDDEN","hidden"),P(fe,"IS"," is "),P(fe,"LINE","line"),P(fe,"MAIDR_DATA","maidr-data"),P(fe,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),P(fe,"NEW_LINE",`
`),P(fe,"OPEN_BRACKET","["),P(fe,"POLYLINE","polyline"),P(fe,"SPACE"," "),P(fe,"THROUGH"," through "),P(fe,"TRANSPARENT","transparent"),P(fe,"VISIBLE","visible"),P(fe,"X","x"),P(fe,"Y","y"),P(fe,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),P(fe,"HIGHLIGHT_CONTRAST_RATIO",3),P(fe,"HIGHLIGHT_COLOR_RATIO",.6),P(fe,"HIGHLIGHT_MAX_COLOR",255),P(fe,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),P(fe,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),P(fe,"DATA_MODE","DATA POINT NAVIGATION"),P(fe,"ROW_COL_MODE","ROW AND COLUMN NAVIGATION"),P(fe,"GRID_MODE","GRID NAVIGATION");class $E{constructor(){P(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 i=this.items.lastIndexOf(t);return i!==-1?(this.items.splice(i,n),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}}const HE=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function qE(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function hv(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on".concat(t),n)}function _C(e,t){const n=t.slice(0,t.length-1);for(let i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function DC(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 FV(e,t){const n=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let o=!0;for(let s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}const pv={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,"-":HE?173:189,"=":HE?61:187,";":HE?59:186,"'":222,"[":219,"]":221,"\\":220},ru={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},mv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},va={16:!1,18:!1,17:!1,91:!1},ni={};for(let e=1;e<20;e++)pv["f".concat(e)]=111+e;let Pr=[],gv=null,NC="all";const Xc=new Map,yv=e=>pv[e.toLowerCase()]||ru[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),YV=e=>Object.keys(pv).find(t=>pv[t]===e),XV=e=>Object.keys(ru).find(t=>ru[t]===e);function kC(e){NC=e||"all"}function vv(){return NC||"all"}function WV(){return Pr.slice(0)}function KV(){return Pr.map(e=>YV(e)||XV(e)||String.fromCharCode(e))}function QV(){const e=[];return Object.keys(ni).forEach(t=>{ni[t].forEach(n=>{let{key:i,scope:o,mods:s,shortcut:c}=n;e.push({scope:o,shortcut:c,mods:s,keys:i.split("+").map(d=>yv(d))})})}),e}function ZV(e){const t=e.target||e.srcElement,{tagName:n}=t;let i=!0;const o=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function JV(e){return typeof e=="string"&&(e=yv(e)),Pr.indexOf(e)!==-1}function eB(e,t){let n,i;e||(e=vv());for(const o in ni)if(Object.prototype.hasOwnProperty.call(ni,o))for(n=ni[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(c=>{let{element:d}=c;return GE(d)}):i++;vv()===e&&kC(t||"all")}function tB(e){let t=e.keyCode||e.which||e.charCode;const n=Pr.indexOf(t);if(n>=0&&Pr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Pr.splice(0,Pr.length),(t===93||t===224)&&(t=91),t in va){va[t]=!1;for(const i in ru)ru[i]===t&&(Ba[i]=!1)}}function zC(e){if(typeof e>"u")Object.keys(ni).forEach(o=>{Array.isArray(ni[o])&&ni[o].forEach(s=>BS(s)),delete ni[o]}),GE(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&BS(o)});else if(typeof e=="object")e.key&&BS(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let[o,s]=n;typeof o=="function"&&(s=o,o=""),BS({key:e,scope:o,method:s,splitKey:"+"})}}const BS=e=>{let{key:t,scope:n,method:i,splitKey:o="+"}=e;DC(t).forEach(c=>{const d=c.split(o),h=d.length,y=d[h-1],v=y==="*"?"*":yv(y);if(!ni[v])return;n||(n=vv());const S=h>1?_C(ru,d):[],T=[];ni[v]=ni[v].filter(E=>{const R=(i?E.method===i:!0)&&E.scope===n&&FV(E.mods,S);return R&&T.push(E.element),!R}),T.forEach(E=>GE(E))})};function IC(e,t,n,i){if(t.element!==i)return;let o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(const s in va)Object.prototype.hasOwnProperty.call(va,s)&&(!va[s]&&t.mods.indexOf(+s)>-1||va[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!va[16]&&!va[18]&&!va[17]&&!va[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Pr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function LC(e,t){const n=ni["*"];let i=e.keyCode||e.which||e.charCode;if(!Ba.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Pr.indexOf(i)===-1&&i!==229&&Pr.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=mv[d];e[d]&&Pr.indexOf(h)===-1?Pr.push(h):!e[d]&&Pr.indexOf(h)>-1?Pr.splice(Pr.indexOf(h),1):d==="metaKey"&&e[d]&&(Pr=Pr.filter(y=>y in mv||y===i))}),i in va){va[i]=!0;for(const d in ru)if(Object.prototype.hasOwnProperty.call(ru,d)){const h=mv[ru[d]];Ba[d]=e[h]}if(!n)return}for(const d in va)Object.prototype.hasOwnProperty.call(va,d)&&(va[d]=e[mv[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Pr.indexOf(17)===-1&&Pr.push(17),Pr.indexOf(18)===-1&&Pr.push(18),va[17]=!0,va[18]=!0);const o=vv();if(n)for(let d=0;d<n.length;d++)n[d].scope===o&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&IC(e,n[d],o,t);if(!(i in ni))return;const s=ni[i],c=s.length;for(let d=0;d<c;d++)if((e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&s[d].key){const h=s[d],{splitKey:y}=h,v=h.key.split(y),S=[];for(let T=0;T<v.length;T++)S.push(yv(v[T]));S.sort().join("")===Pr.sort().join("")&&IC(e,h,o,t)}}function Ba(e,t,n){Pr=[];const i=DC(e);let o=[],s="all",c=document,d=0,h=!1,y=!0,v="+",S=!1,T=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(c=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(s=t),T&&zC(e,s);d<i.length;d++)e=i[d].split(v),o=[],e.length>1&&(o=_C(ru,e)),e=e[e.length-1],e=e==="*"?"*":yv(e),e in ni||(ni[e]=[]),ni[e].push({keyup:h,keydown:y,scope:s,mods:o,shortcut:i[d],method:n,key:i[d],splitKey:v,element:c});if(typeof c<"u"&&window){if(!Xc.has(c)){const E=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return LC(R,c)},C=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;LC(R,c),tB(R)};Xc.set(c,{keydownListener:E,keyupListenr:C,capture:S}),qE(c,"keydown",E,S),qE(c,"keyup",C,S)}if(!gv){const E=()=>{Pr=[]};gv={listener:E,capture:S},qE(window,"focus",E,S)}}}function nB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ni).forEach(n=>{ni[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function GE(e){const t=Object.values(ni).flat();if(t.findIndex(i=>{let{element:o}=i;return o===e})<0){const{keydownListener:i,keyupListenr:o,capture:s}=Xc.get(e)||{};i&&o&&(hv(e,"keyup",o,s),hv(e,"keydown",i,s),Xc.delete(e))}if((t.length<=0||Xc.size<=0)&&(Object.keys(Xc).forEach(o=>{const{keydownListener:s,keyupListenr:c,capture:d}=Xc.get(o)||{};s&&c&&(hv(o,"keyup",c,d),hv(o,"keydown",s,d),Xc.delete(o))}),Xc.clear(),Object.keys(ni).forEach(o=>delete ni[o]),gv)){const{listener:o,capture:s}=gv;hv(window,"focus",o,s),gv=null}}const FE={getPressedKeyString:KV,setScope:kC,getScope:vv,deleteScope:eB,getPressedKeyCodes:WV,getAllKeyCodes:QV,isPressed:JV,filter:ZV,trigger:nB,unbind:zC,keyMap:pv,modifier:ru,modifierMap:mv};for(const e in FE)Object.prototype.hasOwnProperty.call(FE,e)&&(Ba[e]=FE[e]);if(typeof window<"u"){const e=window.hotkeys;Ba.noConflict=t=>(t&&window.hotkeys===Ba&&(window.hotkeys=e),Ba),window.hotkeys=Ba}function VC(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}class rB{constructor(t){P(this,"id");P(this,"instructionContext");P(this,"selectorList",[]);P(this,"plotContext");P(this,"scopeContext");P(this,"navigationService");P(this,"figure");P(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new $E,this.scopeContext=new $E,this.navigationService=new UE,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(dn.SUBPLOT);return}this.scopeContext.push(dn.TRACE);const i=t.activeSubplot.state;if(i.empty||i.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}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),Ba.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 i=this.active,o=this.navigationService.stepTraceInSubplot(i,t);o?this.plotContext.push(o):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 i=n.activeSubplot.activeTrace;i.resetToInitialEntry(),this.plotContext.push(i),this.toggleScope(dn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(dn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const i=t?"Click to activate.":fe.EMPTY;switch(n.type){case"figure":return`This is a maidr figure containing ${n.size} subplots. ${i}
        Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":{const o=n.trace.empty?void 0:n.trace.orientation,s=VC(n.trace.traceType,o);return`This is a maidr plot containing ${n.size} layers, and
        this is layer 1 of ${n.size}: ${s} plot. ${i}
        Use Arrows to navigate data points. Toggle B for Braille, T for Text,
        S for Sonification, and R for Review mode.`}case"trace":{let o=n.plotType;n.plotType==="multiline"&&n.groupCount===1&&(o="single line");const s=o==="multiline"&&n.groupCount?` with ${n.groupCount} groups`:"";return`This is a maidr plot of type: ${VC(o,n.orientation)}${s}. ${i} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class jS{constructor(){}static parse(t){const n=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(n)){let o=n.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const i=n.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,n){const i=this.calculateLuminance(t),o=this.calculateLuminance(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}static calculateLuminance(t){const[n,i,o]=[t.r,t.g,t.b].map(s=>{const c=s/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*n+.7152*i+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}static isEqual(t,n){const i=this.parse(t),o=this.parse(n);return!i||!o?!1:i.r===o.r&&i.g===o.g&&i.b===o.b}}class Ct{constructor(){}static async toBase64(t){try{const n=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n).replace(/'/g,"%27").replace(/"/g,"%22")}`,s=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=o}),c=document.createElement("canvas");[c.width,c.height]=[s.naturalWidth,s.naturalHeight];const d=c.getContext("2d");return d?(d.drawImage(s,0,0),c.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(i=>{if(!n)return i;const o=i.cloneNode(!0);return o.setAttribute(fe.VISIBILITY,fe.HIDDEN),i.insertAdjacentElement(fe.AFTER_END,o),o})}static selectElement(t,n=!0){const i=document.querySelector(t);if(!n)return i;const o=i==null?void 0:i.cloneNode(!0);return o==null||o.setAttribute(fe.VISIBILITY,fe.HIDDEN),i==null||i.insertAdjacentElement(fe.AFTER_END,o),o}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,i){var y;const o=window.getComputedStyle(i),s=o.stroke||o.fill,c=o.strokeWidth||"2",d=Number.parseFloat(c)*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,s),h.setAttribute(fe.STROKE,s),h.setAttribute(fe.STROKE_WIDTH,c),h.setAttribute(fe.VISIBILITY,fe.HIDDEN),(y=i.parentElement)==null||y.appendChild(h),h}static createLineElement(t,n){const o=t.getBBox(),s=o.width||this.MIN_LINE_SPAN,c=o.height||this.MIN_LINE_SPAN,d=o.x+o.width/2,h=o.y+o.height/2;let y,v,S,T;switch(n){case"top":o.width===0?[y,v,S,T]=[d-s/2,o.y,d+s/2,o.y]:[y,v,S,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":o.width===0?[y,v,S,T]=[d-s/2,o.y+o.height,d+s/2,o.y+o.height]:[y,v,S,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":o.height===0?[y,v,S,T]=[o.x,h-c/2,o.x,h+c/2]:[y,v,S,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":o.height===0?[y,v,S,T]=[o.x+o.width,h-c/2,o.x+o.width,h+c/2]:[y,v,S,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const E=window.getComputedStyle(t),C=document.createElementNS(this.SVG_NAMESPACE,fe.LINE);return C.setAttribute(fe.X1,String(y)),C.setAttribute(fe.Y1,String(v)),C.setAttribute(fe.X2,String(S)),C.setAttribute(fe.Y2,String(T)),C.setAttribute(fe.STROKE,E.stroke),C.setAttribute(fe.STROKE_WIDTH,E.strokeWidth||"2"),C.setAttribute(fe.VISIBILITY,fe.HIDDEN),t.insertAdjacentElement(fe.AFTER_END,C),C}static getAdjustedOpacity(t,n){const i=t?Number.parseFloat(t):Number.NaN;return!Number.isNaN(i)&&i>n?i.toString():"1"}static createHighlightElement(t,n){try{const S=t.getBBox();if(S.width===0&&S.height===0){const T=window.getComputedStyle(t),E=Number.parseFloat(T.strokeWidth||"2"),C=Math.max(E*1.5,4),R=document.createElementNS(this.SVG_NAMESPACE,"circle");return R.setAttribute("cx",String(S.x)),R.setAttribute("cy",String(S.y)),R.setAttribute("r",String(C)),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 i=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===fe.POLYLINE||o===fe.LINE,c=window.getComputedStyle(t),d=s?c.getPropertyValue(fe.STROKE):c.getPropertyValue(fe.FILL),h=this.getHighlightColor(d,n),y=c.getPropertyValue("fill-opacity"),v=c.getPropertyValue("stroke-opacity");if(i.style.fillOpacity=this.getAdjustedOpacity(y,this.MIN_VISIBLE_FILL_OPACITY),i.style.strokeOpacity=this.getAdjustedOpacity(v,this.MIN_VISIBLE_STROKE_OPACITY),i.setAttribute(fe.VISIBILITY,fe.VISIBLE),i.setAttribute(fe.STROKE,h),i.setAttribute(fe.FILL,h),i.style.fill=h,i.style.stroke=h,s){const S=window.getComputedStyle(i).getPropertyValue(fe.STROKE_WIDTH),T=S.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const E=Number.parseFloat(T[1]),C=T[2]||"";i.setAttribute(fe.STROKE_WIDTH,`${E+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${C}`)}else{const E=Number.parseFloat(S),C=Number.isNaN(E)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:E+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;i.setAttribute(fe.STROKE_WIDTH,`${C}`)}}return t.insertAdjacentElement(fe.AFTER_END,i),i}static getHighlightColor(t,n){const i=jS.parse(t);if(!i||!(jS.getContrastRatio(i,fe.HIGHLIGHT_BASE_COLOR)<fe.HIGHLIGHT_CONTRAST_RATIO))return n;const c={...i};return i.r===i.g&&i.g===i.b?(c.r=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*fe.HIGHLIGHT_COLOR_RATIO)),c.g=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*fe.HIGHLIGHT_COLOR_RATIO)),c.b=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*fe.HIGHLIGHT_COLOR_RATIO))):i.r>=i.g&&i.r>=i.b?c.r=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*fe.HIGHLIGHT_COLOR_RATIO)):i.g>=i.r&&i.g>=i.b?c.g=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*fe.HIGHLIGHT_COLOR_RATIO)):c.b=Math.min(fe.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*fe.HIGHLIGHT_COLOR_RATIO)),jS.rgbToString(c)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",i=jS.parse(n);return i?(.2126*i.r+.7152*i.g+.0722*i.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,i){const o=t.querySelector("rect, path");let s="";if(o){s=window.getComputedStyle(o).getPropertyValue("fill"),(!s||s==="none"||s==="transparent"||s==="rgba(0, 0, 0, 0)")&&(i?s=window.getComputedStyle(i).getPropertyValue("fill"):s=n);const c=this.getHighlightColor(s,n);o.setAttribute("stroke",c),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}P(Ct,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),P(Ct,"MIN_LINE_SPAN",10),P(Ct,"MIN_VISIBLE_FILL_OPACITY",.01),P(Ct,"MIN_VISIBLE_STROKE_OPACITY",.01),P(Ct,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const iB="unavailable",aB="X",oB="Y",lB="unavailable";class YE{constructor(){P(this,"observers");P(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 i=this.movable.moveToIndex(t,n);return i?this.notifyStateUpdate():this.notifyOutOfBounds(),i}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,i){return i==="lower"?t<n:i==="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 fo extends YE{constructor(n){var s,c,d;super();P(this,"id");P(this,"type");P(this,"title");P(this,"xAxis");P(this,"yAxis");P(this,"fill");P(this,"navigationService");P(this,"layer");this.layer=n,this.navigationService=new UE,this.id=n.id,this.type=n.type,this.title=n.title??iB;const i=(s=n.axes)==null?void 0:s.x,o=(c=n.axes)==null?void 0:c.y;this.xAxis=(typeof i=="object"?i.label:i)??aB,this.yAxis=(typeof o=="object"?o.label:o)??oB,this.fill=((d=n.axes)==null?void 0:d.fill)??lB}dispose(){this.highlightValues&&(this.highlightValues.forEach(n=>n.forEach(i=>{(Array.isArray(i)?i:[i]).forEach(s=>s.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,fill:this.fill,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 i of this.highlightValues)for(const o of i)Array.isArray(o)?n.push(...o):o&&n.push(o);return n}getAllOriginalElements(){if(this.highlightValues===null)return[];const n=[];for(const i of this.highlightValues)for(const o of i){const s=Array.isArray(o)?o:o?[o]:[];for(const c of s){const d=c.previousElementSibling;d&&d.tagName===c.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}getExtremaTargets(){return[]}navigateToExtrema(n){if(this.supportsExtrema)throw new Error("Extrema navigation not implemented by this plot type")}finalizeExtremaNavigation(){this.isInitialEntry&&(this.isInitialEntry=!1),this.updateVisualPointPosition(),this.notifyStateUpdate()}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 i=this.getPointsArray();if(this.isValidPointsArray(i))return this.navigationService.moveToXValueInPoints(i,n,this.moveToIndex.bind(this))}if(this.hasValuesArray()){const i=this.values;if(this.isValidValuesArray(i))return this.navigationService.moveToXValueInValues(i,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,i){const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}isPointInBounds(n,i,{element:o,row:s,col:c}){const d=o.getBoundingClientRect();let h=12;return(this.type===En.HEATMAP||this.type===En.BAR||this.type===En.STACKED||this.type===En.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&i>=d.y-h&&i<=d.y+d.height+h}}class Oi{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],i=t[0];for(let o=1;o<t.length;o++){const s=t[o];s<n&&(n=s),s>i&&(i=s)}return{min:n,max:i}}static minMaxFrom2D(t){const n=t.flat();return this.minMax(n)}}class XE{constructor(t){P(this,"isInitialEntry");P(this,"isOutOfBounds");P(this,"row");P(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 Wc extends XE{constructor(n,i){super(i);P(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,i){return this.isMovable([n,i])?(this.row=n,this.col=i,this.isInitialEntry=!1,!0):!1}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.elements.length&&o>=0&&o<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 sB extends XE{constructor(n,i){super(i);P(this,"graph");this.graph=n}moveOnce(n){var s;if(this.isInitialEntry)return this.handleInitialEntry(),!0;const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.up;break;case"DOWNWARD":o=i.down;break;case"FORWARD":o=i.right;break;case"BACKWARD":o=i.left;break}return o?(this.row=o.row,this.col=o.col,!0):!1}moveToExtreme(n){var s;this.isInitialEntry&&this.handleInitialEntry();const i=(s=this.graph[this.row])==null?void 0:s[this.col];if(!i)return!1;let o=null;switch(n){case"UPWARD":o=i.top;break;case"DOWNWARD":o=i.bottom;break;case"FORWARD":o=i.end;break;case"BACKWARD":o=i.start;break}return o?(this.row=o.row,this.col=o.col,!0):!1}isMovable(n){var o,s,c;if(Array.isArray(n)){const[d,h]=n;return((o=this.graph[d])==null?void 0:o[h])!==null&&((s=this.graph[d])==null?void 0:s[h])!==void 0}const i=(c=this.graph[this.row])==null?void 0:c[this.col];if(!i)return!1;switch(n){case"UPWARD":return i.up!==null;case"DOWNWARD":return i.down!==null;case"FORWARD":return i.right!==null;case"BACKWARD":return i.left!==null}}handleInitialEntry(){this.isInitialEntry=!1,this.isMovable([0,0])?(this.row=0,this.col=0):(this.row=-1,this.col=-1)}}class uB extends XE{constructor(n,i){super();P(this,"mode");P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");this.mode="col",this.xPoints=n,this.yPoints=i,this.xValues=n.map(o=>o.x),this.yValues=i.map(o=>o.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],i=n.y[Math.floor(n.y.length/2)];this.row=this.yValues.indexOf(i),this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)];this.col=this.xValues.indexOf(i),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 WE extends fo{constructor(n,i){super(n);P(this,"movable");P(this,"points");P(this,"barValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"min");P(this,"max");P(this,"supportsExtrema",!0);this.points=i,this.orientation=n.orientation??_t.VERTICAL,this.barValues=i.map(o=>o.map(s=>this.orientation===_t.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>Oi.safeMin(o)),this.max=this.barValues.map(o=>Oi.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(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,i=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:Oi.safeMin(this.min),max:Oi.safeMax(this.max),raw:i},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,i=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?i.x:i.y,c=n?this.yAxis:this.xAxis,d=n?i.y:i.x;return{main:{label:o,value:s},cross:{label:c,value:d},mainAxis:n?"x":"y",crossAxis:n?"y":"x"}}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 o=[Ct.selectAllElements(n)];if(o.length!==this.points.length)return null;for(let s=0;s<this.points.length;s++)if(o[s].length!==this.points[s].length)if(o[s].length<this.points[s].length){const c=[];let d=0;for(let h=0;h<this.points[s].length;h++)(this.orientation===_t.VERTICAL?Number(this.points[s][h].y):Number(this.points[s][h].x))!==0&&d<o[s].length?c.push(o[s][d++]):c.push(Ct.createEmptyElement());o[s]=c}else return null;return o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();d&&i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}return i}findNearestPoint(n,i){if(!this.highlightValues)return null;for(let o=0;o<this.highlightValues.length;o++)for(let s=0;s<this.highlightValues[o].length;s++){const c=this.highlightValues[o][s],d=Array.isArray(c)?c[0]:c,h=d.getBoundingClientRect();if(n>=h.x&&n<=h.x+h.width&&i>=h.y&&i<=h.y+h.height)return{element:d,row:o,col:s}}return null}}class cB extends WE{isPointInBounds(t,n,{element:i,row:o,col:s}){const c=i.getBoundingClientRect();return t>=c.x&&t<=c.x+c.width&&n>=c.y&&n<=c.y+c.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 i=this.barValues[n];if(!i||i.length===0)return t;const o=this.min[n],s=this.max[n],c=i.indexOf(s),d=i.indexOf(o),h=(T=this.points[n])==null?void 0:T[c],y=(E=this.points[n])==null?void 0:E[d],v=h?this.orientation===_t.VERTICAL?h.x:h.y:void 0,S=y?this.orientation===_t.VERTICAL?y.x:y.y:void 0;return t.push({label:`Max Bar at ${this.getPointLabel(c)}`,value:s,pointIndex:c,segment:"bar",type:"max",navigationType:"point",xValue:v}),t.push({label:`Min Bar at ${this.getPointLabel(d)}`,value:o,pointIndex:d,segment:"bar",type:"min",navigationType:"point",xValue:S}),t}navigateToExtrema(t){this.col=t.pointIndex,this.finalizeExtremaNavigation()}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 i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const aa={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)",MEAN:"Mean"};class fB extends fo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"min");P(this,"max");this.orientation=n.orientation??_t.VERTICAL,this.orientation===_t.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data;const{sections:i,accessors:o}=this.buildStandardBoxDataSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const c=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(c),this.max=Oi.maxFrom2D(c),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0})}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}buildStandardBoxDataSections(){return{sections:[aa.LOWER_OUTLIER,aa.MIN,aa.Q1,aa.Q2,aa.Q3,aa.MAX,aa.UPPER_OUTLIER],accessors:[n=>n.lowerOutliers,n=>n.min,n=>n.q1,n=>n.q2,n=>n.q3,n=>n.max,n=>n.upperOutliers]}}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,i){return super.moveToIndex(n,i)}get values(){return this.boxValues}get audio(){const n=this.orientation===_t.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,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,i=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:i,col:o}}get text(){const n=this.orientation===_t.HORIZONTAL,i=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,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 i=this.orientation===_t.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{var R,_;const d=((R=c.lowerOutliers)==null?void 0:R.flatMap(N=>Ct.selectAllElements(N,!1)))??[],h=((_=c.upperOutliers)==null?void 0:_.flatMap(N=>Ct.selectAllElements(N,!1)))??[],y=Ct.selectElement(c.min,!1),v=Ct.selectElement(c.max,!1),S=Ct.selectElement(c.iq,!1),T=Ct.selectElement(c.q2,!1),E=c.q1?Ct.selectElement(c.q1,!1):null,C=c.q3?Ct.selectElement(c.q3,!1):null;s.push({lowerOutliers:d,upperOutliers:h,min:y,max:v,iq:S,q2:T,q1Direct:E,q3Direct:C})}),s.forEach((c,d)=>{var _;const h=c.lowerOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(fe.VISIBILITY,fe.HIDDEN),N.insertAdjacentElement(fe.AFTER_END,z),z}),y=c.upperOutliers.map(N=>{const z=N.cloneNode(!0);return z.setAttribute(fe.VISIBILITY,fe.HIDDEN),N.insertAdjacentElement(fe.AFTER_END,z),z}),v=this.cloneElementOrEmpty(c.min),S=this.cloneElementOrEmpty(c.max),T=this.cloneElementOrEmpty(c.q2);let E,C;if(c.q1Direct&&c.q3Direct)E=this.cloneElementOrEmpty(c.q1Direct),C=this.cloneElementOrEmpty(c.q3Direct);else{const N=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse";[E,C]=c.iq?i?N?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")]}const R=[h,v,E,T,C,S,y];i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(fe.VISIBILITY,fe.HIDDEN),n.insertAdjacentElement(fe.AFTER_END,i),i}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.boxValues.length)return!1;let s=[],c=0;if(n==="left"||n==="right"?(s=this.boxValues[this.row],c=this.col):(s=this.boxValues.map(y=>y[this.col]),c=this.row),s.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){const y=s[c],v=s[h];if(Array.isArray(v)||Array.isArray(y))return!0;if(this.compare(v,y,i))return this.set_point(n,h),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}set_point(n,i){n==="left"||n==="right"?this.col=i:this.row=i}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 i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}}const dB="trend",BC=100,hB=["volatility","open","high","low","close"];class pB extends fo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"candles");P(this,"candleValues");P(this,"orientation");P(this,"currentSegmentType","open");P(this,"currentPointIndex",0);P(this,"sortedSegmentsByPoint");P(this,"segmentPositionMaps");P(this,"sections");P(this,"min");P(this,"max");P(this,"highlightValues");P(this,"highlightCenters");P(this,"navigationService");this.navigationService=new UE;const i=n.data;this.candles=i.map(s=>({...s,volatility:Math.round((s.high-s.low)*BC)/BC,trend:s.close>s.open?"Bull":s.close<s.open?"Bear":"Neutral"})),this.orientation=n.orientation??_t.VERTICAL,this.sections=hB,this.candleValues=this.sections.map(s=>this.candles.map(c=>c[s]));const o=this.orientation===_t.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new Wc(this.candleValues,o),this.min=Oi.minFrom2D(this.candleValues),this.max=Oi.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(s=>[s,n[s]]).sort((s,c)=>s[1]-c[1]).map(s=>s[0])])}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(n=>{const i=new Map;return n.forEach((o,s)=>{i.set(o,s)}),i})}getSegmentPositionInSortedOrder(n,i){return this.segmentPositionMaps[n].get(i)??0}getSegmentTypeAtSortedPosition(n,i){return this.sortedSegmentsByPoint[n][i]??"open"}updateVisualSegmentPosition(){const i=this.sortedSegmentsByPoint[this.currentPointIndex].indexOf(this.currentSegmentType??"open");this.orientation===_t.HORIZONTAL?this.col=i:this.row=i}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 i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open");if(o===-1)return this.notifyOutOfBounds(),!1;const s=n==="UPWARD"?o+1:o-1;if(s>=0&&s<i.length)this.currentSegmentType=i[s],this.updateVisualSegmentPosition();else return this.notifyOutOfBounds(),!1;break}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(i>=0&&i<this.candles.length)this.currentPointIndex=i,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 i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[i.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const i=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=i[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,i){this.isInitialEntry&&this.handleInitialEntry();const{pointIndex:o,segmentType:s}=this.navigationService.computeIndexAndSegment(n,i,this.orientation,this.sections);return this.currentPointIndex=o,this.currentSegmentType=s,this.row=n,this.col=i,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 i=this.sortedSegmentsByPoint[this.currentPointIndex],o=i.indexOf(this.currentSegmentType??"open"),s=n==="UPWARD"?o+1:o-1;return s>=0&&s<i.length}case"FORWARD":case"BACKWARD":{const i=n==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return i>=0&&i<this.candles.length}}}dispose(){this.navigationService.dispose(),this.candles.length=0,super.dispose()}get values(){return this.candleValues}get audio(){let n;const i=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:i?this.row:this.col,y:i?this.col:this.row,rows:i?this.candleValues.length:this.candleValues[this.row].length,cols:i?this.candleValues[this.row].length:this.candleValues.length},trend:this.candles[this.currentPointIndex].trend}}get braille(){const n=this.candles.map(c=>c.trend),i=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=i;const o=this.candleValues.map(c=>Math.min(...c)),s=this.candleValues.map(c=>Math.max(...c));return{empty:!1,id:this.id,values:this.candleValues,min:o,max:s,row:this.row,col:this.col,custom:n}}collectElements(n){if(!n)return[];const i=Array.isArray(n)?n:[n],o=[];for(const s of i)o.push(...Ct.selectAllElements(s));return o}getElementAt(n,i){return i<n.length?n[i]:null}mapToSvgElements(n){if(!n)return null;if(typeof n=="string"||Array.isArray(n)){const C=Array.isArray(n)?n[0]||"":n,R=Ct.selectAllElements(C),_=[];for(let N=0;N<this.sections.length;N++){_[N]=[];for(let z=0;z<this.candles.length;z++){const B=z<R.length?z:0;_[N][z]=R[B]}}return _}const i=n,o=this.candles.length,s=this.collectElements(i.body);let c=this.collectElements(i.wickHigh),d=this.collectElements(i.wickLow);if(c.length===0||d.length===0){const C=this.collectElements(i.wick);C.length>0&&(c.length===0&&(c=C),d.length===0&&(d=C))}const h=this.collectElements(i.open),y=this.collectElements(i.close),v=Array.from({length:o},()=>Ct.createEmptyElement()),S=Array.from({length:o},()=>Ct.createEmptyElement()),T=Array.from({length:o},()=>Ct.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(h,C);if(!R){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"bottom":B<z?"top":"bottom";R=Ct.createLineElement(N,V)}else R=Ct.createEmptyElement()}v[C]=R;let _=this.getElementAt(y,C);if(!_){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"top":B<z?"bottom":"top";_=Ct.createLineElement(N,V)}else _=Ct.createEmptyElement()}S[C]=_,T[C]=Ct.createEmptyElement()}const E=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>Ct.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let _=0;_<R.length;_++){const N=R[_];let z;switch(N){case"volatility":{const B=[],V=this.getElementAt(s,C),L=this.getElementAt(c,C)??V,U=this.getElementAt(d,C)??V;L&&B.push(L),V&&B.push(V),U&&B.push(U);const X=Array.from(new Set(B));z=X.length>0?X:[Ct.createEmptyElement()]}break;case"open":z=v[C];break;case"close":z=S[C];break;case"high":z=this.getElementAt(c,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;case"low":z=this.getElementAt(d,C)??this.getElementAt(s,C)??Ct.createEmptyElement();break;default:z=Ct.createEmptyElement()}E[_][C]=z}}return E}get text(){const n=this.candles[this.currentPointIndex],i=this.orientation===_t.HORIZONTAL;let o;return this.currentSegmentType==="volatility"?o=n.volatility:this.currentSegmentType?o=n[this.currentSegmentType]:o=n.open,{main:{label:i?this.yAxis:this.xAxis,value:n.value},cross:{label:i?this.xAxis:this.yAxis,value:o},section:this.currentSegmentType??"open",fill:{label:dB,value:n.trend},mainAxis:i?"y":"x",crossAxis:i?"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 i=this.candles.findIndex(o=>o.value===n);return i!==-1?(this.currentPointIndex=i,this.currentSegmentType="close",this.updateVisualPointPosition(),this.updateVisualSegmentPosition(),this.notifyStateUpdate(),!0):!1}getAvailableXValues(){return this.candles.map(n=>n.value)}getExtremaTargets(){const n=[],i=this.currentSegmentType??"open";if(i==="volatility"){const o=this.candles.map((y,v)=>({value:y.volatility,index:v})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y];n.push({label:`Max Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point",xValue:S.value})}),h.forEach((y,v)=>{const S=this.candles[y];n.push({label:`Min Volatility at ${S.value}`,value:S.volatility,pointIndex:y,segment:"volatility",type:"min",navigationType:"point",xValue:S.value})})}else{const o=this.candles.map((y,v)=>({value:y[i],index:v,xValue:y.value})),s=Math.max(...o.map(y=>y.value)),c=o.filter(y=>y.value===s).map(y=>y.index),d=Math.min(...o.map(y=>y.value)),h=o.filter(y=>y.value===d).map(y=>y.index);c.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Max ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"max",navigationType:"point",xValue:S.value})}),h.forEach((y,v)=>{const S=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Min ${T} at ${S.value}`,value:S[i],pointIndex:y,segment:i,type:"min",navigationType:"point",xValue:S.value})})}return n}navigateToExtrema(n){this.currentPointIndex=n.pointIndex,this.currentSegmentType=n.segment,this.finalizeExtremaNavigation()}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.candles.length)return!1;const s=this.currentSegmentType??"open",c=this.candles.map((v,S)=>({value:v[s],index:S,xValue:v.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<c.length;){if(this.compare(c[y].value,c[d].value,i))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 i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].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 mB extends fo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"movable");P(this,"heatmapValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"x");P(this,"y");P(this,"min");P(this,"max");const i=n.data;this.x=i.x,this.y=[...i.y].reverse(),this.heatmapValues=[...i.points].reverse();const{min:o,max:s}=Oi.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(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]},fill:{label:this.fill,value:this.heatmapValues[this.row][this.col]}}}get dimension(){return{rows:this.heatmapValues.length,cols:this.heatmapValues[this.row].length}}mapToSvgElements(n){var d;if(!n)return null;const i=this.heatmapValues.length,o=this.heatmapValues[0].length,s=Ct.selectAllElements(n,!1);if(s.length===1&&s[0]instanceof SVGImageElement)return this.createOverlayRects(s[0],i,o);if(s.length===0||s.length!==i*o)return null;const c=new Array;if(s[0]instanceof SVGPathElement)for(let h=0;h<i;h++){const y=i-1-h,v=new Array;for(let S=0;S<o;S++){const T=y*o+S;v.push(s[T])}c.push(v)}else if(s[0]instanceof SVGRectElement)if(((d=this.layer.domMapping)==null?void 0:d.order)==="row")for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=h*o+v;y.push(s[S])}c.push(y)}else for(let h=0;h<i;h++){const y=new Array;for(let v=0;v<o;v++){const S=v*i+h;y.push(s[S])}c.push(y)}return c}createOverlayRects(n,i,o){const s=Number.parseFloat(n.getAttribute("x")??"0"),c=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/o,v=h/i,S=n.parentElement;if(!S)return null;const T="http://www.w3.org/2000/svg",E=new Array;for(let C=0;C<i;C++){const R=new Array;for(let _=0;_<o;_++){const N=document.createElementNS(T,"rect");N.setAttribute("x",String(s+_*y)),N.setAttribute("y",String(c+C*v)),N.setAttribute("width",String(y)),N.setAttribute("height",String(v)),N.setAttribute("fill","transparent"),N.setAttribute("stroke","none"),N.setAttribute("pointer-events","none"),S.appendChild(N),R.push(N)}E.push(R)}return E}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}moveToNextCompareValue(n,i){switch(n){case"left":case"right":return this.search_in_row(n,i);case"up":case"down":return this.search_in_col(n,i);default:return this.notifyRotorBounds(),!1}}search_in_row(n,i){const o=this.y.length,s=this.col,c=n==="left"?-1:1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[this.row][d],this.heatmapValues[this.row][s],i))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}search_in_col(n,i){const o=this.x.length,s=this.row,c=n==="up"?1:-1;let d=s+c;for(;d>=0&&d<o;){if(this.compare(this.heatmapValues[d][this.col],this.heatmapValues[s][this.col],i))return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}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 i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getExtremaTargets(){const n=[],i=this.row,o=this.col,s=this.findGlobalExtrema("max");s&&n.push({label:`Global Maximum: ${s.value} at ${this.x[s.col]}, ${this.y[s.row]}`,value:s.value,pointIndex:s.row*this.heatmapValues[0].length+s.col,segment:"global",type:"max",navigationType:"group",groupIndex:s.row,categoryIndex:s.col,xValue:this.x[s.col]});const c=this.findGlobalExtrema("min");c&&n.push({label:`Global Minimum: ${c.value} at ${this.x[c.col]}, ${this.y[c.row]}`,value:c.value,pointIndex:c.row*this.heatmapValues[0].length+c.col,segment:"global",type:"min",navigationType:"group",groupIndex:c.row,categoryIndex:c.col,xValue:this.x[c.col]});const d=this.findRowExtrema(i,"max");d&&n.push({label:`Row Maximum: ${d.value} at ${this.x[d.col]}, ${this.y[i]}`,value:d.value,pointIndex:i*this.heatmapValues[0].length+d.col,segment:`row-${i}`,type:"max",navigationType:"group",groupIndex:i,categoryIndex:d.col,xValue:this.x[d.col]});const h=this.findRowExtrema(i,"min");h&&n.push({label:`Row Minimum: ${h.value} at ${this.x[h.col]}, ${this.y[i]}`,value:h.value,pointIndex:i*this.heatmapValues[0].length+h.col,segment:`row-${i}`,type:"min",navigationType:"group",groupIndex:i,categoryIndex:h.col,xValue:this.x[h.col]});const y=this.findColExtrema(o,"max");y&&n.push({label:`Column Maximum: ${y.value} at ${this.x[o]}, ${this.y[y.row]}`,value:y.value,pointIndex:y.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"max",navigationType:"group",groupIndex:y.row,categoryIndex:o,xValue:this.x[o]});const v=this.findColExtrema(o,"min");return v&&n.push({label:`Column Minimum: ${v.value} at ${this.x[o]}, ${this.y[v.row]}`,value:v.value,pointIndex:v.row*this.heatmapValues[0].length+o,segment:`col-${o}`,type:"min",navigationType:"group",groupIndex:v.row,categoryIndex:o,xValue:this.x[o]}),n}findGlobalExtrema(n){if(this.heatmapValues.length===0)return null;let i=0,o=0,s=this.heatmapValues[0][0];for(let c=0;c<this.heatmapValues.length;c++)for(let d=0;d<this.heatmapValues[c].length;d++){const h=this.heatmapValues[c][d];(n==="max"?h>s:h<s)&&(s=h,i=c,o=d)}return{row:i,col:o,value:s}}findRowExtrema(n,i){if(n<0||n>=this.heatmapValues.length)return null;const o=this.heatmapValues[n];if(o.length===0)return null;let s=0,c=o[0];for(let d=1;d<o.length;d++){const h=o[d];(i==="max"?h>c:h<c)&&(c=h,s=d)}return{col:s,value:c}}findColExtrema(n,i){if(this.heatmapValues.length===0||n<0||n>=this.heatmapValues[0].length)return null;let o=0,s=this.heatmapValues[0][n];for(let c=1;c<this.heatmapValues.length;c++){const d=this.heatmapValues[c][n];(i==="max"?d>s:d<s)&&(s=d,o=c)}return{row:o,value:s}}navigateToExtrema(n){n.groupIndex!==void 0&&n.categoryIndex!==void 0&&(this.row=n.groupIndex,this.col=n.categoryIndex,this.finalizeExtremaNavigation())}}class gB extends WE{constructor(t){super(t,[t.data])}get text(){const t=this.orientation===_t.VERTICAL,n=this.points[this.row][this.col],i=t?n.xMin:n.yMin,o=t?n.xMax:n.yMax;return{...super.text,range:{min:i,max:o}}}moveToNextCompareValue(t,n){const i=this.row;if(i<0||i>=this.barValues.length)return!1;const o=this.barValues[i];if(!o||o.length===0)return!1;const s=this.col,c=t==="right"?1:-1;let d=s+c;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=c}return this.notifyRotorBounds(),!1}}const jC="Group",KE=/[ML]\s*(-?\d+(?:\.\d+)?)[\s,]+(-?\d+(?:\.\d+)?)/g,zh=class zh extends fo{constructor(n){super(n);P(this,"supportsExtrema",!0);P(this,"rotorSupport",!0);P(this,"movable");P(this,"points");P(this,"lineValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"min");P(this,"max");P(this,"previousRow",null);P(this,"intersectionCache",new Map);this.points=n.data,this.lineValues=this.points.map(i=>i.map(o=>Number(o.y))),this.min=this.lineValues.map(i=>Oi.safeMin(i)),this.max=this.lineValues.map(i=>Oi.safeMax(i)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new sB(this.buildGraph())}get values(){return this.lineValues}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 i=Math.max(0,...this.points.map(s=>s.length)),o=this.points.map(s=>s.map(()=>({up:null,down:null,left:null,right:null,top:null,bottom:null,start:null,end:null})));for(let s=0;s<i;s++){const c=this.points.map((v,S)=>{var T;return{y:(T=v[s])==null?void 0:T.y,row:S}}).filter(v=>v.y!==void 0);if(c.length===0)continue;const d=[...c].sort((v,S)=>v.y-S.y),h={row:d[0].row,col:s},y={row:d[d.length-1].row,col:s};for(let v=0;v<d.length;v++){const{row:S}=d[v],T=o[S][s];T&&(v>0&&(T.down={row:d[v-1].row,col:s}),v<d.length-1&&(T.up={row:d[v+1].row,col:s}),T.bottom=h,T.top=y)}}for(let s=0;s<n;s++){const c=this.points[s].length>0?{row:s,col:0}:null,d=this.points[s].length>0?{row:s,col:this.points[s].length-1}:null;for(let h=0;h<this.points[s].length;h++){const y=o[s][h];y&&(h>0&&(y.left={row:s,col:h-1}),h<this.points[s].length-1&&(y.right={row:s,col:h+1}),y.start=c,y.end=d)}}return o}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 s;const n=this.points[this.row][this.col],i=this.findIntersections();let o={};if(i.length>1){let c=i.map(d=>{var y;const h=d.group;return((y=this.points[h][0])==null?void 0:y.fill)||`l${h+1}`});if(this.previousRow!==null){const d=((s=this.points[this.previousRow][0])==null?void 0:s.fill)||`l${this.previousRow+1}`;c.includes(d)&&(c=[d,...c.filter(h=>h!==d)])}o={fill:{label:jC,value:`intersection at (${c.join(", ")})`}}}else o=n.fill?{fill:{label:jC,value:n.fill}}:{};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},...o}}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 o=this.findLineByXAndYDirection(n),s=this.points[this.row][this.col].x;if(o!==null&&o!==this.row){const c=this.findColumnByXValue(o,s);if(c!==-1){this.row=o,this.col=c;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 i=this.findIntersections();if(i.length>1){const s={...super.state,intersections:i};for(const c of this.observers)c.update(s)}else this.notifyStateUpdate();return!0}findIntersections(){const n=this.points[this.row][this.col].x,i=this.points[this.row][this.col].y,o=[];for(let s=0;s<this.points.length;s++)this.points[s].findIndex(d=>d.x===n&&d.y===i)!==-1&&o.push({freq:{min:this.min[s],max:this.max[s],raw:i},panning:{x:this.col,y:this.row,rows:this.lineValues.length,cols:this.lineValues[this.row].length},group:s});return o}isMovable(n){if(Array.isArray(n)){const[i,o]=n;return i>=0&&i<this.values.length&&o>=0&&o<this.values[i].length}switch(n){case"UPWARD":case"DOWNWARD":{const i=this.findLineByXAndYDirection(n);if(i===null)return!1;const o=this.points[this.row][this.col].x;return this.findColumnByXValue(i,o)!==-1}case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findLineByXAndYDirection(n){const i=this.points[this.row][this.col].x;let o=null,s=Number.POSITIVE_INFINITY;for(let c=0;c<this.points.length;c++){if(c===this.row)continue;const d=this.points[c].findIndex(S=>S.x===i);if(d===-1)continue;const h=this.points[c][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<s&&(s=v,o=c)}return o}findColumnByXValue(n,i){return this.points[n].findIndex(o=>o.x===i)}mapToSvgElements(n){if(!n||n.length!==this.lineValues.length)return null;const i=[];let o=!0;for(let s=0;s<n.length;s++){const c=Ct.selectElement(n[s],!1);if(!c){i.push([]);continue}const d=[];if(c instanceof SVGPathElement){const S=c.getAttribute(fe.D)||fe.EMPTY;KE.lastIndex=0;let T=KE.exec(S);for(;T!==null;)d.push({x:Number.parseFloat(T[1]),y:Number.parseFloat(T[2])}),T=KE.exec(S)}else if(c instanceof SVGPolylineElement){const T=(c.getAttribute(fe.POINTS)||fe.EMPTY).split(/\s+/).filter(Boolean);for(const E of T){const[C,R]=E.split(fe.COMMA);d.push({x:Number.parseFloat(C),y:Number.parseFloat(R)})}}const h=this.lineValues[s].length;if(d.length!==h)if(d.length>=2&&d.length<h){const S=Number(d[0].x),T=Number(d[d.length-1].x),E=this.points[s],C=Number(E[0].x),_=Number(E[E.length-1].x)-C,N=[];for(let z=0;z<h;z++){const B=Number(E[z].x),V=_>0?S+(B-C)/_*(T-S):S;let L=Number(d[0].y);for(let U=0;U<d.length-1;U++){const X=Number(d[U].x),se=Number(d[U+1].x);if(V>=X-.01&&V<=se+.01){const ce=se-X,ie=ce>0?(V-X)/ce:0;L=Number(d[U].y)+ie*(Number(d[U+1].y)-Number(d[U].y));break}}N.push({x:V,y:L})}d.length=0,d.push(...N)}else if(d.length<h)for(;d.length<h;)d.push({x:Number.NaN,y:Number.NaN});else d.length=h;const y=[];let v=!1;for(const S of d){if(Number.isNaN(Number(S.x))||Number.isNaN(S.y)){v=!0;break}y.push(Ct.createCircleElement(S.x,S.y,c))}if(v){i.push([]);continue}y.length>0&&(o=!1),i.push(y)}return o?null:i}get state(){const n=super.state;if(n.empty)return n;const i=this.points.length>1,o={...n,plotType:i?"multiline":"single line",...i&&{groupCount:this.points.length}},s=this.findIntersections();return s.length>1?{...o,intersections:s}:o}mapSvgElementsToCenters(){const n=this.highlightValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}getSegmentIntersection(n,i,o,s){const c=n.x,d=n.y,h=i.x,y=i.y,v=o.x,S=o.y,T=s.x,E=s.y,C=(c-h)*(S-E)-(d-y)*(v-T);if(Math.abs(C)<1e-10)return null;const R=((c-v)*(S-E)-(d-S)*(v-T))/C,_=-((c-h)*(d-S)-(d-y)*(c-v))/C;if(R>=0&&R<=1&&_>=0&&_<=1){const N=c+R*(h-c),z=d+R*(y-d);return{x:N,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 i=this.points[n];if(i.length<2)return[];const o=[];for(let d=0;d<i.length-1;d++){const h=i[d],y=i[d+1],v={x:Number(h.x),y:Number(h.y)},S={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 C=0;C<E.length-1;C++){const R=E[C],_=E[C+1],N={x:Number(R.x),y:Number(R.y)},z={x:Number(_.x),y:Number(_.y)},B=this.getSegmentIntersection(v,S,N,z);if(B){const V=Math.hypot(B.x-v.x,B.y-v.y),L=Math.hypot(B.x-S.x,B.y-S.y),U=V<=L?d:d+1;o.push({pointIndex:U,x:B.x,y:B.y,otherLine:T})}}}}const s=[];for(const d of o){const h=s.find(y=>Math.abs(y.x-d.x)<zh.INTERSECTION_EPSILON&&Math.abs(y.y-d.y)<zh.INTERSECTION_EPSILON);if(h)h.intersectingLines.add(d.otherLine);else{const y=new Set;y.add(d.otherLine),s.push({pointIndex:d.pointIndex,x:d.x,y:d.y,intersectingLines:y})}}const c=s.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,c),c}getIntersectionLabel(n){return n.map(i=>{const o=this.points[i][0];return(o==null?void 0:o.fill)||`Line ${i+1}`}).join(", ")}hasPointAtCoordinate(n,i,o){return n<0||n>=this.points.length?!1:this.points[n].some(s=>Math.abs(Number(s.x)-i)<zh.INTERSECTION_EPSILON&&Math.abs(Number(s.y)-o)<zh.INTERSECTION_EPSILON)}classifyIntersectionKind(n,i,o,s){return this.hasPointAtCoordinate(n,o,s)&&i.some(h=>this.hasPointAtCoordinate(h,o,s))?"point":"slope"}getExtremaTargets(){var v,S,T,E;const n=[],i=this.row;if(i<0||i>=this.lineValues.length)return n;const o=this.lineValues[i];if(!o||o.length===0)return n;const s=this.min[i],c=this.max[i],d=[],h=[];for(let C=0;C<o.length;C++){const R=o[C];R===c&&d.push(C),R===s&&h.push(C)}for(const C of d)n.push({label:`Max point at ${this.getPointLabel(C)}`,value:c,pointIndex:C,segment:"line",type:"max",navigationType:"point",xValue:(S=(v=this.points[this.row])==null?void 0:v[C])==null?void 0:S.x});for(const C of h)n.push({label:`Min point at ${this.getPointLabel(C)}`,value:s,pointIndex:C,segment:"line",type:"min",navigationType:"point",xValue:(E=(T=this.points[this.row])==null?void 0:T[C])==null?void 0:E.x});const y=this.findAllIntersectionsForCurrentLine();for(const C of y){const R=this.getIntersectionLabel(C.intersectingLines),_=`x=${C.x.toFixed(2)}, y=${C.y.toFixed(2)}`,N=C.intersectionKind==="point"?"Point intersection":"Slope intersection";n.push({label:`${N} at ${_}`,value:C.y,pointIndex:C.pointIndex,segment:"intersection",type:"intersection",intersectionKind:C.intersectionKind,navigationType:"point",intersectingLines:C.intersectingLines,display:{coords:_,otherLines:R}})}return n}navigateToExtrema(n){this.col=n.pointIndex,this.finalizeExtremaNavigation()}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:i}=this.getSafeIndices();this.row=n,this.col=i}getAvailableXValues(){return this.points[this.row].map(n=>n.x)}moveToXValue(n){return this.isInitialEntry&&this.movable.handleInitialEntry(),super.moveToXValue(n)}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.lineValues.length)return!1;const s=this.lineValues[o];if(!s||s.length===0)return!1;const c=this.col,d=n==="right"?1:-1;let h=c+d;for(;h>=0&&h<s.length;){if(this.compare(s[h],s[c],i))return this.col=h,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;h+=d}return this.notifyRotorBounds(),!1}compare(n,i,o){return o==="lower"?n<i:o==="higher"?n>i:!1}moveUpRotor(n){return this.moveOnce("UPWARD"),!0}moveDownRotor(n){return this.moveOnce("DOWNWARD"),!0}};P(zh,"INTERSECTION_EPSILON",1e-6);let PS=zh;class yB extends fo{constructor(n){super(n);P(this,"mode");P(this,"movable");P(this,"supportsExtrema",!1);P(this,"xPoints");P(this,"yPoints");P(this,"xValues");P(this,"yValues");P(this,"highlightXValues");P(this,"highlightYValues");P(this,"highlightCenters");P(this,"minX");P(this,"maxX");P(this,"minY");P(this,"maxY");P(this,"gridCells");P(this,"numGridRows");P(this,"numGridCols");P(this,"gridRow");P(this,"gridCol");P(this,"isInGridMode");this.mode="col";const i=n.data,o=[...i].sort((S,T)=>S.x-T.x||S.y-T.y);this.xPoints=new Array;let s=null;for(const S of o)(!s||s.x!==S.x)&&(s={x:S.x,y:[]},this.xPoints.push(s)),s.y.push(S.y);const c=[...i].sort((S,T)=>S.y-T.y||S.x-T.x);this.yPoints=new Array;let d=null;for(const S of c)(!d||d.y!==S.y)&&(d={y:S.y,x:[]},this.yPoints.push(d)),d.x.push(S.x);this.xValues=this.xPoints.map(S=>S.x),this.yValues=this.yPoints.map(S=>S.y),this.minX=Oi.safeMin(this.xValues),this.maxX=Oi.safeMax(this.xValues),this.minY=Oi.safeMin(this.yValues),this.maxY=Oi.safeMax(this.yValues);const h=n.selectors,y=h?Ct.selectAllElements(h):[];[this.highlightXValues,this.highlightYValues]=this.groupSvgElements(y),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uB(this.xPoints,this.yPoints),this.isInGridMode=!1,this.gridRow=0,this.gridCol=0;const v=this.resolveGridConfig(n);if(v){const S=this.computeGridSteps(v.xMin,v.xMax,v.xTickStep),T=this.computeGridSteps(v.yMin,v.yMax,v.yTickStep);this.numGridCols=S.length,this.numGridRows=T.length,this.gridCells=this.buildGridCells(i,S,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(i=>i.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(n=>n.forEach(i=>i.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=this.gridCells[this.gridRow][this.gridCol];return{empty:!1,id:this.id,values:n.yValues.length>0?[n.yValues]:[[]],min:0,max:0,row:this.gridRow,col:this.gridCol}}return{empty:!1,id:this.id,values:this.values,min:0,max:0,row:this.row,col:this.col}}get audio(){if(this.isInGridMode&&this.gridCells)return{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];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}}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 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 i=this.gridCells[this.gridRow][this.gridCol];return i.svgElements.length===0?this.outOfBoundsState:{empty:!1,elements:i.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}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0,this.mode="col"}toggleNavigation(){if(this.mode==="col"){const n=this.xPoints[this.col],i=n.y[Math.floor(n.y.length/2)],o=this.yValues.indexOf(i);o===-1||o>=this.yPoints.length?this.row=0:this.row=o,this.mode="row"}else{const n=this.yPoints[this.row],i=n.x[Math.floor(n.x.length/2)],o=this.xValues.indexOf(i);o===-1||o>=this.xPoints.length?this.col=0:this.col=o,this.mode="col",this.row=0}}moveOnce(n){if(this.isInGridMode&&(console.warn("[ScatterTrace] moveOnce() called while in grid mode — exiting grid mode. Rotor index may be out of sync."),this.setGridMode(!1)),this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;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}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,i){return this.mode==="col"?n>=0&&n<this.xPoints.length?(this.col=n,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):i>=0&&i<this.yPoints.length?(this.col=i,this.row=0,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}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;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}moveGridUp(){return this.gridCells?this.gridRow>=this.numGridRows-1?(this.notifyRotorBounds(),!1):(this.gridRow++,this.notifyStateUpdate(),!0):!1}moveGridDown(){return this.gridCells?this.gridRow<=0?(this.notifyRotorBounds(),!1):(this.gridRow--,this.notifyStateUpdate(),!0):!1}moveGridLeft(){return this.gridCells?this.gridCol<=0?(this.notifyRotorBounds(),!1):(this.gridCol--,this.notifyStateUpdate(),!0):!1}moveGridRight(){return this.gridCells?this.gridCol>=this.numGridCols-1?(this.notifyRotorBounds(),!1):(this.gridCol++,this.notifyStateUpdate(),!0):!1}resolveGridConfig(n){var T,E,C,R,_,N;const i=n.axes;if(!i)return null;const o=typeof i.x=="object"?i.x:null,s=typeof i.y=="object"?i.y:null,c=(o==null?void 0:o.min)??((T=i.min)==null?void 0:T.x),d=(o==null?void 0:o.max)??((E=i.max)==null?void 0:E.x),h=(o==null?void 0:o.tickStep)??((C=i.tickStep)==null?void 0:C.x),y=(s==null?void 0:s.min)??((R=i.min)==null?void 0:R.y),v=(s==null?void 0:s.max)??((_=i.max)==null?void 0:_.y),S=(s==null?void 0:s.tickStep)??((N=i.tickStep)==null?void 0:N.y);return c==null||d==null||h==null||y==null||v==null||S==null?null:{xMin:c,xMax:d,xTickStep:h,yMin:y,yMax:v,yTickStep:S}}computeGridSteps(n,i,o){const s=[],c=Math.round((i-n)/o);for(let d=0;d<c;d++){const h=n+d*o,y=d===c-1?i:n+(d+1)*o;s.push({min:Math.round(h*1e3)/1e3,max:Math.round(y*1e3)/1e3})}return s}findGridBin(n,i){for(let o=0;o<i.length;o++)if(o===i.length-1){if(n>=i[o].min&&n<=i[o].max)return o}else if(n>=i[o].min&&n<i[o].max)return o;return-1}buildGridCells(n,i,o,s){const c=[];for(let h=0;h<o.length;h++){c[h]=[];for(let y=0;y<i.length;y++)c[h][y]={points:[],yValues:[],xValues:[],svgElements:[],xRange:i[y],yRange:o[h]}}const d=s.length===n.length;for(let h=0;h<n.length;h++){const y=n[h],v=this.findGridBin(y.x,i),S=this.findGridBin(y.y,o);S!==-1&&v!==-1&&(c[S][v].points.push(y),c[S][v].yValues.push(y.y),c[S][v].xValues.push(y.x),d&&c[S][v].svgElements.push(s[h]))}return c}groupSvgElements(n){if(n.length===0)return[null,null];const i=new Map,o=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("transform");if(v){const S=v.match(/translate\s*\(\s*([\d.eE+-]+)[\s,]+([\d.eE+-]+)/);S&&(h=Number.parseFloat(S[1]),y=Number.parseFloat(S[2]))}}Number.isNaN(h)||(i.has(h)||i.set(h,[]),i.get(h).push(d)),Number.isNaN(y)||(o.has(y)||o.set(y,[]),o.get(y).push(d))});const s=Array.from(i.entries()).sort(([d],[h])=>d-h).map(([d,h])=>h),c=Array.from(o.entries()).sort(([d],[h])=>h-d).map(([d,h])=>h);return[s,c]}mapSvgElementsToCenters(){const n=this.highlightXValues;if(!n)return null;const i=[];for(let o=0;o<n.length;o++)for(let s=0;s<n[o].length;s++){const c=n[o][s],d=Array.isArray(c)?c[0]:c;if(d){const h=d.getBoundingClientRect();i.push({x:h.x+h.width/2,y:h.y+h.height/2,row:o,col:s,element:d})}}return i}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){this.mode="col";const o=this.findNearestPoint(n,i);if(o&&this.isPointInBounds(n,i,o)){if(this.row===o.row&&this.col===o.col)return;this.moveToIndex(o.row,o.col)}}}const PC="Sum",vB="Level",bB="undefined";class xB extends WE{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,n=new Array;for(let s=0;s<this.barValues[0].length;s++){const c=this.barValues.reduce((h,y)=>h+y[s],0);t.push(c);const d=this.orientation===_t.VERTICAL?{x:this.points[0][s].x,y:c,fill:PC}:{x:c,y:this.points[0][s].y,fill:PC};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:i,max:o}=Oi.minMax(t);this.min.push(i),this.max.push(o)}getExtremaTargets(){var R,_;const t=[],n=this.row;if(n<0||n>=this.barValues.length)return t;const i=this.min[n],o=this.max[n],s=this.barValues[n];if(!s||s.length===0)return t;const c=s.indexOf(o),d=s.indexOf(i),h=this.getGroupLabel(n),y=this.getCategoryLabel(c),v=this.getCategoryLabel(d),S=(R=this.points[n])==null?void 0:R[c],T=(_=this.points[n])==null?void 0:_[d],E=S?this.orientation===_t.VERTICAL?S.x:S.y:void 0,C=T?this.orientation===_t.VERTICAL?T.x:T.y:void 0;return t.push({label:`Max ${h} at ${y}`,value:o,pointIndex:c,segment:h,type:"max",groupIndex:n,categoryIndex:c,navigationType:"group",xValue:E}),t.push({label:`Min ${h} at ${v}`,value:i,pointIndex:d,segment:h,type:"min",groupIndex:n,categoryIndex:d,navigationType:"group",xValue:C}),t}navigateToExtrema(t){t.groupIndex!==void 0&&t.categoryIndex!==void 0?(this.row=t.groupIndex,this.col=t.categoryIndex):this.col=t.pointIndex,this.finalizeExtremaNavigation()}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.fill)return`${this.getFillAxisLabel()}: '${n.fill}'`}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}`}getFillAxisLabel(){return"Category"}updateVisualPointPosition(){const{row:t,col:n}=this.getSafeIndices();this.row=t,this.col=n}get text(){return{...super.text,fill:{label:vB,value:this.points[this.row][this.col].fill??bB}}}get highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?this.outOfBoundsState:{empty:!1,elements:this.highlightValues[this.row][this.col]}}mapToSvgElements(t){var c;if(!t)return new Array;const n=Ct.selectAllElements(t);if(n.length===0)return new Array;const i=this.barValues.reduce((d,h)=>d+h.length,0),o=n.length<i,s=new Array;if(n[0]instanceof SVGPathElement)for(let d=0,h=0;d<this.barValues.length;d++){const y=new Array;for(let v=0;v<this.barValues[d].length;v++)if(o&&this.barValues[d][v]===0)y.push(Ct.createEmptyElement());else{if(h>=n.length)return new Array;y.push(n[h++])}s.push(y)}else if(n[0]instanceof SVGRectElement){for(let h=0;h<this.barValues.length;h++)s.push(new Array);const d=((c=this.layer.domMapping)==null?void 0:c.groupDirection)==="forward";for(let h=0,y=0;h<this.barValues[0].length;h++)if(d)for(let v=0;v<this.barValues.length;v++)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}else for(let v=this.barValues.length-1;v>=0;v--)if(o&&this.barValues[v][h]===0)s[v].push(Ct.createEmptyElement());else{if(y>=n.length)return new Array;s[v].push(n[y++])}}return s}}class UC extends PS{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=c=>t[Math.max(0,Math.min(c,t.length-1))],i=n(this.col-1),o=n(this.col),s=n(this.col+1);return{freq:{min:this.min[this.row],max:this.max[this.row],raw:[i,o,s]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0}}}class SB extends UC{constructor(t){super(t)}mapToSvgElements(t){var o;if(!t||t.length!==this.lineValues.length)return null;const n=[];let i=!0;for(let s=0;s<t.length;s++){const c=Ct.selectElement(t[s],!1);if(!c){n.push([]);continue}const d=(o=this.points)==null?void 0:o[s],h=[];for(const y of d)typeof y.svg_x=="number"&&typeof y.svg_y=="number"&&h.push(Ct.createCircleElement(y.svg_x,y.svg_y,c));h.length>0&&(i=!1),n.push(h)}return i?null:n}}function wB(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 EB(e){return Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&wB(e.data[0][0])?new SB(e):new UC(e)}const QE=.001;class TB extends fo{constructor(n){super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"orientation");P(this,"points");P(this,"densityValues");P(this,"yValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"minDensity");P(this,"maxDensity");P(this,"refSafeMin");P(this,"refSafeMax");P(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(s=>s.map(c=>c.density??c.width??0)),this.yValues=this.points.map(s=>s.map(c=>Number(c.y))),this.minDensity=this.densityValues.map(s=>Oi.safeMin(s.filter(c=>c>0))),this.maxDensity=this.densityValues.map(s=>Oi.safeMax(s));const i=this.densityValues[0];if(i&&i.length>0&&this.minDensity[0]>0){this.refHasPositive=!0;const s=this.minDensity[0],c=this.maxDensity[0];this.refSafeMin=s===c?Math.max(0,s-QE):s,this.refSafeMax=s===c?c+QE:c}else this.refHasPositive=!1,this.refSafeMin=0,this.refSafeMax=1;const o=this.orientation===_t.HORIZONTAL?[...n.selectors].reverse():n.selectors;this.highlightValues=this.mapToSvgElements(o),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.points,{row:0})}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 o,s,c;if(Array.isArray(n)){const[d,h]=n;return d>=0&&d<this.points.length&&h>=0&&h<(((o=this.points[d])==null?void 0:o.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<(((s=this.points[this.row])==null?void 0:s.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<(((c=this.points[this.row])==null?void 0:c.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 o,s;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=(((o=this.points[this.row])==null?void 0:o.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=(((s=this.points[this.row])==null?void 0:s.length)??1)-1;break;case"DOWNWARD":this.col=0;break}return this.notifyStateUpdate(),!0}get audio(){var E;const n=this.orientation===_t.HORIZONTAL,i=((E=this.points[this.row])==null?void 0:E.length)??0,o=n?{x:this.col,y:this.row,rows:this.points.length,cols:i}:{y:this.row,x:this.col,rows:this.points.length,cols:i};if(!this.refHasPositive)return{freq:{min:0,max:1,raw:0},panning:o};const s=this.densityValues[0],c=Math.min(this.col,s.length-1),d=C=>s[Math.max(0,Math.min(C,s.length-1))],h=c>0?d(c-1):d(c),y=d(c),v=c<s.length-1?d(c+1):d(c);let S=1;const T=this.densityValues[this.row];if(T&&T.length>0){const C=Math.min(this.col,T.length-1),R=T[C],_=this.maxDensity[this.row];if(_>0&&R>0){const z=this.minDensity[this.row]===_?_+QE:_;S=R/z}}return{freq:{min:this.refSafeMin,max:this.refSafeMax,raw:[h,y,v]},panning:o,isContinuous:!0,volumeScale:S}}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],i=y=>Math.round(y*1e4)/1e4,o=this.orientation===_t.HORIZONTAL;let s;if(typeof n.x=="string")s=n.x;else{const y=this.points[this.row][0];s=typeof(y==null?void 0:y.x)=="string"?y.x:`Violin ${this.row+1}`}const c=i(Number(n.y)),d={main:{label:o?this.yAxis:this.xAxis,value:s},cross:{label:o?this.xAxis:this.yAxis,value:c},mainAxis:o?"y":"x",crossAxis:o?"x":"y"},h=n.width!==void 0&&n.width>0?i(n.width):void 0;return h!==void 0&&(d.fill={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 s;if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n);if(i<0||i>=this.points.length)return!1;const o=this.row;if(this.row=i,i!==o)this.col=0;else{const c=(s=this.points[i])!=null&&s.length?this.points[i].length-1:0;this.col=Math.min(this.col,c)}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,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n);if(o<0||o>=this.yValues.length)return!1;this.row=o;const s=this.yValues[this.row];if(!s||s.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let c=0,d=Math.abs(s[0]-i);for(let h=1;h<s.length;h++){const y=Math.abs(s[h]-i);y<d&&(d=y,c=h)}return this.col=c,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}mapToSvgElements(n){if(!n||n.length===0)return null;const i=[];let o=!0;const s=n.length===this.points.length;for(let c=0;c<this.points.length;c++){const d=[],h=this.points[c],y=s?n[c]:n[0];if(!y){i.push([]);continue}const v=Ct.selectAllElements(y,!1),S=v.filter(_=>_ instanceof SVGUseElement),T=v.filter(_=>_ instanceof SVGPathElement),E=v.filter(_=>_ instanceof SVGPolygonElement),C=S.length>0?S:T.length>0?T:E,R=C.length>0?C[s?0:c<C.length?c:0]:null;if(R&&h){for(const _ of h){const N=_.svg_x,z=_.svg_y;N!==void 0&&z!==void 0&&!Number.isNaN(N)&&!Number.isNaN(z)&&d.push(Ct.createCircleElement(N,z,R))}d.length>0&&(o=!1)}i.push(d)}return o?null:i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o];if(s){const c=s.getBoundingClientRect();n.push({x:c.x+c.width/2,y:c.y+c.height/2,row:i,col:o,element:s})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class AB extends fo{constructor(n){var d;super(n);P(this,"supportsExtrema",!1);P(this,"movable");P(this,"points");P(this,"boxValues");P(this,"highlightValues");P(this,"highlightCenters");P(this,"orientation");P(this,"sections");P(this,"violinOptions");P(this,"min");P(this,"max");P(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:i,accessors:o}=this.buildViolinSections();this.sections=i,this.boxValues=this.computeBoxValues(o);const s=this.boxValues.map(h=>h.flatMap(y=>Array.isArray(y)?y:[y])).map(h=>h.filter(y=>!Number.isNaN(y)));this.min=Oi.minFrom2D(s),this.max=Oi.maxFrom2D(s),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===_t.HORIZONTAL&&((d=this.highlightValues)==null||d.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new Wc(this.boxValues,{row:0});const c=this.sections.indexOf(aa.MIN);this.minSectionIndex=c>=0?c:0}buildViolinSections(){const n=[aa.MIN],i=[o=>o.min];return n.push(aa.Q1),i.push(o=>o.q1),this.violinOptions.showMedian!==!1&&(n.push(aa.Q2),i.push(o=>o.q2)),this.violinOptions.showMean===!0&&(n.push(aa.MEAN),i.push(o=>o.mean??Number.NaN)),n.push(aa.Q3),i.push(o=>o.q3),this.violinOptions.showExtrema!==!1&&(n.push(aa.MAX),i.push(o=>o.max)),{sections:n,accessors:i}}computeBoxValues(n){return this.orientation===_t.HORIZONTAL?this.points.map(i=>n.map(o=>o(i))):n.map(i=>this.points.map(o=>i(o)))}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}get values(){return this.boxValues}get dimension(){var i,o;const n=this.orientation===_t.HORIZONTAL;return{rows:n?this.boxValues.length:((i=this.boxValues[this.row])==null?void 0:i.length)??0,cols:n?((o=this.boxValues[this.row])==null?void 0:o.length)??0:this.boxValues.length}}handleInitialEntry(){var i;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,((i=this.boxValues[0])==null?void 0:i.length)??1))}moveOnce(n){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;const i=this.minSectionIndex;if(this.orientation===_t.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=i;else if(n==="BACKWARD")this.col-=1,this.row=i;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=i;else if(n==="DOWNWARD")this.row-=1,this.col=i;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get audio(){const n=this.orientation===_t.HORIZONTAL,i=this.boxValues[this.row][this.col],o=n?this.col:this.row,s=Array.isArray(i)?i.length===0?o:i[i.length-1]-this.min:Number.isNaN(i)?o:i-this.min;return{freq:{min:this.min,max:this.max,raw:this.boxValues[this.row][this.col]},panning:{x:n?s:this.row,y:n?this.row:s,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,i=n?this.points[this.row]:this.points[this.col],o=n?this.yAxis:this.xAxis,s=n?this.sections[this.col]:this.sections[this.row],c=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:c,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get braille(){const n=this.orientation===_t.HORIZONTAL,i=n?this.row:this.col,o=n?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:i,col:o}}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 i=Math.floor(n),o=this.values,s=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const c=o.length>0?o[0].length:0;if(i<0||i>=c)return!1;const d=this.col;this.col=i,i!==d&&(this.row=s)}else{if(i<0||i>=o.length)return!1;const c=this.row;this.row=i,i!==c&&(this.col=s)}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 i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}}else if(this.row>=0&&this.row<n.length&&this.col>=0){const i=n[this.row];if(Array.isArray(i)&&this.col<i.length){const o=i[this.col];return Array.isArray(o)?o.length>0?o[0]:null:typeof o=="number"?o:null}}return null}moveToXAndYValue(n,i){if(this.isInitialEntry&&(this.isInitialEntry=!1),typeof n!="number")return!1;const o=Math.floor(n),s=this.values,c=this.minSectionIndex;if(this.orientation===_t.VERTICAL){const d=s.length>0?s[0].length:0;if(o<0||o>=d)return!1;this.col=o;let h=c,y=1/0;for(let v=0;v<s.length;v++){const S=s[v];if(Array.isArray(S)&&o<S.length){const T=S[o];if(Array.isArray(T)){for(const E of T)if(typeof E=="number"){const C=Math.abs(E-i);C<y&&(y=C,h=v)}}else if(typeof T=="number"){const E=Math.abs(T-i);E<y&&(y=E,h=v)}}}this.row=h}else{if(o<0||o>=s.length)return!1;this.row=o;let d=c,h=1/0;const y=s[o];if(Array.isArray(y))for(let v=0;v<y.length;v++){const S=y[v];if(Array.isArray(S)){for(const T of S)if(typeof T=="number"){const E=Math.abs(T-i);E<h&&(h=E,d=v)}}else if(typeof S=="number"){const T=Math.abs(S-i);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 i=this.orientation===_t.VERTICAL,o=new Array;if(i)for(let c=0;c<this.sections.length;c++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(c=>{const d=Ct.selectElement(c.min,!1),h=Ct.selectElement(c.max,!1),y=Ct.selectElement(c.iq,!1),v=Ct.selectElement(c.q2,!1),S=c.mean?Ct.selectElement(c.mean,!1):null;s.push({min:d,max:h,iq:y,q2:v,mean:S})}),s.forEach((c,d)=>{var _;const h=this.cloneElementOrEmpty(c.min),y=this.cloneElementOrEmpty(c.max),v=this.cloneElementOrEmpty(c.q2),S=this.cloneElementOrEmpty(c.mean),T=((_=this.layer.domMapping)==null?void 0:_.iqrDirection)==="reverse",[E,C]=c.iq?i?T?[Ct.createLineElement(c.iq,"top"),Ct.createLineElement(c.iq,"bottom")]:[Ct.createLineElement(c.iq,"bottom"),Ct.createLineElement(c.iq,"top")]:[Ct.createLineElement(c.iq,"left"),Ct.createLineElement(c.iq,"right")]:[Ct.createEmptyElement("line"),Ct.createEmptyElement("line")],R=[];R.push(h),R.push(E),this.violinOptions.showMedian!==!1&&R.push(v),this.violinOptions.showMean===!0&&R.push(S),R.push(C),this.violinOptions.showExtrema!==!1&&R.push(y),i?R.forEach((N,z)=>{o[z][d]=N}):o.push(R)}),o}cloneElementOrEmpty(n){if(!n)return Ct.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(fe.VISIBILITY,fe.HIDDEN),n.insertAdjacentElement(fe.AFTER_END,i),i}mapSvgElementsToCenters(){if(!this.highlightValues)return null;const n=[];for(let i=0;i<this.highlightValues.length;i++)for(let o=0;o<this.highlightValues[i].length;o++){const s=this.highlightValues[i][o],c=Array.isArray(s)?s[0]:s;if(c){const d=c.getBoundingClientRect();n.push({x:d.x+d.width/2,y:d.y+d.height/2,row:i,col:o,element:c})}}return n}findNearestPoint(n,i){if(!this.highlightCenters)return null;let o=1/0,s=-1;for(let c=0;c<this.highlightCenters.length;c++){const d=this.highlightCenters[c],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=c)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}updateVisualPointPosition(){const{row:n,col:i}=this.getSafeIndices();this.row=n,this.col=i}}class CB{static create(t){switch(t.type){case En.BAR:return new cB(t);case En.BOX:return new fB(t);case En.CANDLESTICK:return new pB(t);case En.HEATMAP:return new mB(t);case En.HISTOGRAM:return new gB(t);case En.LINE:return new PS(t);case En.SCATTER:return new yB(t);case En.SMOOTH:return EB(t);case En.DODGED:case En.NORMALIZED:case En.STACKED:return new xB(t);case En.VIOLIN_KDE:return new TB(t);case En.VIOLIN_BOX:return new AB(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const OB="MAIDR Plot",MB="unavailable",RB="unavailable";class _B extends YE{constructor(n){super();P(this,"id");P(this,"movable");P(this,"title");P(this,"subtitle");P(this,"caption");P(this,"subplots");P(this,"size");P(this,"visualOrderMap");P(this,"invertVertical");P(this,"totalAxesCount");this.id=n.id,this.title=n.title??OB,this.subtitle=n.subtitle??MB,this.caption=n.caption??RB;const i=n.subplots;this.subplots=i.map(o=>o.map(s=>new DB(s))),this.size=this.subplots.reduce((o,s)=>o+s.length,0),this.visualOrderMap=new Map,this.invertVertical=!1,this.totalAxesCount=0,this.movable=new Wc(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 i=0;i<this.subplots.length;i++)for(let o=0;o<this.subplots[i].length;o++){const s=n.axesElements.get(`${i},${o}`)??null;this.subplots[i][o].setAxesElement(s)}this.movable=new Wc(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(i=>i.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}`,i=this.visualOrderMap.get(n);i===void 0&&console.warn(`[Figure] Visual order map missing key "${n}". Was applyLayout() called?`);const o=this.activeSubplot;return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:i??1,subplot:o.getStateWithFigurePosition(this.row,this.col),traceTypes:o.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,i){this.notifyStateUpdate()}get outOfBoundsState(){return{empty:!0,type:"figure"}}}class DB extends YE{constructor(n){var c;super();P(this,"movable");P(this,"traces");P(this,"traceTypes");P(this,"size");P(this,"highlightValue");P(this,"isViolinPlot");P(this,"layerSelector");P(this,"_axesElement",null);const i=n.layers;this.size=i.length;const o=(c=i[0])==null?void 0:c.selectors;this.layerSelector=typeof o=="string"?o:Array.isArray(o)&&typeof o[0]=="string"?o[0]:null;const s=i.map(d=>d.type);this.isViolinPlot=s.includes(En.VIOLIN_KDE)||s.includes(En.VIOLIN_BOX),this.traces=i.map(d=>[CB.create(d)]),this.traceTypes=this.traces.flat().map(d=>{const h=d.state;return h.empty?fe.EMPTY:h.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new Wc(this.traces)}get dimension(){return{rows:this.values.length,cols:this.values[this.row].length}}dispose(){this.traces.forEach(n=>n.forEach(i=>i.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,i){this.notifyStateUpdate()}getStateWithFigurePosition(n,i){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?Ct.selectElement(n)??null:null}}const ja={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},jg=class jg{constructor(){P(this,"basePalette");P(this,"extendedPalette");this.basePalette=[{index:ja.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:ja.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:ja.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:ja.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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:ja.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 i=this.generateExtendedEntry(t);return this.extendedPalette.set(t,i),i}get basePaletteSize(){return this.basePalette.length}getCandlestickGroupIndex(t){switch(t){case"Bull":return ja.SINE_BASIC;case"Bear":return ja.SAWTOOTH_SOFT;case"Neutral":return ja.TRIANGLE_BASIC;default:return ja.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,i)=>{this.extendedPalette.set(this.basePalette.length+i,n)})}generateExtendedEntry(t){const n=t%this.basePalette.length,i=this.basePalette[n],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),s=this.generateHarmonics(o),c=this.generateTimbreModulation(o,i.timbreModulation);return{index:t,waveType:i.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:c}}generateHarmonics(t){const n=[],i=jg.MIN_HARMONICS+t%jg.HARMONIC_VARIATION;for(let o=0;o<i;o++){const s=1+(o+1)*(.5+t*.3%1),c=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:c})}return n}generateTimbreModulation(t,n){const i=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,n.attack*i)),decay:Math.max(.05,Math.min(.3,n.decay*i)),sustain:Math.max(.4,Math.min(.9,n.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,n.release*i))}}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.`)})}};P(jg,"MIN_HARMONICS",2),P(jg,"HARMONIC_VARIATION",3);let ZE=jg;const NB=100,kB=440,zB=880,$C=180,HC=.2,IB=.1,JE=.3,US=ja.SINE_BASIC;class LB{constructor(t,n,i){P(this,"notification");P(this,"audioPalette");P(this,"isCombinedAudio");P(this,"mode");P(this,"activeAudioIds");P(this,"volume");P(this,"minFrequency");P(this,"maxFrequency");P(this,"audioContext");P(this,"compressor");this.notification=t,this.audioPalette=new ZE,this.isCombinedAudio=!1,this.mode="on",this.updateMode(i),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(o=>{o.affectsSetting("general.volume")&&(this.volume=this.normalizeVolume(o.get("general.volume"))),o.affectsSetting("general.minFrequency")&&(this.minFrequency=o.get("general.minFrequency")),o.affectsSetting("general.maxFrequency")&&(this.maxFrequency=o.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 i=n.group;n.trend&&i===void 0&&(i=this.audioPalette.getCandlestickGroupIndex(n.trend));const o=i!==void 0?this.audioPalette.getPaletteEntry(i):void 0;if(n.isContinuous)this.playSmooth(n.freq,n.panning,o,n.volumeMultiplier,n.volumeScale);else if(Array.isArray(n.freq.raw)){const s=n.freq.raw;if(s.length===0){this.playZeroTone(n.panning);return}let c=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{c<s.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:s[c++]},{x:n.panning.x,y:n.panning.y,rows:n.panning.rows,cols:n.panning.cols},o),h.push(setTimeout(y,d))):this.stop(h)};y()}else n.freq.raw===0?this.playZeroTone(n.panning):this.playTone(n.freq,n.panning,o)}playTone(t,n,i){const o={min:t.min,max:t.max},s={min:this.minFrequency,max:this.maxFrequency},c=this.interpolate(t.raw,o,s),d=this.clamp(this.interpolate(n.x,{min:0,max:n.cols-1},{min:-1,max:1}),-1,1);return this.playOscillator(c,{x:d,y:0},i)}createAdsrEnvelope(t,n,i,o,s){if(n!=null&&n.timbreModulation){const{attack:c,decay:d,sustain:h,release:y}=n.timbreModulation,v=s*c,S=s*d,T=s*y,E=s-v-S-T;return t.gain.setValueAtTime(1e-4*i,o),t.gain.linearRampToValueAtTime(i,o+v),t.gain.linearRampToValueAtTime(h*i,o+v+S),E>0&&t.gain.setValueAtTime(h*i,o+v+S+E),t.gain.linearRampToValueAtTime(1e-4*i,o+s),null}else return[.5*i,i,.5*i,.5*i,.5*i,.1*i,1e-4*i]}playOscillator(t,n={x:0,y:0},i){const o=JE,s=this.audioContext.currentTime;i||(i=this.audioPalette.getPaletteEntry(US));const c=[],d=[],h=this.audioContext.createOscillator();if(h.type=i.waveType,h.frequency.value=t,c.push(h),i.harmonicMix)for(const T of i.harmonicMix.harmonics){const E=this.audioContext.createOscillator();E.type=i.waveType,E.frequency.value=T.frequency*t,c.push(E)}for(let T=0;T<c.length;T++){const E=this.audioContext.createGain();let C=this.volume;if(T===0)i.harmonicMix&&(C*=i.harmonicMix.fundamental);else{const _=i.harmonicMix.harmonics[T-1];C*=_.amplitude}const R=this.createAdsrEnvelope(E,i,C,s,o);R!==null&&E.gain.setValueCurveAtTime(R,s,o),d.push(E)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<c.length;T++)c[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),c.forEach(T=>T.start(s));const v=T=>{y.disconnect();for(let E=0;E<c.length;E++)c[E].stop(),c[E].disconnect(),d[E].disconnect();this.activeAudioIds.delete(T)},S=setTimeout(()=>v(S),o*1e3*2);return this.activeAudioIds.set(S,c),S}playSmooth(t,n,i,o,s){const c=this.audioContext,d=c.currentTime,h=JE,y=t.raw.map(B=>this.interpolate(B,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),v=this.volume;let S;s!==void 0?S=v*Math.max(0,s):S=v*(o??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=(i==null?void 0:i.waveType)||"sine",C=c.createOscillator();C.type=E,C.frequency.setValueCurveAtTime(y,d,h);const R=c.createGain(),_=this.createAdsrEnvelope(R,i,S,d,h);_!==null&&R.gain.setValueCurveAtTime(_,d,h);const N=c.createStereoPanner();N.pan.value=T,C.connect(R),R.connect(N),N.connect(this.compressor),C.start(d),C.stop(d+h);const z=setTimeout(()=>{C.disconnect(),R.disconnect(),N.disconnect(),this.activeAudioIds.delete(z)},h*1e3*2);this.activeAudioIds.set(z,C)}playEmptyTone(t){const n=this.interpolate(t.x,{min:0,max:t.cols-1},{min:-1,max:1}),i=this.audioContext,o=i.currentTime,s=.2,c=i.createStereoPanner();c.pan.value=n;const d=[500,1e3,1500,2100,2700],h=[1,.6,.4,.2,.1],y=i.createGain();y.gain.setValueAtTime(.3*this.volume,o),y.gain.exponentialRampToValueAtTime(.01*this.volume,o+s),y.connect(c),c.connect(this.compressor);const v=[];for(let E=0;E<d.length;E++){const C=i.createOscillator(),R=i.createGain();C.frequency.value=d[E],C.type="sine",R.gain.setValueAtTime(h[E]*this.volume,o),R.gain.exponentialRampToValueAtTime(.001*this.volume,o+s),C.connect(R),R.connect(y),C.start(o),C.stop(o+s),v.push(C)}const S=E=>{c.disconnect(),y.disconnect(),v.forEach(C=>{C.disconnect()}),this.activeAudioIds.delete(E)},T=setTimeout(()=>S(T),s*1e3*2);return this.activeAudioIds.set(T,v),T}playOneWarningBeep(t,n){const i=this.audioContext.createOscillator(),o=this.audioContext.createGain();i.type="sine",i.frequency.value=t;let s=1;i.type!=="sine"&&(s=.5),o.gain.setValueAtTime(s,n),o.gain.exponentialRampToValueAtTime(.001,n+HC),i.connect(o),o.connect(this.audioContext.destination),i.start(n),i.stop(n+HC)}playWarningTone(){const t=this.audioContext.currentTime;this.playOneWarningBeep($C,t),this.playOneWarningBeep($C/2**(1/12),t+IB)}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(NB,{x:n,y:0},{index:US,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(US);return setInterval(()=>this.playOscillator(kB,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(US);return this.playOscillator(zB,{x:0,y:0},t)}playSimultaneousTones(t){const n=JE,i=this.audioContext,o=i.currentTime,s=Array.isArray(t[0].freq.raw)?t[0].freq.raw[1]??t[0].freq.raw[0]:t[0].freq.raw,c=this.interpolate(s,{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,S=i.createOscillator();S.type=v,S.frequency.value=c;const T=i.createGain();T.gain.setValueAtTime(this.volume,o),T.gain.exponentialRampToValueAtTime(.01*this.volume,o+n),S.connect(T),T.connect(this.compressor),S.start(o),S.stop(o+n);const E=setTimeout(()=>{S.disconnect(),T.disconnect(),this.activeAudioIds.delete(E)},n*1e3*2);this.activeAudioIds.set(E,[S])})}interpolate(t,n,i){return n.min===n.max?i.min:(t-n.min)/(n.max-n.min)*(i.max-i.min)+i.min}clamp(t,n,i){return Math.max(n,Math.min(t,i))}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(i=>{const o=this.activeAudioIds.get(i);if(!o){clearInterval(i);return}(Array.isArray(o)?o:[o]).forEach(c=>{c==null||c.disconnect(),c==null||c.stop()}),clearTimeout(i),this.activeAudioIds.delete(i)})}stopAll(){this.activeAudioIds.forEach((t,n)=>{clearTimeout(n),(Array.isArray(t)?t:[t]).forEach(o=>{o.disconnect(),o.stop()})}),this.activeAudioIds.clear()}normalizeVolume(t){return t/100*(t/100)}}const VB=250,BB=10,jB=500,qC=20;class PB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"settings");P(this,"autoplayId");P(this,"currentDirection");P(this,"userSpeed");P(this,"defaultSpeed");P(this,"minSpeed");P(this,"maxSpeed");P(this,"autoplayRate");P(this,"interval");P(this,"totalDuration");P(this,"onChangeEmitter");P(this,"onChange");this.notification=n,this.context=t,this.settings=i,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=VB,this.minSpeed=BB,this.maxSpeed=jB,this.interval=qC,this.autoplayRate=this.defaultSpeed,this.interval=qC,this.totalDuration=i.get("general.autoplayDuration"),i.onChange(o=>{o.affectsSetting("general.autoplayDuration")&&(this.totalDuration=o.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Yc,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 i=Math.ceil(this.totalDuration/n.autoplay[t]);return this.defaultSpeed=i,this.minSpeed=Math.min(this.minSpeed,i),i}return this.defaultSpeed}}const GC=32;class bv{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const c=(t.max[s]-t.min[s])/4,d=t.min[s]+c,h=d+c,y=h+c;for(let v=0;v<t.values[s].length;v++)t.values[s][v]===0?n.push(" "):t.values[s][v]<=d||t.values[s][v]<=h?n.push("⠤"):t.values[s][v]<=y?n.push("⠒"):n.push("⠉"),i[s].push(o.length),o.push({row:s,col:v});n.push(fe.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(fe.EMPTY),cellToIndex:i,indexToCell:o}}}class FC{constructor(){P(this,"GLOBAL_MIN","globalMin");P(this,"GLOBAL_MAX","globalMax");P(this,"BLANK","blank");P(this,"LOWER_OUTLIER","lowerOutlier");P(this,"UPPER_OUTLIER","upperOutlier");P(this,"MIN","min");P(this,"MAX","max");P(this,"Q1","q1");P(this,"Q2","q2");P(this,"Q3","q3")}encode(t,n=GC){const i=new Array,o=new Array,s=new Array;for(let c=0;c<t.values.length;c++){const d=t.values[c],h=[{type:this.GLOBAL_MIN,value:t.min},...d.lowerOutliers.map(X=>({type:this.LOWER_OUTLIER,value:X})),{type:this.MIN,value:d.min},{type:this.Q1,value:d.q1},{type:this.Q2,value:d.q2},{type:this.Q3,value:d.q3},{type:this.MAX,value:d.max},...d.upperOutliers.map(X=>({type:this.UPPER_OUTLIER,value:X})),{type:this.GLOBAL_MAX,value:t.max}],y=new Array;let v=!0;for(let X=0;X<h.length-1;X++){const se=h[X],ce=h[X+1],ie=Math.abs(v?ce.value-se.value:se.value-h[X-1].value);se.type===this.LOWER_OUTLIER||se.type===this.UPPER_OUTLIER?(y.push({type:se.type,length:0,numChars:1}),y.push({type:this.BLANK,length:ie,numChars:0})):se.type===this.Q2?(v=!1,y.push({type:this.Q2,length:0,numChars:2})):se.type===this.GLOBAL_MIN||se.type===this.GLOBAL_MAX?y.push({type:this.BLANK,length:ie,numChars:0}):y.push({type:se.type,length:ie,numChars:1})}let S=y.reduce((X,se)=>X+(se.numChars>0?se.numChars:0),0),[T,E,C,R]=[-1,-1,-1,-1];for(let X=0;X<y.length;X++)y[X].type===this.MIN&&y[X].length>0&&(T=X),y[X].type===this.MAX&&y[X].length>0&&(E=X),y[X].type===this.Q1&&(C=X),y[X].type===this.Q3&&(R=X);T!==-1&&E!==-1&&y[T].length!==y[E].length&&(y[T].length>y[E].length?(y[T].numChars++,S++):(y[E].numChars++,S++)),C!==-1&&R!==-1&&y[C].length!==y[R].length&&(y[C].length>y[R].length?(y[C].numChars++,S++):(y[R].numChars++,S++));const _=Math.max(0,n-S),N=y.reduce((X,se)=>X+(se.type!==this.Q2&&se.length>0?se.length:0),0);for(const X of y)if(X.type!==this.Q2&&X.length>0){const se=Math.round(X.length/N*_);X.numChars+=se}const z=y.reduce((X,se)=>X+se.numChars,0);let B=n-z,V=0;for(;B!==0;){const X=y[V%y.length];X.type!==this.BLANK&&X.type!==this.Q2&&X.length>0&&(X.numChars+=B>0?1:-1,B+=B>0?-1:1),V++}let L=-1;const U=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:U.length}).fill(-1));for(const X of y){X.type!==this.BLANK&&X.type!==this.GLOBAL_MIN&&X.type!==this.GLOBAL_MAX&&(L=U.indexOf(X.type),s[c][L]=i.length);for(let se=0;se<X.numChars;se++){let ce="⠀";X.type===this.MIN||X.type===this.MAX?ce="⠒":X.type===this.Q1||X.type===this.Q3?ce="⠿":X.type===this.Q2?ce=se===0?"⠸":"⠇":X.type===this.LOWER_OUTLIER||X.type===this.UPPER_OUTLIER?ce="⠂":X.type===this.BLANK&&(ce="⠀"),i.push(ce),o.push({row:c,col:L})}}for(let X=0;X<3;X++)if(s[c][X]===-1){for(let se=X+1;se<=3;se++)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}for(let X=6;X>3;X--)if(s[c][X]===-1){for(let se=X-1;se>=3;se--)if(s[c][se]!==-1){s[c][X]=s[c][se];break}}i.push(fe.NEW_LINE),o.push({row:c,col:L})}return{value:i.join(fe.EMPTY),cellToIndex:s,indexToCell:o}}}class UB{encode(t){const n=new Array,i=new Array,o=new Array,s=(t.max-t.min)/3,c=t.min+s,d=c+s;for(let h=0;h<t.values.length;h++){i.push(new Array);for(let y=0;y<t.values[h].length;y++)t.values[h][y]===0?n.push(" "):t.values[h][y]<=c?n.push("⠤"):t.values[h][y]<=d?n.push("⠒"):n.push("⠉"),i[h].push(o.length),o.push({row:h,col:y});n.push(fe.NEW_LINE),i[h].push(o.length),o.push({row:h,col:t.values[h].length})}return{value:n.join(fe.EMPTY),cellToIndex:i,indexToCell:o}}}class YC{encode(t){const n=new Array,i=new Array,o=new Array;for(let s=0;s<t.values.length;s++){i.push(new Array);const{low:c,medium:d,mediumHigh:h,high:y}=this.getThresholds(s,t);for(let v=0;v<t.values[s].length;v++){const S=t.values[s][v],T=v>0?t.values[s][v-1]:null,E=this.getBrailleChar(S,T,c,d,y,h);n.push(E),i[s].push(o.length),o.push({row:s,col:v})}n.push(fe.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(fe.EMPTY),cellToIndex:i,indexToCell:o}}getBrailleChar(t,n,i,o,s,c){return c===void 0&&(c=s),t<=i&&n!==null&&n>i?n<=o?"⢄":n<=c?"⢆":"⢇":t<=i?"⣀":n!==null&&n<=i?t<=o?"⡠":t<=c?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=c?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=c?"⠔":"⠜":t<=c&&n!==null&&n>c?"⠑":t<=c?"⠒":n!==null&&n<=c?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,i,o,s){const c=S=>S<=i?"low":S<=o?"medium":(S<=s,"high"),d=c(t),h=n!==null?c(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 o=t.charCodeAt(0)-10240|128;return String.fromCharCode(10240+o)}}class $B extends YC{getThresholds(t,n){const i=Array.isArray(n.min)?n.min[t]:n.min,o=Array.isArray(n.max)?n.max[t]:n.max,s=(o-i)/3,c=i+s,d=c+s;return{low:c,medium:d,high:o}}encode(t){var s;const n=new Array,i=new Array,o=new Array;for(let c=0;c<t.values.length;c++){i.push(new Array);const{low:d,medium:h,high:y}=this.getThresholds(c,t);for(let v=0;v<t.values[c].length;v++){const S=t.values[c][v],T=v>0?t.values[c][v-1]:null;let E=this.getBraille6Char(S,T,d,h,y);((s=t.custom)==null?void 0:s[v])==="Bear"&&(E=this.addDot8(E)),n.push(E),i[c].push(o.length),o.push({row:c,col:v})}n.push(fe.NEW_LINE),i[c].push(o.length),o.push({row:c,col:t.values[c].length})}return{value:n.join(fe.EMPTY),cellToIndex:i,indexToCell:o}}}class e2 extends YC{getThresholds(t,n){const i=(n.max[t]-n.min[t])/4,o=n.min[t]+i,s=o+i,c=s+i,d=n.max[t];return{low:o,medium:s,mediumHigh:c,high:d}}}class HB{constructor(t,n,i){P(this,"context");P(this,"notification");P(this,"display");P(this,"enabled");P(this,"cacheId");P(this,"cache");P(this,"encoders");P(this,"onChangeEmitter");P(this,"onChange");this.context=t,this.notification=n,this.display=i,this.enabled=!1,this.cacheId=fe.EMPTY,this.cache=null,this.encoders=new Map([[En.BAR,new bv],[En.BOX,new FC],[En.CANDLESTICK,new $B],[En.DODGED,new bv],[En.HEATMAP,new UB],[En.HISTOGRAM,new bv],[En.LINE,new e2],[En.NORMALIZED,new bv],[En.SMOOTH,new e2],[En.STACKED,new bv],[En.VIOLIN_KDE,new e2],[En.VIOLIN_BOX,new FC]]),this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}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 i=n.braille;if(this.cache===null||this.cacheId!==i.id){const o=this.encoders.get(n.traceType);this.cache=o.encode(i,GC),this.cacheId=i.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[i.row][i.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:n,col:i}=this.cache.indexToCell[t];this.context.moveToIndex(n,i)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const i=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(i);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(dn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var XC=(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))(XC||{});class WC{constructor(){}static async post(t,n,i){const o={...this.DEFAULT_HEADERS,...i};return this.request(t,"POST",o,n)}static async request(t,n,i,o){try{const s=await fetch(t,{method:n,headers:i,body:o});return s.ok?{success:!0,data:await s.json()}:{success:!1,error:{statusCode:s.status,message:`API Error: ${s.status} - ${s.statusText}`}}}catch(s){return console.error(`Error in API ${n} request to ${t}:`,s),{success:!1,error:{statusCode:XC.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}P(WC,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const qB=`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`,GB=`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`,FB=`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`,YB=`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.`,XB={basic:qB,intermediate:GB,advanced:FB};function WB(e){return e==="custom"?"":XB[e]}function t2(e,t){return t==="custom"?e:`${WB(t)}

${e}`}function n2(e){return YB.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}const KB=1e3,QB=256,ZB=1e3;class JB{constructor(t,n,i){P(this,"display");P(this,"textService");P(this,"models");this.display=t,this.textService=n,this.models={OPENAI:new ej(t.plot,i,n,"gpt-4o"),ANTHROPIC_CLAUDE:new tj(t.plot,i,n,"claude-3-7-sonnet-latest"),GOOGLE_GEMINI:new nj(t.plot,i,n,"gemini-2.0-flash")}}async sendMessage(t,n){return this.models[t].getLlmResponse(n)}toggle(){this.display.toggleFocus(dn.CHAT)}}class r2{constructor(t,n,i){P(this,"svg");P(this,"json");P(this,"textService");P(this,"maidrBaseUrl");P(this,"codeQueryParam");this.svg=t,this.json=JSON.stringify(n),this.textService=i,this.maidrBaseUrl="https://maidr-service.azurewebsites.net/api",this.codeQueryParam="I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D"}async getLlmResponse(t){var n;try{const i=await Ct.toBase64(this.svg),o=t.expertise==="custom"?"advanced":t.expertise,s=this.textService.getCoordinateText()||"",c=this.getPayload(t.customInstruction,this.json,i,s,t.message,o),d=t.clientToken?this.getMaidrUrl():this.getApiUrl(t.apiKey),h=this.getHeaders(t),y=await WC.post(d,c,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(i){return{success:!1,error:i instanceof Error?i.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 ej extends r2{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(n,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d};return JSON.stringify({model:this.version,max_tokens:KB,messages:[{role:"system",content:t2(n,h.expertiseLevel)},{role:"user",content:[{type:"text",text:n2(h)},{type:"image_url",image_url:{url:o}}]}]})}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 tj extends r2{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(n,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d};return JSON.stringify({anthropic_version:this.version,max_tokens:QB,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:o}},{type:"text",text:`${t2(n,h.expertiseLevel)}

${n2(h)}`}]}]})}formatResponse(n){return n.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:n.content[0].text}}getHeaders(n){const i=super.getHeaders(n);return i["anthropic-version"]=this.version,i}}class nj extends r2{constructor(n,i,o,s){super(n,i,o);P(this,"version");this.version=s}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,i,o,s,c,d){const h={maidrJson:i,currentPositionText:s,message:c,expertiseLevel:d},y=t2(n,h.expertiseLevel),v=n2(h),S=`${y}

${v}`;return JSON.stringify({generationConfig:{maxOutputTokens:ZB},safetySettings:[],contents:[{role:"user",parts:[{text:S},{inlineData:{data:o.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 i=super.getHeaders(n);return delete i.Authorization,i}}class rj{constructor(t,n){P(this,"context");P(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 ij{constructor(t,n){P(this,"context");P(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 aj{constructor(t,n){P(this,"context");P(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 oj{constructor(t,n){P(this,"context");P(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 lj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class sj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class uj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class cj{constructor(t){P(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class Cd{constructor(t,n,i,o){P(this,"context");P(this,"textViewModel");P(this,"audioService");P(this,"textService");this.context=t,this.textViewModel=n,this.audioService=i,this.textService=o}restoreScope(){const t=this.context.state.type==="figure"?dn.SUBPLOT:dn.TRACE;this.context.toggleScope(t)}}class fj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}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 dj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}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 hj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty&&t.fill!=="unavailable"){const n=this.textService.isTerse()?t.fill:`Fill is ${t.fill}`;this.textViewModel.update(n)}else{const n=this.textService.isTerse()?"unavailable":"Fill is not available";this.textViewModel.update(n),this.audioService.playWarningToneIfEnabled()}this.restoreScope()}}class pj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}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 i=this.textService.isTerse()?t:`${n} is ${t}`;this.textViewModel.update(i)}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 mj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}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 gj extends Cd{constructor(t,n,i,o){super(t,n,i,o)}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 yj extends Cd{constructor(n,i,o,s,c,d){super(n,c,i,d);P(this,"audio");P(this,"brailleViewModel");P(this,"highlight");this.audio=i,this.highlight=o,this.brailleViewModel=s}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 vj extends Cd{constructor(t,n,i,o){super(t,i,o,n)}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:i,y:o,rows:s,cols:c}=n,d=t.traceType;d===En.BOX?this.announceBoxplotPosition(t):d===En.CANDLESTICK?this.announceCandlestickPosition(t):d===En.STACKED||d===En.NORMALIZED||d===En.DODGED?this.announceSegmentedBarPosition(t,i,c):d===En.SMOOTH?s>1?this.announceMultiViolinPosition(o,s,i,c):this.announceSmoothPosition(i,c):d===En.LINE&&t.groupCount&&t.groupCount>1?this.announceMultiLinePosition(i,c,o,s):d===En.SCATTER?this.announceScatter(i,o,s,c):this.is2DPlot(s,c)?this.announce2DPosition(i,o,s,c):this.announce1DPosition(i,c)}is2DPlot(t,n){return t>1&&n>1}announce1DPosition(t,n){const i=t+1,o=n;if(this.textService.isTerse()||this.textService.isOff()){const s=n>1?Math.round(t/(n-1)*100):0;this.textViewModel.update(`${s}%`)}else this.textViewModel.update(`Position is ${i} of ${o}`)}announce2DPosition(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Position is column ${s} of ${o}, row ${c} of ${i}`)}announceGridPosition(t){const{text:n}=t,i=n.range,o=n.crossRange;if(this.textService.isTerse())this.textViewModel.update(`${i.min} through ${i.max}, ${o.min} through ${o.max}`);else{const s=n.main.label||"x",c=n.cross.label||"y";this.textViewModel.update(`${s} is ${i.min} through ${i.max}, ${c} is ${o.min} through ${o.max}`)}}announceBoxplotPosition(t){const n=t.text.section||"",i=t.braille,o=i.row,s=i.values.length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s} in ${n.toLowerCase()}`)}announceCandlestickPosition(t){const n=t.text.section||"",i=t.braille,o=i.col,s=i.values[0].length,c=o+1;if(this.textService.isTerse()||this.textService.isOff()){const d=s>1?Math.round(o/(s-1)*100):0;this.textViewModel.update(`${d}%, ${n.toLowerCase()}`)}else this.textViewModel.update(`Position is ${c} of ${s}, ${n.toLowerCase()}`)}announceSegmentedBarPosition(t,n,i){var d;const o=((d=t.text.fill)==null?void 0:d.value)??"",s=n+1,c=i;if(this.textService.isTerse()||this.textService.isOff()){const h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${h}%, ${o}`)}else this.textViewModel.update(`Position is ${s} of ${c}, Level is ${o}`)}announceSmoothPosition(t,n){this.announce1DPosition(t,n)}announceMultiViolinPosition(t,n,i,o){const s=t+1,c=i+1,d=`Violin ${s} of ${n}`;if(this.textService.isTerse()||this.textService.isOff()){const h=o>1?Math.round(i/(o-1)*100):0;this.textViewModel.update(`${d}, ${h}%`)}else this.textViewModel.update(`${d}, Position is ${c} of ${o}`)}announceMultiLinePosition(t,n,i,o){const s=i+1,c=t+1,d=`Plot ${s} of ${o}`;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 ${c} of ${n}`)}announceScatter(t,n,i,o){const s=t+1,c=n+1;if(this.textService.isTerse()||this.textService.isOff()){const d=o>1?Math.round(t/(o-1)*100):0,h=i>1?Math.round(n/(i-1)*100):0;this.textViewModel.update(`${d}%, ${h}%`)}else this.textViewModel.update(`Column ${s} of ${o}, row ${c} of ${i}`)}}class bj{constructor(t,n){P(this,"context");P(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 xj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class Sj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class wj{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class Ej{constructor(t){P(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class Tj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class Aj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class Cj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class Oj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class Mj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class Rj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class _j{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class Dj{constructor(t){P(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class Nj{constructor(t){P(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class kj{constructor(t){P(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class zj{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class Ij{constructor(t){P(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class Lj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class Vj{constructor(t,n){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class Bj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class jj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class Pj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class Uj{constructor(t){P(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class $j{constructor(t,n){P(this,"context");P(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class Hj{constructor(t){P(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class qj{constructor(t){P(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class Gj{constructor(t,n){P(this,"context");P(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class Fj{constructor(t){P(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class Yj{constructor(t){P(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class Xj{constructor(t){P(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class Wj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class Kj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class Qj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class Zj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class Jj{constructor(t){P(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class $S{constructor(t,n,i){P(this,"context");P(this,"scope");P(this,"textViewModel");this.context=t,this.scope=n,this.textViewModel=i}execute(){var t;(t=this.textViewModel)==null||t.warnIfTextOff(),this.context.toggleScope(this.scope)}}class eP{constructor(t){P(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class KC{constructor(t){P(this,"context");P(this,"audioService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"rotorService");P(this,"textService");P(this,"brailleViewModel");P(this,"chatViewModel");P(this,"commandPaletteViewModel");P(this,"goToExtremaViewModel");P(this,"helpViewModel");P(this,"reviewViewModel");P(this,"settingsViewModel");P(this,"textViewModel");P(this,"rotorNavigationViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highContrastService=t.highContrastService,this.highlightService=t.highlightService,this.rotorService=t.rotorNavigationService,this.textService=t.textService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.commandPaletteViewModel=t.commandPaletteViewModel,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 Bj(this.rotorNavigationViewModel):new Tj(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new Pj(this.rotorNavigationViewModel):new Aj(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new jj(this.rotorNavigationViewModel):new Cj(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new Uj(this.rotorNavigationViewModel):new Oj(this.context);case"MOVE_TO_TOP_EXTREME":return new Mj(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new Rj(this.context);case"MOVE_TO_LEFT_EXTREME":return new _j(this.context);case"MOVE_TO_RIGHT_EXTREME":return new Dj(this.context);case"MOVE_TO_TRACE_CONTEXT":return new Nj(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new kj(this.context);case"MOVE_TO_NEXT_TRACE":return new zj(this.context);case"MOVE_TO_PREV_TRACE":return new Ij(this.context);case"TOGGLE_AUDIO":return new qj(this.audioService);case"TOGGLE_BRAILLE":return new $j(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new Hj(this.textViewModel);case"TOGGLE_REVIEW":return new Gj(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new eP(this.highContrastService);case"TOGGLE_HELP":return new Fj(this.helpViewModel);case"TOGGLE_CHAT":return new Yj(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new Wj(this.commandPaletteViewModel);case"TOGGLE_SETTINGS":return new Xj(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new xj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new Sj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new wj(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new Ej(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new bj(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new Qj(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new Zj(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new Jj(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new Kj(this.commandPaletteViewModel);case"ANNOUNCE_X":return new fj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_Y":return new dj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_FILL":return new hj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POINT":return new yj(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService);case"ANNOUNCE_TITLE":return new pj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_SUBTITLE":return new mj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_CAPTION":return new gj(this.context,this.textViewModel,this.audioService,this.textService);case"ANNOUNCE_POSITION":return new vj(this.context,this.textService,this.textViewModel,this.audioService);case"ACTIVATE_FIGURE_LABEL_SCOPE":return new $S(this.context,dn.FIGURE_LABEL,this.textViewModel);case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new $S(this.context,dn.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new $S(this.context,dn.TRACE_LABEL,this.textViewModel);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new $S(this.context,dn.TRACE);case"AUTOPLAY_UPWARD":return new rj(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new ij(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new aj(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new oj(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new lj(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new sj(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new uj(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new cj(this.autoplayService);case"ROTOR_NEXT_NAV":return new Lj(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new Vj(this.context,this.rotorNavigationViewModel);default:throw new Error(`Invalid command name: ${t}`)}}}const Pg=class Pg{constructor(){}static get ctrl(){return Pg.IS_MAC?"command":"ctrl"}static get alt(){return Pg.IS_MAC?"option":"alt"}static get enter(){return Pg.IS_MAC?"return":"enter"}};P(Pg,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let qt=Pg;const tP={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`,ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},nP={TOGGLE_CHAT:"esc"},rP={DEACTIVATE_FIGURE_LABEL_SCOPE:"escape",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},iP={TOGGLE_HELP:"esc"},aP={ACTIVATE_FIGURE_LABEL_SCOPE:"l",ANNOUNCE_TITLE:"t",ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${qt.enter}`,TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${qt.ctrl}+,`},oP={DEACTIVATE_TRACE_LABEL_SCOPE:"escape",ANNOUNCE_X:"x",ANNOUNCE_Y:"y",ANNOUNCE_FILL:"f",ANNOUNCE_TITLE:"t",ANNOUNCE_SUBTITLE:"s",ANNOUNCE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},lP={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
    ${qt.ctrl}+up, ${qt.ctrl}+down,
    ${qt.ctrl}+left, ${qt.ctrl}+right,
    pageup, pagedown, home, end,
    tab, ${qt.ctrl}+a, ${qt.ctrl}+c`},sP={TOGGLE_SETTINGS:"esc"},uP={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${qt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${qt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${qt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${qt.ctrl}+shift+left`,STOP_AUTOPLAY:`${qt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${qt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${qt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${qt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${qt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HIGH_CONTRAST:"c",TOGGLE_HELP:`${qt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_COMMAND_PALETTE:`${qt.ctrl}+shift+p`,TOGGLE_SETTINGS:`${qt.ctrl}+,`,ANNOUNCE_POINT:"space",ANNOUNCE_POSITION:"p",GO_TO_EXTREMA_TOGGLE:"g",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},cP={GO_TO_EXTREMA_MOVE_UP:"up",GO_TO_EXTREMA_MOVE_DOWN:"down",GO_TO_EXTREMA_SELECT:"enter",GO_TO_EXTREMA_CLOSE:"esc",GO_TO_EXTREMA_TOGGLE:"g"},fP={COMMAND_PALETTE_MOVE_UP:"up",COMMAND_PALETTE_MOVE_DOWN:"down",COMMAND_PALETTE_SELECT:"enter",COMMAND_PALETTE_CLOSE:"esc"},i2={[dn.BRAILLE]:tP,[dn.CHAT]:nP,[dn.COMMAND_PALETTE]:fP,[dn.FIGURE_LABEL]:rP,[dn.GO_TO_EXTREMA]:cP,[dn.HELP]:iP,[dn.REVIEW]:lP,[dn.SETTINGS]:sP,[dn.SUBPLOT]:aP,[dn.TRACE]:uP,[dn.TRACE_LABEL]:oP};class dP{constructor(t){P(this,"commandFactory");this.commandFactory=new KC(t)}register(t){Ba.filter=n=>{const i=n.target;return i.tagName.toLowerCase()===fe.INPUT?i.id.startsWith(fe.REVIEW_INPUT):i.tagName.toLowerCase()===fe.TEXT_AREA?i.id.startsWith(fe.BRAILLE_TEXT_AREA):!0};for(const[n,i]of Object.entries(i2))for(const[o,s]of Object.entries(i))o==="STOP_AUTOPLAY"&&Ba("*",dn.TRACE,c=>{(Ba.command||Ba.ctrl)&&this.commandFactory.create(o).execute(c)}),Ba(s,{scope:n},c=>{o!=="ALLOW_DEFAULT"&&(c.preventDefault(),this.commandFactory.create(o).execute(c))});Ba.setScope(t)}unregister(){Ba.unbind()}}class hP{constructor(t,n,i){P(this,"mouseListener");P(this,"commandContext");P(this,"hoverMode","none");P(this,"plot");P(this,"settingsService");this.commandContext=t,this.settingsService=n;const o=n.loadSettings();this.hoverMode=o.general.hoverMode,this.plot=i.plot,this.settingsService.addObserver(this)}registerEvents(){this.mouseListener||(this.mouseListener=t=>{const n=t.clientX,i=t.clientY;this.commandContext.context.moveToPoint(n,i)}),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 pP{constructor(t,n){P(this,"commandFactory");P(this,"commandContext");P(this,"onScopeChangeEmitter",new Yc);P(this,"lastEmittedScope");P(this,"onScopeChange",this.onScopeChangeEmitter.event);this.commandFactory=new KC(t),this.commandContext=t,this.lastEmittedScope=n}getContext(){return this.commandContext}executeCommand(t){const n=this.getCurrentScope(),i=i2[n];if(!(!i||!(t in i)))try{this.commandFactory.create(t).execute(),this.emitIfScopeChanged()}catch(o){console.error(`Failed to execute command ${t}:`,o)}}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 mP{constructor(t,n){P(this,"context");P(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==dn.COMMAND_PALETTE&&this.display.toggleFocus(dn.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==dn.TRACE&&this.display.toggleFocus(dn.COMMAND_PALETTE)}}function gP(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class yP{constructor(t,n,i){P(this,"context");P(this,"focusStack");P(this,"plot");P(this,"onChangeEmitter");P(this,"onChange");P(this,"hasEnteredInteractive",!1);P(this,"textService");P(this,"isReturningFromModeToggle",!1);P(this,"textChangeDisposer",null);P(this,"hasClearedOnFirstNav",!1);this.context=t,this.focusStack=new $E,this.focusStack.push(this.context.scope),this.plot=n,this.textService=i,this.onChangeEmitter=new Yc,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(),(t=this.textChangeDisposer)==null||t.dispose(),this.textChangeDisposer=null,this.onChangeEmitter.dispose()}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)}toggleFocus(t){this.isReturningFromModeToggle=t==="BRAILLE"||t==="REVIEW"||t==="GO_TO_EXTREMA"||t==="COMMAND_PALETTE"||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 o=this.context.state.type==="trace"?dn.TRACE:dn.SUBPLOT;n!==o&&(this.focusStack.clear(),this.focusStack.push(o),n=o)}this.context.toggleScope(n),this.updateFocus(n)}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&&gP(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}`,Pm={currency:(e="USD",t=2,n="en-US")=>i=>{const o=typeof i=="number"?i:Number.parseFloat(String(i));return new Intl.NumberFormat(n,{style:"currency",currency:e,minimumFractionDigits:t,maximumFractionDigits:t}).format(o)},percent:(e=1)=>t=>`${((typeof t=="number"?t:Number.parseFloat(String(t)))*100).toFixed(e)}%`,date:(e,t="en-US")=>n=>{const i=new Date(n);return new Intl.DateTimeFormat(t,e).format(i)},number:(e=0,t="en-US")=>n=>{const i=typeof n=="number"?n:Number.parseFloat(String(n));return new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}).format(i)},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 a2{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:i,currency:o,locale:s,dateOptions:c}=t;switch(n){case"currency":return Pm.currency(o??"USD",i??2,s??"en-US");case"percent":return Pm.percent(i??1);case"fixed":return Pm.fixed(i??2);case"number":return Pm.number(i??0,s??"en-US");case"date":return Pm.date(c,s??"en-US");case"scientific":return Pm.scientific(i??2);default:return jm}}static wrapFormat(t,n){const{missingText:i="missing"}=n??{};return o=>o==null||typeof o=="number"&&Number.isNaN(o)?i:t(o)}static applyFormat(t,n){return Array.isArray(t)?t.map(i=>n(i)):n(t)}}class vP{constructor(t){P(this,"formatters");this.formatters=new Map,this.initializeFormatters(t)}initializeFormatters(t){var n;for(const i of t.subplots)for(const o of i)for(const s of o.layers){const c=s.id,d=(n=s.axes)==null?void 0:n.format,h={x:this.resolveAxisFormat(d==null?void 0:d.x),y:this.resolveAxisFormat(d==null?void 0:d.y),fill:this.resolveAxisFormat(d==null?void 0:d.fill)};this.formatters.set(c,h)}}resolveAxisFormat(t){const n=a2.resolveFormat(t);return a2.wrapFormat(n)}getFormatter(t,n){const i=this.formatters.get(t);return i?i[n]:jm}hasCustomFormatter(t,n){const i=this.formatters.get(t);return i?i[n]!==jm:!1}formatValue(t,n,i){const o=this.getFormatter(n,i);return a2.applyFormat(t,o)}formatSingleValue(t,n,i){return this.getFormatter(n,i)(t)}formatArrayValue(t,n,i){const o=this.getFormatter(n,i);return t.map(s=>o(s))}dispose(){this.formatters.clear()}}class bP{constructor(t,n){P(this,"context");P(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!==dn.GO_TO_EXTREMA&&this.display.toggleFocus(dn.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof fo&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==dn.TRACE&&this.display.toggleFocus(dn.GO_TO_EXTREMA)}}const o2=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${qt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Toggle High Contrast Mode",key:"c"},{description:"Autoplay Outward",key:`${qt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${qt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${qt.ctrl} + ,`},{description:"Open Chat",key:"?"},{description:"Move to next navigation mode in Rotor",key:`${qt.alt}+shift+up`},{description:"Move to previous navigation mode in Rotor",key:`${qt.alt}+shift+down`}],QC=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${qt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${qt.ctrl} + ,`}];class xP{constructor(t,n){P(this,"context");P(this,"display");P(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[dn.TRACE]:o2,[dn.TRACE_LABEL]:o2,[dn.BRAILLE]:o2,[dn.SUBPLOT]:QC,[dn.FIGURE_LABEL]:QC}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(dn.HELP)}}const ba="http://www.w3.org/2000/svg",A6=class A6{constructor(){P(this,"patternCache",new Map);P(this,"defsElement",null);P(this,"targetSvg",null);P(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:i,patternColor:o,scale:s=1}=t,c=this.generateCacheKey(n,i,o,s),d=this.patternCache.get(c);if(d&&this.patternExists(d))return d;const h=this.createPattern(t);return this.patternCache.set(c,h.id),this.injectPattern(h),h.id}applyPattern(t,n){const o=`url(#${this.getPattern(n)})`,s=t.getAttribute("style")||"";if(s.match(/fill:[^;]+/i)){const c=s.replace(/fill:[^;]+/i,`fill:${o}`);t.setAttribute("style",c)}else t.setAttribute("fill",o)}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 i=(t=this.targetSvg)==null?void 0:t.querySelector(`#${n}`);i==null||i.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(ba,"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,i,o){const s=this.normalizeColor(n),c=this.normalizeColor(i);return`${t}-${s}-${c}-${o}`}generatePatternId(t){const n=Date.now(),i=Math.random().toString(36).substring(2,8);return`${A6.PATTERN_PREFIX}-${t}-${n}-${i}`}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:i,patternColor:o,scale:s=1}=t,c=this.patternGenerators[n];if(!c)throw new Error(`Unknown pattern type: ${n}`);const d=c(i,o,s),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,i){const o=12*i,s=5*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o)),c.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"line");return h.setAttribute("x1","0"),h.setAttribute("y1","0"),h.setAttribute("x2","0"),h.setAttribute("y2",String(o)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createSquareGrid(t,n,i){const o=14*i,s=3*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"path");return h.setAttribute("d",`M ${o} 0 L 0 0 0 ${o}`),h.setAttribute("fill","none"),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createDots(t,n,i){const o=16*i,s=4*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"circle");return h.setAttribute("cx",String(o/2)),h.setAttribute("cy",String(o/2)),h.setAttribute("r",String(s)),h.setAttribute("fill",n),c.appendChild(h),c}createHorizontalLines(t,n,i){const o=10*i,s=4*i,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o));const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"line");return h.setAttribute("x1","0"),h.setAttribute("y1",String(o/2)),h.setAttribute("x2",String(o)),h.setAttribute("y2",String(o/2)),h.setAttribute("stroke",n),h.setAttribute("stroke-width",String(s)),c.appendChild(h),c}createDiamonds(t,n,i){const o=16*i,s=o/2,c=document.createElementNS(ba,"pattern");c.setAttribute("patternUnits","userSpaceOnUse"),c.setAttribute("width",String(o)),c.setAttribute("height",String(o)),c.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ba,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),c.appendChild(d);const h=document.createElementNS(ba,"rect");h.setAttribute("width",String(s)),h.setAttribute("height",String(s)),h.setAttribute("fill",n),c.appendChild(h);const y=document.createElementNS(ba,"rect");return y.setAttribute("x",String(s)),y.setAttribute("y",String(s)),y.setAttribute("width",String(s)),y.setAttribute("height",String(s)),y.setAttribute("fill",n),c.appendChild(y),c}};P(A6,"PATTERN_PREFIX","maidr-pattern");let l2=A6;const tn={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 SP{constructor(t,n,i,o,s){P(this,"settingsService");P(this,"notificationService");P(this,"displayService");P(this,"figure");P(this,"context");P(this,"settingsDisposable",null);P(this,"defaultBackgroundColor","");P(this,"defaultForegroundColor","");P(this,"originalColorInfo",null);P(this,"traceElementsCache",null);P(this,"patternService",null);P(this,"previousHighContrastMode",!1);P(this,"sharedCanvasCtx",null);this.settingsService=t,this.notificationService=n,this.displayService=i,this.figure=o,this.context=s,this.previousHighContrastMode=this.highContrastMode,this.settingsDisposable=this.settingsService.onChange(c=>{c.affectsSetting("general.highContrastMode")&&this.handleHighContrastModeChange(c.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 i=`High Contrast Mode ${n?"on":"off"}`;this.notificationService.notify(i)}applyHighContrast(){var n,i;this.recaptureIfNeeded(),document.body.style.backgroundColor=this.highContrastDarkColor,document.body.style.color=this.highContrastLightColor;const t=this.getHighContrastColors();for(const o of t)if(o.element&&o.attrType==="style"){const c=(o.element.getAttribute("style")||"").replace(new RegExp(`${o.attr}:\\s*[^;]+`,"i"),`${o.attr}:${o.color}`);o.element.setAttribute("style",c)}else o.element&&o.attrType==="attribute"&&o.element.setAttribute(o.attr,o.color);this.addGlowShadowFilter(this.displayService.plot),(n=this.originalColorInfo)==null||n.forEach(o=>{this.hasParentWithStringInID(o.element,"text")&&o.element.setAttribute("filter","url(#glow-shadow)")}),"type"in this.context.instructionContext&&this.context.instructionContext.type==="line"&&((i=document.getElementById(this.context.id))==null||i.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 o=(n.element.getAttribute("style")||"").replace(new RegExp(`${n.attr}:\\s*[^;]+`,"i"),`${n.attr}:${n.color}`);n.element.setAttribute("style",o)}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 i of n)for(const o of i.traces)for(const s of o){const c=s.getAllOriginalElements();for(const d of c)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("*"),i=this.getAllTraceElements(),o=[];for(let s=0;s<n.length;s++){const c=n[s];if(c.getAttribute("visibility")==="hidden")continue;const d=c.getAttribute("style")||"",h=d.match(/fill:\s*([^;]+)/i),y=d.match(/stroke:\s*([^;]+)/i),v=this.isTraceElement(c,i),S=c.getAttribute("d");let T=!1;S&&(T=S.length>tn.MIN_COMPLEX_PATH_LENGTH);const E=T;h&&o.push({element:c,color:h[1].trim(),isInSelectors:v,cantBeBackground:E,attr:"fill",attrType:"style"}),y&&o.push({element:c,color:y[1].trim(),isInSelectors:v,cantBeBackground:E,attr:"stroke",attrType:"style"});const C=c.getAttribute("fill");C&&o.push({element:c,color:C.trim(),isInSelectors:v,cantBeBackground:E,attr:"fill",attrType:"attribute"});const R=c.getAttribute("stroke");R&&o.push({element:c,color:R.trim(),isInSelectors:v,cantBeBackground:E,attr:"stroke",attrType:"attribute"})}return o}getHighContrastColors(){const t=this.originalColorInfo;return t?this.spreadColorsAcrossLuminanceSpectrum(t).map(o=>({...o,color:this.toColorStep(o)})):[]}hasParentWithStringInID(t,n="",i=""){let o=t.parentElement;for(;o&&!(o.tagName==="svg"||o.tagName==="BODY");){if(i.length>0&&o.id.startsWith(i))return!1;if(n.length>0&&o.id.startsWith(n))return!0;o=o.parentElement}return!1}addGlowShadowFilter(t){const n=t;if(n.querySelector("#glow-shadow"))return;let i=n.querySelector("defs");i||(i=document.createElementNS("http://www.w3.org/2000/svg","defs"),n.insertBefore(i,n.firstChild));const o=document.createElementNS("http://www.w3.org/2000/svg","filter");o.setAttribute("id","glow-shadow"),o.setAttribute("x",tn.GLOW_FILTER_OFFSET),o.setAttribute("y",tn.GLOW_FILTER_OFFSET),o.setAttribute("width",tn.GLOW_FILTER_SIZE),o.setAttribute("height",tn.GLOW_FILTER_SIZE);const s=`
    <feGaussianBlur in="SourceAlpha" stdDeviation="${tn.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="${tn.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="${tn.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="${tn.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>
  `;o.innerHTML=s,i.appendChild(o)}toColorStep(t){const n=t.color;if(n==="none"||n==="transparent")return n;if(this.hasParentWithStringInID(t.element,"text"))return this.highContrastLightColor;const i=[...this.colorEquivalents],o=this.getSharedCanvasContext();if(!o)return n;o.fillStyle="#000",o.fillStyle=n.trim();let s=o.fillStyle;if(/^#[0-9a-f]{8}$/i.test(s)){const y=Number.parseInt(s.slice(1,3),16),v=Number.parseInt(s.slice(3,5),16),S=Number.parseInt(s.slice(5,7),16),T=Number.parseInt(s.slice(7,9),16)/tn.RGB_MAX_VALUE,E=Math.round(y*T+tn.RGB_MAX_VALUE*(1-T)),C=Math.round(v*T+tn.RGB_MAX_VALUE*(1-T)),R=Math.round(S*T+tn.RGB_MAX_VALUE*(1-T));s=`#${E.toString(16).padStart(2,"0")}${C.toString(16).padStart(2,"0")}${R.toString(16).padStart(2,"0")}`}else if(!/^#[0-9a-f]{6}$/i.test(s))return n;let c=!1;const d=tn.NEAR_WHITE_LUMINANCE_SCALE;return"type"in this.context.instructionContext&&(this.context.instructionContext.type==="bar"||this.context.instructionContext.type==="histogram")&&t.isInSelectors&&(c=!0),this.findClosestColor(n,i,c,d,t.cantBeBackground)}findClosestColor(t,n,i,o,s){if(n.length===0)throw new Error("Color array cannot be empty");const c=v=>{const S=v.replace("#","");return{r:Number.parseInt(S.slice(0,2),16),g:Number.parseInt(S.slice(2,4),16),b:Number.parseInt(S.slice(4,6),16)}},d=v=>tn.LUMINANCE_RED_COEFF*v.r+tn.LUMINANCE_GREEN_COEFF*v.g+tn.LUMINANCE_BLUE_COEFF*v.b,h=(v,S)=>Math.sqrt((v.r-S.r)**2+(v.g-S.g)**2+(v.b-S.b)**2),y=c(t);if(s){const v=n.indexOf(this.highContrastDarkColor);v!==-1&&n.splice(v,1)}if(i){const v=d(y),S=tn.RGB_MAX_VALUE*(1-o);if(v>=S||n.length===1)return n[0];let T=n[0];if(n.length>1){let E=h(y,c(n[1]));for(let C=1;C<n.length;C++){const R=h(y,c(n[C]));R<E&&(E=R,T=n[C])}}return T}else{let v=n[0],S=h(y,c(n[0]));for(let C=1;C<n.length;C++){const R=h(y,c(n[C]));R<S&&(S=R,v=n[C])}const T=n.indexOf(v),E=n.length-1-T;return n[E]}}interpolateColors(t,n,i){const o=Math.max(2,Math.floor(i)),s=this.parseColorToRgb(t),c=this.parseColorToRgb(n);if(!s||!c)return[t,n];if(o===2)return[t,n];const d=[],h=y=>{const v=Math.round(s.r+y*(c.r-s.r)),S=Math.round(s.g+y*(c.g-s.g)),T=Math.round(s.b+y*(c.b-s.b));return this.rgbToHex({r:v,g:S,b:T})};for(let y=0;y<o;y++){const v=y/(o-1);d.push(h(v))}return d}parseColorToRgb(t){const n=t.trim(),i=this.getSharedCanvasContext();if(!i)return null;i.fillStyle="#000",i.fillStyle=n;const o=i.fillStyle;return/^#[0-9a-f]{6}$/i.test(o)?{r:Number.parseInt(o.slice(1,3),16),g:Number.parseInt(o.slice(3,5),16),b:Number.parseInt(o.slice(5,7),16)}:null}rgbToHex(t){const n=i=>Math.max(0,Math.min(tn.RGB_MAX_VALUE,i)).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 S=v.r/tn.RGB_MAX_VALUE,T=v.g/tn.RGB_MAX_VALUE,E=v.b/tn.RGB_MAX_VALUE,C=Math.max(S,T,E),R=Math.min(S,T,E),_=(C+R)/2;if(C===R)return{h:0,s:0,l:_};const N=C-R,z=_>tn.LIGHTNESS_MIDPOINT?N/(2-C-R):N/(C+R);let B=0;return C===S?B=((T-E)/N+(T<E?tn.HSL_HUE_DIVISOR:0))/tn.HSL_HUE_DIVISOR:C===T?B=((E-S)/N+tn.HSL_GREEN_HUE_OFFSET)/tn.HSL_HUE_DIVISOR:B=((S-T)/N+tn.HSL_BLUE_HUE_OFFSET)/tn.HSL_HUE_DIVISOR,{h:B,s:z,l:_}},i=v=>{const{h:S,s:T,l:E}=v;if(T===0){const N=Math.round(E*tn.RGB_MAX_VALUE);return{r:N,g:N,b:N}}const C=(N,z,B)=>{let V=B;return V<0&&(V+=1),V>1&&(V-=1),V<tn.HSL_THRESHOLD_ONE_SIXTH?N+(z-N)*tn.HSL_HUE_DIVISOR*V:V<tn.HSL_THRESHOLD_ONE_HALF?z:V<tn.HSL_THRESHOLD_TWO_THIRDS?N+(z-N)*(tn.HSL_THRESHOLD_TWO_THIRDS-V)*tn.HSL_HUE_DIVISOR:N},R=E<tn.LIGHTNESS_MIDPOINT?E*(1+T):E+T-E*T,_=2*E-R;return{r:Math.round(C(_,R,S+tn.HSL_THRESHOLD_ONE_THIRD)*tn.RGB_MAX_VALUE),g:Math.round(C(_,R,S)*tn.RGB_MAX_VALUE),b:Math.round(C(_,R,S-tn.HSL_THRESHOLD_ONE_THIRD)*tn.RGB_MAX_VALUE)}},o=[];for(let v=0;v<t.length;v++){const S=t[v];if(!(S.color==="none"||S.color==="transparent")&&S.isInSelectors){const T=this.parseColorToRgb(S.color);if(T){const E=n(T);o.push({index:v,luminance:E.l,hsl:E})}}}if(o.length<=1)return t.map(v=>({...v}));const s=o.map(v=>v.luminance),c=Math.min(...s),h=Math.max(...s)-c,y=t.map(v=>({...v}));for(const v of o){let S;h===0?S=tn.DEFAULT_MIDRANGE_LUMINANCE:S=(v.luminance-c)/h;const T={h:v.hsl.h,s:v.hsl.s,l:S},E=i(T),C=this.rgbToHex(E);y[v.index].color=C}return y}applyPatternsToElements(t){if(!this.originalColorInfo)return;if(!this.patternService){this.patternService=new l2;const s=this.displayService.plot;this.patternService.initialize(s)}const n=new Map;for(const s of t)s.isInSelectors&&s.attr==="fill"&&n.set(s.element,s.color);const i=new Map;for(const s of this.originalColorInfo)if(s.isInSelectors&&s.attr==="fill"){const c=this.normalizeColor(s.color);i.has(c)||i.set(c,[]),i.get(c).push(s)}let o=0;for(const[s,c]of i){const d=this.patternService.getPatternTypeByIndex(o);for(const h of c){const y=n.get(h.element)||this.highContrastLightColor,v=this.getMostContrastingColor(y);this.patternService.applyPattern(h.element,{type:d,baseColor:y,patternColor:v})}o++}}getMostContrastingColor(t){const n=this.getRelativeLuminance(t),i=this.getRelativeLuminance(this.highContrastDarkColor),o=this.getRelativeLuminance(this.highContrastLightColor),s=Math.abs(n-i),c=Math.abs(n-o);return s>c?this.highContrastDarkColor:this.highContrastLightColor}getRelativeLuminance(t){const n=this.parseColorToRgb(t);return n?(tn.LUMINANCE_RED_COEFF*n.r+tn.LUMINANCE_GREEN_COEFF*n.g+tn.LUMINANCE_BLUE_COEFF*n.b)/tn.RGB_MAX_VALUE:tn.DEFAULT_MIDRANGE_LUMINANCE}}class wP{constructor(t){P(this,"highlightedElements");P(this,"settingsService");P(this,"highlightedSubplots");P(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=Ct.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 i=this.createHighlightElement(n);this.highlightedElements.set(n,i)}catch(i){console.error("Failed to highlight element:",i)}}highlightSubplotElements(t){var o;this.unhighlightSubplotElements();const n=(o=document.querySelector('g[id^="maidr-"] > path[style*="fill"]'))==null?void 0:o.parentElement,i=(n==null?void 0:n.querySelector('path[style*="fill"]'))||void 0;for(const s of t)Ct.setSubplotHighlightSvgWithAdaptiveColor(s,this.currentHighlightColor,i),this.highlightedSubplots.add(s)}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(i){console.error("Failed to unhighlight element:",i)}}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=>{Ct.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class EP{constructor(){P(this,"onChangeEmitter");P(this,"onChange");this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class TP{constructor(t,n,i){P(this,"notification");P(this,"display");P(this,"text");P(this,"enabled");P(this,"onChangeEmitter");P(this,"onChange");this.notification=t,this.display=n,this.text=i,this.enabled=!1,this.onChangeEmitter=new Yc,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(dn.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}class AP{constructor(t,n){P(this,"context");P(this,"text");P(this,"rotorIndex");this.context=t,this.rotorIndex=0,this.text=n}moveToNextRotorUnit(){const t=this.getAvailableModes();return this.rotorIndex=(this.rotorIndex+1)%t.length,this.setMode(),this.getMode()}moveToPrevRotorUnit(){const t=this.getAvailableModes();return this.rotorIndex=(this.rotorIndex-1+t.length)%t.length,this.setMode(),this.getMode()}getCurrentUnit(){return this.rotorIndex}callMoveToNextCompareMethod(t){const n=this.context.active,i=this.getCompareType();if(i!=="lower"&&i!=="higher")return console.error(`Unexpected compare type: ${i}`),null;if(n instanceof fo)if(n.getCurrentXValue()!==null){if(!n.moveToNextCompareValue(t,i)){const c=this.getMessage(i,t);return console.warn(c),c}}else console.error("Unable to retrieve the current X value.");else console.error("The active trace does not support 'callMoveToNextCompareMethod'.");return null}moveUp(){if(this.isGridMode())return this.moveGrid("up");const t=this.context.active;try{if(t instanceof fo&&!t.moveUpRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"above");return console.warn(i),i}}catch{return this.moveRight()}return null}moveDown(){if(this.isGridMode())return this.moveGrid("down");const t=this.context.active;try{if(t instanceof fo&&!t.moveDownRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"below");return console.warn(i),i}}catch{return this.moveLeft()}return null}moveLeft(){if(this.isGridMode())return this.moveGrid("left");const t=this.context.active;try{if(t instanceof fo&&!t.moveLeftRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"left");return console.warn(i),i}}catch{return this.callMoveToNextCompareMethod("left")}return null}moveRight(){if(this.isGridMode())return this.moveGrid("right");const t=this.context.active;try{if(t instanceof fo&&!t.moveRightRotor(this.getCompareType())){const i=this.getMessage(this.getCompareType(),"right");return console.warn(i),i}}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){if(this.text.isOff())return"";if(this.text.isTerse())return`No ${t} value found ${n==="above"||n==="below"?"":"on the "}${n}`;const i=n==="above"||n==="below"?`${n} `:`to the ${n} of `;return`No ${t} value found ${i}the current value.`}getAvailableModes(){const t=this.context.active,n=[];return t instanceof fo?(n.push(t.dataModeName()),t.supportsCompareMode()&&(n.push(fe.LOWER_VALUE_MODE),n.push(fe.HIGHER_VALUE_MODE)),PE(t)&&t.supportsGridMode()&&n.push(fe.GRID_MODE)):n.push(fe.DATA_MODE),n}isDataMode(t){return t===fe.DATA_MODE||t===fe.ROW_COL_MODE}isGridMode(){return this.getMode()===fe.GRID_MODE}notifyGridMode(t){const n=this.context.active;PE(n)&&n.setGridMode(t)}moveGrid(t){const n=this.context.active;if(!PE(n)||!n.supportsGridMode())return this.getMessage("grid",t);let i=!1;switch(t){case"up":i=n.moveGridUp();break;case"down":i=n.moveGridDown();break;case"left":i=n.moveGridLeft();break;case"right":i=n.moveGridRight();break}if(!i){const o=t==="up"?"above":t==="down"?"below":t;return this.getMessage("grid",o)}return null}}const s2="maidr-settings";function CP(e,t){return t.split(".").reduce((n,i)=>n&&n[i],e)}function HS(e,t){const n=CP(e,t);if(n===void 0)throw new Error(`Setting not found: ${t}`);return n}class ZC{constructor(t,n){P(this,"oldSettings");P(this,"newSettings");this.oldSettings=t,this.newSettings=n}affectsSetting(t){const n=HS(this.oldSettings,t),i=HS(this.newSettings,t);return JSON.stringify(n)!==JSON.stringify(i)}get(t){return HS(this.newSettings,t)}}class OP{constructor(t,n){P(this,"storage");P(this,"display");P(this,"defaultSettings");P(this,"currentSettings");P(this,"observers");P(this,"onChangeEmitter");P(this,"onChange");this.storage=t,this.display=n,this.observers=[],this.defaultSettings={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,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"}}}},this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event;const i=this.storage.load(s2);this.currentSettings=i??this.defaultSettings}dispose(){this.onChangeEmitter.dispose()}loadSettings(){return this.currentSettings}saveSettings(t){const n=this.currentSettings;this.currentSettings=t,this.storage.save(s2,this.currentSettings),this.onChangeEmitter.fire(new ZC(n,t))}resetSettings(){const t=this.currentSettings;return this.currentSettings=this.defaultSettings,this.storage.remove(s2),this.onChangeEmitter.fire(new ZC(t,this.currentSettings)),this.currentSettings}get(t){return HS(this.currentSettings,t)}toggle(){this.display.toggleFocus(dn.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 MP{save(t,n){try{const i=JSON.stringify(n);localStorage.setItem(t,i)}catch(i){console.error(`Error while saving ${t} to storage`,i)}}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 JC(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class RP{constructor(t,n){P(this,"notification");P(this,"formatter");P(this,"mode");P(this,"currentState",null);P(this,"currentSubplotIndex",null);P(this,"currentLayerId",null);P(this,"hasHadFirstNavigation",!1);P(this,"onChangeEmitter");P(this,"onChange");P(this,"onNavigationEmitter");P(this,"onNavigation");this.notification=t,this.formatter=n,this.mode="verbose",this.onChangeEmitter=new Yc,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new Yc,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(i=>String(i))}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,i=[],o=n.mainAxis??"x",s=n.crossAxis??"y";if(n.main&&n.main.value!==void 0){const c=Array.isArray(n.main.value)?this.formatArrayValue(n.main.value,o).join(", "):this.formatSingleValue(n.main.value,o);i.push(`${n.main.label} is ${c}`)}if(n.cross&&n.cross.value!==void 0){const c=Array.isArray(n.cross.value)?this.formatArrayValue(n.cross.value,s).join(", "):this.formatSingleValue(n.cross.value,s);i.push(`${n.cross.label} is ${c}`)}return n.fill&&n.fill.value!==void 0&&i.push(`${n.fill.label} is ${n.fill.value}`),i.length>0?i.join(", "):null}formatLayerSwitchAnnouncement(t){if(!JC(t))return"";this.currentLayerId=t.layerId;let n=`Layer ${t.index} of ${t.size}: ${t.plotType||t.traceType} plot`;if(t.text){const i=[],o=t.text.mainAxis??"x",s=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,o).join(", "):this.formatSingleValue(t.text.main.value,o);i.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,s).join(", "):this.formatSingleValue(t.text.cross.value,s);i.push(`${t.text.cross.label} is ${d}`)}t.text.fill&&t.text.fill.value!==void 0&&i.push(`${t.text.fill.label} is ${t.text.fill.value}`),i.length>0&&(n+=` at ${i.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,i){const o=i.length===1?`This is a ${i[0]} plot`:`This is a multi-layered plot containing ${i.join(fe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${n}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,n,i,o){const s=o&&!o.empty?o.plotType:i;return`Layer ${t} of ${n}: ${s} plot`}isBoxPlotWithSection(t){return t.section!==void 0&&t.fill===void 0}formatVerboseTraceText(t){if(t.gridPoints!==void 0&&t.range&&t.crossRange)return this.formatVerboseGridText(t);const n=new Array,i=t.mainAxis??"x",o=t.crossAxis??"y";if(n.push(t.main.label,fe.IS),t.range!==void 0?n.push(this.formatSingleValue(t.range.min,i),fe.THROUGH,this.formatSingleValue(t.range.max,i)):Array.isArray(t.main.value)?n.push(this.formatArrayValue(t.main.value,i).join(fe.COMMA_SPACE)):n.push(this.formatSingleValue(t.main.value,i)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===aa.UPPER_OUTLIER||t.section===aa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const s=t.cross.label,c=t.cross.value,h=`[${this.formatArrayValue(c,o).join(", ")}]`,y=this.formatSingleValue(t.main.value,i);if(c.length===0)return`${t.main.label} is ${y}, no ${t.section.toLowerCase()} for ${s}`;{const v=c.length===1?"is":"are";return`${t.main.label} is ${y}, ${t.section.toLowerCase()} for ${s} ${v} ${h}`}}if(t.section!==void 0)if(this.isBoxPlotWithSection(t)){const s=t.cross.label;n.push(fe.COMMA_SPACE,t.section.toLowerCase(),fe.SPACE,s)}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,o).join(fe.COMMA_SPACE)):t.cross.value.length>0&&n.push(fe.IS,this.formatArrayValue(t.cross.value,o).join(fe.COMMA_SPACE)):n.push(fe.IS,this.formatSingleValue(t.cross.value,o)),t.fill!==void 0){let s;t.fill.value==="Bull"||t.fill.value==="Bear"?s=t.fill.value.toLowerCase():s=this.formatSingleValue(t.fill.value,"fill"),n.push(fe.COMMA_SPACE,t.fill.label,fe.IS,s)}return n.join(fe.EMPTY)}formatTerseTraceText(t){if(t.gridPoints!==void 0&&t.range&&t.crossRange)return this.formatTerseGridText(t);const n=new Array,i=t.mainAxis??"x",o=t.crossAxis??"y";if(Array.isArray(t.main.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.main.value,i).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.main.value,i),fe.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===aa.UPPER_OUTLIER||t.section===aa.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const s=t.cross.value,d=`[${this.formatArrayValue(s,o).join(", ")}]`,h=this.formatSingleValue(t.main.value,i);return s.length===0?`${h}, no ${t.section.toLowerCase()}`:`${h}, ${s.length} ${t.section.toLowerCase()} ${d}`}if(t.section!==void 0&&t.fill!==void 0?(n.push(t.section,fe.SPACE),Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):t.section!==void 0&&t.fill===void 0?(n.push(t.section,fe.SPACE),Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):Array.isArray(t.cross.value)?n.push(fe.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(fe.COMMA_SPACE),fe.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o)),t.fill!==void 0){let s;t.fill.value==="Bull"||t.fill.value==="Bear"?s=t.fill.value.toLowerCase():s=this.formatSingleValue(t.fill.value,"fill"),t.section,n.push(fe.COMMA_SPACE,s)}return n.join(fe.EMPTY)}formatVerboseGridText(t){const n=t.mainAxis??"x",i=t.crossAxis??"y",o=[];o.push(t.main.label,fe.IS,this.formatSingleValue(t.range.min,n),fe.THROUGH,this.formatSingleValue(t.range.max,n)),o.push(fe.COMMA_SPACE,t.cross.label,fe.IS,this.formatSingleValue(t.crossRange.min,i),fe.THROUGH,this.formatSingleValue(t.crossRange.max,i));const s=t.gridPoints;if(s.length===0)o.push(fe.COMMA_SPACE,"no points");else{const c=s.map(h=>`(${this.formatSingleValue(h.x,n)}, ${this.formatSingleValue(h.y,i)})`),d=s.length===1?" is":"s are";o.push(fe.COMMA_SPACE,`point${d}: `,c.join(fe.COMMA_SPACE))}return o.join(fe.EMPTY)}formatTerseGridText(t){const n=t.mainAxis??"x",i=t.crossAxis??"y",o=[];o.push(this.formatSingleValue(t.range.min,n),fe.THROUGH,this.formatSingleValue(t.range.max,n)),o.push(fe.COMMA_SPACE,this.formatSingleValue(t.crossRange.min,i),fe.THROUGH,this.formatSingleValue(t.crossRange.max,i));const s=t.gridPoints;if(s.length===0)o.push(fe.COMMA_SPACE,"no points");else{const c=s.map(d=>`(${this.formatSingleValue(d.x,n)}, ${this.formatSingleValue(d.y,i)})`);o.push(fe.COMMA_SPACE,"points: ",c.join(fe.COMMA_SPACE))}return o.join(fe.EMPTY)}update(t){if(this.mode==="off")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"&&JC(t)){const i=this.formatLayerSwitchAnnouncement(t);this.notification.notify(i);return}if(t.type==="subplot"){const i=this.format(t);i&&this.notification.notify(i);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 vi={};function xa(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 _P=typeof Symbol=="function"&&Symbol.observable||"@@observable",e9=_P,u2=()=>Math.random().toString(36).substring(7).split("").join("."),DP={INIT:`@@redux/INIT${u2()}`,REPLACE:`@@redux/REPLACE${u2()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${u2()}`},sh=DP;function xv(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 NP(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(IP(e))return"date";if(zP(e))return"error";const n=kP(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 kP(e){return typeof e.constructor=="function"?e.constructor.name:null}function zP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function IP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Od(e){let t=typeof e;return vi.NODE_ENV!=="production"&&(t=NP(e)),t}function t9(e,t,n){if(typeof e!="function")throw new Error(vi.NODE_ENV==="production"?xa(2):`Expected the root reducer to be a function. Instead, received: '${Od(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(vi.NODE_ENV==="production"?xa(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(vi.NODE_ENV==="production"?xa(1):`Expected the enhancer to be a function. Instead, received: '${Od(n)}'`);return n(t9)(e,t)}let i=e,o=t,s=new Map,c=s,d=0,h=!1;function y(){c===s&&(c=new Map,s.forEach((_,N)=>{c.set(N,_)}))}function v(){if(h)throw new Error(vi.NODE_ENV==="production"?xa(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 o}function S(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?xa(4):`Expected the listener to be a function. Instead, received: '${Od(_)}'`);if(h)throw new Error(vi.NODE_ENV==="production"?xa(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 N=!0;y();const z=d++;return c.set(z,_),function(){if(N){if(h)throw new Error(vi.NODE_ENV==="production"?xa(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.");N=!1,y(),c.delete(z),s=null}}}function T(_){if(!xv(_))throw new Error(vi.NODE_ENV==="production"?xa(7):`Actions must be plain objects. Instead, the actual type was: '${Od(_)}'. 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(vi.NODE_ENV==="production"?xa(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(vi.NODE_ENV==="production"?xa(17):`Action "type" property must be a string. Instead, the actual type was: '${Od(_.type)}'. Value was: '${_.type}' (stringified)`);if(h)throw new Error(vi.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{h=!0,o=i(o,_)}finally{h=!1}return(s=c).forEach(z=>{z()}),_}function E(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?xa(10):`Expected the nextReducer to be a function. Instead, received: '${Od(_)}`);i=_,T({type:sh.REPLACE})}function C(){const _=S;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(vi.NODE_ENV==="production"?xa(11):`Expected the observer to be an object. Instead, received: '${Od(N)}'`);function z(){const V=N;V.next&&V.next(v())}return z(),{unsubscribe:_(z)}},[e9](){return this}}}return T({type:sh.INIT}),{dispatch:T,subscribe:S,getState:v,replaceReducer:E,[e9]:C}}function n9(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function LP(e,t,n,i){const o=Object.keys(t),s=n&&n.type===sh.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!xv(e))return`The ${s} has unexpected type of "${Od(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const c=Object.keys(e).filter(d=>!t.hasOwnProperty(d)&&!i[d]);if(c.forEach(d=>{i[d]=!0}),!(n&&n.type===sh.REPLACE)&&c.length>0)return`Unexpected ${c.length>1?"keys":"key"} "${c.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function VP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:sh.INIT})>"u")throw new Error(vi.NODE_ENV==="production"?xa(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:sh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vi.NODE_ENV==="production"?xa(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${sh.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 BP(e){const t=Object.keys(e),n={};for(let c=0;c<t.length;c++){const d=t[c];vi.NODE_ENV!=="production"&&typeof e[d]>"u"&&n9(`No reducer provided for key "${d}"`),typeof e[d]=="function"&&(n[d]=e[d])}const i=Object.keys(n);let o;vi.NODE_ENV!=="production"&&(o={});let s;try{VP(n)}catch(c){s=c}return function(d={},h){if(s)throw s;if(vi.NODE_ENV!=="production"){const S=LP(d,n,h,o);S&&n9(S)}let y=!1;const v={};for(let S=0;S<i.length;S++){const T=i[S],E=n[T],C=d[T],R=E(C,h);if(typeof R>"u"){const _=h&&h.type;throw new Error(vi.NODE_ENV==="production"?xa(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!==C}return y=y||i.length!==Object.keys(d).length,y?v:d}}function qS(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function jP(...e){return t=>(n,i)=>{const o=t(n,i);let s=()=>{throw new Error(vi.NODE_ENV==="production"?xa(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const c={getState:o.getState,dispatch:(h,...y)=>s(h,...y)},d=e.map(h=>h(c));return s=qS(...d)(o.dispatch),{...o,dispatch:s}}}function r9(e){return xv(e)&&"type"in e&&typeof e.type=="string"}var GS={},i9=Symbol.for("immer-nothing"),a9=Symbol.for("immer-draftable"),ho=Symbol.for("immer-state"),PP=GS.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 ml(e,...t){if(GS.NODE_ENV!=="production"){const n=PP[e],i=uh(n)?n.apply(null,t):n;throw new Error(`[Immer] ${i}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gl=Object,Um=gl.getPrototypeOf,FS="constructor",YS="prototype",c2="configurable",XS="enumerable",WS="writable",Sv="value",Kc=e=>!!e&&!!e[ho];function iu(e){var t;return e?l9(e)||ZS(e)||!!e[a9]||!!((t=e[FS])!=null&&t[a9])||JS(e)||e5(e):!1}var UP=gl[YS][FS].toString(),o9=new WeakMap;function l9(e){if(!e||!d2(e))return!1;const t=Um(e);if(t===null||t===gl[YS])return!0;const n=gl.hasOwnProperty.call(t,FS)&&t[FS];if(n===Object)return!0;if(!uh(n))return!1;let i=o9.get(n);return i===void 0&&(i=Function.toString.call(n),o9.set(n,i)),i===UP}function KS(e,t,n=!0){wv(e)===0?(n?Reflect.ownKeys(e):gl.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function wv(e){const t=e[ho];return t?t.type_:ZS(e)?1:JS(e)?2:e5(e)?3:0}var s9=(e,t,n=wv(e))=>n===2?e.has(t):gl[YS].hasOwnProperty.call(e,t),f2=(e,t,n=wv(e))=>n===2?e.get(t):e[t],QS=(e,t,n,i=wv(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function $P(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ZS=Array.isArray,JS=e=>e instanceof Map,e5=e=>e instanceof Set,d2=e=>typeof e=="object",uh=e=>typeof e=="function",h2=e=>typeof e=="boolean";function HP(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Qc=e=>e.copy_||e.base_,p2=e=>e.modified_?e.copy_:e.base_;function m2(e,t){if(JS(e))return new Map(e);if(e5(e))return new Set(e);if(ZS(e))return Array[YS].slice.call(e);const n=l9(e);if(t===!0||t==="class_only"&&!n){const i=gl.getOwnPropertyDescriptors(e);delete i[ho];let o=Reflect.ownKeys(i);for(let s=0;s<o.length;s++){const c=o[s],d=i[c];d[WS]===!1&&(d[WS]=!0,d[c2]=!0),(d.get||d.set)&&(i[c]={[c2]:!0,[WS]:!0,[XS]:d[XS],[Sv]:e[c]})}return gl.create(Um(e),i)}else{const i=Um(e);if(i!==null&&n)return{...e};const o=gl.create(i);return gl.assign(o,e)}}function g2(e,t=!1){return n5(e)||Kc(e)||!iu(e)||(wv(e)>1&&gl.defineProperties(e,{set:t5,add:t5,clear:t5,delete:t5}),gl.freeze(e),t&&KS(e,(n,i)=>{g2(i,!0)},!1)),e}function qP(){ml(2)}var t5={[Sv]:qP};function n5(e){return e===null||!d2(e)?!0:gl.isFrozen(e)}var r5="MapSet",y2="Patches",u9="ArrayMethods",c9={};function ch(e){const t=c9[e];return t||ml(0,e),t}var f9=e=>!!c9[e],Ev,d9=()=>Ev,GP=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:f9(r5)?ch(r5):void 0,arrayMethodsPlugin_:f9(u9)?ch(u9):void 0});function h9(e,t){t&&(e.patchPlugin_=ch(y2),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function v2(e){b2(e),e.drafts_.forEach(FP),e.drafts_=null}function b2(e){e===Ev&&(Ev=e.parent_)}var p9=e=>Ev=GP(Ev,e);function FP(e){const t=e[ho];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function m9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[ho].modified_&&(v2(t),ml(4)),iu(e)&&(e=g9(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[ho].base_,e,t)}else e=g9(t,n);return YP(t,e,!0),v2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i9?e:void 0}function g9(e,t){if(n5(t))return t;const n=t[ho];if(!n)return a5(t,e.handledSet_,e);if(!i5(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:i}=n;if(i)for(;i.length>0;)i.pop()(e);b9(n,e)}return n.copy_}function YP(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&g2(t,n)}function y9(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var i5=(e,t)=>e.scope_===t,XP=[];function v9(e,t,n,i){const o=Qc(e),s=e.type_;if(i!==void 0&&f2(o,i,s)===t){QS(o,i,n,s);return}if(!e.draftLocations_){const d=e.draftLocations_=new Map;KS(o,(h,y)=>{if(Kc(y)){const v=d.get(y)||[];v.push(h),d.set(y,v)}})}const c=e.draftLocations_.get(t)??XP;for(const d of c)QS(o,d,n,s)}function WP(e,t,n){e.callbacks_.push(function(o){var d;const s=t;if(!s||!i5(s,o))return;(d=o.mapSetPlugin_)==null||d.fixSetContents(s);const c=p2(s);v9(e,s.draft_??s,c,n),b9(s,o)})}function b9(e,t){var i;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((i=e.assigned_)==null?void 0:i.size)??0)>0)){const{patchPlugin_:o}=t;if(o){const s=o.getPath(e);s&&o.generatePatches_(e,s,t)}y9(e)}}function KP(e,t,n){const{scope_:i}=e;if(Kc(n)){const o=n[ho];i5(o,i)&&o.callbacks_.push(function(){l5(e);const c=p2(o);v9(e,n,c,t)})}else iu(n)&&e.callbacks_.push(function(){const s=Qc(e);e.type_===3?s.has(n)&&a5(n,i.handledSet_,i):f2(s,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&a5(f2(e.copy_,t,e.type_),i.handledSet_,i)})}function a5(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Kc(e)||t.has(e)||!iu(e)||n5(e)||(t.add(e),KS(e,(i,o)=>{if(Kc(o)){const s=o[ho];if(i5(s,n)){const c=p2(s);QS(e,i,c,e.type_),y9(s)}}else iu(o)&&a5(o,t,n)})),e}function QP(e,t){const n=ZS(e),i={type_:n?1:0,scope_:t?t.scope_:d9(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=i,s=o5;n&&(o=[i],s=Tv);const{revoke:c,proxy:d}=Proxy.revocable(o,s);return i.draft_=d,i.revoke_=c,[d,i]}var o5={get(e,t){if(t===ho)return e;let n=e.scope_.arrayMethodsPlugin_;const i=e.type_===1&&typeof t=="string";if(i&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=Qc(e);if(!s9(o,t,e.type_))return ZP(e,o,t);const s=o[t];if(e.finalized_||!iu(s)||i&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&HP(t))return s;if(s===x2(e.base_,t)){l5(e);const c=e.type_===1?+t:t,d=w2(e.scope_,s,e,c);return e.copy_[c]=d}return s},has(e,t){return t in Qc(e)},ownKeys(e){return Reflect.ownKeys(Qc(e))},set(e,t,n){const i=x9(Qc(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=x2(Qc(e),t),s=o==null?void 0:o[ho];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if($P(n,o)&&(n!==void 0||s9(e.base_,t,e.type_)))return!0;l5(e),S2(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),KP(e,t,n)),!0},deleteProperty(e,t){return l5(e),x2(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),S2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Qc(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[WS]:!0,[c2]:e.type_!==1||t!=="length",[XS]:i[XS],[Sv]:n[t]}},defineProperty(){ml(11)},getPrototypeOf(e){return Um(e.base_)},setPrototypeOf(){ml(12)}},Tv={};for(let e in o5){let t=o5[e];Tv[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Tv.deleteProperty=function(e,t){return GS.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ml(13),Tv.set.call(this,e,t,void 0)},Tv.set=function(e,t,n){return GS.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ml(14),o5.set.call(this,e[0],t,n,e[0])};function x2(e,t){const n=e[ho];return(n?Qc(n):e)[t]}function ZP(e,t,n){var o;const i=x9(t,n);return i?Sv in i?i[Sv]:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function x9(e,t){if(!(t in e))return;let n=Um(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Um(n)}}function S2(e){e.modified_||(e.modified_=!0,e.parent_&&S2(e.parent_))}function l5(e){e.copy_||(e.assigned_=new Map,e.copy_=m2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JP=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(uh(t)&&!uh(n)){const s=n;n=t;const c=this;return function(h=s,...y){return c.produce(h,v=>n.call(this,v,...y))}}uh(n)||ml(6),i!==void 0&&!uh(i)&&ml(7);let o;if(iu(t)){const s=p9(this),c=w2(s,t,void 0);let d=!0;try{o=n(c),d=!1}finally{d?v2(s):b2(s)}return h9(s,i),m9(o,s)}else if(!t||!d2(t)){if(o=n(t),o===void 0&&(o=t),o===i9&&(o=void 0),this.autoFreeze_&&g2(o,!0),i){const s=[],c=[];ch(y2).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:c}),i(s,c)}return o}else ml(1,t)},this.produceWithPatches=(t,n)=>{if(uh(t))return(c,...d)=>this.produceWithPatches(c,h=>t(h,...d));let i,o;return[this.produce(t,n,(c,d)=>{i=c,o=d}),i,o]},h2(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),h2(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),h2(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){iu(e)||ml(8),Kc(e)&&(e=eU(e));const t=p9(this),n=w2(t,e,void 0);return n[ho].isManual_=!0,b2(t),n}finishDraft(e,t){const n=e&&e[ho];(!n||!n.isManual_)&&ml(9);const{scope_:i}=n;return h9(i,t),m9(void 0,i)}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 o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=ch(y2).applyPatches_;return Kc(e)?i(e,t):this.produce(e,o=>i(o,t))}};function w2(e,t,n,i){const[o,s]=JS(t)?ch(r5).proxyMap_(t,n):e5(t)?ch(r5).proxySet_(t,n):QP(t,n);return((n==null?void 0:n.scope_)??d9()).drafts_.push(o),s.callbacks_=(n==null?void 0:n.callbacks_)??[],s.key_=i,n&&i!==void 0?WP(n,s,i):s.callbacks_.push(function(h){var v;(v=h.mapSetPlugin_)==null||v.fixSetContents(s);const{patchPlugin_:y}=h;s.modified_&&y&&y.generatePatches_(s,[],h)}),o}function eU(e){return Kc(e)||ml(10,e),S9(e)}function S9(e){if(!iu(e)||n5(e))return e;const t=e[ho];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=m2(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=m2(e,!0);return KS(n,(o,s)=>{QS(n,o,S9(s))},i),t&&(t.finalized_=!1),n}var tU=new JP,w9=tU.produce,nU={},rU=(e,t,n)=>{if(t.length===1&&t[0]===n){let i=!1;try{const o={};e(o)===o&&(i=!0)}catch{}if(i){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
\`createSelector([state => state.todos], todos => todos)\`
This could lead to inefficient memoization and unnecessary re-renders.
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},iU=(e,t,n)=>{const{memoize:i,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:c}=e,d=i(()=>({}),...o);if(!(d.apply(null,s)===d.apply(null,c))){let y;try{throw new Error}catch(v){({stack:y}=v)}console.warn(`An input selector returned a different result when passed same arguments.
This means your output selector will likely run more frequently than intended.
Avoid returning a new reference inside your input selector, e.g.
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:c,stack:y})}},aU={inputStabilityCheck:"once",identityFunctionCheck:"once"};function oU(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function lU(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function sU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var E9=e=>Array.isArray(e)?e:[e];function uU(e){const t=Array.isArray(e[0])?e[0]:e;return sU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function T9(e,t){const n=[],{length:i}=e;for(let o=0;o<i;o++)n.push(e[o].apply(null,t));return n}var cU=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:i}={...aU,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:rU},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:iU}}},fU=class{constructor(e){this.value=e}deref(){return this.value}},dU=typeof WeakRef<"u"?WeakRef:fU,hU=0,A9=1;function s5(){return{s:hU,v:void 0,o:null,p:null}}function C9(e,t={}){let n=s5();const{resultEqualityCheck:i}=t;let o,s=0;function c(){var S;let d=n;const{length:h}=arguments;for(let T=0,E=h;T<E;T++){const C=arguments[T];if(typeof C=="function"||typeof C=="object"&&C!==null){let R=d.o;R===null&&(d.o=R=new WeakMap);const _=R.get(C);_===void 0?(d=s5(),R.set(C,d)):d=_}else{let R=d.p;R===null&&(d.p=R=new Map);const _=R.get(C);_===void 0?(d=s5(),R.set(C,d)):d=_}}const y=d;let v;if(d.s===A9)v=d.v;else if(v=e.apply(null,arguments),s++,i){const T=((S=o==null?void 0:o.deref)==null?void 0:S.call(o))??o;T!=null&&i(T,v)&&(v=T,s!==0&&s--),o=typeof v=="object"&&v!==null||typeof v=="function"?new dU(v):v}return y.s=A9,y.v=v,v}return c.clearCache=()=>{n=s5(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}function pU(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let s=0,c=0,d,h={},y=o.pop();typeof y=="object"&&(h=y,y=o.pop()),oU(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const v={...n,...h},{memoize:S,memoizeOptions:T=[],argsMemoize:E=C9,argsMemoizeOptions:C=[],devModeChecks:R={}}=v,_=E9(T),N=E9(C),z=uU(o),B=S(function(){return s++,y.apply(null,arguments)},..._);let V=!0;const L=E(function(){c++;const X=T9(z,arguments);if(d=B.apply(null,X),nU.NODE_ENV!=="production"){const{identityFunctionCheck:se,inputStabilityCheck:ce}=cU(V,R);if(se.shouldRun&&se.run(y,X,d),ce.shouldRun){const ie=T9(z,arguments);ce.run({inputSelectorResults:X,inputSelectorResultsCopy:ie},{memoize:S,memoizeOptions:_},arguments)}V&&(V=!1)}return d},...N);return Object.assign(L,{resultFunc:y,memoizedResultFunc:B,dependencies:z,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>d,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:S,argsMemoize:E})};return Object.assign(i,{withTypes:()=>i}),i}var mU=pU(C9),gU=Object.assign((e,t=mU)=>{lU(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(s=>e[s]);return t(i,(...s)=>s.reduce((c,d,h)=>(c[n[h]]=d,c),{}))},{withTypes:()=>gU});function O9(e){return({dispatch:n,getState:i})=>o=>s=>typeof s=="function"?s(n,i,e):o(s)}var yU=O9(),vU=O9,Jt={},bU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qS:qS.apply(null,arguments)},xU=e=>e&&typeof e.match=="function";function M9(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>r9(i)&&i.type===e,n}function SU(e){return typeof e=="function"&&"type"in e&&xU(e)}function wU(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 EU(e={}){if(Jt.NODE_ENV==="production")return()=>n=>i=>n(i);const{isActionCreator:t=SU}=e;return()=>n=>i=>(t(i)&&console.warn(wU(i.type)),n(i))}function R9(e,t){let n=0;return{measureTime(i){const o=Date.now();try{return i()}finally{const s=Date.now();n+=s-o}},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 kS extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kS.prototype)}static get[Symbol.species](){return kS}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kS(...t[0].concat(this)):new kS(...t.concat(this))}};function D9(e){return iu(e)?w9(e,()=>{}):e}function u5(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function TU(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function AU(e,t,n){const i=N9(e,t,n);return{detectMutations(){return k9(e,t,i,n)}}}function N9(e,t=[],n,i="",o=new Set){const s={value:n};if(!e(n)&&!o.has(n)){o.add(n),s.children={};const c=t.length>0;for(const d in n){const h=i?i+"."+d:d;c&&t.some(v=>v instanceof RegExp?v.test(h):h===v)||(s.children[d]=N9(e,t,n[d],h))}}return s}function k9(e,t=[],n,i,o=!1,s=""){const c=n?n.value:void 0,d=c===i;if(o&&!d&&!Number.isNaN(i))return{wasMutated:!0,path:s};if(e(c)||e(i))return{wasMutated:!1};const h={};for(let v in n.children)h[v]=!0;for(let v in i)h[v]=!0;const y=t.length>0;for(let v in h){const S=s?s+"."+v:v;if(y&&t.some(C=>C instanceof RegExp?C.test(S):S===C))continue;const T=k9(e,t,n.children[v],i[v],d,S);if(T.wasMutated)return T}return{wasMutated:!1}}function CU(e={}){if(Jt.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(S,T){return y[0]===T?"[Circular ~]":"[Circular ~."+v.slice(0,y.indexOf(T)).join(".")+"]"}),function(S,T){if(y.length>0){var E=y.indexOf(this);~E?y.splice(E+1):y.push(this),~E?v.splice(E,1/0,S):v.push(S),~y.indexOf(T)&&(T=h.call(this,S,T))}else y.push(T);return d==null?T:d.call(this,S,T)}},{isImmutable:i=TU,ignoredPaths:o,warnAfter:s=32}=e;const c=AU.bind(null,i,o);return({getState:d})=>{let h=d(),y=c(h),v;return S=>T=>{const E=R9(s,"ImmutableStateInvariantMiddleware");E.measureTime(()=>{if(h=d(),v=y.detectMutations(),y=c(h),v.wasMutated)throw new Error(Jt.NODE_ENV==="production"?Tr(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 C=S(T);return E.measureTime(()=>{if(h=d(),v=y.detectMutations(),y=c(h),v.wasMutated)throw new Error(Jt.NODE_ENV==="production"?Tr(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(),C}}}}function z9(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||xv(e)}function E2(e,t="",n=z9,i,o=[],s){let c;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s!=null&&s.has(e))return!1;const d=i!=null?i(e):Object.entries(e),h=o.length>0;for(const[y,v]of d){const S=t?t+"."+y:y;if(!(h&&o.some(E=>E instanceof RegExp?E.test(S):S===E))){if(!n(v))return{keyPath:S,value:v};if(typeof v=="object"&&(c=E2(v,S,n,i,o,s),c))return c}}return s&&I9(e)&&s.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 OU(e={}){if(Jt.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=z9,getEntries:n,ignoredActions:i=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:c=32,ignoreState:d=!1,ignoreActions:h=!1,disableCache:y=!1}=e,v=!y&&WeakSet?new WeakSet:void 0;return S=>T=>E=>{if(!r9(E))return T(E);const C=T(E),R=R9(c,"SerializableStateInvariantMiddleware");return!h&&!(i.length&&i.indexOf(E.type)!==-1)&&R.measureTime(()=>{const _=E2(E,"",t,n,o,v);if(_){const{keyPath:N,value:z}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${N}\`. 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 _=S.getState(),N=E2(_,"",t,n,s,v);if(N){const{keyPath:z,value:B}=N;console.error(`A non-serializable value was detected in the state, in the path: \`${z}\`. Value:`,B,`
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()),C}}}function c5(e){return typeof e=="boolean"}var MU=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let c=new _9;if(n&&(c5(n)?c.push(yU):c.push(vU(n.extraArgument))),Jt.NODE_ENV!=="production"){if(i){let d={};c5(i)||(d=i),c.unshift(CU(d))}if(o){let d={};c5(o)||(d=o),c.push(OU(d))}if(s){let d={};c5(s)||(d=s),c.unshift(EU(d))}}return c},RU="RTK_autoBatch",L9=e=>t=>{setTimeout(t,e)},_U=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,c=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:L9(10):e.type==="callback"?e.queueNotification:L9(e.timeout),y=()=>{c=!1,s&&(s=!1,d.forEach(v=>v()))};return Object.assign({},i,{subscribe(v){const S=()=>o&&v(),T=i.subscribe(S);return d.add(v),()=>{T(),d.delete(v)}},dispatch(v){var S;try{return o=!((S=v==null?void 0:v.meta)!=null&&S[RU]),s=!o,s&&(c||(c=!0,h(y))),i.dispatch(v)}finally{o=!0}}})},DU=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new _9(e);return i&&o.push(_U(typeof i=="object"?i:void 0)),o};function NU(e){const t=MU(),{reducer:n=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(xv(n))h=BP(n);else throw new Error(Jt.NODE_ENV==="production"?Tr(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(Jt.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(2):"`middleware` field must be a callback");let y;if(typeof i=="function"){if(y=i(t),Jt.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(Jt.NODE_ENV==="production"?Tr(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(Jt.NODE_ENV!=="production"&&y.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(4):"each middleware provided to configureStore must be a function");if(Jt.NODE_ENV!=="production"&&s){let R=new Set;y.forEach(_=>{if(R.has(_))throw new Error(Jt.NODE_ENV==="production"?Tr(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");R.add(_)})}let v=qS;o&&(v=bU({trace:Jt.NODE_ENV!=="production",...typeof o=="object"&&o}));const S=jP(...y),T=DU(S);if(Jt.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(Jt.NODE_ENV==="production"?Tr(5):"`enhancers` field must be a callback");let E=typeof d=="function"?d(T):T();if(Jt.NODE_ENV!=="production"&&!Array.isArray(E))throw new Error(Jt.NODE_ENV==="production"?Tr(6):"`enhancers` callback must return an array");if(Jt.NODE_ENV!=="production"&&E.some(R=>typeof R!="function"))throw new Error(Jt.NODE_ENV==="production"?Tr(7):"each enhancer provided to configureStore must be a function");Jt.NODE_ENV!=="production"&&y.length&&!E.includes(S)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const C=v(...E);return t9(h,c,C)}function V9(e){const t={},n=[];let i;const o={addCase(s,c){if(Jt.NODE_ENV!=="production"){if(n.length>0)throw new Error(Jt.NODE_ENV==="production"?Tr(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error(Jt.NODE_ENV==="production"?Tr(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof s=="string"?s:s.type;if(!d)throw new Error(Jt.NODE_ENV==="production"?Tr(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(Jt.NODE_ENV==="production"?Tr(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=c,o},addAsyncThunk(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&n.push({matcher:s.settled,reducer:c.settled}),o},addMatcher(s,c){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:c}),o},addDefaultCase(s){if(Jt.NODE_ENV!=="production"&&i)throw new Error(Jt.NODE_ENV==="production"?Tr(31):"`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function kU(e){return typeof e=="function"}function zU(e,t){if(Jt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(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,i,o]=V9(t),s;if(kU(e))s=()=>D9(e());else{const d=D9(e);s=()=>d}function c(d=s(),h){let y=[n[h.type],...i.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return y.filter(v=>!!v).length===0&&(y=[o]),y.reduce((v,S)=>{if(S)if(Kc(v)){const E=S(v,h);return E===void 0?v:E}else{if(iu(v))return w9(v,T=>S(T,h));{const T=S(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 c.getInitialState=s,c}var IU=Symbol.for("rtk-slice-createasyncthunk");function LU(e,t){return`${e}/${t}`}function VU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[IU];return function(o){const{name:s,reducerPath:c=s}=o;if(!s)throw new Error(Jt.NODE_ENV==="production"?Tr(11):"`name` is a required option for createSlice");typeof process<"u"&&Jt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const d=(typeof o.reducers=="function"?o.reducers(jU()):o.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},v={addCase(V,L){const U=typeof V=="string"?V:V.type;if(!U)throw new Error(Jt.NODE_ENV==="production"?Tr(12):"`context.addCase` cannot be called with an empty action type");if(U in y.sliceCaseReducersByType)throw new Error(Jt.NODE_ENV==="production"?Tr(13):"`context.addCase` cannot be called with two reducers for the same action type: "+U);return y.sliceCaseReducersByType[U]=L,v},addMatcher(V,L){return y.sliceMatchers.push({matcher:V,reducer:L}),v},exposeAction(V,L){return y.actionCreators[V]=L,v},exposeCaseReducer(V,L){return y.sliceCaseReducersByName[V]=L,v}};h.forEach(V=>{const L=d[V],U={reducerName:V,type:LU(s,V),createNotation:typeof o.reducers=="function"};UU(L)?HU(U,L,v,t):PU(U,L,v)});function S(){if(Jt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(Jt.NODE_ENV==="production"?Tr(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[V={},L=[],U=void 0]=typeof o.extraReducers=="function"?V9(o.extraReducers):[o.extraReducers],X={...V,...y.sliceCaseReducersByType};return zU(o.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 L)se.addMatcher(ce.matcher,ce.reducer);U&&se.addDefaultCase(U)})}const T=V=>V,E=new Map,C=new WeakMap;let R;function _(V,L){return R||(R=S()),R(V,L)}function N(){return R||(R=S()),R.getInitialState()}function z(V,L=!1){function U(se){let ce=se[V];if(typeof ce>"u"){if(L)ce=u5(C,U,N);else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(15):"selectSlice returned undefined for an uninjected slice reducer")}return ce}function X(se=T){const ce=u5(E,L,()=>new WeakMap);return u5(ce,se,()=>{const ie={};for(const[ue,$]of Object.entries(o.selectors??{}))ie[ue]=BU($,se,()=>u5(C,se,N),L);return ie})}return{reducerPath:V,getSelectors:X,get selectors(){return X(U)},selectSlice:U}}const B={name:s,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:N,...z(c),injectInto(V,{reducerPath:L,...U}={}){const X=L??c;return V.inject({reducerPath:X,reducer:_},U),{...B,...z(X,!0)}}};return B}}function BU(e,t,n,i){function o(s,...c){let d=t(s);if(typeof d>"u"){if(i)d=n();else if(Jt.NODE_ENV!=="production")throw new Error(Jt.NODE_ENV==="production"?Tr(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...c)}return o.unwrapped=e,o}var Gu=VU();function jU(){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 PU({type:e,reducerName:t,createNotation:n},i,o){let s,c;if("reducer"in i){if(n&&!$U(i))throw new Error(Jt.NODE_ENV==="production"?Tr(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=i.reducer,c=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?M9(e,c):M9(e))}function UU(e){return e._reducerDefinitionType==="asyncThunk"}function $U(e){return e._reducerDefinitionType==="reducerWithPrepare"}function HU({type:e,reducerName:t},n,i,o){if(!o)throw new Error(Jt.NODE_ENV==="production"?Tr(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:c,pending:d,rejected:h,settled:y,options:v}=n,S=o(e,s,v);i.exposeAction(t,S),c&&i.addCase(S.fulfilled,c),d&&i.addCase(S.pending,d),h&&i.addCase(S.rejected,h),y&&i.addMatcher(S.settled,y),i.exposeCaseReducer(t,{fulfilled:c||f5,pending:d||f5,rejected:h||f5,settled:y||f5})}function f5(){}function Tr(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 Fu{constructor(t){P(this,"store");P(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},j9=Gu({name:"braille",initialState:B9,reducers:{update(e,t){return t.payload},reset(){return B9}}}),{update:qU,reset:GU}=j9.actions;class FU extends Fu{constructor(n,i){super(n);P(this,"brailleService");this.brailleService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(GU())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(qU(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 YU=j9.reducer,Av={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"}}},P9={messages:[],suggestions:[]};function U9(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const $9=Gu({name:"chat",initialState:P9,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(i=>i.model===t.payload.model&&i.timestamp===t.payload.timestamp);n&&(n.text=t.payload.data,n.status="SUCCESS")},updateError:(e,t)=>{const n=e.messages.find(i=>i.model===t.payload.model&&i.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(i=>i.isWelcomeMessage);n!==-1&&(e.messages[n].text=t.payload.text,t.payload.modelSelections&&(e.messages[n].modelSelections=t.payload.modelSelections))},reset(){return P9}}}),{addUserMessage:XU,addSystemMessage:WU,addPendingResponse:KU,updateResponse:QU,updateError:H9,updateSuggestions:ZU,updateWelcomeMessage:JU,reset:q9}=$9.actions;class e$ extends Fu{constructor(n,i,o){super(n);P(this,"chatService");P(this,"audioService");this.chatService=i,this.audioService=o,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(i=>i.enabled&&i.apiKey.trim().length>0)}toggle(){this.chatService.toggle()}getEnabledModelsData(){const n=this.snapshot.settings.llm.models,i=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>{var v;const d=(v=Av[s])==null?void 0:v.labels,h=(d==null?void 0:d[c.version])||c.version;return`${U9(s)} (${h})`}),o=Object.entries(n).filter(([s,c])=>c.enabled&&c.apiKey.trim().length>0).map(([s,c])=>({modelKey:s,name:U9(s),version:c.version}));return{enabledModels:i,modelSelections:o}}loadInitialMessage(){const n=new Date().toISOString(),{enabledModels:i,modelSelections:o}=this.getEnabledModelsData(),s=i.length>0?`Welcome to the Chart Assistant. You can select and switch between different AI models using the dropdowns below. Currently enabled: ${i.join(", ")}.`:"No agents are enabled. Please enable at least one agent and provide API keys in the settings page.";this.store.dispatch(WU({text:s,timestamp:n,modelSelections:o,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(q9()),this.loadInitialMessage()}updateWelcomeMessage(){const{enabledModels:n,modelSelections:i}=this.getEnabledModelsData(),o=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(JU({text:o,modelSelections:i}))}generateSuggestions(){try{const n=this.state.messages[this.state.messages.length-1];if(!n||n.isUser)return[];const{llm:i}=this.snapshot.settings,o=i.expertiseLevel,s=Date.now(),c=[{id:`suggestion-${s}-1`,text:"Can you explain that in more detail?",type:"clarification"},{id:`suggestion-${s}-2`,text:"What can you say about the current datapoint?",type:"analysis"},{id:`suggestion-${s}-3`,text:"How does this compare to other data points?",type:"analysis"}];return o==="advanced"&&c.push({id:`suggestion-${s}-4`,text:"Can you perform a statistical analysis of this data?",type:"analysis"},{id:`suggestion-${s}-5`,text:"What are the potential outliers in this dataset?",type:"analysis"}),c}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(ZU(n))}isValidExpertiseLevel(n){return["basic","intermediate","advanced"].includes(n)}async sendMessage(n){const{llm:i}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(XU({text:n,timestamp:o}));const s=Object.keys(i.models).filter(c=>i.models[c].enabled&&i.models[c].apiKey.trim().length>0);await Promise.all(s.map(async c=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch(KU({model:c,timestamp:o}));const h=i.models[c],y=i.customExpertise&&["basic","intermediate","advanced"].includes(i.customExpertise)?i.customExpertise:i.expertiseLevel,v=await this.chatService.sendMessage(c,{message:n,customInstruction:i.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),v.error?this.store.dispatch(H9({model:c,error:v.error,timestamp:o})):(this.store.dispatch(QU({model:c,data:v.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(H9({model:c,error:h instanceof Error?h.message:"Error processing request",timestamp:o}))}}))}}const t$=$9.reducer,G9=Gu({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:n$,hide:F9,updateSelectedIndex:T2,updateSearch:r$}=G9.actions;class i$ extends Fu{constructor(n,i){super(n);P(this,"commandPaletteService");this.commandPaletteService=i}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=i2.TRACE,i=Object.entries(n).filter(([o])=>!o.startsWith("ALLOW_")).map(([o,s])=>({key:s,description:this.toTitleCase(o.replace(/_/g," ").toLowerCase()),commandKey:o}));this.store.dispatch(n$({commands:i,scope:dn.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(F9()),this.commandPaletteService.returnToTraceScope()}moveUp(){const n=this.state;if(n.commands.length>0){if(n.selectedIndex===0)return;const i=n.selectedIndex>=0?n.selectedIndex:n.commands.length-1,o=Math.max(0,i-1);this.store.dispatch(T2(o))}}moveDown(){const n=this.state;if(n.commands.length>0){const i=n.selectedIndex>=0?n.selectedIndex:-1,o=Math.min(n.commands.length-1,i+1);this.store.dispatch(T2(o))}}moveToSearch(){this.store.dispatch(T2(-1))}selectCurrent(){const n=this.state;n.commands.length>0&&n.selectedIndex}updateSearch(n){this.store.dispatch(r$(n))}executeCommand(n){this.hide()}handleCommandSelect(n){this.hide()}toTitleCase(n){return n.replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1))}}const a$=G9.reducer,Y9=Gu({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:o$,showTooltip:l$,updateFocus:s$,clearFocus:u$}=Y9.actions;class c$ extends Fu{constructor(n,i){super(n);P(this,"displayService");this.displayService=i,this.registerListeners(),this.store.dispatch(o$())}dispose(){this.store.dispatch(u$()),this.store.dispatch(l$(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch(s$(n.value))}))}get state(){return this.store.getState().display}}const f$=Y9.reducer,X9=Gu({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:d$,hide:A2,updateSelectedIndex:W9}=X9.actions;class h$ extends Fu{constructor(n,i,o,s){super(n);P(this,"goToExtremaService");P(this,"context");P(this,"formatter");this.goToExtremaService=i,this.context=o,this.formatter=s}dispose(){super.dispose(),this.store.dispatch(A2())}get state(){return this.store.getState().goToExtrema}toggle(n){if(n.empty)return;const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i)){const o=i.getExtremaTargets(),s=this.formatTargetLabels(o,n.layerId),c=this.generateDescription(n.traceType);this.store.dispatch(d$({targets:s,description:c})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(A2()),this.goToExtremaService.returnToTraceScope()}get activeContext(){return this.context}moveUp(){const n=this.state;if(n.targets.length>0){const i=n.selectedIndex||0,o=Math.max(0,i-1);this.store.dispatch(W9(o))}}moveDown(){const n=this.state;if(n.targets.length>0){const i=n.targets.length,o=n.selectedIndex||0,s=Math.min(i,o+1);this.store.dispatch(W9(s))}}selectCurrent(){const n=this.state;if(n.targets.length>0&&n.selectedIndex!==void 0){const i=n.targets[n.selectedIndex];i&&this.handleTargetSelect(i)}}handleTargetSelect(n){const i=this.context.active;if(i&&this.goToExtremaService.isExtremaNavigable(i))try{this.store.dispatch(A2()),this.goToExtremaService.returnToTraceScope(),i.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}formatTargetLabels(n,i){return!this.formatter||!this.formatter.hasCustomFormatter(i,"x")?n:n.map(o=>{if(o.xValue===void 0)return o;const s=this.formatter.formatSingleValue(o.xValue,i,"x"),c=String(o.xValue);return s===c?o:{...o,label:o.label.replaceAll(c,s)}})}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 p$=X9.reducer,K9={items:[]},Q9=Gu({name:"help",initialState:K9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return K9}}}),{setHelpItems:m$,reset:g$}=Q9.actions;class y$ extends Fu{constructor(n,i){super(n);P(this,"helpService");this.helpService=i}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(m$(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(g$())}get state(){return this.store.getState().help}}const v$=Q9.reducer;class b${constructor(){P(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 Z9={value:""},J9=Gu({name:"review",initialState:Z9,reducers:{update(e,t){e.value=t.payload},reset(){return Z9}}}),{update:x$,reset:S$}=J9.actions;class w$ extends Fu{constructor(n,i){super(n);P(this,"reviewService");this.reviewService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(S$())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(x$(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const E$=J9.reducer,eO=Gu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:$m}=eO.actions;class T$ extends Fu{constructor(n,i){super(n);P(this,"rotorService");this.rotorService=i}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch($m(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch($m(`${n}`))}moveUp(){this.store.dispatch($m(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch($m(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch($m(this.rotorService.moveDown()))}moveRight(){this.store.dispatch($m(this.rotorService.moveRight()))}}const A$=eO.reducer,tO={general:{volume:50,highlightColor:"#03c809",highContrastMode:!1,highContrastLevels:2,highContrastLightColor:"#ffffff",highContrastDarkColor:"#000000",brailleDisplaySize:32,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"}}}},nO=Gu({name:"settings",initialState:tO,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>tO}}),{update:d5,reset:C$}=nO.actions;class O$ extends Fu{constructor(n,i){super(n);P(this,"settingsService");this.settingsService=i,this.load()}dispose(){super.dispose(),this.store.dispatch(C$())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(d5(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(d5(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(d5(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(d5(n))}toggle(){this.settingsService.toggle()}}const M$=nO.reducer,rO={enabled:!0,announce:!0,value:"",revision:0,message:null},iO=Gu({name:"text",initialState:rO,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 rO}}}),{update:R$,announceText:_$,toggle:D$,notify:N$,clearMessage:k$,reset:z$}=iO.actions;class I$ extends Fu{constructor(n,i,o,s,c){super(n);P(this,"audioService");P(this,"textService");this.audioService=c,this.textService=i,this.registerListeners(o,s)}dispose(){super.dispose(),this.store.dispatch(z$())}registerListeners(n,i){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(this.textService.onNavigation(o=>{o.type==="first_navigation"&&this.setAnnounce(!0)})),this.disposables.push(n.onChange(o=>{this.notify(o.value)})),this.disposables.push(i.onChange(o=>{switch(o.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(D$(n))}update(n){const i=this.textService.format(n);this.store.dispatch(R$(i)),this.store.dispatch(k$())}notify(n){this.store.dispatch(N$(n))}setAnnounce(n){this.store.dispatch(_$(n))}warnIfTextOff(){return this.textService.isOff()?(this.notify("Text mode is off. To enable, press the T key."),this.audioService.playWarningTone(),!0):!1}}const L$=iO.reducer;function V$(e){const t=j$(e),n=P$(e,t),i=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return q$(e,i,t);const o=U$(n),s=$$(o),c=o[0].row,d=H$(n,e.length);return{visualOrderMap:s,topLeftRow:c,invertVertical:d,totalAxesCount:i,axesElements:t}}function B$(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 i=n.closest('g[id^="axes_"]');if(i)return i}}return null}function j$(e){const t=new Map;for(let n=0;n<e.length;n++)for(let i=0;i<e[n].length;i++){const o=e[n][i],s=B$(o.getHighlightElement(),o.getLayerSelector());t.set(`${n},${i}`,s)}return t}function P$(e,t){const n=[];for(let i=0;i<e.length;i++)for(let o=0;o<e[i].length;o++){const s=t.get(`${i},${o}`);if(s){const c=s.getBoundingClientRect();n.push({row:i,col:o,y:c.top,x:c.left})}}return n}function U$(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function $$(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 H$(e,t){if(t<=1)return!1;const n=e.find(o=>o.row===0),i=e.find(o=>o.row===1);return n&&i?n.y<i.y:!1}function q$(e,t,n){const i=new Map;let o=1;for(let s=0;s<e.length;s++)for(let c=0;c<e[s].length;c++)i.set(`${s},${c}`,o++);return{visualOrderMap:i,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class G${constructor(t,n,i){P(this,"figure");P(this,"context");P(this,"displayService");P(this,"notificationService");P(this,"settingsService");P(this,"formatterService");P(this,"audioService");P(this,"brailleService");P(this,"goToExtremaService");P(this,"textService");P(this,"reviewService");P(this,"rotorNavigationService");P(this,"autoplayService");P(this,"highContrastService");P(this,"highlightService");P(this,"helpService");P(this,"chatService");P(this,"textViewModel");P(this,"brailleViewModel");P(this,"goToExtremaViewModel");P(this,"reviewViewModel");P(this,"displayViewModel");P(this,"helpViewModel");P(this,"chatViewModel");P(this,"settingsViewModel");P(this,"rotorNavigationViewModel");P(this,"commandPaletteViewModel");P(this,"keybinding");P(this,"mousebinding");P(this,"commandExecutor");P(this,"viewModelRegistry");this.viewModelRegistry=new b$,this.figure=new _B(t),this.figure.applyLayout(V$(this.figure.subplots)),this.context=new rB(this.figure),this.notificationService=new EP,this.formatterService=new vP(t),this.textService=new RP(this.notificationService,this.formatterService),this.displayService=new yP(this.context,n,this.textService),this.settingsService=new OP(new MP,this.displayService),this.audioService=new LB(this.notificationService,this.settingsService,this.context.state),this.brailleService=new HB(this.context,this.notificationService,this.displayService),this.goToExtremaService=new bP(this.context,this.displayService),this.reviewService=new TP(this.notificationService,this.displayService,this.textService),this.autoplayService=new PB(this.context,this.notificationService,this.settingsService),this.highContrastService=new SP(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new wP(this.settingsService),this.helpService=new xP(this.context,this.displayService),this.chatService=new JB(this.displayService,this.textService,t),this.textViewModel=new I$(i,this.textService,this.notificationService,this.autoplayService,this.audioService),this.brailleViewModel=new FU(i,this.brailleService),this.goToExtremaViewModel=new h$(i,this.goToExtremaService,this.context,this.formatterService),this.reviewViewModel=new w$(i,this.reviewService),this.displayViewModel=new c$(i,this.displayService),this.helpViewModel=new y$(i,this.helpService),this.settingsViewModel=new O$(i,this.settingsService),this.rotorNavigationService=new AP(this.context,this.textService),this.rotorNavigationViewModel=new T$(i,this.rotorNavigationService),this.chatViewModel=new e$(i,this.chatService,this.audioService);const o=new mP(this.context,this.displayService);this.commandPaletteViewModel=new i$(i,o),this.keybinding=new dP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel}),this.mousebinding=new hP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,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 pP({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,displayService:this.displayService,highContrastService:this.highContrastService,highlightService:this.highlightService,rotorNavigationService:this.rotorNavigationService,settingsService:this.settingsService,textService:this.textService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,commandPaletteViewModel:this.commandPaletteViewModel,goToExtremaViewModel:this.goToExtremaViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel,rotorNavigationViewModel:this.rotorNavigationViewModel},this.context.scope),this.registerViewModels(),this.registerObservers(),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.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("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(i=>i.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}function F$(e,t){const n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(!1),c=G.useRef(null),d=G.useRef(null),[h,y]=G.useState(null),v=G.useCallback(()=>{const _=n.current;if(!_)return null;const N=structuredClone(e);return new G$(N,_,t)},[e,t]),S=G.useRef(v);S.current=v;const T=G.useCallback(()=>{o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null),y(null),s.current=!1},[]),E=G.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),c.current&&(clearTimeout(c.current),c.current=null),c.current=setTimeout(()=>{var _;if(c.current=null,!o.current){const N=S.current();if(!N)return;o.current=N,y(N.getContextValue()),N.initializeHighContrast()}s.current||(s.current=!0,(_=o.current)==null||_.showInitialInstructionInText())},0)},[]),C=G.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),d.current=setTimeout(()=>{d.current=null;const _=i.current;if(!_)return;const N=document.activeElement;_.contains(N)||T()},0)},[T]),R=G.useCallback(()=>{if(document.visibilityState==="visible"){if(!o.current)return;c.current&&(clearTimeout(c.current),c.current=null),d.current&&(clearTimeout(d.current),d.current=null),T();const _=S.current();if(!_)return;o.current=_,y(_.getContextValue()),_.initializeHighContrast(),s.current=!1}},[T]);return G.useEffect(()=>(document.addEventListener("visibilitychange",R),()=>{document.removeEventListener("visibilitychange",R)}),[R]),G.useEffect(()=>()=>{c.current&&clearTimeout(c.current),d.current&&clearTimeout(d.current),o.current&&(o.current.suspendHighContrast(),o.current.dispose(),o.current=null)},[]),{plotRef:n,figureRef:i,contextValue:h,onFocusIn:E,onFocusOut:C}}const Y$={braille:YU,chat:t$,commandPalette:a$,display:f$,goToExtrema:p$,help:v$,review:E$,settings:M$,text:L$,rotor:A$};function X$(){return NU({reducer:Y$})}const aO=G.createContext(null);function oO(){const e=G.useContext(aO);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 h5={exports:{}},C2={};/**
 * @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 lO;function W$(){if(lO)return C2;lO=1;var e=Ad();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,i=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,c=e.useMemo,d=e.useDebugValue;return C2.useSyncExternalStoreWithSelector=function(h,y,v,S,T){var E=o(null);if(E.current===null){var C={hasValue:!1,value:null};E.current=C}else C=E.current;E=c(function(){function _(L){if(!N){if(N=!0,z=L,L=S(L),T!==void 0&&C.hasValue){var U=C.value;if(T(U,L))return B=U}return B=L}if(U=B,n(z,L))return U;var X=S(L);return T!==void 0&&T(U,X)?(z=L,U):(z=L,B=X)}var N=!1,z,B,V=v===void 0?null:v;return[function(){return _(y())},V===null?void 0:function(){return _(V())}]},[y,v,S,T]);var R=i(h,E[0],E[1]);return s(function(){C.hasValue=!0,C.value=R},[R]),d(R),R},C2}var O2={},sO;function K$(){if(sO)return O2;sO=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=Ad(),i=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,s=n.useRef,c=n.useEffect,d=n.useMemo,h=n.useDebugValue;O2.useSyncExternalStoreWithSelector=function(y,v,S,T,E){var C=s(null);if(C.current===null){var R={hasValue:!1,value:null};C.current=R}else R=C.current;C=d(function(){function N(U){if(!z){if(z=!0,B=U,U=T(U),E!==void 0&&R.hasValue){var X=R.value;if(E(X,U))return V=X}return V=U}if(X=V,i(B,U))return X;var se=T(U);return E!==void 0&&E(X,se)?(B=U,X):(B=U,V=se)}var z=!1,B,V,L=S===void 0?null:S;return[function(){return N(v())},L===null?void 0:function(){return N(L())}]},[v,S,T,E]);var _=o(y,C[0],C[1]);return c(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 uO;function Q$(){if(uO)return h5.exports;uO=1;var e={};return e.NODE_ENV==="production"?h5.exports=W$():h5.exports=K$(),h5.exports}var Z$=Q$(),Cv={};function J$(e){e()}function eH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){J$(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var cO={notify(){},get:()=>[]};function tH(e,t){let n,i=cO,o=0,s=!1;function c(R){v();const _=i.subscribe(R);let N=!1;return()=>{N||(N=!0,_(),S())}}function d(){i.notify()}function h(){C.onStateChange&&C.onStateChange()}function y(){return s}function v(){o++,n||(n=e.subscribe(h),i=eH())}function S(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=cO)}function T(){s||(s=!0,v())}function E(){s&&(s=!1,S())}const C={addNestedSub:c,notifyNestedSubs:d,handleChangeWrapper:h,isSubscribed:y,trySubscribe:T,tryUnsubscribe:E,getListeners:()=>i};return C}var nH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rH=nH(),iH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aH=iH(),oH=()=>rH||aH?G.useLayoutEffect:G.useEffect,lH=oH(),M2=Symbol.for("react-redux-context"),R2=typeof globalThis<"u"?globalThis:{};function sH(){if(!G.createContext)return{};const e=R2[M2]??(R2[M2]=new Map);let t=e.get(G.createContext);return t||(t=G.createContext(null),Cv.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(G.createContext,t)),t}var p5=sH();function uH(e){const{children:t,context:n,serverState:i,store:o}=e,s=G.useMemo(()=>{const h=tH(o),y={store:o,subscription:h,getServerState:i?()=>i:void 0};if(Cv.NODE_ENV==="production")return y;{const{identityFunctionCheck:v="once",stabilityCheck:S="once"}=e;return Object.assign(y,{stabilityCheck:S,identityFunctionCheck:v})}},[o,i]),c=G.useMemo(()=>o.getState(),[o]);lH(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,c]);const d=n||p5;return G.createElement(d.Provider,{value:s},t)}var cH=uH;function fO(e=p5){return function(){const n=G.useContext(e);if(Cv.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 fH=fO(),dH=(e,t)=>e===t;function hH(e=p5){const t=e===p5?fH:fO(e),n=(i,o={})=>{const{equalityFn:s=dH}=typeof o=="function"?{equalityFn:o}:o;if(Cv.NODE_ENV!=="production"){if(!i)throw new Error("You must pass a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const c=t(),{store:d,subscription:h,getServerState:y}=c,v=G.useRef(!0),S=G.useCallback({[i.name](E){const C=i(E);if(Cv.NODE_ENV!=="production"){const{devModeChecks:R={}}=typeof o=="function"?{}:o,{identityFunctionCheck:_,stabilityCheck:N}=c,{identityFunctionCheck:z,stabilityCheck:B}={stabilityCheck:N,identityFunctionCheck:_,...R};if(B==="always"||B==="once"&&v.current){const V=i(E);if(!s(C,V)){let L;try{throw new Error}catch(U){({stack:L}=U)}console.warn("Selector "+(i.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:C,selected2:V,stack:L})}}if((z==="always"||z==="once"&&v.current)&&C===E){let V;try{throw new Error}catch(L){({stack:V}=L)}console.warn("Selector "+(i.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:V})}v.current&&(v.current=!1)}return C}}[i.name],[i]),T=Z$.useSyncExternalStoreWithSelector(h.addNestedSub,d.getState,y||d.getState,S,s);return G.useDebugValue(T),T};return Object.assign(n,{withTypes:()=>n}),n}var pH=hH();const mH=pH;function Yu(e){const{viewModelRegistry:t}=oO();return t.get(e)}function au(e){return mH(t=>t[e])}const gH=()=>{const e=G.useId(),t=Yu("braille"),{value:n,index:i}=au("braille"),o=G.useRef(null),s=G.useRef(i),c=d=>{const h=d.target,y=h.selectionStart;if(y>=n.length){h.setSelectionRange(s.current,s.current);return}y!==s.current&&(s.current=y,t.moveToIndex(y))};return G.useEffect(()=>{const d=o.current;if(d)return d.addEventListener(qu.SELECTION_CHANGE,c),()=>{d.removeEventListener(qu.SELECTION_CHANGE,c)}},[]),G.useEffect(()=>{const d=o.current;d&&(d.value=n,d.selectionStart=i,d.selectionEnd=i,d.focus(),s.current=i)},[n,i]),H.jsx("div",{id:e,children:H.jsx("textarea",{id:`${fe.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:n,autoCapitalize:"off",rows:5,cols:50})})},dO=e=>e,hO=(()=>{let e=dO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=dO}}})();function Zc(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}var yH={};function Je(e){if(typeof e!="string")throw new Error(yH.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Zc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var m5={exports:{}},g5={exports:{}},or={};/** @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 pO;function vH(){if(pO)return or;pO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function B(L){if(typeof L=="object"&&L!==null){var U=L.$$typeof;switch(U){case t:switch(L=L.type,L){case h:case y:case i:case s:case o:case S:return L;default:switch(L=L&&L.$$typeof,L){case d:case v:case C:case E:case c:return L;default:return U}}case n:return U}}}function V(L){return B(L)===y}return or.AsyncMode=h,or.ConcurrentMode=y,or.ContextConsumer=d,or.ContextProvider=c,or.Element=t,or.ForwardRef=v,or.Fragment=i,or.Lazy=C,or.Memo=E,or.Portal=n,or.Profiler=s,or.StrictMode=o,or.Suspense=S,or.isAsyncMode=function(L){return V(L)||B(L)===h},or.isConcurrentMode=V,or.isContextConsumer=function(L){return B(L)===d},or.isContextProvider=function(L){return B(L)===c},or.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},or.isForwardRef=function(L){return B(L)===v},or.isFragment=function(L){return B(L)===i},or.isLazy=function(L){return B(L)===C},or.isMemo=function(L){return B(L)===E},or.isPortal=function(L){return B(L)===n},or.isProfiler=function(L){return B(L)===s},or.isStrictMode=function(L){return B(L)===o},or.isSuspense=function(L){return B(L)===S},or.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===y||L===s||L===o||L===S||L===T||typeof L=="object"&&L!==null&&(L.$$typeof===C||L.$$typeof===E||L.$$typeof===c||L.$$typeof===d||L.$$typeof===v||L.$$typeof===_||L.$$typeof===N||L.$$typeof===z||L.$$typeof===R)},or.typeOf=B,or}var lr={},mO;function bH(){if(mO)return lr;mO=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,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=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,S=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,E=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,N=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function V(Re){return typeof Re=="string"||typeof Re=="function"||Re===o||Re===v||Re===c||Re===s||Re===T||Re===E||typeof Re=="object"&&Re!==null&&(Re.$$typeof===R||Re.$$typeof===C||Re.$$typeof===d||Re.$$typeof===h||Re.$$typeof===S||Re.$$typeof===N||Re.$$typeof===z||Re.$$typeof===B||Re.$$typeof===_)}function L(Re){if(typeof Re=="object"&&Re!==null){var st=Re.$$typeof;switch(st){case n:var Mt=Re.type;switch(Mt){case y:case v:case o:case c:case s:case T:return Mt;default:var Qt=Mt&&Mt.$$typeof;switch(Qt){case h:case S:case R:case C:case d:return Qt;default:return st}}case i:return st}}}var U=y,X=v,se=h,ce=d,ie=n,ue=S,$=o,le=R,K=C,oe=i,Z=c,ae=s,he=T,Ee=!1;function te(Re){return Ee||(Ee=!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)||L(Re)===y}function F(Re){return L(Re)===v}function ee(Re){return L(Re)===h}function Y(Re){return L(Re)===d}function Me(Re){return typeof Re=="object"&&Re!==null&&Re.$$typeof===n}function Se(Re){return L(Re)===S}function _e(Re){return L(Re)===o}function je(Re){return L(Re)===R}function He(Re){return L(Re)===C}function Xe(Re){return L(Re)===i}function Ke(Re){return L(Re)===c}function et(Re){return L(Re)===s}function Be(Re){return L(Re)===T}lr.AsyncMode=U,lr.ConcurrentMode=X,lr.ContextConsumer=se,lr.ContextProvider=ce,lr.Element=ie,lr.ForwardRef=ue,lr.Fragment=$,lr.Lazy=le,lr.Memo=K,lr.Portal=oe,lr.Profiler=Z,lr.StrictMode=ae,lr.Suspense=he,lr.isAsyncMode=te,lr.isConcurrentMode=F,lr.isContextConsumer=ee,lr.isContextProvider=Y,lr.isElement=Me,lr.isForwardRef=Se,lr.isFragment=_e,lr.isLazy=je,lr.isMemo=He,lr.isPortal=Xe,lr.isProfiler=Ke,lr.isStrictMode=et,lr.isSuspense=Be,lr.isValidElementType=V,lr.typeOf=L})(),lr}var gO;function yO(){if(gO)return g5.exports;gO=1;var e={};return e.NODE_ENV==="production"?g5.exports=vH():g5.exports=bH(),g5.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var D2,vO;function xH(){if(vO)return D2;vO=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var c={},d=0;d<10;d++)c["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(c).map(function(v){return c[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 D2=o()?Object.assign:function(s,c){for(var d,h=i(s),y,v=1;v<arguments.length;v++){d=Object(arguments[v]);for(var S in d)t.call(d,S)&&(h[S]=d[S]);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},D2}var N2,bO;function k2(){if(bO)return N2;bO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return N2=e,N2}var z2,xO;function SO(){return xO||(xO=1,z2=Function.call.bind(Object.prototype.hasOwnProperty)),z2}var I2,wO;function SH(){if(wO)return I2;wO=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=k2(),i={},o=SO();t=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function s(c,d,h,y,v){if(e.NODE_ENV!=="production"){for(var S in c)if(o(c,S)){var T;try{if(typeof c[S]!="function"){var E=Error((y||"React class")+": "+h+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}T=c[S](d,S,y,h,null,n)}catch(R){T=R}if(T&&!(T instanceof Error)&&t((y||"React class")+": type specification of "+h+" `"+S+"` 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 i)){i[T.message]=!0;var C=v?v():"";t("Failed "+h+" type: "+T.message+(C??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(i={})},I2=s,I2}var L2,EO;function wH(){if(EO)return L2;EO=1;var e={},t=yO(),n=xH(),i=k2(),o=SO(),s=SH(),c=function(){};e.NODE_ENV!=="production"&&(c=function(h){var y="Warning: "+h;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return L2=function(h,y){var v=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function T(F){var ee=F&&(v&&F[v]||F[S]);if(typeof ee=="function")return ee}var E="<<anonymous>>",C={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:B(),arrayOf:V,element:L(),elementType:U(),instanceOf:X,node:ue(),objectOf:ce,oneOf:se,oneOfType:ie,shape:le,exact:K};function R(F,ee){return F===ee?F!==0||1/F===1/ee:F!==F&&ee!==ee}function _(F,ee){this.message=F,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}_.prototype=Error.prototype;function N(F){if(e.NODE_ENV!=="production")var ee={},Y=0;function Me(_e,je,He,Xe,Ke,et,Be){if(Xe=Xe||E,et=et||He,Be!==i){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 st=Xe+":"+He;!ee[st]&&Y<3&&(c("You are manually calling a React.PropTypes validation function for the `"+et+"` prop on `"+Xe+"`. 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."),ee[st]=!0,Y++)}}return je[He]==null?_e?je[He]===null?new _("The "+Ke+" `"+et+"` is marked as required "+("in `"+Xe+"`, but its value is `null`.")):new _("The "+Ke+" `"+et+"` is marked as required in "+("`"+Xe+"`, but its value is `undefined`.")):null:F(je,He,Xe,Ke,et)}var Se=Me.bind(null,!1);return Se.isRequired=Me.bind(null,!0),Se}function z(F){function ee(Y,Me,Se,_e,je,He){var Xe=Y[Me],Ke=ae(Xe);if(Ke!==F){var et=he(Xe);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+et+"` supplied to `"+Se+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return N(ee)}function B(){return N(d)}function V(F){function ee(Y,Me,Se,_e,je){if(typeof F!="function")return new _("Property `"+je+"` of component `"+Se+"` has invalid PropType notation inside arrayOf.");var He=Y[Me];if(!Array.isArray(He)){var Xe=ae(He);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected an array."))}for(var Ke=0;Ke<He.length;Ke++){var et=F(He,Ke,Se,_e,je+"["+Ke+"]",i);if(et instanceof Error)return et}return null}return N(ee)}function L(){function F(ee,Y,Me,Se,_e){var je=ee[Y];if(!h(je)){var He=ae(je);return new _("Invalid "+Se+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Me+"`, expected a single ReactElement."))}return null}return N(F)}function U(){function F(ee,Y,Me,Se,_e){var je=ee[Y];if(!t.isValidElementType(je)){var He=ae(je);return new _("Invalid "+Se+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Me+"`, expected a single ReactElement type."))}return null}return N(F)}function X(F){function ee(Y,Me,Se,_e,je){if(!(Y[Me]instanceof F)){var He=F.name||E,Xe=te(Y[Me]);return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected ")+("instance of `"+He+"`."))}return null}return N(ee)}function se(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&(arguments.length>1?c("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])."):c("Invalid argument supplied to oneOf, expected an array.")),d;function ee(Y,Me,Se,_e,je){for(var He=Y[Me],Xe=0;Xe<F.length;Xe++)if(R(He,F[Xe]))return null;var Ke=JSON.stringify(F,function(Be,Re){var st=he(Re);return st==="symbol"?String(Re):Re});return new _("Invalid "+_e+" `"+je+"` of value `"+String(He)+"` "+("supplied to `"+Se+"`, expected one of "+Ke+"."))}return N(ee)}function ce(F){function ee(Y,Me,Se,_e,je){if(typeof F!="function")return new _("Property `"+je+"` of component `"+Se+"` has invalid PropType notation inside objectOf.");var He=Y[Me],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected an object."));for(var Ke in He)if(o(He,Ke)){var et=F(He,Ke,Se,_e,je+"."+Ke,i);if(et instanceof Error)return et}return null}return N(ee)}function ie(F){if(!Array.isArray(F))return e.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var ee=0;ee<F.length;ee++){var Y=F[ee];if(typeof Y!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ee(Y)+" at index "+ee+"."),d}function Me(Se,_e,je,He,Xe){for(var Ke=[],et=0;et<F.length;et++){var Be=F[et],Re=Be(Se,_e,je,He,Xe,i);if(Re==null)return null;Re.data&&o(Re.data,"expectedType")&&Ke.push(Re.data.expectedType)}var st=Ke.length>0?", expected one of type ["+Ke.join(", ")+"]":"";return new _("Invalid "+He+" `"+Xe+"` supplied to "+("`"+je+"`"+st+"."))}return N(Me)}function ue(){function F(ee,Y,Me,Se,_e){return oe(ee[Y])?null:new _("Invalid "+Se+" `"+_e+"` supplied to "+("`"+Me+"`, expected a ReactNode."))}return N(F)}function $(F,ee,Y,Me,Se){return new _((F||"React class")+": "+ee+" type `"+Y+"."+Me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Se+"`.")}function le(F){function ee(Y,Me,Se,_e,je){var He=Y[Me],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type `"+Xe+"` "+("supplied to `"+Se+"`, expected `object`."));for(var Ke in F){var et=F[Ke];if(typeof et!="function")return $(Se,_e,je,Ke,he(et));var Be=et(He,Ke,Se,_e,je+"."+Ke,i);if(Be)return Be}return null}return N(ee)}function K(F){function ee(Y,Me,Se,_e,je){var He=Y[Me],Xe=ae(He);if(Xe!=="object")return new _("Invalid "+_e+" `"+je+"` of type `"+Xe+"` "+("supplied to `"+Se+"`, expected `object`."));var Ke=n({},Y[Me],F);for(var et in Ke){var Be=F[et];if(o(F,et)&&typeof Be!="function")return $(Se,_e,je,et,he(Be));if(!Be)return new _("Invalid "+_e+" `"+je+"` key `"+et+"` supplied to `"+Se+"`.\nBad object: "+JSON.stringify(Y[Me],null,"  ")+`
Valid keys: `+JSON.stringify(Object.keys(F),null,"  "));var Re=Be(He,et,Se,_e,je+"."+et,i);if(Re)return Re}return null}return N(ee)}function oe(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(oe);if(F===null||h(F))return!0;var ee=T(F);if(ee){var Y=ee.call(F),Me;if(ee!==F.entries){for(;!(Me=Y.next()).done;)if(!oe(Me.value))return!1}else for(;!(Me=Y.next()).done;){var Se=Me.value;if(Se&&!oe(Se[1]))return!1}}else return!1;return!0;default:return!1}}function Z(F,ee){return F==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function ae(F){var ee=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":Z(ee,F)?"symbol":ee}function he(F){if(typeof F>"u"||F===null)return""+F;var ee=ae(F);if(ee==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return ee}function Ee(F){var ee=he(F);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function te(F){return!F.constructor||!F.constructor.name?E:F.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},L2}var V2,TO;function EH(){if(TO)return V2;TO=1;var e=k2();function t(){}function n(){}return n.resetWarningCache=t,V2=function(){function i(c,d,h,y,v,S){if(S!==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}}i.isRequired=i;function o(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},V2}var AO;function TH(){if(AO)return m5.exports;AO=1;var e={};if(e.NODE_ENV!=="production"){var t=yO(),n=!0;m5.exports=wH()(t.isElement,n)}else m5.exports=EH()();return m5.exports}var AH=TH();const p=pl(AH);function CO(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=CO(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function St(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=CO(e))&&(i&&(i+=" "),i+=t);return i}function en(e,t,n=void 0){const i={};for(const o in e){const s=e[o];let c="",d=!0;for(let h=0;h<s.length;h+=1){const y=s[h];y&&(c+=(d===!0?"":" ")+t(y),d=!1,n&&n[y]&&(c+=" "+n[y]))}i[o]=c}return i}var y5={exports:{}},yr={};/**
 * @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 OO;function CH(){if(OO)return yr;OO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=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"),S=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function C(R){if(typeof R=="object"&&R!==null){var _=R.$$typeof;switch(_){case e:switch(R=R.type,R){case n:case o:case i:case h:case y:case T:return R;default:switch(R=R&&R.$$typeof,R){case c:case d:case S:case v:return R;case s:return R;default:return _}}case t:return _}}}return yr.ContextConsumer=s,yr.ContextProvider=c,yr.Element=e,yr.ForwardRef=d,yr.Fragment=n,yr.Lazy=S,yr.Memo=v,yr.Portal=t,yr.Profiler=o,yr.StrictMode=i,yr.Suspense=h,yr.SuspenseList=y,yr.isContextConsumer=function(R){return C(R)===s},yr.isContextProvider=function(R){return C(R)===c},yr.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},yr.isForwardRef=function(R){return C(R)===d},yr.isFragment=function(R){return C(R)===n},yr.isLazy=function(R){return C(R)===S},yr.isMemo=function(R){return C(R)===v},yr.isPortal=function(R){return C(R)===t},yr.isProfiler=function(R){return C(R)===o},yr.isStrictMode=function(R){return C(R)===i},yr.isSuspense=function(R){return C(R)===h},yr.isSuspenseList=function(R){return C(R)===y},yr.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===o||R===i||R===h||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===S||R.$$typeof===v||R.$$typeof===c||R.$$typeof===s||R.$$typeof===d||R.$$typeof===E||R.getModuleId!==void 0)},yr.typeOf=C,yr}var vr={},MO;function OH(){if(MO)return vr;MO=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 N=_.$$typeof;switch(N){case n:switch(_=_.type,_){case o:case c:case s:case v:case S:case C:return _;default:switch(_=_&&_.$$typeof,_){case h:case y:case E:case T:return _;case d:return _;default:return N}}case i:return N}}}var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=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"),S=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),R=Symbol.for("react.client.reference");vr.ContextConsumer=d,vr.ContextProvider=h,vr.Element=n,vr.ForwardRef=y,vr.Fragment=o,vr.Lazy=E,vr.Memo=T,vr.Portal=i,vr.Profiler=c,vr.StrictMode=s,vr.Suspense=v,vr.SuspenseList=S,vr.isContextConsumer=function(_){return t(_)===d},vr.isContextProvider=function(_){return t(_)===h},vr.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},vr.isForwardRef=function(_){return t(_)===y},vr.isFragment=function(_){return t(_)===o},vr.isLazy=function(_){return t(_)===E},vr.isMemo=function(_){return t(_)===T},vr.isPortal=function(_){return t(_)===i},vr.isProfiler=function(_){return t(_)===c},vr.isStrictMode=function(_){return t(_)===s},vr.isSuspense=function(_){return t(_)===v},vr.isSuspenseList=function(_){return t(_)===S},vr.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===o||_===c||_===s||_===v||_===S||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===T||_.$$typeof===h||_.$$typeof===d||_.$$typeof===y||_.$$typeof===R||_.getModuleId!==void 0)},vr.typeOf=t})(),vr}var RO;function MH(){if(RO)return y5.exports;RO=1;var e={};return e.NODE_ENV==="production"?y5.exports=CH():y5.exports=OH(),y5.exports}var fh=MH();function Xu(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 _O(e){if(G.isValidElement(e)||fh.isValidElementType(e)||!Xu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_O(e[n])}),t}function Pa(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Xu(e)&&Xu(t)&&Object.keys(t).forEach(o=>{G.isValidElement(t[o])||fh.isValidElementType(t[o])?i[o]=t[o]:Xu(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xu(e[o])?i[o]=Pa(e[o],t[o],n):n.clone?i[o]=Xu(t[o])?_O(t[o]):t[o]:i[o]=t[o]}),i}function Ov(e,t){return t?Pa(e,t,{clone:!1}):e}var RH={};const Md=RH.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};var _H={};function DO(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=o.match(s))==null?void 0:d[1])||0)});return n.length?n.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function DH(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function NH(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(_H.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[,i,o]=n,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function kH(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function n(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},o=s=>(n(i,s),i);return n(o),{...e,containerQueries:o}}const v5={xs:0,sm:600,md:900,lg:1200,xl:1536},NO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${v5[e]}px)`},zH={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:v5[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jc(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||NO;return t.reduce((c,d,h)=>(c[s.up(s.keys[h])]=n(t[h]),c),{})}if(typeof t=="object"){const s=i.breakpoints||NO;return Object.keys(t).reduce((c,d)=>{if(DH(s.keys,d)){const h=NH(i.containerQueries?i:zH,d);h&&(c[h]=n(t[d],d))}else if(Object.keys(s.values||v5).includes(d)){const h=s.up(d);c[h]=n(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return n(t)}function IH(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,o)=>{const s=e.up(o);return i[s]={},i},{}))||{}}function kO(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}var LH={};function b5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function x5(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=b5(e,n)||i,t&&(o=t(o,i,e)),o}function bi(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:o}=e,s=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,y=b5(h,i)||{};return Jc(c,d,S=>{let T=x5(y,o,S);return S===T&&typeof S=="string"&&(T=x5(y,o,`${t}${S==="default"?"":Je(S)}`,S)),n===!1?T:{[n]:T}})};return s.propTypes=LH.NODE_ENV!=="production"?{[t]:Md}:{},s.filterProps=[t],s}function VH(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Hm={};const BH={m:"margin",p:"padding"},jH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PH=VH(e=>{if(e.length>2)if(zO[e])e=zO[e];else return[e];const[t,n]=e.split(""),i=BH[t],o=jH[n]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),S5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],w5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],UH=[...S5,...w5];function Mv(e,t,n,i){const o=b5(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(Hm.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s);Hm.NODE_ENV!=="production"&&(Number.isInteger(c)?c>o.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${c} > ${o.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=o[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof o=="function"?o:(Hm.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
`)),()=>{})}function B2(e){return Mv(e,"spacing",8,"spacing")}function Rv(e,t){return typeof t=="string"||t==null?t:e(t)}function $H(e,t){return n=>e.reduce((i,o)=>(i[o]=Rv(t,n),i),{})}function HH(e,t,n,i){if(!t.includes(n))return null;const o=PH(n),s=$H(o,i),c=e[n];return Jc(e,c,s)}function IO(e,t){const n=B2(e.theme);return Object.keys(e).map(i=>HH(e,t,i,n)).reduce(Ov,{})}function ci(e){return IO(e,S5)}ci.propTypes=Hm.NODE_ENV!=="production"?S5.reduce((e,t)=>(e[t]=Md,e),{}):{},ci.filterProps=S5;function fi(e){return IO(e,w5)}fi.propTypes=Hm.NODE_ENV!=="production"?w5.reduce((e,t)=>(e[t]=Md,e),{}):{},fi.filterProps=w5,Hm.NODE_ENV!=="production"&&UH.reduce((e,t)=>(e[t]=Md,e),{});var qH={};function E5(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),n=i=>Object.keys(i).reduce((o,s)=>t[s]?Ov(o,t[s](i)):o,{});return n.propTypes=qH.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}var GH={};function Fl(e){return typeof e!="number"?e:`${e}px solid`}function Yl(e,t){return bi({prop:e,themeKey:"borders",transform:t})}const FH=Yl("border",Fl),YH=Yl("borderTop",Fl),XH=Yl("borderRight",Fl),WH=Yl("borderBottom",Fl),KH=Yl("borderLeft",Fl),QH=Yl("borderColor"),ZH=Yl("borderTopColor"),JH=Yl("borderRightColor"),eq=Yl("borderBottomColor"),tq=Yl("borderLeftColor"),nq=Yl("outline",Fl),rq=Yl("outlineColor"),T5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mv(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:Rv(t,i)});return Jc(e,e.borderRadius,n)}return null};T5.propTypes=GH.NODE_ENV!=="production"?{borderRadius:Md}:{},T5.filterProps=["borderRadius"],E5(FH,YH,XH,WH,KH,QH,ZH,JH,eq,tq,T5,nq,rq);var j2={};const A5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mv(e.theme,"spacing",8,"gap"),n=i=>({gap:Rv(t,i)});return Jc(e,e.gap,n)}return null};A5.propTypes=j2.NODE_ENV!=="production"?{gap:Md}:{},A5.filterProps=["gap"];const C5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mv(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:Rv(t,i)});return Jc(e,e.columnGap,n)}return null};C5.propTypes=j2.NODE_ENV!=="production"?{columnGap:Md}:{},C5.filterProps=["columnGap"];const O5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mv(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:Rv(t,i)});return Jc(e,e.rowGap,n)}return null};O5.propTypes=j2.NODE_ENV!=="production"?{rowGap:Md}:{},O5.filterProps=["rowGap"];const iq=bi({prop:"gridColumn"}),aq=bi({prop:"gridRow"}),oq=bi({prop:"gridAutoFlow"}),lq=bi({prop:"gridAutoColumns"}),sq=bi({prop:"gridAutoRows"}),uq=bi({prop:"gridTemplateColumns"}),cq=bi({prop:"gridTemplateRows"}),fq=bi({prop:"gridTemplateAreas"}),dq=bi({prop:"gridArea"});E5(A5,C5,O5,iq,aq,oq,lq,sq,uq,cq,fq,dq);function qm(e,t){return t==="grey"?t:e}const hq=bi({prop:"color",themeKey:"palette",transform:qm}),pq=bi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qm}),mq=bi({prop:"backgroundColor",themeKey:"palette",transform:qm});E5(hq,pq,mq);function yl(e){return e<=1&&e!==0?`${e*100}%`:e}const gq=bi({prop:"width",transform:yl}),P2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,c,d,h;const i=((c=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[n])||v5[n];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:yl(n)}};return Jc(e,e.maxWidth,t)}return null};P2.filterProps=["maxWidth"];const yq=bi({prop:"minWidth",transform:yl}),vq=bi({prop:"height",transform:yl}),bq=bi({prop:"maxHeight",transform:yl}),xq=bi({prop:"minHeight",transform:yl});bi({prop:"size",cssProperty:"width",transform:yl}),bi({prop:"size",cssProperty:"height",transform:yl});const Sq=bi({prop:"boxSizing"});E5(gq,P2,yq,vq,bq,xq,Sq);const _v={border:{themeKey:"borders",transform:Fl},borderTop:{themeKey:"borders",transform:Fl},borderRight:{themeKey:"borders",transform:Fl},borderBottom:{themeKey:"borders",transform:Fl},borderLeft:{themeKey:"borders",transform:Fl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:T5},color:{themeKey:"palette",transform:qm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qm},backgroundColor:{themeKey:"palette",transform:qm},p:{style:fi},pt:{style:fi},pr:{style:fi},pb:{style:fi},pl:{style:fi},px:{style:fi},py:{style:fi},padding:{style:fi},paddingTop:{style:fi},paddingRight:{style:fi},paddingBottom:{style:fi},paddingLeft:{style:fi},paddingX:{style:fi},paddingY:{style:fi},paddingInline:{style:fi},paddingInlineStart:{style:fi},paddingInlineEnd:{style:fi},paddingBlock:{style:fi},paddingBlockStart:{style:fi},paddingBlockEnd:{style:fi},m:{style:ci},mt:{style:ci},mr:{style:ci},mb:{style:ci},ml:{style:ci},mx:{style:ci},my:{style:ci},margin:{style:ci},marginTop:{style:ci},marginRight:{style:ci},marginBottom:{style:ci},marginLeft:{style:ci},marginX:{style:ci},marginY:{style:ci},marginInline:{style:ci},marginInlineStart:{style:ci},marginInlineEnd:{style:ci},marginBlock:{style:ci},marginBlockStart:{style:ci},marginBlockEnd:{style:ci},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:A5},rowGap:{style:O5},columnGap:{style:C5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yl},maxWidth:{style:P2},minWidth:{transform:yl},height:{transform:yl},maxHeight:{transform:yl},minHeight:{transform:yl},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 wq(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function Eq(e,t){return typeof e=="function"?e(t):e}function Tq(){function e(n,i,o,s){const c={[n]:i,theme:o},d=s[n];if(!d)return{[n]:i};const{cssProperty:h=n,themeKey:y,transform:v,style:S}=d;if(i==null)return null;if(y==="typography"&&i==="inherit")return{[n]:i};const T=b5(o,y)||{};return S?S(c):Jc(c,i,C=>{let R=x5(T,v,C);return C===R&&typeof C=="string"&&(R=x5(T,v,`${n}${C==="default"?"":Je(C)}`,C)),h===!1?R:{[h]:R}})}function t(n){const{sx:i,theme:o={},nested:s}=n||{};if(!i)return null;const c=o.unstable_sxConfig??_v;function d(h){let y=h;if(typeof h=="function")y=h(o);else if(typeof h!="object")return h;if(!y)return null;const v=IH(o.breakpoints),S=Object.keys(v);let T=v;return Object.keys(y).forEach(E=>{const C=Eq(y[E],o);if(C!=null)if(typeof C=="object")if(c[E])T=Ov(T,e(E,C,o,c));else{const R=Jc({theme:o},C,_=>({[E]:_}));wq(R,C)?T[E]=t({sx:C,theme:o,nested:!0}):T=Ov(T,R)}else T=Ov(T,e(E,C,o,c))}),!s&&o.modularCssLayers?{"@layer sx":DO(o,kO(S,T))}:DO(o,kO(S,T))}return Array.isArray(i)?i.map(d):d(i)}return t}const dh=Tq();dh.filterProps=["sx"];const Aq=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??_v;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function U2(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=Aq(n);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Xu(d)?{...i,...d}:i}:s={...i,...t},{...o,sx:s}}function M5(){return M5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},M5.apply(null,arguments)}function Cq(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 Oq(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 Mq=(function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},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(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Oq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Cq(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ua="-ms-",R5="-moz-",Zn="-webkit-",LO="comm",$2="rule",H2="decl",Rq="@import",VO="@keyframes",_q="@layer",Dq=Math.abs,_5=String.fromCharCode,Nq=Object.assign;function kq(e,t){return Sa(e,0)^45?(((t<<2^Sa(e,0))<<2^Sa(e,1))<<2^Sa(e,2))<<2^Sa(e,3):0}function BO(e){return e.trim()}function zq(e,t){return(e=t.exec(e))?e[0]:e}function Jn(e,t,n){return e.replace(t,n)}function q2(e,t){return e.indexOf(t)}function Sa(e,t){return e.charCodeAt(t)|0}function Dv(e,t,n){return e.slice(t,n)}function Wu(e){return e.length}function G2(e){return e.length}function D5(e,t){return t.push(e),e}function Iq(e,t){return e.map(t).join("")}var N5=1,Gm=1,jO=0,Po=0,Mi=0,Fm="";function k5(e,t,n,i,o,s,c){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:N5,column:Gm,length:c,return:""}}function Nv(e,t){return Nq(k5("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lq(){return Mi}function Vq(){return Mi=Po>0?Sa(Fm,--Po):0,Gm--,Mi===10&&(Gm=1,N5--),Mi}function vl(){return Mi=Po<jO?Sa(Fm,Po++):0,Gm++,Mi===10&&(Gm=1,N5++),Mi}function Ku(){return Sa(Fm,Po)}function z5(){return Po}function kv(e,t){return Dv(Fm,e,t)}function zv(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 PO(e){return N5=Gm=1,jO=Wu(Fm=e),Po=0,[]}function UO(e){return Fm="",e}function I5(e){return BO(kv(Po-1,F2(e===91?e+2:e===40?e+1:e)))}function Bq(e){for(;(Mi=Ku())&&Mi<33;)vl();return zv(e)>2||zv(Mi)>3?"":" "}function jq(e,t){for(;--t&&vl()&&!(Mi<48||Mi>102||Mi>57&&Mi<65||Mi>70&&Mi<97););return kv(e,z5()+(t<6&&Ku()==32&&vl()==32))}function F2(e){for(;vl();)switch(Mi){case e:return Po;case 34:case 39:e!==34&&e!==39&&F2(Mi);break;case 40:e===41&&F2(e);break;case 92:vl();break}return Po}function Pq(e,t){for(;vl()&&e+Mi!==57;)if(e+Mi===84&&Ku()===47)break;return"/*"+kv(t,Po-1)+"*"+_5(e===47?e:vl())}function Uq(e){for(;!zv(Ku());)vl();return kv(e,Po)}function $q(e){return UO(L5("",null,null,null,[""],e=PO(e),0,[0],e))}function L5(e,t,n,i,o,s,c,d,h){for(var y=0,v=0,S=c,T=0,E=0,C=0,R=1,_=1,N=1,z=0,B="",V=o,L=s,U=i,X=B;_;)switch(C=z,z=vl()){case 40:if(C!=108&&Sa(X,S-1)==58){q2(X+=Jn(I5(z),"&","&\f"),"&\f")!=-1&&(N=-1);break}case 34:case 39:case 91:X+=I5(z);break;case 9:case 10:case 13:case 32:X+=Bq(C);break;case 92:X+=jq(z5()-1,7);continue;case 47:switch(Ku()){case 42:case 47:D5(Hq(Pq(vl(),z5()),t,n),h);break;default:X+="/"}break;case 123*R:d[y++]=Wu(X)*N;case 125*R:case 59:case 0:switch(z){case 0:case 125:_=0;case 59+v:N==-1&&(X=Jn(X,/\f/g,"")),E>0&&Wu(X)-S&&D5(E>32?HO(X+";",i,n,S-1):HO(Jn(X," ","")+";",i,n,S-2),h);break;case 59:X+=";";default:if(D5(U=$O(X,t,n,y,v,o,d,B,V=[],L=[],S),s),z===123)if(v===0)L5(X,t,U,U,V,s,S,d,L);else switch(T===99&&Sa(X,3)===110?100:T){case 100:case 108:case 109:case 115:L5(e,U,U,i&&D5($O(e,U,U,0,0,o,d,B,o,V=[],S),L),o,L,S,d,i?V:L);break;default:L5(X,U,U,U,[""],L,0,d,L)}}y=v=E=0,R=N=1,B=X="",S=c;break;case 58:S=1+Wu(X),E=C;default:if(R<1){if(z==123)--R;else if(z==125&&R++==0&&Vq()==125)continue}switch(X+=_5(z),z*R){case 38:N=v>0?1:(X+="\f",-1);break;case 44:d[y++]=(Wu(X)-1)*N,N=1;break;case 64:Ku()===45&&(X+=I5(vl())),T=Ku(),v=S=Wu(B=X+=Uq(z5())),z++;break;case 45:C===45&&Wu(X)==2&&(R=0)}}return s}function $O(e,t,n,i,o,s,c,d,h,y,v){for(var S=o-1,T=o===0?s:[""],E=G2(T),C=0,R=0,_=0;C<i;++C)for(var N=0,z=Dv(e,S+1,S=Dq(R=c[C])),B=e;N<E;++N)(B=BO(R>0?T[N]+" "+z:Jn(z,/&\f/g,T[N])))&&(h[_++]=B);return k5(e,t,n,o===0?$2:d,h,y,v)}function Hq(e,t,n){return k5(e,t,n,LO,_5(Lq()),Dv(e,2,-2),0)}function HO(e,t,n,i){return k5(e,t,n,H2,Dv(e,0,i),Dv(e,i+1,-1),i)}function Ym(e,t){for(var n="",i=G2(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function qq(e,t,n,i){switch(e.type){case _q:if(e.children.length)break;case Rq:case H2:return e.return=e.return||e.value;case LO:return"";case VO:return e.return=e.value+"{"+Ym(e.children,i)+"}";case $2:e.value=e.props.join(",")}return Wu(n=Ym(e.children,i))?e.return=e.value+"{"+n+"}":""}function Gq(e){var t=G2(e);return function(n,i,o,s){for(var c="",d=0;d<t;d++)c+=e[d](n,i,o,s)||"";return c}}function Fq(e){return function(t){t.root||(t=t.return)&&e(t)}}function qO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yq=function(t,n,i){for(var o=0,s=0;o=s,s=Ku(),o===38&&s===12&&(n[i]=1),!zv(s);)vl();return kv(t,Po)},Xq=function(t,n){var i=-1,o=44;do switch(zv(o)){case 0:o===38&&Ku()===12&&(n[i]=1),t[i]+=Yq(Po-1,n,i);break;case 2:t[i]+=I5(o);break;case 4:if(o===44){t[++i]=Ku()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=_5(o)}while(o=vl());return t},Wq=function(t,n){return UO(Xq(PO(t),n))},GO=new WeakMap,Kq=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!GO.get(i))&&!o){GO.set(t,!0);for(var s=[],c=Wq(n,s),d=i.props,h=0,y=0;h<c.length;h++)for(var v=0;v<d.length;v++,y++)t.props[y]=s[h]?c[h].replace(/&\f/g,d[v]):d[v]+" "+c[h]}}},Qq=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function FO(e,t){switch(kq(e,t)){case 5103:return Zn+"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 Zn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Zn+e+R5+e+Ua+e+e;case 6828:case 4268:return Zn+e+Ua+e+e;case 6165:return Zn+e+Ua+"flex-"+e+e;case 5187:return Zn+e+Jn(e,/(\w+).+(:[^]+)/,Zn+"box-$1$2"+Ua+"flex-$1$2")+e;case 5443:return Zn+e+Ua+"flex-item-"+Jn(e,/flex-|-self/,"")+e;case 4675:return Zn+e+Ua+"flex-line-pack"+Jn(e,/align-content|flex-|-self/,"")+e;case 5548:return Zn+e+Ua+Jn(e,"shrink","negative")+e;case 5292:return Zn+e+Ua+Jn(e,"basis","preferred-size")+e;case 6060:return Zn+"box-"+Jn(e,"-grow","")+Zn+e+Ua+Jn(e,"grow","positive")+e;case 4554:return Zn+Jn(e,/([^-])(transform)/g,"$1"+Zn+"$2")+e;case 6187:return Jn(Jn(Jn(e,/(zoom-|grab)/,Zn+"$1"),/(image-set)/,Zn+"$1"),e,"")+e;case 5495:case 3959:return Jn(e,/(image-set\([^]*)/,Zn+"$1$`$1");case 4968:return Jn(Jn(e,/(.+:)(flex-)?(.*)/,Zn+"box-pack:$3"+Ua+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Zn+e+e;case 4095:case 3583:case 4068:case 2532:return Jn(e,/(.+)-inline(.+)/,Zn+"$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(Wu(e)-1-t>6)switch(Sa(e,t+1)){case 109:if(Sa(e,t+4)!==45)break;case 102:return Jn(e,/(.+:)(.+)-([^]+)/,"$1"+Zn+"$2-$3$1"+R5+(Sa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~q2(e,"stretch")?FO(Jn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sa(e,t+1)!==115)break;case 6444:switch(Sa(e,Wu(e)-3-(~q2(e,"!important")&&10))){case 107:return Jn(e,":",":"+Zn)+e;case 101:return Jn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Zn+(Sa(e,14)===45?"inline-":"")+"box$3$1"+Zn+"$2$3$1"+Ua+"$2box$3")+e}break;case 5936:switch(Sa(e,t+11)){case 114:return Zn+e+Ua+Jn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Zn+e+Ua+Jn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Zn+e+Ua+Jn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Zn+e+Ua+e+e}return e}var Zq=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case H2:t.return=FO(t.value,t.length);break;case VO:return Ym([Nv(t,{value:Jn(t.value,"@","@"+Zn)})],o);case $2:if(t.length)return Iq(t.props,function(s){switch(zq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ym([Nv(t,{props:[Jn(s,/:(read-\w+)/,":"+R5+"$1")]})],o);case"::placeholder":return Ym([Nv(t,{props:[Jn(s,/:(plac\w+)/,":"+Zn+"input-$1")]}),Nv(t,{props:[Jn(s,/:(plac\w+)/,":"+R5+"$1")]}),Nv(t,{props:[Jn(s,/:(plac\w+)/,Ua+"input-$1")]})],o)}return""})}},Jq=[Zq],eG=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(R){var _=R.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var o=t.stylisPlugins||Jq,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(R){for(var _=R.getAttribute("data-emotion").split(" "),N=1;N<_.length;N++)s[_[N]]=!0;d.push(R)});var h,y=[Kq,Qq];{var v,S=[qq,Fq(function(R){v.insert(R)})],T=Gq(y.concat(o,S)),E=function(_){return Ym($q(_),T)};h=function(_,N,z,B){v=z,E(_?_+"{"+N.styles+"}":N.styles),B&&(C.inserted[N.name]=!0)}}var C={key:n,sheet:new Mq({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return C.sheet.hydrate(d),C},V5={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 YO;function tG(){if(YO)return sr;YO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function B(L){if(typeof L=="object"&&L!==null){var U=L.$$typeof;switch(U){case t:switch(L=L.type,L){case h:case y:case i:case s:case o:case S:return L;default:switch(L=L&&L.$$typeof,L){case d:case v:case C:case E:case c:return L;default:return U}}case n:return U}}}function V(L){return B(L)===y}return sr.AsyncMode=h,sr.ConcurrentMode=y,sr.ContextConsumer=d,sr.ContextProvider=c,sr.Element=t,sr.ForwardRef=v,sr.Fragment=i,sr.Lazy=C,sr.Memo=E,sr.Portal=n,sr.Profiler=s,sr.StrictMode=o,sr.Suspense=S,sr.isAsyncMode=function(L){return V(L)||B(L)===h},sr.isConcurrentMode=V,sr.isContextConsumer=function(L){return B(L)===d},sr.isContextProvider=function(L){return B(L)===c},sr.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},sr.isForwardRef=function(L){return B(L)===v},sr.isFragment=function(L){return B(L)===i},sr.isLazy=function(L){return B(L)===C},sr.isMemo=function(L){return B(L)===E},sr.isPortal=function(L){return B(L)===n},sr.isProfiler=function(L){return B(L)===s},sr.isStrictMode=function(L){return B(L)===o},sr.isSuspense=function(L){return B(L)===S},sr.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===y||L===s||L===o||L===S||L===T||typeof L=="object"&&L!==null&&(L.$$typeof===C||L.$$typeof===E||L.$$typeof===c||L.$$typeof===d||L.$$typeof===v||L.$$typeof===_||L.$$typeof===N||L.$$typeof===z||L.$$typeof===R)},sr.typeOf=B,sr}var ur={},XO;function nG(){if(XO)return ur;XO=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,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=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,S=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,E=t?Symbol.for("react.suspense_list"):60120,C=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,N=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function V(Re){return typeof Re=="string"||typeof Re=="function"||Re===o||Re===v||Re===c||Re===s||Re===T||Re===E||typeof Re=="object"&&Re!==null&&(Re.$$typeof===R||Re.$$typeof===C||Re.$$typeof===d||Re.$$typeof===h||Re.$$typeof===S||Re.$$typeof===N||Re.$$typeof===z||Re.$$typeof===B||Re.$$typeof===_)}function L(Re){if(typeof Re=="object"&&Re!==null){var st=Re.$$typeof;switch(st){case n:var Mt=Re.type;switch(Mt){case y:case v:case o:case c:case s:case T:return Mt;default:var Qt=Mt&&Mt.$$typeof;switch(Qt){case h:case S:case R:case C:case d:return Qt;default:return st}}case i:return st}}}var U=y,X=v,se=h,ce=d,ie=n,ue=S,$=o,le=R,K=C,oe=i,Z=c,ae=s,he=T,Ee=!1;function te(Re){return Ee||(Ee=!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)||L(Re)===y}function F(Re){return L(Re)===v}function ee(Re){return L(Re)===h}function Y(Re){return L(Re)===d}function Me(Re){return typeof Re=="object"&&Re!==null&&Re.$$typeof===n}function Se(Re){return L(Re)===S}function _e(Re){return L(Re)===o}function je(Re){return L(Re)===R}function He(Re){return L(Re)===C}function Xe(Re){return L(Re)===i}function Ke(Re){return L(Re)===c}function et(Re){return L(Re)===s}function Be(Re){return L(Re)===T}ur.AsyncMode=U,ur.ConcurrentMode=X,ur.ContextConsumer=se,ur.ContextProvider=ce,ur.Element=ie,ur.ForwardRef=ue,ur.Fragment=$,ur.Lazy=le,ur.Memo=K,ur.Portal=oe,ur.Profiler=Z,ur.StrictMode=ae,ur.Suspense=he,ur.isAsyncMode=te,ur.isConcurrentMode=F,ur.isContextConsumer=ee,ur.isContextProvider=Y,ur.isElement=Me,ur.isForwardRef=Se,ur.isFragment=_e,ur.isLazy=je,ur.isMemo=He,ur.isPortal=Xe,ur.isProfiler=Ke,ur.isStrictMode=et,ur.isSuspense=Be,ur.isValidElementType=V,ur.typeOf=L})(),ur}var WO;function rG(){if(WO)return V5.exports;WO=1;var e={};return e.NODE_ENV==="production"?V5.exports=tG():V5.exports=nG(),V5.exports}var Y2,KO;function iG(){if(KO)return Y2;KO=1;var e=rG(),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},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c(C){return e.isMemo(C)?o:s[C.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,T=Object.prototype;function E(C,R,_){if(typeof R!="string"){if(T){var N=S(R);N&&N!==T&&E(C,N,_)}var z=h(R);y&&(z=z.concat(y(R)));for(var B=c(C),V=c(R),L=0;L<z.length;++L){var U=z[L];if(!n[U]&&!(_&&_[U])&&!(V&&V[U])&&!(B&&B[U])){var X=v(R,U);try{d(C,U,X)}catch{}}}}return C}return Y2=E,Y2}iG();var aG=!0;function QO(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var X2=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||aG===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},W2=function(t,n,i){X2(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function oG(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&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(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lG={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},sG=/[A-Z]|^ms/g,uG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZO=function(t){return t.charCodeAt(1)===45},JO=function(t){return t!=null&&typeof t!="boolean"},K2=qO(function(e){return ZO(e)?e:e.replace(sG,"-$&").toLowerCase()}),eM=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(uG,function(i,o,s){return Qu={name:o,styles:s,next:Qu},o})}return lG[t]!==1&&!ZO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Iv(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Qu={name:o.name,styles:o.styles,next:Qu},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Qu={name:c.name,styles:c.styles,next:Qu},c=c.next;var d=s.styles+";";return d}return cG(e,t,n)}case"function":{if(e!==void 0){var h=Qu,y=n(e);return Qu=h,Iv(e,t,y)}break}}var v=n;if(t==null)return v;var S=t[v];return S!==void 0?S:v}function cG(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Iv(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":JO(d)&&(i+=K2(s)+":"+eM(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)JO(c[h])&&(i+=K2(s)+":"+eM(s,c[h])+";");else{var y=Iv(e,t,c);switch(s){case"animation":case"animationName":{i+=K2(s)+":"+y+";";break}default:i+=s+"{"+y+"}"}}}return i}var tM=/label:\s*([^\s;{]+)\s*(;|$)/g,Qu;function Lv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";Qu=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=Iv(n,t,s);else{var c=s;o+=c[0]}for(var d=1;d<e.length;d++)if(o+=Iv(n,t,e[d]),i){var h=s;o+=h[d]}tM.lastIndex=0;for(var y="",v;(v=tM.exec(o))!==null;)y+="-"+v[1];var S=oG(o)+y;return{name:S,styles:o,next:Qu}}var fG=function(t){return t()},nM=LE.useInsertionEffect?LE.useInsertionEffect:!1,rM=nM||fG,iM=nM||G.useLayoutEffect,aM=G.createContext(typeof HTMLElement<"u"?eG({key:"css"}):null);aM.Provider;var Q2=function(t){return G.forwardRef(function(n,i){var o=G.useContext(aM);return t(n,o,i)})},B5=G.createContext({}),Z2={}.hasOwnProperty,J2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dG=function(t,n){var i={};for(var o in n)Z2.call(n,o)&&(i[o]=n[o]);return i[J2]=t,i},hG=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return X2(n,i,o),rM(function(){return W2(n,i,o)}),null},pG=Q2(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[J2],s=[i],c="";typeof e.className=="string"?c=QO(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=Lv(s,void 0,G.useContext(B5));c+=t.key+"-"+d.name;var h={};for(var y in e)Z2.call(e,y)&&y!=="css"&&y!==J2&&(h[y]=e[y]);return h.className=c,n&&(h.ref=n),G.createElement(G.Fragment,null,G.createElement(hG,{cache:t,serialized:d,isStringTag:typeof o=="string"}),G.createElement(o,h))}),mG=pG,oM=function(t,n){var i=arguments;if(n==null||!Z2.call(n,"css"))return G.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=mG,s[1]=dG(t,n);for(var c=2;c<o;c++)s[c]=i[c];return G.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(oM||(oM={}));var gG=Q2(function(e,t){var n=e.styles,i=Lv([n],void 0,G.useContext(B5)),o=G.useRef();return iM(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),c.hydrate([h])),o.current=[c,d],function(){c.flush()}},[t]),iM(function(){var s=o.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&W2(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function e7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lv(t)}function Vv(){var e=e7.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 yG=/^((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)-.*))$/,vG=qO(function(e){return yG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),bG=vG,xG=function(t){return t!=="theme"},lM=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?bG:xG},sM=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},SG=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return X2(n,i,o),rM(function(){return W2(n,i,o)}),null},wG=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,c;n!==void 0&&(s=n.label,c=n.target);var d=sM(t,n,i),h=d||lM(o),y=!h("as");return function(){var v=arguments,S=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&S.push("label:"+s+";"),v[0]==null||v[0].raw===void 0)S.push.apply(S,v);else{var T=v[0];S.push(T[0]);for(var E=v.length,C=1;C<E;C++)S.push(v[C],T[C])}var R=Q2(function(_,N,z){var B=y&&_.as||o,V="",L=[],U=_;if(_.theme==null){U={};for(var X in _)U[X]=_[X];U.theme=G.useContext(B5)}typeof _.className=="string"?V=QO(N.registered,L,_.className):_.className!=null&&(V=_.className+" ");var se=Lv(S.concat(L),N.registered,U);V+=N.key+"-"+se.name,c!==void 0&&(V+=" "+c);var ce=y&&d===void 0?lM(B):h,ie={};for(var ue in _)y&&ue==="as"||ce(ue)&&(ie[ue]=_[ue]);return ie.className=V,z&&(ie.ref=z),G.createElement(G.Fragment,null,G.createElement(SG,{cache:N,serialized:se,isStringTag:typeof B=="string"}),G.createElement(B,ie))});return R.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",R.defaultProps=t.defaultProps,R.__emotion_real=R,R.__emotion_base=o,R.__emotion_styles=S,R.__emotion_forwardProp=d,Object.defineProperty(R,"toString",{value:function(){return"."+c}}),R.withComponent=function(_,N){var z=e(_,M5({},n,N,{shouldForwardProp:sM(R,N,!0)}));return z.apply(void 0,S)},R}},EG=["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"],t7=wG.bind(null);EG.forEach(function(e){t7[e]=t7(e)});var TG={};function AG(e){return e==null||Object.keys(e).length===0}function uM(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?o=>t(AG(o)?n:o):t;return H.jsx(gG,{styles:i})}TG.NODE_ENV!=="production"&&(uM.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});var CG={};function cM(e,t){const n=t7(e,t);return CG.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):i.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...i)}:n}function OG(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fM=[];function Rd(e){return fM[0]=e,Lv(fM)}const MG=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function RG(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,s=MG(t),c=Object.keys(s);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)-i/100}${n})`}function y(T,E){const C=c.indexOf(E);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n}) and (max-width:${(C!==-1&&typeof t[c[C]]=="number"?t[c[C]]:E)-i/100}${n})`}function v(T){return c.indexOf(T)+1<c.length?y(T,c[c.indexOf(T)+1]):d(T)}function S(T){const E=c.indexOf(T);return E===0?d(c[1]):E===c.length-1?h(c[E]):y(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:h,between:y,only:v,not:S,unit:n,...o}}const _G={borderRadius:4};var DG={};function dM(e=8,t=B2({spacing:e})){if(e.mui)return e;const n=(...i)=>(DG.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" "));return n.mui=!0,n}function NG(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function j5(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:s={},...c}=e,d=RG(n),h=dM(o);let y=Pa({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{..._G,...s}},c);return y=kH(y),y.applyStyles=NG,y=t.reduce((v,S)=>Pa(v,S),y),y.unstable_sxConfig={..._v,...c==null?void 0:c.unstable_sxConfig},y.unstable_sx=function(S){return dh({sx:S,theme:this})},y}function kG(e){return Object.keys(e).length===0}function zG(e=null){const t=G.useContext(B5);return!t||kG(t)?e:t}const IG=j5();function Bv(e=IG){return zG(e)}var LG={};function n7(e){const t=Rd(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hM({styles:e,themeId:t,defaultTheme:n={}}){const i=Bv(n),o=t&&i[t]||i;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(c=>n7(typeof c=="function"?c(o):c)):s=n7(s)),H.jsx(uM,{styles:s})}LG.NODE_ENV!=="production"&&(hM.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool]),themeId:p.string});function VG(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,s=cM("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(dh);return G.forwardRef(function(h,y){const v=Bv(n),{className:S,component:T="div",...E}=U2(h);return H.jsx(s,{as:T,ref:y,className:St(S,o?o(i):i),theme:t&&v[t]||v,...E})})}const BG={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 Wt(e,t,n="Mui"){const i=BG[t];return i?`${n}-${i}`:`${hO.generate(e)}-${t}`}function Kt(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Wt(e,o,n)}),i}function pM(e,t=""){return e.displayName||e.name||t}function mM(e,t,n){const i=pM(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function jG(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pM(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fh.ForwardRef:return mM(e,e.render,"ForwardRef");case fh.Memo:return mM(e,e.type,"memo");default:return}}}function gM(e){const{variants:t,...n}=e,i={variants:t,style:Rd(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Rd(o.style))}),i}var yM={};const PG=j5();function r7(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hh(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function UG(e){return e?(t,n)=>n[e]:null}function $G(e,t,n){e.theme=GG(e.theme)?n:e.theme[t]||e.theme}function P5(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>P5(e,o,n));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=n?hh(i.style,n):i.style;else{const{variants:s,...c}=i;o=n?hh(Rd(c),n):c}return vM(e,i.variants,[o],n)}return i!=null&&i.isProcessed?n?hh(Rd(i.style),n):i.style:n?hh(Rd(i),n):i}function vM(e,t,n=[],i=void 0){var s;let o;e:for(let c=0;c<t.length;c+=1){const d=t[c];if(typeof d.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!d.props(o))continue}else for(const h in d.props)if(e[h]!==d.props[h]&&((s=e.ownerState)==null?void 0:s[h])!==d.props[h])continue e;typeof d.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i?hh(Rd(d.style(o)),i):d.style(o))):n.push(i?hh(Rd(d.style),i):d.style)}return n}function bM(e={}){const{themeId:t,defaultTheme:n=PG,rootShouldForwardProp:i=r7,slotShouldForwardProp:o=r7}=e;function s(d){$G(d,t,n)}return(d,h={})=>{OG(d,U=>U.filter(X=>X!==dh));const{name:y,slot:v,skipVariantsResolver:S,skipSx:T,overridesResolver:E=UG(xM(v)),...C}=h,R=y&&y.startsWith("Mui")||v?"components":"custom",_=S!==void 0?S:v&&v!=="Root"&&v!=="root"||!1,N=T||!1;let z=r7;v==="Root"||v==="root"?z=i:v?z=o:FG(d)&&(z=void 0);const B=cM(d,{shouldForwardProp:z,label:qG(y,v),...C}),V=U=>{if(U.__emotion_real===U)return U;if(typeof U=="function")return function(se){return P5(se,U,se.theme.modularCssLayers?R:void 0)};if(Xu(U)){const X=gM(U);return function(ce){return X.variants?P5(ce,X,ce.theme.modularCssLayers?R:void 0):ce.theme.modularCssLayers?hh(X.style,R):X.style}}return U},L=(...U)=>{const X=[],se=U.map(V),ce=[];if(X.push(s),y&&E&&ce.push(function(le){var ae,he;const oe=(he=(ae=le.theme.components)==null?void 0:ae[y])==null?void 0:he.styleOverrides;if(!oe)return null;const Z={};for(const Ee in oe)Z[Ee]=P5(le,oe[Ee],le.theme.modularCssLayers?"theme":void 0);return E(le,Z)}),y&&!_&&ce.push(function(le){var Z,ae;const K=le.theme,oe=(ae=(Z=K==null?void 0:K.components)==null?void 0:Z[y])==null?void 0:ae.variants;return oe?vM(le,oe,[],le.theme.modularCssLayers?"theme":void 0):null}),N||ce.push(dh),Array.isArray(se[0])){const $=se.shift(),le=new Array(X.length).fill(""),K=new Array(ce.length).fill("");let oe;oe=[...le,...$,...K],oe.raw=[...le,...$.raw,...K],X.unshift(oe)}const ie=[...X,...se,...ce],ue=B(...ie);return d.muiName&&(ue.muiName=d.muiName),yM.NODE_ENV!=="production"&&(ue.displayName=HG(y,v,d)),ue};return B.withConfig&&(L.withConfig=B.withConfig),L}}function HG(e,t,n){return e?`${e}${Je(t||"")}`:`Styled(${jG(n)})`}function qG(e,t){let n;return yM.NODE_ENV!=="production"&&e&&(n=`${e}-${xM(t||"Root")}`),n}function GG(e){for(const t in e)return!1;return!0}function FG(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const YG=bM();function jv(e,t,n=!1){const i={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=t[s];if(!d)i[s]=c||{};else if(!c)i[s]=d;else{i[s]={...d};for(const h in c)if(Object.prototype.hasOwnProperty.call(c,h)){const y=h;i[s][y]=jv(c[y],d[y],n)}}}else s==="className"&&n&&t.className?i.className=St(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[s]===void 0&&(i[s]=e[s])}return i}function XG(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:jv(t.components[n].defaultProps,i)}function WG({props:e,name:t,defaultTheme:n,themeId:i}){let o=Bv(n);return i&&(o=o[i]||o),XG({theme:o,name:t,props:e})}const Xl=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Xm(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var _d={};function i7(e,t=0,n=1){return _d.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Xm(e,t,n)}function KG(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(i=>i+i)),_d.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((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Dd(e){if(e.type)return e;if(e.charAt(0)==="#")return Dd(KG(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_d.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Zc(9,e));let i=e.substring(t+1,e.length-1),o;if(n==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(_d.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Zc(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:n,values:i,colorSpace:o}}const QG=e=>{const t=Dd(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Pv=(e,t)=>{try{return QG(e)}catch{return t&&_d.NODE_ENV!=="production"&&console.warn(t),e}};function U5(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function SM(e){e=Dd(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),c=(y,v=(y+n/30)%12)=>o-s*Math.max(Math.min(v-3,9-v,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),U5({type:d,values:h})}function a7(e){e=Dd(e);let t=e.type==="hsl"||e.type==="hsla"?Dd(SM(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 wM(e,t){const n=a7(e),i=a7(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function $5(e,t){return e=Dd(e),t=i7(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,U5(e)}function ph(e,t,n){try{return $5(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function H5(e,t){if(e=Dd(e),t=i7(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 U5(e)}function mr(e,t,n){try{return H5(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function q5(e,t){if(e=Dd(e),t=i7(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 U5(e)}function gr(e,t,n){try{return q5(e,t)}catch{return n&&_d.NODE_ENV!=="production"&&console.warn(n),e}}function ZG(e,t=.15){return a7(e)>.5?H5(e,t):q5(e,t)}function G5(e,t,n){try{return ZG(e,t)}catch{return e}}var JG={};const eF="exact-prop: ​";function EM(e){return JG.NODE_ENV==="production"?e:{...e,[eF]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}var tF={};const nF=G.createContext();tF.NODE_ENV!=="production"&&(p.node,p.bool);const F5=()=>G.useContext(nF)??!1;var rF={};const iF=G.createContext(void 0);rF.NODE_ENV!=="production"&&(p.node,p.object);function aF(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?jv(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?jv(o,i,t.components.mergeClassNameAndStyle):i}function oF({props:e,name:t}){const n=G.useContext(iF);return aF({props:e,name:t,theme:{components:n}})}let TM=0;function lF(e){const[t,n]=G.useState(e),i=e||t;return G.useEffect(()=>{t==null&&(TM+=1,n(`mui-${TM}`))},[t]),i}const AM={...LE}.useId;function mh(e){if(AM!==void 0){const t=AM();return e??t}return lF(e)}const CM={theme:void 0};function sF(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(CM.theme=o.theme,s=gM(e(CM)),t=s,n=o.theme),s}}function uF(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const OM=(e,t,n,i=[])=>{let o=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},cF=(e,t,n)=>{function i(o,s=[],c=[]){Object.entries(o).forEach(([d,h])=>{(!n||n&&!n([...s,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...s,d],Array.isArray(h)?[...c,d]:c):t([...s,d],h,c))})}i(e)},fF=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function o7(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},s={},c={};return cF(e,(d,h,y)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const v=`--${n?`${n}-`:""}${d.join("-")}`,S=fF(d,h);Object.assign(o,{[v]:S}),OM(s,d,`var(${v})`,y),OM(c,d,`var(${v}, ${S})`,y)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function dF(e,t={}){const{getSelector:n=N,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:c={},components:d,defaultColorScheme:h="light",...y}=e,{vars:v,css:S,varsWithDefaults:T}=o7(y,t);let E=T;const C={},{[h]:R,..._}=c;if(Object.entries(_||{}).forEach(([V,L])=>{const{vars:U,css:X,varsWithDefaults:se}=o7(L,t);E=Pa(E,se),C[V]={css:X,vars:U}}),R){const{css:V,vars:L,varsWithDefaults:U}=o7(R,t);E=Pa(E,U),C[h]={css:V,vars:L}}function N(V,L){var X,se;let U=o;if(o==="class"&&(U=".%s"),o==="data"&&(U="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(U=`[${o}="%s"]`),V){if(U==="media")return e.defaultColorScheme===V?":root":{[`@media (prefers-color-scheme: ${((se=(X=c[V])==null?void 0:X.palette)==null?void 0:se.mode)||V})`]:{":root":L}};if(U)return e.defaultColorScheme===V?`:root, ${U.replace("%s",String(V))}`:U.replace("%s",String(V))}return":root"}return{vars:E,generateThemeVars:()=>{let V={...v};return Object.entries(C).forEach(([,{vars:L}])=>{V=Pa(V,L)}),V},generateStyleSheets:()=>{var ce,ie;const V=[],L=e.defaultColorScheme||"light";function U(ue,$){Object.keys($).length&&V.push(typeof ue=="string"?{[ue]:{...$}}:ue)}U(n(void 0,{...S}),S);const{[L]:X,...se}=C;if(X){const{css:ue}=X,$=(ie=(ce=c[L])==null?void 0:ce.palette)==null?void 0:ie.mode,le=!i&&$?{colorScheme:$,...ue}:{...ue};U(n(L,{...le}),le)}return Object.entries(se).forEach(([ue,{css:$}])=>{var oe,Z;const le=(Z=(oe=c[ue])==null?void 0:oe.palette)==null?void 0:Z.mode,K=!i&&le?{colorScheme:le,...$}:{...$};U(n(ue,{...K}),K)}),s&&V.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)"}}),V}}}var hF={};function pF(e){return function(n){return e==="media"?(hF.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 Wm(e,t){var n,i,o;return G.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:o.muiName))!==-1}const mF=(e,t)=>e.filter(n=>t.includes(n)),Km=(e,t,n)=>{const i=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((c,d)=>{s<=e.keys.length-1&&(s===0?Object.assign(c,d):c[e.up(e.keys[s])]=d)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:mF(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const c=t[s];c!==void 0&&n((d,h)=>{i===s?Object.assign(d,h):d[e.up(s)]=h},c)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Y5(e){return`--Grid-${e}Spacing`}function X5(e){return`--Grid-parent-${e}Spacing`}const MM="--Grid-columns",Qm="--Grid-parent-columns",gF=({theme:e,ownerState:t})=>{const n={};return Km(e.breakpoints,t.size,(i,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Qm}) - (var(${Qm}) - ${o}) * (var(${X5("column")}) / var(${Qm})))`}),i(n,s)}),n},yF=({theme:e,ownerState:t})=>{const n={};return Km(e.breakpoints,t.offset,(i,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Qm}) + var(${X5("column")}) * ${o} / var(${Qm}))`}),i(n,s)}),n},vF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[MM]:12};return Km(e.breakpoints,t.columns,(i,o)=>{const s=o??12;i(n,{[MM]:s,"> *":{[Qm]:s}})}),n},bF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Km(e.breakpoints,t.rowSpacing,(i,o)=>{var c;const s=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);i(n,{[Y5("row")]:s,"> *":{[X5("row")]:s}})}),n},xF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Km(e.breakpoints,t.columnSpacing,(i,o)=>{var c;const s=typeof o=="string"?o:(c=e.spacing)==null?void 0:c.call(e,o);i(n,{[Y5("column")]:s,"> *":{[X5("column")]:s}})}),n},SF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Km(e.breakpoints,t.direction,(i,o)=>{i(n,{flexDirection:o})}),n},wF=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Y5("row")}) var(${Y5("column")})`}}),EF=e=>{const t=[];return Object.entries(e).forEach(([n,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${n}-${String(i)}`)}),t},TF=(e,t="xs")=>{function n(i){return i===void 0?!1:typeof i=="string"&&!Number.isNaN(Number(i))||typeof i=="number"&&i>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const i=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&i.push(`spacing-${o}-${String(s)}`)}),i}return[]},AF=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];var CF={};const OF=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://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,RM=[];function MF(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(i=>{e[i]!==void 0&&(n.push(i),delete e[i])}),CF.NODE_ENV!=="production"&&n.forEach(i=>{RM.includes(i)||(RM.push(i),console.warn(`MUI Grid: ${OF(i)}
`))})}var RF={};const _F=j5(),DF=YG("div",{name:"MuiGrid",slot:"Root"});function NF(e){return WG({props:e,name:"MuiGrid",defaultTheme:_F})}function kF(e={}){const{createStyledComponent:t=DF,useThemeProps:n=NF,useTheme:i=Bv,componentName:o="MuiGrid"}=e,s=(y,v)=>{const{container:S,direction:T,spacing:E,wrap:C,size:R}=y,_={root:["root",S&&"container",C!=="wrap"&&`wrap-xs-${String(C)}`,...AF(T),...EF(R),...S?TF(E,v.breakpoints.keys[0]):[]]};return en(_,N=>Wt(o,N),{})};function c(y,v,S=()=>!0){const T={};return y===null||(Array.isArray(y)?y.forEach((E,C)=>{E!==null&&S(E)&&v.keys[C]&&(T[v.keys[C]]=E)}):typeof y=="object"?Object.keys(y).forEach(E=>{const C=y[E];C!=null&&S(C)&&(T[E]=C)}):T[v.keys[0]]=y),T}const d=t(vF,xF,bF,gF,SF,wF,yF),h=G.forwardRef(function(v,S){const T=i(),E=n(v),C=U2(E);MF(C,T.breakpoints);const{className:R,children:_,columns:N=12,container:z=!1,component:B="div",direction:V="row",wrap:L="wrap",size:U={},offset:X={},spacing:se=0,rowSpacing:ce=se,columnSpacing:ie=se,unstable_level:ue=0,...$}=C,le=c(U,T.breakpoints,F=>F!==!1),K=c(X,T.breakpoints),oe=v.columns??(ue?void 0:N),Z=v.spacing??(ue?void 0:se),ae=v.rowSpacing??v.spacing??(ue?void 0:ce),he=v.columnSpacing??v.spacing??(ue?void 0:ie),Ee={...C,level:ue,columns:oe,container:z,direction:V,wrap:L,spacing:Z,rowSpacing:ae,columnSpacing:he,size:le,offset:K},te=s(Ee,T);return H.jsx(d,{ref:S,as:B,ownerState:Ee,className:St(te.root,R),...$,children:G.Children.map(_,F=>{var ee;return G.isValidElement(F)&&Wm(F,["Grid"])&&z&&F.props.container?G.cloneElement(F,{unstable_level:((ee=F.props)==null?void 0:ee.unstable_level)??ue+1}):F})})});return RF.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 Uv={black:"#000",white:"#fff"},zF={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"},Zm={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jm={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},$v={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},eg={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ng={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var W5={};function _M(){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:Uv.white,default:Uv.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 DM=_M();function NM(){return{text:{primary:Uv.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:Uv.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 l7=NM();function kM(e,t,n,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=q5(e.main,o):t==="dark"&&(e.dark=H5(e.main,s)))}function zM(e,t,n,i,o){const s=o.light||o,c=o.dark||o*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function IF(e="light"){return e==="dark"?{main:eg[200],light:eg[50],dark:eg[400]}:{main:eg[700],light:eg[400],dark:eg[800]}}function LF(e="light"){return e==="dark"?{main:Zm[200],light:Zm[50],dark:Zm[400]}:{main:Zm[500],light:Zm[300],dark:Zm[700]}}function VF(e="light"){return e==="dark"?{main:Jm[500],light:Jm[300],dark:Jm[700]}:{main:Jm[700],light:Jm[400],dark:Jm[800]}}function BF(e="light"){return e==="dark"?{main:tg[400],light:tg[300],dark:tg[700]}:{main:tg[700],light:tg[500],dark:tg[900]}}function jF(e="light"){return e==="dark"?{main:ng[400],light:ng[300],dark:ng[700]}:{main:ng[800],light:ng[500],dark:ng[900]}}function PF(e="light"){return e==="dark"?{main:$v[400],light:$v[300],dark:$v[700]}:{main:"#ed6c02",light:$v[500],dark:$v[900]}}function UF(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function s7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:o,...s}=e,c=e.primary||IF(t),d=e.secondary||LF(t),h=e.error||VF(t),y=e.info||BF(t),v=e.success||jF(t),S=e.warning||PF(t);function T(_){if(o)return UF(_);const N=wM(_,l7.text.primary)>=n?l7.text.primary:DM.text.primary;if(W5.NODE_ENV!=="production"){const z=wM(_,N);z<3&&console.error([`MUI: The contrast ratio of ${z}:1 for ${N} 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 N}const E=({color:_,name:N,mainShade:z=500,lightShade:B=300,darkShade:V=700})=>{if(_={..._},!_.main&&_[z]&&(_.main=_[z]),!_.hasOwnProperty("main"))throw new Error(W5.NODE_ENV!=="production"?`MUI: The color${N?` (${N})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${z}\` property.`:Zc(11,N?` (${N})`:"",z));if(typeof _.main!="string")throw new Error(W5.NODE_ENV!=="production"?`MUI: The color${N?` (${N})`:""} 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] },
} });`:Zc(12,N?` (${N})`:"",JSON.stringify(_.main)));return o?(zM(o,_,"light",B,i),zM(o,_,"dark",V,i)):(kM(_,"light",B,i),kM(_,"dark",V,i)),_.contrastText||(_.contrastText=T(_.main)),_};let C;return t==="light"?C=_M():t==="dark"&&(C=NM()),W5.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Pa({common:{...Uv},mode:t,primary:E({color:c,name:"primary"}),secondary:E({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:h,name:"error"}),warning:E({color:S,name:"warning"}),info:E({color:y,name:"info"}),success:E({color:v,name:"success"}),grey:zF,contrastThreshold:n,getContrastText:T,augmentColor:E,tonalOffset:i,...C},s)}function $F(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function HF(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}var qF={};function GF(e){return Math.round(e*1e5)/1e5}const IM={textTransform:"uppercase"},LM='"Roboto", "Helvetica", "Arial", sans-serif';function FF(e,t){const{fontFamily:n=LM,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:y,pxToRem:v,...S}=typeof t=="function"?t(e):t;qF.NODE_ENV!=="production"&&(typeof i!="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=i/14,E=v||(_=>`${_/h*T}rem`),C=(_,N,z,B,V)=>({fontFamily:n,fontWeight:_,fontSize:E(N),lineHeight:z,...n===LM?{letterSpacing:`${GF(B/N)}em`}:{},...V,...y}),R={h1:C(o,96,1.167,-1.5),h2:C(o,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(c,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(c,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(c,14,1.75,.4,IM),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,IM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pa({htmlFontSize:h,pxToRem:E,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...R},S,{clone:!1})}const YF=.2,XF=.14,WF=.12;function Ur(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${YF})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${XF})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${WF})`].join(",")}const KF=["none",Ur(0,2,1,-1,0,1,1,0,0,1,3,0),Ur(0,3,1,-2,0,2,2,0,0,1,5,0),Ur(0,3,3,-2,0,3,4,0,0,1,8,0),Ur(0,2,4,-1,0,4,5,0,0,1,10,0),Ur(0,3,5,-1,0,5,8,0,0,1,14,0),Ur(0,3,5,-1,0,6,10,0,0,1,18,0),Ur(0,4,5,-2,0,7,10,1,0,2,16,1),Ur(0,5,5,-3,0,8,10,1,0,3,14,2),Ur(0,5,6,-3,0,9,12,1,0,3,16,2),Ur(0,6,6,-3,0,10,14,1,0,4,18,3),Ur(0,6,7,-4,0,11,15,1,0,4,20,3),Ur(0,7,8,-4,0,12,17,2,0,5,22,4),Ur(0,7,8,-4,0,13,19,2,0,5,24,4),Ur(0,7,9,-4,0,14,21,2,0,5,26,4),Ur(0,8,9,-5,0,15,22,2,0,6,28,5),Ur(0,8,10,-5,0,16,24,2,0,6,30,5),Ur(0,8,11,-5,0,17,26,2,0,6,32,5),Ur(0,9,11,-5,0,18,28,2,0,7,34,6),Ur(0,9,12,-6,0,19,29,2,0,7,36,6),Ur(0,10,13,-6,0,20,31,3,0,8,38,7),Ur(0,10,13,-6,0,21,33,3,0,8,40,7),Ur(0,10,14,-6,0,22,35,3,0,8,42,7),Ur(0,11,14,-7,0,23,36,3,0,9,44,8),Ur(0,11,15,-7,0,24,38,3,0,9,46,8)];var QF={};const ZF={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)"},JF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function VM(e){return`${Math.round(e)}ms`}function eY(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function tY(e){const t={...ZF,...e.easing},n={...JF,...e.duration};return{getAutoHeightDuration:eY,create:(o=["all"],s={})=>{const{duration:c=n.standard,easing:d=t.easeInOut,delay:h=0,...y}=s;if(QF.NODE_ENV!=="production"){const v=T=>typeof T=="string",S=T=>!Number.isNaN(parseFloat(T));!v(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!S(c)&&!v(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),v(d)||console.error('MUI: Argument "easing" must be a string.'),!S(h)&&!v(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(o)?o:[o]).map(v=>`${v} ${typeof c=="string"?c:VM(c)} ${d} ${typeof h=="string"?h:VM(h)}`).join(",")},...e,easing:t,duration:n}}const nY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function rY(e){return Xu(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function BM(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[c,d]=o[s];!rY(d)||c.startsWith("unstable_")?delete i[c]:Xu(d)&&(i[c]={...d},n(i[c]))}}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 u7={};function jM(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const iY=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function aY(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:$5(t,iY(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${jM(n)})`:q5(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${jM(n)})`:H5(t,n)}})}function c7(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:s={},transitions:c={},typography:d={},shape:h,colorSpace:y,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(u7.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Zc(20));const S=s7({...s,colorSpace:y}),T=j5(e);let E=Pa(T,{mixins:HF(T.breakpoints,i),palette:S,shadows:KF.slice(),typography:FF(S,d),transitions:tY(c),zIndex:{...nY}});if(E=Pa(E,v),E=t.reduce((C,R)=>Pa(C,R),E),u7.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],R=(_,N)=>{let z;for(z in _){const B=_[z];if(C.includes(z)&&Object.keys(B).length>0){if(u7.NODE_ENV!=="production"){const V=Wt("",z);console.error([`MUI: The \`${N}\` 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 '&.${V}' syntax:`,JSON.stringify({root:{[`&.${V}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}_[z]={}}}};Object.keys(E.components).forEach(_=>{const N=E.components[_].styleOverrides;N&&_.startsWith("Mui")&&R(N,_)})}return E.unstable_sxConfig={..._v,...v==null?void 0:v.unstable_sxConfig},E.unstable_sx=function(R){return dh({sx:R,theme:this})},E.toRuntimeSource=BM,aY(E),E}function f7(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 oY=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=f7(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function PM(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function UM(e){return e==="dark"?oY:[]}function lY(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:o,...s}=e,c=s7({...t,colorSpace:o});return{palette:c,opacity:{...PM(c.mode),...n},overlays:i||UM(c.mode),...s}}function sY(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 uY=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],cY=e=>(t,n)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return uY(e.cssVarPrefix).forEach(d=>{c[d]=n[d],delete n[d]}),s==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:n}:{[i]:{...n,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(s)return s.replace("%s",String(t))}return i};var fY={};function dY(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Fe(e,t,n){!e[t]&&n&&(e[t]=n)}function Hv(e){return typeof e!="string"||!e.startsWith("hsl")?e:SM(e)}function ef(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pv(Hv(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 hY(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Zu=e=>{try{return e()}catch{}},pY=(e="mui")=>uF(e);function d7(e,t,n,i,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!i){t[o]=lY({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:c,...d}=c7({...i,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:c,opacity:{...PM(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||UM(s)},d}function mY(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:c=!1,shouldSkipGeneratingVar:d=sY,colorSchemeSelector:h=n.light&&n.dark?"media":void 0,rootSelector:y=":root",...v}=e,S=Object.keys(n)[0],T=i||(n.light&&S!=="light"?"light":S),E=pY(s),{[T]:C,light:R,dark:_,...N}=n,z={...N};let B=C;if((T==="dark"&&!("dark"in n)||T==="light"&&!("light"in n))&&(B=!0),!B)throw new Error(fY.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${T}\` option is either missing or invalid.`:Zc(21,T));let V;c&&(V="oklch");const L=d7(V,z,B,v,T);R&&!z.light&&d7(V,z,R,void 0,"light"),_&&!z.dark&&d7(V,z,_,void 0,"dark");let U={defaultColorScheme:T,...L,cssVarPrefix:s,colorSchemeSelector:h,rootSelector:y,getCssVar:E,colorSchemes:z,font:{...$F(L.typography),...L.font},spacing:hY(v.spacing)};Object.keys(U.colorSchemes).forEach(ue=>{const $=U.colorSchemes[ue].palette,le=oe=>{const Z=oe.split("-"),ae=Z[1],he=Z[2];return E(oe,$[ae][he])};$.mode==="light"&&(Fe($.common,"background","#fff"),Fe($.common,"onBackground","#000")),$.mode==="dark"&&(Fe($.common,"background","#000"),Fe($.common,"onBackground","#fff"));function K(oe,Z,ae){if(V){let he;return oe===ph&&(he=`transparent ${((1-ae)*100).toFixed(0)}%`),oe===mr&&(he=`#000 ${(ae*100).toFixed(0)}%`),oe===gr&&(he=`#fff ${(ae*100).toFixed(0)}%`),`color-mix(in ${V}, ${Z}, ${he})`}return oe(Z,ae)}if(dY($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){Fe($.Alert,"errorColor",K(mr,c?E("palette-error-light"):$.error.light,.6)),Fe($.Alert,"infoColor",K(mr,c?E("palette-info-light"):$.info.light,.6)),Fe($.Alert,"successColor",K(mr,c?E("palette-success-light"):$.success.light,.6)),Fe($.Alert,"warningColor",K(mr,c?E("palette-warning-light"):$.warning.light,.6)),Fe($.Alert,"errorFilledBg",le("palette-error-main")),Fe($.Alert,"infoFilledBg",le("palette-info-main")),Fe($.Alert,"successFilledBg",le("palette-success-main")),Fe($.Alert,"warningFilledBg",le("palette-warning-main")),Fe($.Alert,"errorFilledColor",Zu(()=>$.getContrastText($.error.main))),Fe($.Alert,"infoFilledColor",Zu(()=>$.getContrastText($.info.main))),Fe($.Alert,"successFilledColor",Zu(()=>$.getContrastText($.success.main))),Fe($.Alert,"warningFilledColor",Zu(()=>$.getContrastText($.warning.main))),Fe($.Alert,"errorStandardBg",K(gr,c?E("palette-error-light"):$.error.light,.9)),Fe($.Alert,"infoStandardBg",K(gr,c?E("palette-info-light"):$.info.light,.9)),Fe($.Alert,"successStandardBg",K(gr,c?E("palette-success-light"):$.success.light,.9)),Fe($.Alert,"warningStandardBg",K(gr,c?E("palette-warning-light"):$.warning.light,.9)),Fe($.Alert,"errorIconColor",le("palette-error-main")),Fe($.Alert,"infoIconColor",le("palette-info-main")),Fe($.Alert,"successIconColor",le("palette-success-main")),Fe($.Alert,"warningIconColor",le("palette-warning-main")),Fe($.AppBar,"defaultBg",le("palette-grey-100")),Fe($.Avatar,"defaultBg",le("palette-grey-400")),Fe($.Button,"inheritContainedBg",le("palette-grey-300")),Fe($.Button,"inheritContainedHoverBg",le("palette-grey-A100")),Fe($.Chip,"defaultBorder",le("palette-grey-400")),Fe($.Chip,"defaultAvatarColor",le("palette-grey-700")),Fe($.Chip,"defaultIconColor",le("palette-grey-700")),Fe($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Fe($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Fe($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Fe($.LinearProgress,"primaryBg",K(gr,c?E("palette-primary-main"):$.primary.main,.62)),Fe($.LinearProgress,"secondaryBg",K(gr,c?E("palette-secondary-main"):$.secondary.main,.62)),Fe($.LinearProgress,"errorBg",K(gr,c?E("palette-error-main"):$.error.main,.62)),Fe($.LinearProgress,"infoBg",K(gr,c?E("palette-info-main"):$.info.main,.62)),Fe($.LinearProgress,"successBg",K(gr,c?E("palette-success-main"):$.success.main,.62)),Fe($.LinearProgress,"warningBg",K(gr,c?E("palette-warning-light"):$.warning.main,.62)),Fe($.Skeleton,"bg",V?K(ph,c?E("palette-text-primary"):$.text.primary,.11):`rgba(${le("palette-text-primaryChannel")} / 0.11)`),Fe($.Slider,"primaryTrack",K(gr,c?E("palette-primary-main"):$.primary.main,.62)),Fe($.Slider,"secondaryTrack",K(gr,c?E("palette-secondary-main"):$.secondary.main,.62)),Fe($.Slider,"errorTrack",K(gr,c?E("palette-error-main"):$.error.main,.62)),Fe($.Slider,"infoTrack",K(gr,c?E("palette-info-main"):$.info.main,.62)),Fe($.Slider,"successTrack",K(gr,c?E("palette-success-main"):$.success.main,.62)),Fe($.Slider,"warningTrack",K(gr,c?E("palette-warning-main"):$.warning.main,.62));const oe=V?K(mr,c?E("palette-background-default"):$.background.default,.6825):G5($.background.default,.8);Fe($.SnackbarContent,"bg",oe),Fe($.SnackbarContent,"color",Zu(()=>V?l7.text.primary:$.getContrastText(oe))),Fe($.SpeedDialAction,"fabHoverBg",G5($.background.paper,.15)),Fe($.StepConnector,"border",le("palette-grey-400")),Fe($.StepContent,"border",le("palette-grey-400")),Fe($.Switch,"defaultColor",le("palette-common-white")),Fe($.Switch,"defaultDisabledColor",le("palette-grey-100")),Fe($.Switch,"primaryDisabledColor",K(gr,c?E("palette-primary-main"):$.primary.main,.62)),Fe($.Switch,"secondaryDisabledColor",K(gr,c?E("palette-secondary-main"):$.secondary.main,.62)),Fe($.Switch,"errorDisabledColor",K(gr,c?E("palette-error-main"):$.error.main,.62)),Fe($.Switch,"infoDisabledColor",K(gr,c?E("palette-info-main"):$.info.main,.62)),Fe($.Switch,"successDisabledColor",K(gr,c?E("palette-success-main"):$.success.main,.62)),Fe($.Switch,"warningDisabledColor",K(gr,c?E("palette-warning-main"):$.warning.main,.62)),Fe($.TableCell,"border",K(gr,ph(c?E("palette-divider"):$.divider,1),.88)),Fe($.Tooltip,"bg",K(ph,c?E("palette-grey-700"):$.grey[700],.92))}if($.mode==="dark"){Fe($.Alert,"errorColor",K(gr,c?E("palette-error-light"):$.error.light,.6)),Fe($.Alert,"infoColor",K(gr,c?E("palette-info-light"):$.info.light,.6)),Fe($.Alert,"successColor",K(gr,c?E("palette-success-light"):$.success.light,.6)),Fe($.Alert,"warningColor",K(gr,c?E("palette-warning-light"):$.warning.light,.6)),Fe($.Alert,"errorFilledBg",le("palette-error-dark")),Fe($.Alert,"infoFilledBg",le("palette-info-dark")),Fe($.Alert,"successFilledBg",le("palette-success-dark")),Fe($.Alert,"warningFilledBg",le("palette-warning-dark")),Fe($.Alert,"errorFilledColor",Zu(()=>$.getContrastText($.error.dark))),Fe($.Alert,"infoFilledColor",Zu(()=>$.getContrastText($.info.dark))),Fe($.Alert,"successFilledColor",Zu(()=>$.getContrastText($.success.dark))),Fe($.Alert,"warningFilledColor",Zu(()=>$.getContrastText($.warning.dark))),Fe($.Alert,"errorStandardBg",K(mr,c?E("palette-error-light"):$.error.light,.9)),Fe($.Alert,"infoStandardBg",K(mr,c?E("palette-info-light"):$.info.light,.9)),Fe($.Alert,"successStandardBg",K(mr,c?E("palette-success-light"):$.success.light,.9)),Fe($.Alert,"warningStandardBg",K(mr,c?E("palette-warning-light"):$.warning.light,.9)),Fe($.Alert,"errorIconColor",le("palette-error-main")),Fe($.Alert,"infoIconColor",le("palette-info-main")),Fe($.Alert,"successIconColor",le("palette-success-main")),Fe($.Alert,"warningIconColor",le("palette-warning-main")),Fe($.AppBar,"defaultBg",le("palette-grey-900")),Fe($.AppBar,"darkBg",le("palette-background-paper")),Fe($.AppBar,"darkColor",le("palette-text-primary")),Fe($.Avatar,"defaultBg",le("palette-grey-600")),Fe($.Button,"inheritContainedBg",le("palette-grey-800")),Fe($.Button,"inheritContainedHoverBg",le("palette-grey-700")),Fe($.Chip,"defaultBorder",le("palette-grey-700")),Fe($.Chip,"defaultAvatarColor",le("palette-grey-300")),Fe($.Chip,"defaultIconColor",le("palette-grey-300")),Fe($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Fe($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Fe($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Fe($.LinearProgress,"primaryBg",K(mr,c?E("palette-primary-main"):$.primary.main,.5)),Fe($.LinearProgress,"secondaryBg",K(mr,c?E("palette-secondary-main"):$.secondary.main,.5)),Fe($.LinearProgress,"errorBg",K(mr,c?E("palette-error-main"):$.error.main,.5)),Fe($.LinearProgress,"infoBg",K(mr,c?E("palette-info-main"):$.info.main,.5)),Fe($.LinearProgress,"successBg",K(mr,c?E("palette-success-main"):$.success.main,.5)),Fe($.LinearProgress,"warningBg",K(mr,c?E("palette-warning-main"):$.warning.main,.5)),Fe($.Skeleton,"bg",V?K(ph,c?E("palette-text-primary"):$.text.primary,.13):`rgba(${le("palette-text-primaryChannel")} / 0.13)`),Fe($.Slider,"primaryTrack",K(mr,c?E("palette-primary-main"):$.primary.main,.5)),Fe($.Slider,"secondaryTrack",K(mr,c?E("palette-secondary-main"):$.secondary.main,.5)),Fe($.Slider,"errorTrack",K(mr,c?E("palette-error-main"):$.error.main,.5)),Fe($.Slider,"infoTrack",K(mr,c?E("palette-info-main"):$.info.main,.5)),Fe($.Slider,"successTrack",K(mr,c?E("palette-success-main"):$.success.main,.5)),Fe($.Slider,"warningTrack",K(mr,c?E("palette-warning-light"):$.warning.main,.5));const oe=V?K(gr,c?E("palette-background-default"):$.background.default,.985):G5($.background.default,.98);Fe($.SnackbarContent,"bg",oe),Fe($.SnackbarContent,"color",Zu(()=>V?DM.text.primary:$.getContrastText(oe))),Fe($.SpeedDialAction,"fabHoverBg",G5($.background.paper,.15)),Fe($.StepConnector,"border",le("palette-grey-600")),Fe($.StepContent,"border",le("palette-grey-600")),Fe($.Switch,"defaultColor",le("palette-grey-300")),Fe($.Switch,"defaultDisabledColor",le("palette-grey-600")),Fe($.Switch,"primaryDisabledColor",K(mr,c?E("palette-primary-main"):$.primary.main,.55)),Fe($.Switch,"secondaryDisabledColor",K(mr,c?E("palette-secondary-main"):$.secondary.main,.55)),Fe($.Switch,"errorDisabledColor",K(mr,c?E("palette-error-main"):$.error.main,.55)),Fe($.Switch,"infoDisabledColor",K(mr,c?E("palette-info-main"):$.info.main,.55)),Fe($.Switch,"successDisabledColor",K(mr,c?E("palette-success-main"):$.success.main,.55)),Fe($.Switch,"warningDisabledColor",K(mr,c?E("palette-warning-light"):$.warning.main,.55)),Fe($.TableCell,"border",K(mr,ph(c?E("palette-divider"):$.divider,1),.68)),Fe($.Tooltip,"bg",K(ph,c?E("palette-grey-700"):$.grey[700],.92))}ef($.background,"default"),ef($.background,"paper"),ef($.common,"background"),ef($.common,"onBackground"),ef($,"divider"),Object.keys($).forEach(oe=>{const Z=$[oe];oe!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&Fe($[oe],"mainChannel",Pv(Hv(Z.main))),Z.light&&Fe($[oe],"lightChannel",Pv(Hv(Z.light))),Z.dark&&Fe($[oe],"darkChannel",Pv(Hv(Z.dark))),Z.contrastText&&Fe($[oe],"contrastTextChannel",Pv(Hv(Z.contrastText))),oe==="text"&&(ef($[oe],"primary"),ef($[oe],"secondary")),oe==="action"&&(Z.active&&ef($[oe],"active"),Z.selected&&ef($[oe],"selected")))})}),U=t.reduce((ue,$)=>Pa(ue,$),U);const X={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:d,getSelector:cY(U),enableContrastVars:c},{vars:se,generateThemeVars:ce,generateStyleSheets:ie}=dF(U,X);return U.vars=se,Object.entries(U.colorSchemes[U.defaultColorScheme]).forEach(([ue,$])=>{U[ue]=$}),U.generateThemeVars=ce,U.generateStyleSheets=ie,U.generateSpacing=function(){return dM(v.spacing,B2(this))},U.getColorSchemeSelector=pF(h),U.spacing=U.generateSpacing(),U.shouldSkipGeneratingVar=d,U.unstable_sxConfig={..._v,...v==null?void 0:v.unstable_sxConfig},U.unstable_sx=function($){return dh({sx:$,theme:this})},U.toRuntimeSource=BM,U}function $M(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:s7({...n===!0?{}:n.palette,mode:t})})}function HM(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...c}=e,d=s||"light",h=o==null?void 0:o[d],y={...o,...n?{[d]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return c7(e,...t);let v=n;"palette"in e||y[d]&&(y[d]!==!0?v=y[d].palette:d==="dark"&&(v={mode:"dark"}));const S=c7({...e,palette:v},...t);return S.defaultColorScheme=d,S.colorSchemes=y,S.palette.mode==="light"&&(S.colorSchemes.light={...y.light!==!0&&y.light,palette:S.palette},$M(S,"dark",y.dark)),S.palette.mode==="dark"&&(S.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:S.palette},$M(S,"light",y.light)),S}return!n&&!("light"in y)&&d==="light"&&(y.light=!0),mY({...c,colorSchemes:y,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const h7=HM(),K5="$$material";var gY={};function tf(){const e=Bv(h7);return gY.NODE_ENV!=="production"&&G.useDebugValue(e),e[K5]||e}var yY={};function qM(e){return H.jsx(hM,{...e,defaultTheme:h7,themeId:K5})}yY.NODE_ENV!=="production"&&(qM.propTypes={styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool])});function Q5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wa=e=>Q5(e)&&e!=="classes",it=bM({themeId:K5,defaultTheme:h7,rootShouldForwardProp:wa});function vY(e){return function(n){return H.jsx(qM,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function bY(){return U2}const Gt=sF;var xY={};xY.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function ln(e){return oF(e)}function SY(e){return Wt("MuiSvgIcon",e)}Kt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var wY={};const EY=e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root",t!=="inherit"&&`color${Je(t)}`,`fontSize${Je(n)}`]};return en(o,SY,i)},TY=it("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Je(n.color)}`],t[`fontSize${Je(n.fontSize)}`]]}})(Gt(({theme:e})=>{var t,n,i,o,s,c,d,h,y,v,S,T,E,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:R=>!R.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((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 _,N;return{props:{color:R},style:{color:(N=(_=(e.vars??e).palette)==null?void 0:_[R])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(T=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(C=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gh=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:y,inheritViewBox:v=!1,titleAccess:S,viewBox:T="0 0 24 24",...E}=i,C=G.isValidElement(o)&&o.type==="svg",R={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:v,viewBox:T,hasSvgAsChild:C},_={};v||(_.viewBox=T);const N=EY(R);return H.jsxs(TY,{as:d,className:St(N.root,s),focusable:"false",color:y,"aria-hidden":S?void 0:!0,role:S?"img":void 0,ref:n,..._,...E,...C&&o.props,ownerState:R,children:[C?o.props.children:o,S?H.jsx("title",{children:S}):null]})});wY.NODE_ENV!=="production"&&(gh.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}),gh.muiName="SvgIcon";var GM={};function Ri(e,t){function n(i,o){return H.jsx(gh,{"data-testid":GM.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...i,children:e})}return GM.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=gh.muiName,G.memo(G.forwardRef(n))}function FM(e,t=166){let n;function i(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return i.clear=()=>{clearTimeout(n)},i}function Ea(e){return e&&e.ownerDocument||document}function nf(e){return Ea(e).defaultView||window}var AY={};function CY(e,t){if(AY.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,c,d,h,y,...v)=>{const S=y||c,T=n==null?void 0:n[S];if(T){const E=T(s,c,d,h,y,...v);if(E)return E}return typeof s[c]<"u"&&!s[o]?new Error(`The prop \`${S}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function YM(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var OY={};function MY(e,t,n,i,o){if(OY.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}var RY={};function rg(e){const{controlled:t,default:n,name:i,state:o="value"}=e,{current:s}=G.useRef(t!==void 0),[c,d]=G.useState(n),h=s?t:c;if(RY.NODE_ENV!=="production"){G.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${i} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} 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(`
`))},[o,i,t]);const{current:v}=G.useRef(n);G.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(v)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
`))},[JSON.stringify(n)])}const y=G.useCallback(v=>{s||d(v)},[]);return[h,y]}function Wl(e){const t=G.useRef(e);return Xl(()=>{t.current=e}),G.useRef((...n)=>(0,t.current)(...n)).current}function ri(...e){const t=G.useRef(void 0),n=G.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},e);return G.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function _Y(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function XM(e,t){if(!e)return t;function n(c,d){const h={};return Object.keys(d).forEach(y=>{_Y(y,d[y])&&typeof c[y]=="function"&&(h[y]=(...v)=>{c[y](...v),d[y](...v)})}),h}if(typeof e=="function"||typeof t=="function")return c=>{const d=typeof t=="function"?t(c):t,h=typeof e=="function"?e({...c,...d}):e,y=St(c==null?void 0:c.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 i=t,o=n(e,i),s=St(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...o,...!!s&&{className:s},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const DY=Ri(H.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"),WM=Ri(H.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),KM=Ri(H.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"),NY=Ri(H.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"),kY=Ri(H.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),zY=Ri(H.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send"),QM=Ri(H.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 IY={};function ou(e,t){return IY.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function ZM(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function p7(e,t){return p7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},p7(e,t)}function JM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p7(e,t)}var eR=jE();const Z5=pl(eR),tR={disabled:!1};var nR={},LY=nR.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;nR.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 J5=nu.createContext(null);var VY=function(t){return t.scrollTop},BY={},qv="unmounted",yh="exited",vh="entering",ig="entered",m7="exiting",Ju=(function(e){JM(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=o,d=c&&!c.isMounting?i.enter:i.appear,h;return s.appearStatus=null,i.in?d?(h=yh,s.appearStatus=vh):h=ig:i.unmountOnExit||i.mountOnEnter?h=qv:h=yh,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var c=o.in;return c&&s.status===qv?{status:yh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==vh&&c!==ig&&(s=vh):(c===vh||c===ig)&&(s=m7)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,c,d;return s=c=d=o,o!=null&&typeof o!="number"&&(s=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:s,enter:c,appear:d}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===vh){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Z5.findDOMNode(this);c&&VY(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yh&&this.setState({status:qv})},n.performEnter=function(o){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Z5.findDOMNode(this),d],y=h[0],v=h[1],S=this.getTimeouts(),T=d?S.appear:S.enter;if(!o&&!c||tR.disabled){this.safeSetState({status:ig},function(){s.props.onEntered(y)});return}this.props.onEnter(y,v),this.safeSetState({status:vh},function(){s.props.onEntering(y,v),s.onTransitionEnd(T,function(){s.safeSetState({status:ig},function(){s.props.onEntered(y,v)})})})},n.performExit=function(){var o=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Z5.findDOMNode(this);if(!s||tR.disabled){this.safeSetState({status:yh},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:m7},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:yh},function(){o.props.onExited(d)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Z5.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],y=h[0],v=h[1];this.props.addEndListener(y,v)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===qv)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=ZM(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nu.createElement(J5.Provider,{value:null},typeof c=="function"?c(o,d):nu.cloneElement(nu.Children.only(c),d))},t})(nu.Component);Ju.contextType=J5,Ju.propTypes=BY.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,i,o,s){var c=e[t];return p.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,t,n,i,o,s)}}),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=LY;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:p.func,onEnter:p.func,onEntering:p.func,onEntered:p.func,onExit:p.func,onExiting:p.func,onExited:p.func}:{};function ag(){}Ju.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ag,onEntering:ag,onEntered:ag,onExit:ag,onExiting:ag,onExited:ag},Ju.UNMOUNTED=qv,Ju.EXITED=yh,Ju.ENTERING=vh,Ju.ENTERED=ig,Ju.EXITING=m7;function jY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g7(e,t){var n=function(s){return t&&G.isValidElement(s)?t(s):s},i=Object.create(null);return e&&G.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=n(o)}),i}function PY(e,t){e=e||{},t=t||{};function n(v){return v in t?t[v]:e[v]}var i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var c,d={};for(var h in t){if(i[h])for(c=0;c<i[h].length;c++){var y=i[h][c];d[i[h][c]]=n(y)}d[h]=n(h)}for(c=0;c<o.length;c++)d[o[c]]=n(o[c]);return d}function bh(e,t,n){return n[t]!=null?n[t]:e.props[t]}function UY(e,t){return g7(e.children,function(n){return G.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bh(n,"appear",e),enter:bh(n,"enter",e),exit:bh(n,"exit",e)})})}function $Y(e,t,n){var i=g7(e.children),o=PY(t,i);return Object.keys(o).forEach(function(s){var c=o[s];if(G.isValidElement(c)){var d=s in t,h=s in i,y=t[s],v=G.isValidElement(y)&&!y.props.in;h&&(!d||v)?o[s]=G.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:bh(c,"exit",e),enter:bh(c,"enter",e)}):!h&&d&&!v?o[s]=G.cloneElement(c,{in:!1}):h&&d&&G.isValidElement(y)&&(o[s]=G.cloneElement(c,{onExited:n.bind(null,c),in:y.props.in,exit:bh(c,"exit",e),enter:bh(c,"enter",e)}))}}),o}var HY={},qY=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},GY={component:"div",childFactory:function(t){return t}},y7=(function(e){JM(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=s.handleExited.bind(jY(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}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(o,s){var c=s.children,d=s.handleExited,h=s.firstRender;return{children:h?UY(o,d):$Y(o,c,d),firstRender:!1}},n.handleExited=function(o,s){var c=g7(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var h=M5({},d.children);return delete h[o.key],{children:h}}))},n.render=function(){var o=this.props,s=o.component,c=o.childFactory,d=ZM(o,["component","childFactory"]),h=this.state.contextValue,y=qY(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?nu.createElement(J5.Provider,{value:h},y):nu.createElement(J5.Provider,{value:h},nu.createElement(s,d,y))},t})(nu.Component);y7.propTypes=HY.NODE_ENV!=="production"?{component:p.any,children:p.node,appear:p.bool,enter:p.bool,exit:p.bool,childFactory:p.func}:{},y7.defaultProps=GY;const rR={};function iR(e,t){const n=G.useRef(rR);return n.current===rR&&(n.current=e(t)),n}const FY=[];function YY(e){G.useEffect(e,FY)}class e3{constructor(){P(this,"currentId",null);P(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});P(this,"disposeEffect",()=>this.clear)}static create(){return new e3}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function og(){const e=iR(e3.create).current;return YY(e.disposeEffect),e}function XY(e){const{prototype:t={}}=e;return!!t.isReactComponent}function WY(e,t,n,i,o){const s=e[t],c=o||t;if(s==null||typeof window>"u")return null;let d;return typeof s=="function"&&!XY(s)&&(d="Did you accidentally provide a plain function component instead?"),s===G.Fragment&&(d="Did you accidentally provide a React.Fragment instead?"),d!==void 0?new Error(`Invalid ${i} \`${c}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${d} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const t3=ou(p.elementType,WY),aR=e=>e.scrollTop;function n3(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}function ec(e){return typeof e=="string"}function oR(e,t,n){return e===void 0||ec(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lR(e,t,n){return typeof e=="function"?e(t,n):e}function Gv(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function sR(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 uR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const E=St(n==null?void 0:n.className,s,o==null?void 0:o.className,i==null?void 0:i.className),C={...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},R={...n,...o,...i};return E.length>0&&(R.className=E),Object.keys(C).length>0&&(R.style=C),{props:R,internalRef:void 0}}const c=Gv({...o,...i}),d=sR(i),h=sR(o),y=t(c),v=St(y==null?void 0:y.className,n==null?void 0:n.className,s,o==null?void 0:o.className,i==null?void 0:i.className),S={...y==null?void 0:y.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},T={...y,...n,...h,...d};return v.length>0&&(T.className=v),Object.keys(S).length>0&&(T.style=S),{props:T,internalRef:y.ref}}function nn(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:y,slots:v={[e]:void 0},slotProps:S={[e]:void 0},...T}=s,E=v[e]||i,C=lR(S[e],o),{props:{component:R,..._},internalRef:N}=uR({className:n,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:C}),z=ri(N,C==null?void 0:C.ref,t.ref),B=e==="root"?R||y:R,V=oR(E,{...e==="root"&&!y&&!v[e]&&c,...e!=="root"&&!v[e]&&c,..._,...B&&!d&&{as:B},...B&&d&&{component:B},ref:z},o);return[E,V]}var KY={};function QY(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 cR(e,t,n,i){const o=e[t];if(o==null||!Number.isInteger(o)){const s=QY(o);return new RangeError(`Invalid ${i} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function fR(e,t,n,i){return e[t]===void 0?null:cR(e,t,n,i)}function v7(){return null}fR.isRequired=cR,v7.isRequired=v7;const dR=KY.NODE_ENV==="production"?v7:fR;function ZY(e){return Wt("MuiPaper",e)}Kt("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 hR={};const JY=e=>{const{square:t,elevation:n,variant:i,classes:o}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return en(s,ZY,o)},eX=it("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}`]]}})(Gt(({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)"}}]}))),Fv=G.forwardRef(function(t,n){var E;const i=ln({props:t,name:"MuiPaper"}),o=tf(),{className:s,component:c="div",elevation:d=1,square:h=!1,variant:y="elevation",...v}=i,S={...i,component:c,elevation:d,square:h,variant:y},T=JY(S);return hR.NODE_ENV!=="production"&&o.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(`
`)),H.jsx(eX,{as:c,ownerState:S,className:St(T.root,s),ref:n,...v,style:{...y==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":(E=o.vars.overlays)==null?void 0:E[d]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${$5("#fff",f7(d))}, ${$5("#fff",f7(d))})`}},...v.style}})});hR.NODE_ENV!=="production"&&(Fv.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,elevation:ou(dR,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 po=p.oneOfType([p.func,p.object]);var tX={};function lg(e){try{return e.matches(":focus-visible")}catch{tX.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 r3{constructor(){P(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 r3}static use(){const t=iR(r3.create).current,[n,i]=G.useState(!1);return t.shouldMount=n,t.setShouldMount=i,G.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=rX(),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 nX(){return r3.use()}function rX(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}var iX={};function pR(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:c,in:d,onExited:h,timeout:y}=e,[v,S]=G.useState(!1),T=St(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),E={width:c,height:c,top:-(c/2)+s,left:-(c/2)+o},C=St(n.child,v&&n.childLeaving,i&&n.childPulsate);return!d&&!v&&S(!0),G.useEffect(()=>{if(!d&&h!=null){const R=setTimeout(h,y);return()=>{clearTimeout(R)}}},[h,d,y]),H.jsx("span",{className:T,style:E,children:H.jsx("span",{className:C})})}iX.NODE_ENV!=="production"&&(pR.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 Kl=Kt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var aX={};const b7=550,oX=80,lX=Vv`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

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

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

  50% {
    transform: scale(0.92);
  }

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

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

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

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

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

  & .${Kl.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${uX};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,mR=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:c,...d}=i,[h,y]=G.useState([]),v=G.useRef(0),S=G.useRef(null);G.useEffect(()=>{S.current&&(S.current(),S.current=null)},[h]);const T=G.useRef(!1),E=og(),C=G.useRef(null),R=G.useRef(null),_=G.useCallback(V=>{const{pulsate:L,rippleX:U,rippleY:X,rippleSize:se,cb:ce}=V;y(ie=>[...ie,H.jsx(fX,{classes:{ripple:St(s.ripple,Kl.ripple),rippleVisible:St(s.rippleVisible,Kl.rippleVisible),ripplePulsate:St(s.ripplePulsate,Kl.ripplePulsate),child:St(s.child,Kl.child),childLeaving:St(s.childLeaving,Kl.childLeaving),childPulsate:St(s.childPulsate,Kl.childPulsate)},timeout:b7,pulsate:L,rippleX:U,rippleY:X,rippleSize:se},v.current)]),v.current+=1,S.current=ce},[s]),N=G.useCallback((V={},L={},U=()=>{})=>{const{pulsate:X=!1,center:se=o||L.pulsate,fakeElement:ce=!1}=L;if((V==null?void 0:V.type)==="mousedown"&&T.current){T.current=!1;return}(V==null?void 0:V.type)==="touchstart"&&(T.current=!0);const ie=ce?null:R.current,ue=ie?ie.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,le,K;if(se||V===void 0||V.clientX===0&&V.clientY===0||!V.clientX&&!V.touches)$=Math.round(ue.width/2),le=Math.round(ue.height/2);else{const{clientX:oe,clientY:Z}=V.touches&&V.touches.length>0?V.touches[0]:V;$=Math.round(oe-ue.left),le=Math.round(Z-ue.top)}if(se)K=Math.sqrt((2*ue.width**2+ue.height**2)/3),K%2===0&&(K+=1);else{const oe=Math.max(Math.abs((ie?ie.clientWidth:0)-$),$)*2+2,Z=Math.max(Math.abs((ie?ie.clientHeight:0)-le),le)*2+2;K=Math.sqrt(oe**2+Z**2)}V!=null&&V.touches?C.current===null&&(C.current=()=>{_({pulsate:X,rippleX:$,rippleY:le,rippleSize:K,cb:U})},E.start(oX,()=>{C.current&&(C.current(),C.current=null)})):_({pulsate:X,rippleX:$,rippleY:le,rippleSize:K,cb:U})},[o,_,E]),z=G.useCallback(()=>{N({},{pulsate:!0})},[N]),B=G.useCallback((V,L)=>{if(E.clear(),(V==null?void 0:V.type)==="touchend"&&C.current){C.current(),C.current=null,E.start(0,()=>{B(V,L)});return}C.current=null,y(U=>U.length>0?U.slice(1):U),S.current=L},[E]);return G.useImperativeHandle(n,()=>({pulsate:z,start:N,stop:B}),[z,N,B]),H.jsx(cX,{className:St(Kl.root,s.root,c),ref:R,...d,children:H.jsx(y7,{component:null,exit:!0,children:h})})});aX.NODE_ENV!=="production"&&(mR.propTypes={center:p.bool,classes:p.object,className:p.string});function dX(e){return Wt("MuiButtonBase",e)}const hX=Kt("MuiButtonBase",["root","disabled","focusVisible"]);var pX={};const mX=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,c=en({root:["root",t&&"disabled",n&&"focusVisible"]},dX,o);return n&&i&&(c.root+=` ${i}`),c},gX=it("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"},[`&.${hX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nd=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:c,className:d,component:h="button",disabled:y=!1,disableRipple:v=!1,disableTouchRipple:S=!1,focusRipple:T=!1,focusVisibleClassName:E,LinkComponent:C="a",onBlur:R,onClick:_,onContextMenu:N,onDragLeave:z,onFocus:B,onFocusVisible:V,onKeyDown:L,onKeyUp:U,onMouseDown:X,onMouseLeave:se,onMouseUp:ce,onTouchEnd:ie,onTouchMove:ue,onTouchStart:$,tabIndex:le=0,TouchRippleProps:K,touchRippleRef:oe,type:Z,...ae}=i,he=G.useRef(null),Ee=nX(),te=ri(Ee.ref,oe),[F,ee]=G.useState(!1);y&&F&&ee(!1),G.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),he.current.focus()}}),[]);const Y=Ee.shouldMount&&!v&&!y;G.useEffect(()=>{F&&T&&!v&&Ee.pulsate()},[v,T,F,Ee]);const Me=rf(Ee,"start",X,S),Se=rf(Ee,"stop",N,S),_e=rf(Ee,"stop",z,S),je=rf(Ee,"stop",ce,S),He=rf(Ee,"stop",At=>{F&&At.preventDefault(),se&&se(At)},S),Xe=rf(Ee,"start",$,S),Ke=rf(Ee,"stop",ie,S),et=rf(Ee,"stop",ue,S),Be=rf(Ee,"stop",At=>{lg(At.target)||ee(!1),R&&R(At)},!1),Re=Wl(At=>{he.current||(he.current=At.currentTarget),lg(At.target)&&(ee(!0),V&&V(At)),B&&B(At)}),st=()=>{const At=he.current;return h&&h!=="button"&&!(At.tagName==="A"&&At.href)},Mt=Wl(At=>{T&&!At.repeat&&F&&At.key===" "&&Ee.stop(At,()=>{Ee.start(At)}),At.target===At.currentTarget&&st()&&At.key===" "&&At.preventDefault(),L&&L(At),At.target===At.currentTarget&&st()&&At.key==="Enter"&&!y&&(At.preventDefault(),_&&_(At))}),Qt=Wl(At=>{T&&At.key===" "&&F&&!At.defaultPrevented&&Ee.stop(At,()=>{Ee.pulsate(At)}),U&&U(At),_&&At.target===At.currentTarget&&st()&&At.key===" "&&!At.defaultPrevented&&_(At)});let xt=h;xt==="button"&&(ae.href||ae.to)&&(xt=C);const Ut={};if(xt==="button"){const At=!!ae.formAction;Ut.type=Z===void 0&&!At?"button":Z,Ut.disabled=y}else!ae.href&&!ae.to&&(Ut.role="button"),y&&(Ut["aria-disabled"]=y);const hn=ri(n,he),mn={...i,centerRipple:s,component:h,disabled:y,disableRipple:v,disableTouchRipple:S,focusRipple:T,tabIndex:le,focusVisible:F},ot=mX(mn);return H.jsxs(gX,{as:xt,className:St(ot.root,d),ownerState:mn,onBlur:Be,onClick:_,onContextMenu:Se,onFocus:Re,onKeyDown:Mt,onKeyUp:Qt,onMouseDown:Me,onMouseLeave:He,onMouseUp:je,onDragLeave:_e,onTouchEnd:Ke,onTouchMove:et,onTouchStart:Xe,ref:hn,tabIndex:y?-1:le,type:Z,...Ut,...ae,children:[c,Y?H.jsx(mR,{ref:te,center:s,...K}):null]})});function rf(e,t,n,i=!1){return Wl(o=>(n&&n(o),i||e[t](o),!0))}pX.NODE_ENV!=="production"&&(Nd.propTypes={action:po,centerRipple:p.bool,children:p.node,classes:p.object,className:p.string,component:t3,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 yX(e){return typeof e.main=="string"}function vX(e,t=[]){if(!yX(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function $r(e=[]){return([,t])=>t&&vX(t,e)}function bX(e){return Wt("MuiAlert",e)}const gR=Kt("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 xX(e){return Wt("MuiCircularProgress",e)}Kt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var SX={};const lu=44,x7=Vv`
  0% {
    transform: rotate(0deg);
  }

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

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

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,wX=typeof x7!="string"?e7`
        animation: ${x7} 1.4s linear infinite;
      `:null,EX=typeof S7!="string"?e7`
        animation: ${S7} 1.4s ease-in-out infinite;
      `:null,TX=e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,s={root:["root",n,`color${Je(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Je(n)}`,o&&"circleDisableShrink"]};return en(s,xX,t)},AX=it("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:wX||{animation:`${x7} 1.4s linear infinite`}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),CX=it("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),OX=it("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Gt(({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:EX||{animation:`${S7} 1.4s ease-in-out infinite`}}]}))),MX=it("circle",{name:"MuiCircularProgress",slot:"Track"})(Gt(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Yv=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,enableTrackSlot:d=!1,size:h=40,style:y,thickness:v=3.6,value:S=0,variant:T="indeterminate",...E}=i,C={...i,color:s,disableShrink:c,size:h,thickness:v,value:S,variant:T,enableTrackSlot:d},R=TX(C),_={},N={},z={};if(T==="determinate"){const B=2*Math.PI*((lu-v)/2);_.strokeDasharray=B.toFixed(3),z["aria-valuenow"]=Math.round(S),_.strokeDashoffset=`${((100-S)/100*B).toFixed(3)}px`,N.transform="rotate(-90deg)"}return H.jsx(AX,{className:St(R.root,o),style:{width:h,height:h,...N,...y},ownerState:C,ref:n,role:"progressbar",...z,...E,children:H.jsxs(CX,{className:R.svg,ownerState:C,viewBox:`${lu/2} ${lu/2} ${lu} ${lu}`,children:[d?H.jsx(MX,{className:R.track,ownerState:C,cx:lu,cy:lu,r:(lu-v)/2,fill:"none",strokeWidth:v,"aria-hidden":"true"}):null,H.jsx(OX,{className:R.circle,style:_,ownerState:C,cx:lu,cy:lu,r:(lu-v)/2,fill:"none",strokeWidth:v})]})})});SX.NODE_ENV!=="production"&&(Yv.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","error","info","success","warning"]),p.string]),disableShrink:ou(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 RX(e){return Wt("MuiIconButton",e)}const yR=Kt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var _X={};const DX=e=>{const{classes:t,disabled:n,color:i,edge:o,size:s,loading:c}=e,d={root:["root",c&&"loading",n&&"disabled",i!=="default"&&`color${Je(i)}`,o&&`edge${Je(o)}`,`size${Je(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return en(d,RX,t)},NX=it(Nd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Je(n.color)}`],n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(n.size)}`]]}})(Gt(({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}}]})),Gt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($r()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($r()).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)}}],[`&.${yR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yR.loading}`]:{color:"transparent"}}))),kX=it("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"}}]})),sg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:c,color:d="default",disabled:h=!1,disableFocusRipple:y=!1,size:v="medium",id:S,loading:T=null,loadingIndicator:E,...C}=i,R=mh(S),_=E??H.jsx(Yv,{"aria-labelledby":R,color:"inherit",size:16}),N={...i,edge:o,color:d,disabled:h,disableFocusRipple:y,loading:T,loadingIndicator:_,size:v},z=DX(N);return H.jsxs(NX,{id:T?R:S,className:St(z.root,c),centerRipple:!0,focusRipple:!y,disabled:h||T,ref:n,...C,ownerState:N,children:[typeof T=="boolean"&&H.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:H.jsx(kX,{className:z.loadingIndicator,ownerState:N,children:T&&_})}),s]})});_X.NODE_ENV!=="production"&&(sg.propTypes={children:ou(p.node,e=>G.Children.toArray(e.children).some(n=>G.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 zX=Ri(H.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"),IX=Ri(H.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),LX=Ri(H.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"),VX=Ri(H.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"),BX=Ri(H.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 jX={};const PX=e=>{const{variant:t,color:n,severity:i,classes:o}=e,s={root:["root",`color${Je(n||i)}`,`${t}${Je(n||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return en(s,bX,o)},UX=it(Fv,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Je(n.color||n.severity)}`]]}})(Gt(({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($r(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${gR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($r(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${gR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter($r(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),$X=it("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),HX=it("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),qX=it("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vR={success:H.jsx(zX,{fontSize:"inherit"}),warning:H.jsx(IX,{fontSize:"inherit"}),error:H.jsx(LX,{fontSize:"inherit"}),info:H.jsx(VX,{fontSize:"inherit"})},bR=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiAlert"}),{action:o,children:s,className:c,closeText:d="Close",color:h,components:y={},componentsProps:v={},icon:S,iconMapping:T=vR,onClose:E,role:C="alert",severity:R="success",slotProps:_={},slots:N={},variant:z="standard",...B}=i,V={...i,color:h,severity:R,variant:z,colorSeverity:h||R},L=PX(V),U={slots:{closeButton:y.CloseButton,closeIcon:y.CloseIcon,...N},slotProps:{...v,..._}},[X,se]=nn("root",{ref:n,shouldForwardComponentProp:!0,className:St(L.root,c),elementType:UX,externalForwardedProps:{...U,...B},ownerState:V,additionalProps:{role:C,elevation:0}}),[ce,ie]=nn("icon",{className:L.icon,elementType:$X,externalForwardedProps:U,ownerState:V}),[ue,$]=nn("message",{className:L.message,elementType:HX,externalForwardedProps:U,ownerState:V}),[le,K]=nn("action",{className:L.action,elementType:qX,externalForwardedProps:U,ownerState:V}),[oe,Z]=nn("closeButton",{elementType:sg,externalForwardedProps:U,ownerState:V}),[ae,he]=nn("closeIcon",{elementType:BX,externalForwardedProps:U,ownerState:V});return H.jsxs(X,{...se,children:[S!==!1?H.jsx(ce,{...ie,children:S||T[R]||vR[R]}):null,H.jsx(ue,{...$,children:s}),o!=null?H.jsx(le,{...K,children:o}):null,o==null&&E?H.jsx(le,{...K,children:H.jsx(oe,{size:"small","aria-label":d,title:d,color:"inherit",onClick:E,...Z,children:H.jsx(ae,{fontSize:"small",...he})})}):null]})});jX.NODE_ENV!=="production"&&(bR.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 GX(e){return Wt("MuiTypography",e)}const xR=Kt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var FX={};const YX={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},XX=bY(),WX=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${Je(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return en(d,GX,c)},KX=it("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${Je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Gt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,i])=>n!=="inherit"&&i&&typeof i=="object").map(([n,i])=>({props:{variant:n},style:i})),...Object.entries(e.palette).filter($r()).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${Je(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}}]}})),SR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hr=G.forwardRef(function(t,n){const{color:i,...o}=ln({props:t,name:"MuiTypography"}),s=!YX[i],c=XX({...o,...s&&{color:i}}),{align:d="inherit",className:h,component:y,gutterBottom:v=!1,noWrap:S=!1,paragraph:T=!1,variant:E="body1",variantMapping:C=SR,...R}=c,_={...c,align:d,color:i,className:h,component:y,gutterBottom:v,noWrap:S,paragraph:T,variant:E,variantMapping:C},N=y||(T?"p":C[E]||SR[E])||"span",z=WX(_);return H.jsx(KX,{as:N,ref:n,className:St(z.root,h),...R,ownerState:_,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...R.style}})});FX.NODE_ENV!=="production"&&(Hr.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});var QX={};function af(e,t,n,i,o){if(QX.NODE_ENV==="production")return null;const s=e[t],c=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${i} \`${c}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Uo="top",Ql="bottom",Zl="right",$o="left",w7="auto",Xv=[Uo,Ql,Zl,$o],ug="start",Wv="end",ZX="clippingParents",wR="viewport",Kv="popper",JX="reference",ER=Xv.reduce(function(e,t){return e.concat([t+"-"+ug,t+"-"+Wv])},[]),TR=[].concat(Xv,[w7]).reduce(function(e,t){return e.concat([t,t+"-"+ug,t+"-"+Wv])},[]),eW="beforeRead",tW="read",nW="afterRead",rW="beforeMain",iW="main",aW="afterMain",oW="beforeWrite",lW="write",sW="afterWrite",uW=[eW,tW,nW,rW,iW,aW,oW,lW,sW];function tc(e){return e?(e.nodeName||"").toLowerCase():null}function bl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xh(e){var t=bl(e).Element;return e instanceof t||e instanceof Element}function Jl(e){var t=bl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function E7(e){if(typeof ShadowRoot>"u")return!1;var t=bl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Jl(s)||!tc(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(c){var d=o[c];d===!1?s.removeAttribute(c):s.setAttribute(c,d===!0?"":d)}))})}function fW(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(i){var o=t.elements[i],s=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),d=c.reduce(function(h,y){return h[y]="",h},{});!Jl(o)||!tc(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(h){o.removeAttribute(h)}))})}}const dW={name:"applyStyles",enabled:!0,phase:"write",fn:cW,effect:fW,requires:["computeStyles"]};function nc(e){return e.split("-")[0]}var Sh=Math.max,i3=Math.min,cg=Math.round;function T7(){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 AR(){return!/^((?!chrome|android).)*safari/i.test(T7())}function fg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&Jl(e)&&(o=e.offsetWidth>0&&cg(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&cg(i.height)/e.offsetHeight||1);var c=xh(e)?bl(e):window,d=c.visualViewport,h=!AR()&&n,y=(i.left+(h&&d?d.offsetLeft:0))/o,v=(i.top+(h&&d?d.offsetTop:0))/s,S=i.width/o,T=i.height/s;return{width:S,height:T,top:v,right:y+S,bottom:v+T,left:y,x:y,y:v}}function A7(e){var t=fg(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function CR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&E7(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function of(e){return bl(e).getComputedStyle(e)}function hW(e){return["table","td","th"].indexOf(tc(e))>=0}function kd(e){return((xh(e)?e.ownerDocument:e.document)||window.document).documentElement}function a3(e){return tc(e)==="html"?e:e.assignedSlot||e.parentNode||(E7(e)?e.host:null)||kd(e)}function OR(e){return!Jl(e)||of(e).position==="fixed"?null:e.offsetParent}function pW(e){var t=/firefox/i.test(T7()),n=/Trident/i.test(T7());if(n&&Jl(e)){var i=of(e);if(i.position==="fixed")return null}var o=a3(e);for(E7(o)&&(o=o.host);Jl(o)&&["html","body"].indexOf(tc(o))<0;){var s=of(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Qv(e){for(var t=bl(e),n=OR(e);n&&hW(n)&&of(n).position==="static";)n=OR(n);return n&&(tc(n)==="html"||tc(n)==="body"&&of(n).position==="static")?t:n||pW(e)||t}function C7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zv(e,t,n){return Sh(e,i3(t,n))}function mW(e,t,n){var i=Zv(e,t,n);return i>n?n:i}function MR(){return{top:0,right:0,bottom:0,left:0}}function RR(e){return Object.assign({},MR(),e)}function _R(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var gW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RR(typeof t!="number"?t:_R(t,Xv))};function yW(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,d=nc(n.placement),h=C7(d),y=[$o,Zl].indexOf(d)>=0,v=y?"height":"width";if(!(!s||!c)){var S=gW(o.padding,n),T=A7(s),E=h==="y"?Uo:$o,C=h==="y"?Ql:Zl,R=n.rects.reference[v]+n.rects.reference[h]-c[h]-n.rects.popper[v],_=c[h]-n.rects.reference[h],N=Qv(s),z=N?h==="y"?N.clientHeight||0:N.clientWidth||0:0,B=R/2-_/2,V=S[E],L=z-T[v]-S[C],U=z/2-T[v]/2+B,X=Zv(V,U,L),se=h;n.modifiersData[i]=(t={},t[se]=X,t.centerOffset=X-U,t)}}function vW(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CR(t.elements.popper,o)&&(t.elements.arrow=o))}const bW={name:"arrow",enabled:!0,phase:"main",fn:yW,effect:vW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dg(e){return e.split("-")[1]}var xW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SW(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:cg(n*o)/o||0,y:cg(i*o)/o||0}}function DR(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,S=e.isFixed,T=c.x,E=T===void 0?0:T,C=c.y,R=C===void 0?0:C,_=typeof v=="function"?v({x:E,y:R}):{x:E,y:R};E=_.x,R=_.y;var N=c.hasOwnProperty("x"),z=c.hasOwnProperty("y"),B=$o,V=Uo,L=window;if(y){var U=Qv(n),X="clientHeight",se="clientWidth";if(U===bl(n)&&(U=kd(n),of(U).position!=="static"&&d==="absolute"&&(X="scrollHeight",se="scrollWidth")),U=U,o===Uo||(o===$o||o===Zl)&&s===Wv){V=Ql;var ce=S&&U===L&&L.visualViewport?L.visualViewport.height:U[X];R-=ce-i.height,R*=h?1:-1}if(o===$o||(o===Uo||o===Ql)&&s===Wv){B=Zl;var ie=S&&U===L&&L.visualViewport?L.visualViewport.width:U[se];E-=ie-i.width,E*=h?1:-1}}var ue=Object.assign({position:d},y&&xW),$=v===!0?SW({x:E,y:R},bl(n)):{x:E,y:R};if(E=$.x,R=$.y,h){var le;return Object.assign({},ue,(le={},le[V]=z?"0":"",le[B]=N?"0":"",le.transform=(L.devicePixelRatio||1)<=1?"translate("+E+"px, "+R+"px)":"translate3d("+E+"px, "+R+"px, 0)",le))}return Object.assign({},ue,(t={},t[V]=z?R+"px":"",t[B]=N?E+"px":"",t.transform="",t))}function wW(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,c=s===void 0?!0:s,d=n.roundOffsets,h=d===void 0?!0:d,y={placement:nc(t.placement),variation:dg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DR(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DR(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 EW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wW,data:{}};var o3={passive:!0};function TW(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,c=i.resize,d=c===void 0?!0:c,h=bl(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&y.forEach(function(v){v.addEventListener("scroll",n.update,o3)}),d&&h.addEventListener("resize",n.update,o3),function(){s&&y.forEach(function(v){v.removeEventListener("scroll",n.update,o3)}),d&&h.removeEventListener("resize",n.update,o3)}}const AW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TW,data:{}};var CW={left:"right",right:"left",bottom:"top",top:"bottom"};function l3(e){return e.replace(/left|right|bottom|top/g,function(t){return CW[t]})}var OW={start:"end",end:"start"};function NR(e){return e.replace(/start|end/g,function(t){return OW[t]})}function O7(e){var t=bl(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function M7(e){return fg(kd(e)).left+O7(e).scrollLeft}function MW(e,t){var n=bl(e),i=kd(e),o=n.visualViewport,s=i.clientWidth,c=i.clientHeight,d=0,h=0;if(o){s=o.width,c=o.height;var y=AR();(y||!y&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:s,height:c,x:d+M7(e),y:h}}function RW(e){var t,n=kd(e),i=O7(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Sh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Sh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-i.scrollLeft+M7(e),h=-i.scrollTop;return of(o||n).direction==="rtl"&&(d+=Sh(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:d,y:h}}function R7(e){var t=of(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function kR(e){return["html","body","#document"].indexOf(tc(e))>=0?e.ownerDocument.body:Jl(e)&&R7(e)?e:kR(a3(e))}function Jv(e,t){var n;t===void 0&&(t=[]);var i=kR(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=bl(i),c=o?[s].concat(s.visualViewport||[],R7(i)?i:[]):i,d=t.concat(c);return o?d:d.concat(Jv(a3(c)))}function _7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _W(e,t){var n=fg(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 zR(e,t,n){return t===wR?_7(MW(e,n)):xh(t)?_W(t,n):_7(RW(kd(e)))}function DW(e){var t=Jv(a3(e)),n=["absolute","fixed"].indexOf(of(e).position)>=0,i=n&&Jl(e)?Qv(e):e;return xh(i)?t.filter(function(o){return xh(o)&&CR(o,i)&&tc(o)!=="body"}):[]}function NW(e,t,n,i){var o=t==="clippingParents"?DW(e):[].concat(t),s=[].concat(o,[n]),c=s[0],d=s.reduce(function(h,y){var v=zR(e,y,i);return h.top=Sh(v.top,h.top),h.right=i3(v.right,h.right),h.bottom=i3(v.bottom,h.bottom),h.left=Sh(v.left,h.left),h},zR(e,c,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function IR(e){var t=e.reference,n=e.element,i=e.placement,o=i?nc(i):null,s=i?dg(i):null,c=t.x+t.width/2-n.width/2,d=t.y+t.height/2-n.height/2,h;switch(o){case Uo:h={x:c,y:t.y-n.height};break;case Ql:h={x:c,y:t.y+t.height};break;case Zl:h={x:t.x+t.width,y:d};break;case $o:h={x:t.x-n.width,y:d};break;default:h={x:t.x,y:t.y}}var y=o?C7(o):null;if(y!=null){var v=y==="y"?"height":"width";switch(s){case ug:h[y]=h[y]-(t[v]/2-n[v]/2);break;case Wv:h[y]=h[y]+(t[v]/2-n[v]/2);break}}return h}function eb(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,c=s===void 0?e.strategy:s,d=n.boundary,h=d===void 0?ZX:d,y=n.rootBoundary,v=y===void 0?wR:y,S=n.elementContext,T=S===void 0?Kv:S,E=n.altBoundary,C=E===void 0?!1:E,R=n.padding,_=R===void 0?0:R,N=RR(typeof _!="number"?_:_R(_,Xv)),z=T===Kv?JX:Kv,B=e.rects.popper,V=e.elements[C?z:T],L=NW(xh(V)?V:V.contextElement||kd(e.elements.popper),h,v,c),U=fg(e.elements.reference),X=IR({reference:U,element:B,placement:o}),se=_7(Object.assign({},B,X)),ce=T===Kv?se:U,ie={top:L.top-ce.top+N.top,bottom:ce.bottom-L.bottom+N.bottom,left:L.left-ce.left+N.left,right:ce.right-L.right+N.right},ue=e.modifiersData.offset;if(T===Kv&&ue){var $=ue[o];Object.keys(ie).forEach(function(le){var K=[Zl,Ql].indexOf(le)>=0?1:-1,oe=[Uo,Ql].indexOf(le)>=0?"y":"x";ie[le]+=$[oe]*K})}return ie}function kW(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,y=h===void 0?TR:h,v=dg(i),S=v?d?ER:ER.filter(function(C){return dg(C)===v}):Xv,T=S.filter(function(C){return y.indexOf(C)>=0});T.length===0&&(T=S);var E=T.reduce(function(C,R){return C[R]=eb(e,{placement:R,boundary:o,rootBoundary:s,padding:c})[nc(R)],C},{});return Object.keys(E).sort(function(C,R){return E[C]-E[R]})}function zW(e){if(nc(e)===w7)return[];var t=l3(e);return[NR(e),t,NR(t)]}function IW(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,d=c===void 0?!0:c,h=n.fallbackPlacements,y=n.padding,v=n.boundary,S=n.rootBoundary,T=n.altBoundary,E=n.flipVariations,C=E===void 0?!0:E,R=n.allowedAutoPlacements,_=t.options.placement,N=nc(_),z=N===_,B=h||(z||!C?[l3(_)]:zW(_)),V=[_].concat(B).reduce(function(Me,Se){return Me.concat(nc(Se)===w7?kW(t,{placement:Se,boundary:v,rootBoundary:S,padding:y,flipVariations:C,allowedAutoPlacements:R}):Se)},[]),L=t.rects.reference,U=t.rects.popper,X=new Map,se=!0,ce=V[0],ie=0;ie<V.length;ie++){var ue=V[ie],$=nc(ue),le=dg(ue)===ug,K=[Uo,Ql].indexOf($)>=0,oe=K?"width":"height",Z=eb(t,{placement:ue,boundary:v,rootBoundary:S,altBoundary:T,padding:y}),ae=K?le?Zl:$o:le?Ql:Uo;L[oe]>U[oe]&&(ae=l3(ae));var he=l3(ae),Ee=[];if(s&&Ee.push(Z[$]<=0),d&&Ee.push(Z[ae]<=0,Z[he]<=0),Ee.every(function(Me){return Me})){ce=ue,se=!1;break}X.set(ue,Ee)}if(se)for(var te=C?3:1,F=function(Se){var _e=V.find(function(je){var He=X.get(je);if(He)return He.slice(0,Se).every(function(Xe){return Xe})});if(_e)return ce=_e,"break"},ee=te;ee>0;ee--){var Y=F(ee);if(Y==="break")break}t.placement!==ce&&(t.modifiersData[i]._skip=!0,t.placement=ce,t.reset=!0)}}const LW={name:"flip",enabled:!0,phase:"main",fn:IW,requiresIfExists:["offset"],data:{_skip:!1}};function LR(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 VR(e){return[Uo,Zl,Ql,$o].some(function(t){return e[t]>=0})}function VW(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=eb(t,{elementContext:"reference"}),d=eb(t,{altBoundary:!0}),h=LR(c,i),y=LR(d,o,s),v=VR(h),S=VR(y);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:v,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":S})}const BW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VW};function jW(e,t,n){var i=nc(e),o=[$o,Uo].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],d=s[1];return c=c||0,d=(d||0)*o,[$o,Zl].indexOf(i)>=0?{x:d,y:c}:{x:c,y:d}}function PW(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=TR.reduce(function(v,S){return v[S]=jW(S,t.rects,s),v},{}),d=c[t.placement],h=d.x,y=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=y),t.modifiersData[i]=c}const UW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PW};function $W(e){var t=e.state,n=e.name;t.modifiersData[n]=IR({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const HW={name:"popperOffsets",enabled:!0,phase:"read",fn:$W,data:{}};function qW(e){return e==="x"?"y":"x"}function GW(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,d=c===void 0?!1:c,h=n.boundary,y=n.rootBoundary,v=n.altBoundary,S=n.padding,T=n.tether,E=T===void 0?!0:T,C=n.tetherOffset,R=C===void 0?0:C,_=eb(t,{boundary:h,rootBoundary:y,padding:S,altBoundary:v}),N=nc(t.placement),z=dg(t.placement),B=!z,V=C7(N),L=qW(V),U=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,$={x:0,y:0};if(U){if(s){var le,K=V==="y"?Uo:$o,oe=V==="y"?Ql:Zl,Z=V==="y"?"height":"width",ae=U[V],he=ae+_[K],Ee=ae-_[oe],te=E?-se[Z]/2:0,F=z===ug?X[Z]:se[Z],ee=z===ug?-se[Z]:-X[Z],Y=t.elements.arrow,Me=E&&Y?A7(Y):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:MR(),_e=Se[K],je=Se[oe],He=Zv(0,X[Z],Me[Z]),Xe=B?X[Z]/2-te-He-_e-ie.mainAxis:F-He-_e-ie.mainAxis,Ke=B?-X[Z]/2+te+He+je+ie.mainAxis:ee+He+je+ie.mainAxis,et=t.elements.arrow&&Qv(t.elements.arrow),Be=et?V==="y"?et.clientTop||0:et.clientLeft||0:0,Re=(le=ue==null?void 0:ue[V])!=null?le:0,st=ae+Xe-Re-Be,Mt=ae+Ke-Re,Qt=Zv(E?i3(he,st):he,ae,E?Sh(Ee,Mt):Ee);U[V]=Qt,$[V]=Qt-ae}if(d){var xt,Ut=V==="x"?Uo:$o,hn=V==="x"?Ql:Zl,mn=U[L],ot=L==="y"?"height":"width",At=mn+_[Ut],Rn=mn-_[hn],Bt=[Uo,$o].indexOf(N)!==-1,Ze=(xt=ue==null?void 0:ue[L])!=null?xt:0,be=Bt?At:mn-X[ot]-se[ot]-Ze+ie.altAxis,Ve=Bt?mn+X[ot]+se[ot]-Ze-ie.altAxis:Rn,nt=E&&Bt?mW(be,mn,Ve):Zv(E?be:At,mn,E?Ve:Rn);U[L]=nt,$[L]=nt-mn}t.modifiersData[i]=$}}const FW={name:"preventOverflow",enabled:!0,phase:"main",fn:GW,requiresIfExists:["offset"]};function YW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XW(e){return e===bl(e)||!Jl(e)?O7(e):YW(e)}function WW(e){var t=e.getBoundingClientRect(),n=cg(t.width)/e.offsetWidth||1,i=cg(t.height)/e.offsetHeight||1;return n!==1||i!==1}function KW(e,t,n){n===void 0&&(n=!1);var i=Jl(t),o=Jl(t)&&WW(t),s=kd(t),c=fg(e,o,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!n)&&((tc(t)!=="body"||R7(s))&&(d=XW(t)),Jl(t)?(h=fg(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=M7(s))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function QW(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(d){if(!n.has(d)){var h=t.get(d);h&&o(h)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function ZW(e){var t=QW(e);return uW.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function JW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function eK(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var BR={placement:"bottom",modifiers:[],strategy:"absolute"};function jR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function tK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?BR:o;return function(d,h,y){y===void 0&&(y=s);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},BR,s),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},S=[],T=!1,E={state:v,setOptions:function(N){var z=typeof N=="function"?N(v.options):N;R(),v.options=Object.assign({},s,v.options,z),v.scrollParents={reference:xh(d)?Jv(d):d.contextElement?Jv(d.contextElement):[],popper:Jv(h)};var B=ZW(eK([].concat(i,v.options.modifiers)));return v.orderedModifiers=B.filter(function(V){return V.enabled}),C(),E.update()},forceUpdate:function(){if(!T){var N=v.elements,z=N.reference,B=N.popper;if(jR(z,B)){v.rects={reference:KW(z,Qv(B),v.options.strategy==="fixed"),popper:A7(B)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(ie){return v.modifiersData[ie.name]=Object.assign({},ie.data)});for(var V=0;V<v.orderedModifiers.length;V++){if(v.reset===!0){v.reset=!1,V=-1;continue}var L=v.orderedModifiers[V],U=L.fn,X=L.options,se=X===void 0?{}:X,ce=L.name;typeof U=="function"&&(v=U({state:v,options:se,name:ce,instance:E})||v)}}}},update:JW(function(){return new Promise(function(_){E.forceUpdate(),_(v)})}),destroy:function(){R(),T=!0}};if(!jR(d,h))return E;E.setOptions(y).then(function(_){!T&&y.onFirstUpdate&&y.onFirstUpdate(_)});function C(){v.orderedModifiers.forEach(function(_){var N=_.name,z=_.options,B=z===void 0?{}:z,V=_.effect;if(typeof V=="function"){var L=V({state:v,name:N,instance:E,options:B}),U=function(){};S.push(L||U)}})}function R(){S.forEach(function(_){return _()}),S=[]}return E}}var nK=[AW,HW,EW,dW,UW,LW,FW,bW,BW],rK=tK({defaultModifiers:nK});function rc(e){var S;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,c=o?{}:lR(n,i),{props:d,internalRef:h}=uR({...s,externalSlotProps:c}),y=ri(h,c==null?void 0:c.ref,(S=e.additionalProps)==null?void 0:S.ref);return oR(t,{...d,ref:y},i)}var iK={};function s3(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||iK.NODE_ENV==="test")}function hg(e){var t;return parseInt(G.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}var PR={};function aK(e){return typeof e=="function"?e():e}const tb=G.forwardRef(function(t,n){const{children:i,container:o,disablePortal:s=!1}=t,[c,d]=G.useState(null),h=ri(G.isValidElement(i)?hg(i):null,n);if(Xl(()=>{s||d(aK(o)||document.body)},[o,s]),Xl(()=>{if(c&&!s)return YM(n,c),()=>{YM(n,null)}},[n,c,s]),s){if(G.isValidElement(i)){const y={ref:h};return G.cloneElement(i,y)}return i}return c&&eR.createPortal(i,c)});PR.NODE_ENV!=="production"&&(tb.propTypes={children:p.node,container:p.oneOfType([af,p.func]),disablePortal:p.bool}),PR.NODE_ENV!=="production"&&(tb.propTypes=EM(tb.propTypes));function oK(e){return Wt("MuiPopper",e)}Kt("MuiPopper",["root"]);var D7={};function lK(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 u3(e){return typeof e=="function"?e():e}function c3(e){return e.nodeType!==void 0}function sK(e){return!c3(e)}const uK=e=>{const{classes:t}=e;return en({root:["root"]},oK,t)},cK={},fK=G.forwardRef(function(t,n){const{anchorEl:i,children:o,direction:s,disablePortal:c,modifiers:d,open:h,placement:y,popperOptions:v,popperRef:S,slotProps:T={},slots:E={},TransitionProps:C,ownerState:R,..._}=t,N=G.useRef(null),z=ri(N,n),B=G.useRef(null),V=ri(B,S),L=G.useRef(V);Xl(()=>{L.current=V},[V]),G.useImperativeHandle(S,()=>B.current,[]);const U=lK(y,s),[X,se]=G.useState(U),[ce,ie]=G.useState(u3(i));G.useEffect(()=>{B.current&&B.current.forceUpdate()}),G.useEffect(()=>{i&&ie(u3(i))},[i]),Xl(()=>{if(!ce||!h)return;const oe=he=>{se(he.placement)};if(D7.NODE_ENV!=="production"&&ce&&c3(ce)&&ce.nodeType===1){const he=ce.getBoundingClientRect();s3()&&he.top===0&&he.left===0&&he.right===0&&he.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 Z=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:he})=>{oe(he)}}];d!=null&&(Z=Z.concat(d)),v&&v.modifiers!=null&&(Z=Z.concat(v.modifiers));const ae=rK(ce,N.current,{placement:U,...v,modifiers:Z});return L.current(ae),()=>{ae.destroy(),L.current(null)}},[ce,c,d,h,v,U]);const ue={placement:X};C!==null&&(ue.TransitionProps=C);const $=uK(t),le=E.root??"div",K=rc({elementType:le,externalSlotProps:T.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:$.root});return H.jsx(le,{...K,children:typeof o=="function"?o(ue):o})}),UR=G.forwardRef(function(t,n){const{anchorEl:i,children:o,container:s,direction:c="ltr",disablePortal:d=!1,keepMounted:h=!1,modifiers:y,open:v,placement:S="bottom",popperOptions:T=cK,popperRef:E,style:C,transition:R=!1,slotProps:_={},slots:N={},...z}=t,[B,V]=G.useState(!0),L=()=>{V(!1)},U=()=>{V(!0)};if(!h&&!v&&(!R||B))return null;let X;if(s)X=s;else if(i){const ie=u3(i);X=ie&&c3(ie)?Ea(ie).body:Ea(null).body}const se=!v&&h&&(!R||B)?"none":void 0,ce=R?{in:v,onEnter:L,onExited:U}:void 0;return H.jsx(tb,{disablePortal:d,container:X,children:H.jsx(fK,{anchorEl:i,direction:c,disablePortal:d,modifiers:y,ref:n,open:R?!B:v,placement:S,popperOptions:T,popperRef:E,slotProps:_,slots:N,...z,style:{position:"fixed",top:0,left:0,display:se,...C},TransitionProps:ce,children:o})})});D7.NODE_ENV!=="production"&&(UR.propTypes={anchorEl:ou(p.oneOfType([af,p.object,p.func]),e=>{if(e.open){const t=u3(e.anchorEl);if(t&&c3(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(D7.NODE_ENV!=="production"&&s3()&&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"||sK(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([af,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:po,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});var dK={};const hK=it(UR,{name:"MuiPopper",slot:"Root"})({}),N7=G.forwardRef(function(t,n){const i=F5(),o=ln({props:t,name:"MuiPopper"}),{anchorEl:s,component:c,components:d,componentsProps:h,container:y,disablePortal:v,keepMounted:S,modifiers:T,open:E,placement:C,popperOptions:R,popperRef:_,transition:N,slots:z,slotProps:B,...V}=o,L=(z==null?void 0:z.root)??(d==null?void 0:d.Root),U={anchorEl:s,container:y,disablePortal:v,keepMounted:S,modifiers:T,open:E,placement:C,popperOptions:R,popperRef:_,transition:N,...V};return H.jsx(hK,{as:c,direction:i?"rtl":"ltr",slots:{root:L},slotProps:B??h,...U,ref:n})});dK.NODE_ENV!=="production"&&(N7.propTypes={anchorEl:p.oneOfType([af,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([af,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:po,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 pK=Ri(H.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 mK(e){return Wt("MuiChip",e)}const Ln=Kt("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 $R={};const gK=e=>{const{classes:t,disabled:n,size:i,color:o,iconColor:s,onDelete:c,clickable:d,variant:h}=e,y={root:["root",h,n&&"disabled",`size${Je(i)}`,`color${Je(o)}`,d&&"clickable",d&&`clickableColor${Je(o)}`,c&&"deletable",c&&`deletableColor${Je(o)}`,`${h}${Je(o)}`],label:["label",`label${Je(i)}`],avatar:["avatar",`avatar${Je(i)}`,`avatarColor${Je(o)}`],icon:["icon",`icon${Je(i)}`,`iconColor${Je(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Je(i)}`,`deleteIconColor${Je(o)}`,`deleteIcon${Je(h)}Color${Je(o)}`]};return en(y,mK,t)},yK=it("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:o,clickable:s,onDelete:c,size:d,variant:h}=n;return[{[`& .${Ln.avatar}`]:t.avatar},{[`& .${Ln.avatar}`]:t[`avatar${Je(d)}`]},{[`& .${Ln.avatar}`]:t[`avatarColor${Je(i)}`]},{[`& .${Ln.icon}`]:t.icon},{[`& .${Ln.icon}`]:t[`icon${Je(d)}`]},{[`& .${Ln.icon}`]:t[`iconColor${Je(o)}`]},{[`& .${Ln.deleteIcon}`]:t.deleteIcon},{[`& .${Ln.deleteIcon}`]:t[`deleteIcon${Je(d)}`]},{[`& .${Ln.deleteIcon}`]:t[`deleteIconColor${Je(i)}`]},{[`& .${Ln.deleteIcon}`]:t[`deleteIcon${Je(h)}Color${Je(i)}`]},t.root,t[`size${Je(d)}`],t[`color${Je(i)}`],s&&t.clickable,s&&i!=="default"&&t[`clickableColor${Je(i)}`],c&&t.deletable,c&&i!=="default"&&t[`deletableColor${Je(i)}`],t[h],t[`${h}${Je(i)}`]]}})(Gt(({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",[`&.${Ln.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ln.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ln.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ln.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ln.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ln.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ln.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,[`& .${Ln.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ln.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($r(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ln.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:{[`& .${Ln.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ln.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ln.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($r(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ln.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}`)},[`&.${Ln.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($r(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ln.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]}`,[`&.${Ln.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ln.avatar}`]:{marginLeft:4},[`& .${Ln.avatarSmall}`]:{marginLeft:2},[`& .${Ln.icon}`]:{marginLeft:4},[`& .${Ln.iconSmall}`]:{marginLeft:2},[`& .${Ln.deleteIcon}`]:{marginRight:5},[`& .${Ln.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($r()).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)}`,[`&.${Ln.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ln.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ln.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),vK=it("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${Je(i)}`]]}})({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 HR(e){return e.key==="Backspace"||e.key==="Delete"}const qR=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:c,color:d="default",component:h,deleteIcon:y,disabled:v=!1,icon:S,label:T,onClick:E,onDelete:C,onKeyDown:R,onKeyUp:_,size:N="medium",variant:z="filled",tabIndex:B,skipFocusWhenDisabled:V=!1,slots:L={},slotProps:U={},...X}=i,se=G.useRef(null),ce=ri(se,n),ie=_e=>{_e.stopPropagation(),C(_e)},ue=_e=>{_e.currentTarget===_e.target&&HR(_e)&&_e.preventDefault(),R&&R(_e)},$=_e=>{_e.currentTarget===_e.target&&C&&HR(_e)&&C(_e),_&&_(_e)},le=c!==!1&&E?!0:c,K=le||C?Nd:h||"div",oe={...i,component:K,disabled:v,size:N,color:d,iconColor:G.isValidElement(S)&&S.props.color||d,onDelete:!!C,clickable:le,variant:z},Z=gK(oe),ae=K===Nd?{component:h||"div",focusVisibleClassName:Z.focusVisible,...C&&{disableRipple:!0}}:{};let he=null;C&&(he=y&&G.isValidElement(y)?G.cloneElement(y,{className:St(y.props.className,Z.deleteIcon),onClick:ie}):H.jsx(pK,{className:Z.deleteIcon,onClick:ie}));let Ee=null;o&&G.isValidElement(o)&&(Ee=G.cloneElement(o,{className:St(Z.avatar,o.props.className)}));let te=null;S&&G.isValidElement(S)&&(te=G.cloneElement(S,{className:St(Z.icon,S.props.className)})),$R.NODE_ENV!=="production"&&Ee&&te&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:L,slotProps:U},[ee,Y]=nn("root",{elementType:yK,externalForwardedProps:{...F,...X},ownerState:oe,shouldForwardComponentProp:!0,ref:ce,className:St(Z.root,s),additionalProps:{disabled:le&&v?!0:void 0,tabIndex:V&&v?-1:B,...ae},getSlotProps:_e=>({..._e,onClick:je=>{var He;(He=_e.onClick)==null||He.call(_e,je),E==null||E(je)},onKeyDown:je=>{var He;(He=_e.onKeyDown)==null||He.call(_e,je),ue(je)},onKeyUp:je=>{var He;(He=_e.onKeyUp)==null||He.call(_e,je),$(je)}})}),[Me,Se]=nn("label",{elementType:vK,externalForwardedProps:F,ownerState:oe,className:Z.label});return H.jsxs(ee,{as:K,...Y,children:[Ee||te,H.jsx(Me,{...Se,children:T}),he]})});$R.NODE_ENV!=="production"&&(qR.propTypes={avatar:p.element,children:MY,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 bK={};function f3(e){return parseInt(e,10)||0}const xK={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function SK(e){for(const t in e)return!1;return!0}function GR(e){return SK(e)||e.outerHeightStyle===0&&!e.overflowing}const k7=G.forwardRef(function(t,n){const{onChange:i,maxRows:o,minRows:s=1,style:c,value:d,...h}=t,{current:y}=G.useRef(d!=null),v=G.useRef(null),S=ri(n,v),T=G.useRef(null),E=G.useRef(null),C=G.useCallback(()=>{const B=v.current,V=E.current;if(!B||!V)return;const U=nf(B).getComputedStyle(B);if(U.width==="0px")return{outerHeightStyle:0,overflowing:!1};V.style.width=U.width,V.value=B.value||t.placeholder||"x",V.value.slice(-1)===`
`&&(V.value+=" ");const X=U.boxSizing,se=f3(U.paddingBottom)+f3(U.paddingTop),ce=f3(U.borderBottomWidth)+f3(U.borderTopWidth),ie=V.scrollHeight;V.value="x";const ue=V.scrollHeight;let $=ie;s&&($=Math.max(Number(s)*ue,$)),o&&($=Math.min(Number(o)*ue,$)),$=Math.max($,ue);const le=$+(X==="border-box"?se+ce:0),K=Math.abs($-ie)<=1;return{outerHeightStyle:le,overflowing:K}},[o,s,t.placeholder]),R=Wl(()=>{const B=v.current,V=C();if(!B||!V||GR(V))return!1;const L=V.outerHeightStyle;return T.current!=null&&T.current!==L}),_=G.useCallback(()=>{const B=v.current,V=C();if(!B||!V||GR(V))return;const L=V.outerHeightStyle;T.current!==L&&(T.current=L,B.style.height=`${L}px`),B.style.overflow=V.overflowing?"hidden":""},[C]),N=G.useRef(-1);Xl(()=>{const B=FM(_),V=v==null?void 0:v.current;if(!V)return;const L=nf(V);L.addEventListener("resize",B);let U;return typeof ResizeObserver<"u"&&(U=new ResizeObserver(()=>{R()&&(U.unobserve(V),cancelAnimationFrame(N.current),_(),N.current=requestAnimationFrame(()=>{U.observe(V)}))}),U.observe(V)),()=>{B.clear(),cancelAnimationFrame(N.current),L.removeEventListener("resize",B),U&&U.disconnect()}},[C,_,R]),Xl(()=>{_()});const z=B=>{y||_();const V=B.target,L=V.value.length,U=V.value.endsWith(`
`),X=V.selectionStart===L;U&&X&&V.setSelectionRange(L,L),i&&i(B)};return H.jsxs(G.Fragment,{children:[H.jsx("textarea",{value:d,onChange:z,ref:S,rows:s,style:c,...h}),H.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:E,tabIndex:-1,style:{...xK.shadow,...c,paddingTop:0,paddingBottom:0}})]})});bK.NODE_ENV!=="production"&&(k7.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 zd({props:e,states:t,muiFormControl:n}){return t.reduce((i,o)=>(i[o]=e[o],n&&typeof e[o]>"u"&&(i[o]=n[o]),i),{})}var wK={};const nb=G.createContext(void 0);wK.NODE_ENV!=="production"&&(nb.displayName="FormControlContext");function su(){return G.useContext(nb)}function FR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function d3(e,t=!1){return e&&(FR(e.value)&&e.value!==""||t&&FR(e.defaultValue)&&e.defaultValue!=="")}function EK(e){return e.startAdornment}function TK(e){return Wt("MuiInputBase",e)}const pg=Kt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var rb={},YR;const h3=(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${Je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},p3=(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]},AK=e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:s,focused:c,formControl:d,fullWidth:h,hiddenLabel:y,multiline:v,readOnly:S,size:T,startAdornment:E,type:C}=e,R={root:["root",`color${Je(n)}`,i&&"disabled",o&&"error",h&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${Je(T)}`,v&&"multiline",E&&"adornedStart",s&&"adornedEnd",y&&"hiddenLabel",S&&"readOnly"],input:["input",i&&"disabled",C==="search"&&"inputTypeSearch",v&&"inputMultiline",T==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",E&&"inputAdornedStart",s&&"inputAdornedEnd",S&&"readOnly"]};return en(R,TK,t)},m3=it("div",{name:"MuiInputBase",slot:"Root",overridesResolver:h3})(Gt(({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",[`&.${pg.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%"}}]}))),g3=it("input",{name:"MuiInputBase",slot:"Input",overridesResolver:p3})(Gt(({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})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${pg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),XR=vY({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),y3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:c,className:d,color:h,components:y={},componentsProps:v={},defaultValue:S,disabled:T,disableInjectingGlobalStyles:E,endAdornment:C,error:R,fullWidth:_=!1,id:N,inputComponent:z="input",inputProps:B={},inputRef:V,margin:L,maxRows:U,minRows:X,multiline:se=!1,name:ce,onBlur:ie,onChange:ue,onClick:$,onFocus:le,onKeyDown:K,onKeyUp:oe,placeholder:Z,readOnly:ae,renderSuffix:he,rows:Ee,size:te,slotProps:F={},slots:ee={},startAdornment:Y,type:Me="text",value:Se,..._e}=i,je=B.value!=null?B.value:Se,{current:He}=G.useRef(je!=null),Xe=G.useRef(),Ke=G.useCallback(yt=>{rb.NODE_ENV!=="production"&&yt&&yt.nodeName!=="INPUT"&&!yt.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(`
`))},[]),et=ri(Xe,V,B.ref,Ke),[Be,Re]=G.useState(!1),st=su();rb.NODE_ENV!=="production"&&G.useEffect(()=>{if(st)return st.registerEffect()},[st]);const Mt=zd({props:i,muiFormControl:st,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Mt.focused=st?st.focused:Be,G.useEffect(()=>{!st&&T&&Be&&(Re(!1),ie&&ie())},[st,T,Be,ie]);const Qt=st&&st.onFilled,xt=st&&st.onEmpty,Ut=G.useCallback(yt=>{d3(yt)?Qt&&Qt():xt&&xt()},[Qt,xt]);Xl(()=>{He&&Ut({value:je})},[je,Ut,He]);const hn=yt=>{le&&le(yt),B.onFocus&&B.onFocus(yt),st&&st.onFocus?st.onFocus(yt):Re(!0)},mn=yt=>{ie&&ie(yt),B.onBlur&&B.onBlur(yt),st&&st.onBlur?st.onBlur(yt):Re(!1)},ot=(yt,...gn)=>{if(!He){const kt=yt.target||Xe.current;if(kt==null)throw new Error(rb.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.":Zc(1));Ut({value:kt.value})}B.onChange&&B.onChange(yt,...gn),ue&&ue(yt,...gn)};G.useEffect(()=>{Ut(Xe.current)},[]);const At=yt=>{Xe.current&&yt.currentTarget===yt.target&&Xe.current.focus(),$&&$(yt)};let Rn=z,Bt=B;se&&Rn==="input"&&(Ee?(rb.NODE_ENV!=="production"&&(X||U)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Bt={type:void 0,minRows:Ee,maxRows:Ee,...Bt}):Bt={type:void 0,maxRows:U,minRows:X,...Bt},Rn=k7);const Ze=yt=>{Ut(yt.animationName==="mui-auto-fill-cancel"?Xe.current:{value:"x"})};G.useEffect(()=>{st&&st.setAdornedStart(!!Y)},[st,Y]);const be={...i,color:Mt.color||"primary",disabled:Mt.disabled,endAdornment:C,error:Mt.error,focused:Mt.focused,formControl:st,fullWidth:_,hiddenLabel:Mt.hiddenLabel,multiline:se,size:Mt.size,startAdornment:Y,type:Me},Ve=AK(be),nt=ee.root||y.Root||m3,pt=F.root||v.root||{},ut=ee.input||y.Input||g3;return Bt={...Bt,...F.input??v.input},H.jsxs(G.Fragment,{children:[!E&&typeof XR=="function"&&(YR||(YR=H.jsx(XR,{}))),H.jsxs(nt,{...pt,ref:n,onClick:At,..._e,...!ec(nt)&&{ownerState:{...be,...pt.ownerState}},className:St(Ve.root,pt.className,d,ae&&"MuiInputBase-readOnly"),children:[Y,H.jsx(nb.Provider,{value:null,children:H.jsx(ut,{"aria-invalid":Mt.error,"aria-describedby":o,autoComplete:s,autoFocus:c,defaultValue:S,disabled:Mt.disabled,id:N,onAnimationStart:Ze,name:ce,placeholder:Z,readOnly:ae,required:Mt.required,rows:Ee,value:je,onKeyDown:K,onKeyUp:oe,type:Me,...Bt,...!ec(ut)&&{as:Rn,ownerState:{...be,...Bt.ownerState}},ref:et,className:St(Ve.input,Bt.className,ae&&"MuiInputBase-readOnly"),onBlur:mn,onChange:ot,onFocus:hn})}),C,he?he({...Mt,startAdornment:Y}):null]})]})});rb.NODE_ENV!=="production"&&(y3.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:t3,inputProps:p.object,inputRef:po,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 CK(e){return Wt("MuiInput",e)}const ib={...pg,...Kt("MuiInput",["root","underline","input"])};function OK(e){return Wt("MuiOutlinedInput",e)}const ic={...pg,...Kt("MuiOutlinedInput",["root","notchedOutline","input"])};function MK(e){return Wt("MuiFilledInput",e)}const wh={...pg,...Kt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},RK=Ri(H.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_K=Ri(H.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 DK(e){return Wt("MuiAvatar",e)}Kt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var NK={};const kK=e=>{const{classes:t,variant:n,colorDefault:i}=e;return en({root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]},DK,t)},zK=it("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Gt(({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]})}}}]}))),IK=it("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),LK=it(_K,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function VK({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){const[o,s]=G.useState(!1);return G.useEffect(()=>{if(!n&&!i)return;s(!1);let c=!0;const d=new Image;return d.onload=()=>{c&&s("loaded")},d.onerror=()=>{c&&s("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=n,i&&(d.srcset=i),()=>{c=!1}},[e,t,n,i]),o}const WR=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:c,component:d="div",slots:h={},slotProps:y={},imgProps:v,sizes:S,src:T,srcSet:E,variant:C="circular",...R}=i;let _=null;const N={...i,component:d,variant:C},z=VK({...v,...typeof y.img=="function"?y.img(N):y.img,src:T,srcSet:E}),B=T||E,V=B&&z!=="error";N.colorDefault=!V,delete N.ownerState;const L=kK(N),[U,X]=nn("root",{ref:n,className:St(L.root,c),elementType:zK,externalForwardedProps:{slots:h,slotProps:y,component:d,...R},ownerState:N}),[se,ce]=nn("img",{className:L.img,elementType:IK,externalForwardedProps:{slots:h,slotProps:{img:{...v,...y.img}}},additionalProps:{alt:o,src:T,srcSet:E,sizes:S},ownerState:N}),[ie,ue]=nn("fallback",{className:L.fallback,elementType:LK,externalForwardedProps:{slots:h,slotProps:y},shouldForwardComponentProp:!0,ownerState:N});return V?_=H.jsx(se,{...ce}):s||s===0?_=s:B&&o?_=o[0]:_=H.jsx(ie,{...ue}),H.jsx(U,{...X,children:_})});NK.NODE_ENV!=="production"&&(WR.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 BK(e){const{prototype:t={}}=e;return!!t.isReactComponent}function KR(e,t,n,i,o){const s=e[t],c=o||t;if(s==null||typeof window>"u")return null;let d;const h=s.type;return typeof h=="function"&&!BK(h)&&(d="Did you accidentally use a plain function component for an element instead?"),d!==void 0?new Error(`Invalid ${i} \`${c}\` 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 mg=ou(p.element,KR);mg.isRequired=ou(p.element.isRequired,KR);var jK={};const PK={entering:{opacity:1},entered:{opacity:1}},v3=G.forwardRef(function(t,n){const i=tf(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:h,in:y,onEnter:v,onEntered:S,onEntering:T,onExit:E,onExited:C,onExiting:R,style:_,timeout:N=o,TransitionComponent:z=Ju,...B}=t,V=G.useRef(null),L=ri(V,hg(d),n),U=K=>oe=>{if(K){const Z=V.current;oe===void 0?K(Z):K(Z,oe)}},X=U(T),se=U((K,oe)=>{aR(K);const Z=n3({style:_,timeout:N,easing:h},{mode:"enter"});K.style.webkitTransition=i.transitions.create("opacity",Z),K.style.transition=i.transitions.create("opacity",Z),v&&v(K,oe)}),ce=U(S),ie=U(R),ue=U(K=>{const oe=n3({style:_,timeout:N,easing:h},{mode:"exit"});K.style.webkitTransition=i.transitions.create("opacity",oe),K.style.transition=i.transitions.create("opacity",oe),E&&E(K)}),$=U(C),le=K=>{s&&s(V.current,K)};return H.jsx(z,{appear:c,in:y,nodeRef:V,onEnter:se,onEntered:ce,onEntering:X,onExit:ue,onExited:$,onExiting:ie,addEndListener:le,timeout:N,...B,children:(K,{ownerState:oe,...Z})=>G.cloneElement(d,{style:{opacity:0,visibility:K==="exited"&&!y?"hidden":void 0,...PK[K],..._,...d.props.style},ref:L,...Z})})});jK.NODE_ENV!=="production"&&(v3.propTypes={addEndListener:p.func,appear:p.bool,children:mg.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 UK(e){return Wt("MuiBackdrop",e)}Kt("MuiBackdrop",["root","invisible"]);var $K={};const HK=e=>{const{classes:t,invisible:n}=e;return en({root:["root",n&&"invisible"]},UK,t)},qK=it("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"}}]}),z7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:c="div",invisible:d=!1,open:h,components:y={},componentsProps:v={},slotProps:S={},slots:T={},TransitionComponent:E,transitionDuration:C,...R}=i,_={...i,component:c,invisible:d},N=HK(_),z={transition:E,root:y.Root,...T},B={...v,...S},V={component:c,slots:z,slotProps:B},[L,U]=nn("root",{elementType:qK,externalForwardedProps:V,className:St(N.root,s),ownerState:_}),[X,se]=nn("transition",{elementType:v3,externalForwardedProps:V,ownerState:_});return H.jsx(X,{in:h,timeout:C,...R,...se,children:H.jsx(L,{"aria-hidden":!0,...U,ref:n,children:o})})});$K.NODE_ENV!=="production"&&(z7.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 GK=Kt("MuiBox",["root"]);var FK={};const YK=HM(),xi=VG({themeId:K5,defaultTheme:YK,defaultClassName:GK.root,generateClassName:hO.generate});FK.NODE_ENV!=="production"&&(xi.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 XK(e){return Wt("MuiButton",e)}const Eh=Kt("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 WK={};const QR=G.createContext({});WK.NODE_ENV!=="production"&&(QR.displayName="ButtonGroupContext");var KK={};const ZR=G.createContext(void 0);KK.NODE_ENV!=="production"&&(ZR.displayName="ButtonGroupButtonContext");var QK={};const ZK=e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:c,loadingPosition:d,classes:h}=e,y={root:["root",c&&"loading",s,`${s}${Je(t)}`,`size${Je(o)}`,`${s}Size${Je(o)}`,`color${Je(t)}`,n&&"disableElevation",i&&"fullWidth",c&&`loadingPosition${Je(d)}`],startIcon:["icon","startIcon",`iconSize${Je(o)}`],endIcon:["icon","endIcon",`iconSize${Je(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},v=en(y,XK,h);return{...h,...v}},JR=[{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}}}],JK=it(Nd,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Je(n.color)}`],t[`size${Je(n.size)}`],t[`${n.variant}Size${Je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Gt(({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"},[`&.${Eh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Eh.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Eh.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)",[`&.${Eh.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($r()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[i].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"},[`&.${Eh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eh.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}),[`&.${Eh.loading}`]:{color:"transparent"}}}]}})),eQ=it("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Je(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}},...JR]})),tQ=it("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Je(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}},...JR]})),nQ=it("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}}]})),e_=it("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),gg=G.forwardRef(function(t,n){const i=G.useContext(QR),o=G.useContext(ZR),s=jv(i,t),c=ln({props:s,name:"MuiButton"}),{children:d,color:h="primary",component:y="button",className:v,disabled:S=!1,disableElevation:T=!1,disableFocusRipple:E=!1,endIcon:C,focusVisibleClassName:R,fullWidth:_=!1,id:N,loading:z=null,loadingIndicator:B,loadingPosition:V="center",size:L="medium",startIcon:U,type:X,variant:se="text",...ce}=c,ie=mh(N),ue=B??H.jsx(Yv,{"aria-labelledby":ie,color:"inherit",size:16}),$={...c,color:h,component:y,disabled:S,disableElevation:T,disableFocusRipple:E,fullWidth:_,loading:z,loadingIndicator:ue,loadingPosition:V,size:L,type:X,variant:se},le=ZK($),K=(U||z&&V==="start")&&H.jsx(eQ,{className:le.startIcon,ownerState:$,children:U||H.jsx(e_,{className:le.loadingIconPlaceholder,ownerState:$})}),oe=(C||z&&V==="end")&&H.jsx(tQ,{className:le.endIcon,ownerState:$,children:C||H.jsx(e_,{className:le.loadingIconPlaceholder,ownerState:$})}),Z=o||"",ae=typeof z=="boolean"?H.jsx("span",{className:le.loadingWrapper,style:{display:"contents"},children:z&&H.jsx(nQ,{className:le.loadingIndicator,ownerState:$,children:ue})}):null;return H.jsxs(JK,{ownerState:$,className:St(i.className,le.root,v,Z),component:y,disabled:S||z,focusRipple:!E,focusVisibleClassName:St(le.focusVisible,R),ref:n,type:X,id:z?ie:N,...ce,classes:le,children:[K,V!=="end"&&ae,d,V==="end"&&ae,oe]})});QK.NODE_ENV!=="production"&&(gg.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 rQ(e){return Wt("PrivateSwitchBase",e)}Kt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var iQ={};const aQ=e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,s={root:["root",n&&"checked",i&&"disabled",o&&`edge${Je(o)}`],input:["input"]};return en(s,rQ,t)},oQ=it(Nd,{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}}]}),lQ=it("input",{name:"MuiSwitchBase",shouldForwardProp:wa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b3=G.forwardRef(function(t,n){const{autoFocus:i,checked:o,checkedIcon:s,defaultChecked:c,disabled:d,disableFocusRipple:h=!1,edge:y=!1,icon:v,id:S,inputProps:T,inputRef:E,name:C,onBlur:R,onChange:_,onFocus:N,readOnly:z,required:B=!1,tabIndex:V,type:L,value:U,slots:X={},slotProps:se={},...ce}=t,[ie,ue]=rg({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),$=su(),le=Se=>{N&&N(Se),$&&$.onFocus&&$.onFocus(Se)},K=Se=>{R&&R(Se),$&&$.onBlur&&$.onBlur(Se)},oe=Se=>{if(Se.nativeEvent.defaultPrevented||z)return;const _e=Se.target.checked;ue(_e),_&&_(Se,_e)};let Z=d;$&&typeof Z>"u"&&(Z=$.disabled);const ae=L==="checkbox"||L==="radio",he={...t,checked:ie,disabled:Z,disableFocusRipple:h,edge:y},Ee=aQ(he),te={slots:X,slotProps:{input:T,...se}},[F,ee]=nn("root",{ref:n,elementType:oQ,className:Ee.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...ce},getSlotProps:Se=>({...Se,onFocus:_e=>{var je;(je=Se.onFocus)==null||je.call(Se,_e),le(_e)},onBlur:_e=>{var je;(je=Se.onBlur)==null||je.call(Se,_e),K(_e)}}),ownerState:he,additionalProps:{centerRipple:!0,focusRipple:!h,role:void 0,tabIndex:null}}),[Y,Me]=nn("input",{ref:E,elementType:lQ,className:Ee.input,externalForwardedProps:te,getSlotProps:Se=>({...Se,onChange:_e=>{var je;(je=Se.onChange)==null||je.call(Se,_e),oe(_e)}}),ownerState:he,additionalProps:{autoFocus:i,checked:o,defaultChecked:c,disabled:Z,id:ae?S:void 0,name:C,readOnly:z,required:B,tabIndex:V,type:L,...L==="checkbox"&&U===void 0?{}:{value:U}}});return H.jsxs(F,{...ee,children:[H.jsx(Y,{...Me}),ie?s:v]})});iQ.NODE_ENV!=="production"&&(b3.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:po,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 sQ=Ri(H.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"),uQ=Ri(H.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"),cQ=Ri(H.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 fQ(e){return Wt("MuiCheckbox",e)}const I7=Kt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var dQ={};const hQ=e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,s={root:["root",n&&"indeterminate",`color${Je(i)}`,`size${Je(o)}`]},c=en(s,fQ,t);return{...t,...c}},pQ=it(b3,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Je(n.size)}`],n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({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($r()).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($r()).map(([t])=>({props:{color:t},style:{[`&.${I7.checked}, &.${I7.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${I7.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),mQ=H.jsx(uQ,{}),gQ=H.jsx(sQ,{}),yQ=H.jsx(cQ,{}),t_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiCheckbox"}),{checkedIcon:o=mQ,color:s="primary",icon:c=gQ,indeterminate:d=!1,indeterminateIcon:h=yQ,inputProps:y,size:v="medium",disableRipple:S=!1,className:T,slots:E={},slotProps:C={},...R}=i,_=d?h:c,N=d?h:o,z={...i,disableRipple:S,color:s,indeterminate:d,size:v},B=hQ(z),V=C.input??y,[L,U]=nn("root",{ref:n,elementType:pQ,className:St(B.root,T),shouldForwardComponentProp:!0,externalForwardedProps:{slots:E,slotProps:C,...R},ownerState:z,additionalProps:{type:"checkbox",icon:G.cloneElement(_,{fontSize:_.props.fontSize??v}),checkedIcon:G.cloneElement(N,{fontSize:N.props.fontSize??v}),disableRipple:S,slots:E,slotProps:{input:XM(typeof V=="function"?V(z):V,{"data-indeterminate":d})}}});return H.jsx(L,{...U,classes:B})});dQ.NODE_ENV!=="production"&&(t_.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 n_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function vQ(e){const t=Ea(e);return t.body===e?nf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ab(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function r_(e){return parseFloat(nf(e).getComputedStyle(e).paddingRight)||0}function bQ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function i_(e,t,n,i,o){const s=[t,n,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),h=!bQ(c);d&&h&&ab(c,o)})}function L7(e,t){let n=-1;return e.some((i,o)=>t(i)?(n=o,!0):!1),n}function xQ(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(vQ(i)){const c=n_(nf(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${r_(i)+c}px`;const d=Ea(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{n.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${r_(h)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=Ea(i).body;else{const c=i.parentElement,d=nf(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function SQ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class wQ{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&ab(t.modalRef,!1);const o=SQ(n);i_(n,t.mount,t.modalRef,o,!0);const s=L7(this.containers,c=>c.container===n);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),i)}mount(t,n){const i=L7(this.containers,s=>s.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=xQ(o,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=L7(this.containers,c=>c.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ab(t.modalRef,n),i_(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&ab(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ob(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}var V7={};const EQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TQ(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 AQ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function CQ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||AQ(e))}function OQ(e){const t=[],n=[];return Array.from(e.querySelectorAll(EQ)).forEach((i,o)=>{const s=TQ(i);s===-1||!CQ(i)||(s===0?t.push(i):n.push({documentOrder:o,tabIndex:s,node:i}))}),n.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function MQ(){return!0}function x3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=OQ,isEnabled:c=MQ,open:d}=e,h=G.useRef(!1),y=G.useRef(null),v=G.useRef(null),S=G.useRef(null),T=G.useRef(null),E=G.useRef(!1),C=G.useRef(null),R=ri(hg(t),C),_=G.useRef(null);G.useEffect(()=>{!d||!C.current||(E.current=!n)},[n,d]),G.useEffect(()=>{if(!d||!C.current)return;const B=Ea(C.current),V=ob(B);return C.current.contains(V)||(C.current.hasAttribute("tabIndex")||(V7.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(`
`)),C.current.setAttribute("tabIndex","-1")),E.current&&C.current.focus()),()=>{o||(S.current&&S.current.focus&&(h.current=!0,S.current.focus()),S.current=null)}},[d]),G.useEffect(()=>{if(!d||!C.current)return;const B=Ea(C.current),V=X=>{if(_.current=X,i||!c()||X.key!=="Tab")return;ob(B)===C.current&&X.shiftKey&&(h.current=!0,v.current&&v.current.focus())},L=()=>{var ie,ue;const X=C.current;if(X===null)return;const se=ob(B);if(!B.hasFocus()||!c()||h.current){h.current=!1;return}if(X.contains(se)||i&&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=s(C.current)),ce.length>0){const $=!!((ie=_.current)!=null&&ie.shiftKey&&((ue=_.current)==null?void 0:ue.key)==="Tab"),le=ce[0],K=ce[ce.length-1];typeof le!="string"&&typeof K!="string"&&($?K.focus():le.focus())}else X.focus()};B.addEventListener("focusin",L),B.addEventListener("keydown",V,!0);const U=setInterval(()=>{const X=ob(B);X&&X.tagName==="BODY"&&L()},50);return()=>{clearInterval(U),B.removeEventListener("focusin",L),B.removeEventListener("keydown",V,!0)}},[n,i,o,c,d,s]);const N=B=>{S.current===null&&(S.current=B.relatedTarget),E.current=!0,T.current=B.target;const V=t.props.onFocus;V&&V(B)},z=B=>{S.current===null&&(S.current=B.relatedTarget),E.current=!0};return H.jsxs(G.Fragment,{children:[H.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:y,"data-testid":"sentinelStart"}),G.cloneElement(t,{ref:R,onFocus:N}),H.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:v,"data-testid":"sentinelEnd"})]})}V7.NODE_ENV!=="production"&&(x3.propTypes={children:mg,disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableRestoreFocus:p.bool,getTabbable:p.func,isEnabled:p.func,open:p.bool.isRequired}),V7.NODE_ENV!=="production"&&(x3.propTypes=EM(x3.propTypes));function RQ(e){return typeof e=="function"?e():e}function _Q(e){return e?e.props.hasOwnProperty("in"):!1}const a_=()=>{},S3=new wQ;function DQ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:h,open:y,rootRef:v}=e,S=G.useRef({}),T=G.useRef(null),E=G.useRef(null),C=ri(E,v),[R,_]=G.useState(!y),N=_Q(d);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const B=()=>Ea(T.current),V=()=>(S.current.modalRef=E.current,S.current.mount=T.current,S.current),L=()=>{S3.mount(V(),{disableScrollLock:i}),E.current&&(E.current.scrollTop=0)},U=Wl(()=>{const oe=RQ(t)||B().body;S3.add(V(),oe),E.current&&L()}),X=()=>S3.isTopModal(V()),se=Wl(oe=>{T.current=oe,oe&&(y&&X()?L():E.current&&ab(E.current,z))}),ce=G.useCallback(()=>{S3.remove(V(),z)},[z]);G.useEffect(()=>()=>{ce()},[ce]),G.useEffect(()=>{y?U():(!N||!o)&&ce()},[y,ce,N,o,U]);const ie=oe=>Z=>{var ae;(ae=oe.onKeyDown)==null||ae.call(oe,Z),!(Z.key!=="Escape"||Z.which===229||!X())&&(n||(Z.stopPropagation(),h&&h(Z,"escapeKeyDown")))},ue=oe=>Z=>{var ae;(ae=oe.onClick)==null||ae.call(oe,Z),Z.target===Z.currentTarget&&h&&h(Z,"backdropClick")};return{getRootProps:(oe={})=>{const Z=Gv(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const ae={...Z,...oe};return{role:"presentation",...ae,onKeyDown:ie(ae),ref:C}},getBackdropProps:(oe={})=>{const Z=oe;return{"aria-hidden":!0,...Z,onClick:ue(Z),open:y}},getTransitionProps:()=>{const oe=()=>{_(!1),s&&s()},Z=()=>{_(!0),c&&c(),o&&ce()};return{onEnter:_2(oe,(d==null?void 0:d.props.onEnter)??a_),onExited:_2(Z,(d==null?void 0:d.props.onExited)??a_)}},rootRef:C,portalRef:se,isTopModal:X,exited:R,hasTransition:N}}function NQ(e){return Wt("MuiModal",e)}Kt("MuiModal",["root","hidden","backdrop"]);var kQ={};const zQ=e=>{const{open:t,exited:n,classes:i}=e;return en({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NQ,i)},IQ=it("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Gt(({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"}}]}))),LQ=it(z7,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),B7=G.forwardRef(function(t,n){const i=ln({name:"MuiModal",props:t}),{BackdropComponent:o=LQ,BackdropProps:s,classes:c,className:d,closeAfterTransition:h=!1,children:y,container:v,component:S,components:T={},componentsProps:E={},disableAutoFocus:C=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:_=!1,disablePortal:N=!1,disableRestoreFocus:z=!1,disableScrollLock:B=!1,hideBackdrop:V=!1,keepMounted:L=!1,onClose:U,onTransitionEnter:X,onTransitionExited:se,open:ce,slotProps:ie={},slots:ue={},theme:$,...le}=i,K={...i,closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:R,disableEscapeKeyDown:_,disablePortal:N,disableRestoreFocus:z,disableScrollLock:B,hideBackdrop:V,keepMounted:L},{getRootProps:oe,getBackdropProps:Z,getTransitionProps:ae,portalRef:he,isTopModal:Ee,exited:te,hasTransition:F}=DQ({...K,rootRef:n}),ee={...K,exited:te},Y=zQ(ee),Me={};if(y.props.tabIndex===void 0&&(Me.tabIndex="-1"),F){const{onEnter:Ke,onExited:et}=ae();Me.onEnter=Ke,Me.onExited=et}const Se={slots:{root:T.Root,backdrop:T.Backdrop,...ue},slotProps:{...E,...ie}},[_e,je]=nn("root",{ref:n,elementType:IQ,externalForwardedProps:{...Se,...le,component:S},getSlotProps:oe,ownerState:ee,className:St(d,Y==null?void 0:Y.root,!ee.open&&ee.exited&&(Y==null?void 0:Y.hidden))}),[He,Xe]=nn("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:Se,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Ke=>Z({...Ke,onClick:et=>{Ke!=null&&Ke.onClick&&Ke.onClick(et)}}),className:St(s==null?void 0:s.className,Y==null?void 0:Y.backdrop),ownerState:ee});return!L&&!ce&&(!F||te)?null:H.jsx(tb,{ref:he,container:v,disablePortal:N,children:H.jsxs(_e,{...je,children:[!V&&o?H.jsx(He,{...Xe}):null,H.jsx(x3,{disableEnforceFocus:R,disableAutoFocus:C,disableRestoreFocus:z,isEnabled:Ee,open:ce,children:G.cloneElement(y,Me)})]})})});kQ.NODE_ENV!=="production"&&(B7.propTypes={BackdropComponent:p.elementType,BackdropProps:p.object,children:mg.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([af,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 VQ(e){return Wt("MuiDialog",e)}const j7=Kt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var BQ={};const P7=G.createContext({});BQ.NODE_ENV!=="production"&&(P7.displayName="DialogContext");var jQ={};const PQ=it(z7,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),UQ=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e,c={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Je(n)}`],paper:["paper",`paperScroll${Je(n)}`,`paperWidth${Je(String(i))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return en(c,VQ,t)},$Q=it(B7,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),HQ=it("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Je(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"}}}]}),qQ=it(Fv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Je(n.scroll)}`],t[`paperWidth${Je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Gt(({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)`,[`&.${j7.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}`,[`&.${j7.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,[`&.${j7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),lb=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialog"}),o=tf(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":d,"aria-modal":h=!0,BackdropComponent:y,BackdropProps:v,children:S,className:T,disableEscapeKeyDown:E=!1,fullScreen:C=!1,fullWidth:R=!1,maxWidth:_="sm",onClick:N,onClose:z,open:B,PaperComponent:V=Fv,PaperProps:L={},scroll:U="paper",slots:X={},slotProps:se={},TransitionComponent:ce=v3,transitionDuration:ie=s,TransitionProps:ue,...$}=i,le={...i,disableEscapeKeyDown:E,fullScreen:C,fullWidth:R,maxWidth:_,scroll:U},K=UQ(le),oe=G.useRef(),Z=Re=>{oe.current=Re.target===Re.currentTarget},ae=Re=>{N&&N(Re),oe.current&&(oe.current=null,z&&z(Re,"backdropClick"))},he=mh(d),Ee=G.useMemo(()=>({titleId:he}),[he]),te={transition:ce,...X},F={transition:ue,paper:L,backdrop:v,...se},ee={slots:te,slotProps:F},[Y,Me]=nn("root",{elementType:$Q,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:St(K.root,T),ref:n}),[Se,_e]=nn("backdrop",{elementType:PQ,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:K.backdrop}),[je,He]=nn("paper",{elementType:qQ,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:le,className:St(K.paper,L.className)}),[Xe,Ke]=nn("container",{elementType:HQ,externalForwardedProps:ee,ownerState:le,className:K.container}),[et,Be]=nn("transition",{elementType:v3,externalForwardedProps:ee,ownerState:le,additionalProps:{appear:!0,in:B,timeout:ie,role:"presentation"}});return H.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:Se},slotProps:{backdrop:{transitionDuration:ie,as:y,..._e}},disableEscapeKeyDown:E,onClose:z,open:B,onClick:ae,...Me,...$,children:H.jsx(et,{...Be,children:H.jsx(Xe,{onMouseDown:Z,...Ke,children:H.jsx(je,{as:V,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":he,"aria-modal":h,...He,children:H.jsx(P7.Provider,{value:Ee,children:S})})})})})});jQ.NODE_ENV!=="production"&&(lb.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,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 GQ(e){return Wt("MuiDialogActions",e)}Kt("MuiDialogActions",["root","spacing"]);var FQ={};const YQ=e=>{const{classes:t,disableSpacing:n}=e;return en({root:["root",!n&&"spacing"]},GQ,t)},XQ=it("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}}}]}),U7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...c}=i,d={...i,disableSpacing:s},h=YQ(d);return H.jsx(XQ,{className:St(h.root,o),ownerState:d,ref:n,...c})});FQ.NODE_ENV!=="production"&&(U7.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 WQ(e){return Wt("MuiDialogContent",e)}Kt("MuiDialogContent",["root","dividers"]);function KQ(e){return Wt("MuiDialogTitle",e)}const QQ=Kt("MuiDialogTitle",["root"]);var ZQ={};const JQ=e=>{const{classes:t,dividers:n}=e;return en({root:["root",n&&"dividers"]},WQ,t)},eZ=it("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Gt(({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:{[`.${QQ.root} + &`]:{paddingTop:0}}}]}))),sb=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...c}=i,d={...i,dividers:s},h=JQ(d);return H.jsx(eZ,{className:St(h.root,o),ownerState:d,ref:n,...c})});ZQ.NODE_ENV!=="production"&&(sb.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 tZ={};const nZ=e=>{const{classes:t}=e;return en({root:["root"]},KQ,t)},rZ=it(Hr,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),$7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...c}=i,d=i,h=nZ(d),{titleId:y=s}=G.useContext(P7);return H.jsx(rZ,{component:"h2",className:St(h.root,o),ownerState:d,ref:n,variant:"h6",id:s??y,...c})});tZ.NODE_ENV!=="production"&&($7.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 iZ(e){return Wt("MuiDivider",e)}const o_=Kt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var aZ={};const oZ=e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:s,orientation:c,textAlign:d,variant:h}=e;return en({root:["root",t&&"absolute",h,s&&"light",c==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&c==="vertical"&&"withChildrenVertical",d==="right"&&c!=="vertical"&&"textAlignRight",d==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},iZ,i)},lZ=it("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]}})(Gt(({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%"}}}]}))),sZ=it("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Gt(({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)`}}]}))),yg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:c,orientation:d="horizontal",component:h=s||d==="vertical"?"div":"hr",flexItem:y=!1,light:v=!1,role:S=h!=="hr"?"separator":void 0,textAlign:T="center",variant:E="fullWidth",...C}=i,R={...i,absolute:o,component:h,flexItem:y,light:v,orientation:d,role:S,textAlign:T,variant:E},_=oZ(R);return H.jsx(lZ,{as:h,className:St(_.root,c),role:S,ref:n,ownerState:R,"aria-orientation":S==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...C,children:s?H.jsx(sZ,{className:_.wrapper,ownerState:R,children:s}):null})});yg&&(yg.muiSkipListHighlight=!0),aZ.NODE_ENV!=="production"&&(yg.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 uZ={};const cZ=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:s,hiddenLabel:c,multiline:d}=e,h={root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${Je(s)}`,c&&"hiddenLabel",d&&"multiline"],input:["input"]},y=en(h,MK,t);return{...t,...y}},fZ=it(m3,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h3(e,t),!n.disableUnderline&&t.underline]}})(Gt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${wh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${wh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wh.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:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wh.disabled}, .${wh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wh.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($r()).map(([c])=>{var d;return{props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[c])==null?void 0:d.main}`}}}}),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:d})=>c.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dZ=it(g3,{name:"MuiFilledInput",slot:"Input",overridesResolver:p3})(Gt(({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}}]}))),w3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:d=!1,hiddenLabel:h,inputComponent:y="input",multiline:v=!1,slotProps:S,slots:T={},type:E="text",...C}=i,R={...i,disableUnderline:o,fullWidth:d,inputComponent:y,multiline:v,type:E},_=cZ(i),N={root:{ownerState:R},input:{ownerState:R}},z=S??c?Pa(N,S??c):N,B=T.root??s.Root??fZ,V=T.input??s.Input??dZ;return H.jsx(y3,{slots:{root:B,input:V},slotProps:z,fullWidth:d,inputComponent:y,multiline:v,ref:n,type:E,...C,classes:_})});uZ.NODE_ENV!=="production"&&(w3.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:po,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}),w3.muiName="Input";function hZ(e){return Wt("MuiFormControl",e)}Kt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var l_={};const pZ=e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root",n!=="none"&&`margin${Je(n)}`,i&&"fullWidth"]};return en(o,hZ,t)},mZ=it("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Je(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%"}}]}),Hi=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormControl"}),{children:o,className:s,color:c="primary",component:d="div",disabled:h=!1,error:y=!1,focused:v,fullWidth:S=!1,hiddenLabel:T=!1,margin:E="none",required:C=!1,size:R="medium",variant:_="outlined",...N}=i,z={...i,color:c,component:d,disabled:h,error:y,fullWidth:S,hiddenLabel:T,margin:E,required:C,size:R,variant:_},B=pZ(z),[V,L]=G.useState(()=>{let Z=!1;return o&&G.Children.forEach(o,ae=>{if(!Wm(ae,["Input","Select"]))return;const he=Wm(ae,["Select"])?ae.props.input:ae;he&&EK(he.props)&&(Z=!0)}),Z}),[U,X]=G.useState(()=>{let Z=!1;return o&&G.Children.forEach(o,ae=>{Wm(ae,["Input","Select"])&&(d3(ae.props,!0)||d3(ae.props.inputProps,!0))&&(Z=!0)}),Z}),[se,ce]=G.useState(!1);h&&se&&ce(!1);const ie=v!==void 0&&!h?v:se;let ue;const $=G.useRef(!1);l_.NODE_ENV!=="production"&&(ue=()=>($.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
`)),$.current=!0,()=>{$.current=!1}));const le=G.useCallback(()=>{X(!0)},[]),K=G.useCallback(()=>{X(!1)},[]),oe=G.useMemo(()=>({adornedStart:V,setAdornedStart:L,color:c,disabled:h,error:y,filled:U,focused:ie,fullWidth:S,hiddenLabel:T,size:R,onBlur:()=>{ce(!1)},onFocus:()=>{ce(!0)},onEmpty:K,onFilled:le,registerEffect:ue,required:C,variant:_}),[V,c,h,y,U,ie,S,T,ue,K,le,C,R,_]);return H.jsx(nb.Provider,{value:oe,children:H.jsx(mZ,{as:d,ownerState:z,className:St(B.root,s),ref:n,...N,children:o})})});l_.NODE_ENV!=="production"&&(Hi.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 gZ(e){return Wt("MuiFormControlLabel",e)}const ub=Kt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var yZ={};const vZ=e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:s}=e,c={root:["root",n&&"disabled",`labelPlacement${Je(i)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return en(c,gZ,t)},bZ=it("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ub.label}`]:t.label},t.root,t[`labelPlacement${Je(n.labelPlacement)}`]]}})(Gt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ub.disabled}`]:{cursor:"default"},[`& .${ub.label}`]:{[`&.${ub.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}}]}))),xZ=it("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Gt(({theme:e})=>({[`&.${ub.error}`]:{color:(e.vars||e).palette.error.main}}))),Th=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:c={},control:d,disabled:h,disableTypography:y,inputRef:v,label:S,labelPlacement:T="end",name:E,onChange:C,required:R,slots:_={},slotProps:N={},value:z,...B}=i,V=su(),L=h??d.props.disabled??(V==null?void 0:V.disabled),U=R??d.props.required,X={disabled:L,required:U};["checked","name","onChange","value","inputRef"].forEach(oe=>{typeof d.props[oe]>"u"&&typeof i[oe]<"u"&&(X[oe]=i[oe])});const se=zd({props:i,muiFormControl:V,states:["error"]}),ce={...i,disabled:L,labelPlacement:T,required:U,error:se.error},ie=vZ(ce),ue={slots:_,slotProps:{...c,...N}},[$,le]=nn("typography",{elementType:Hr,externalForwardedProps:ue,ownerState:ce});let K=S;return K!=null&&K.type!==Hr&&!y&&(K=H.jsx($,{component:"span",...le,className:St(ie.label,le==null?void 0:le.className),children:K})),H.jsxs(bZ,{className:St(ie.root,s),ownerState:ce,ref:n,...B,children:[G.cloneElement(d,X),U?H.jsxs("div",{children:[K,H.jsxs(xZ,{ownerState:ce,"aria-hidden":!0,className:ie.asterisk,children:[" ","*"]})]}):K]})});yZ.NODE_ENV!=="production"&&(Th.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:po,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 SZ(e){return Wt("MuiFormGroup",e)}Kt("MuiFormGroup",["root","row","error"]);var wZ={};const EZ=e=>{const{classes:t,row:n,error:i}=e;return en({root:["root",n&&"row",i&&"error"]},SZ,t)},TZ=it("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"}}]}),s_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...c}=i,d=su(),h=zd({props:i,muiFormControl:d,states:["error"]}),y={...i,row:s,error:h.error},v=EZ(y);return H.jsx(TZ,{className:St(v.root,o),ownerState:y,ref:n,...c})});wZ.NODE_ENV!=="production"&&(s_.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 AZ(e){return Wt("MuiFormHelperText",e)}const u_=Kt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var CZ={},c_;const OZ=e=>{const{classes:t,contained:n,size:i,disabled:o,error:s,filled:c,focused:d,required:h}=e,y={root:["root",o&&"disabled",s&&"error",i&&`size${Je(i)}`,n&&"contained",d&&"focused",c&&"filled",h&&"required"]};return en(y,AZ,t)},MZ=it("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${u_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u_.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}}]}))),f_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:c="p",disabled:d,error:h,filled:y,focused:v,margin:S,required:T,variant:E,...C}=i,R=su(),_=zd({props:i,muiFormControl:R,states:["variant","size","disabled","error","filled","focused","required"]}),N={...i,component:c,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete N.ownerState;const z=OZ(N);return H.jsx(MZ,{as:c,className:St(z.root,s),ref:n,...C,ownerState:N,children:o===" "?c_||(c_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});CZ.NODE_ENV!=="production"&&(f_.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 RZ(e){return Wt("MuiFormLabel",e)}const cb=Kt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var _Z={};const DZ=e=>{const{classes:t,color:n,focused:i,disabled:o,error:s,filled:c,required:d}=e,h={root:["root",`color${Je(n)}`,o&&"disabled",s&&"error",c&&"filled",i&&"focused",d&&"required"],asterisk:["asterisk",s&&"error"]};return en(h,RZ,t)},NZ=it("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Gt(({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($r()).map(([t])=>({props:{color:t},style:{[`&.${cb.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${cb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cb.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kZ=it("span",{name:"MuiFormLabel",slot:"Asterisk"})(Gt(({theme:e})=>({[`&.${cb.error}`]:{color:(e.vars||e).palette.error.main}}))),d_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:c,component:d="label",disabled:h,error:y,filled:v,focused:S,required:T,...E}=i,C=su(),R=zd({props:i,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),_={...i,color:R.color||"primary",component:d,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required},N=DZ(_);return H.jsxs(NZ,{as:d,ownerState:_,className:St(N.root,s),ref:n,...E,children:[o,R.required&&H.jsxs(kZ,{ownerState:_,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]})});_Z.NODE_ENV!=="production"&&(d_.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 h_={};const zt=kF({createStyledComponent:it("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ln({props:e,name:"MuiGrid"}),useTheme:tf});if(h_.NODE_ENV!=="production"&&(zt.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"])}),h_.NODE_ENV!=="production"){const e=zt,t=CY("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}var zZ={};function H7(e){return`scale(${e}, ${e**2})`}const IZ={entering:{opacity:1,transform:H7(1)},entered:{opacity:1,transform:"none"}},q7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fb=G.forwardRef(function(t,n){const{addEndListener:i,appear:o=!0,children:s,easing:c,in:d,onEnter:h,onEntered:y,onEntering:v,onExit:S,onExited:T,onExiting:E,style:C,timeout:R="auto",TransitionComponent:_=Ju,...N}=t,z=og(),B=G.useRef(),V=tf(),L=G.useRef(null),U=ri(L,hg(s),n),X=oe=>Z=>{if(oe){const ae=L.current;Z===void 0?oe(ae):oe(ae,Z)}},se=X(v),ce=X((oe,Z)=>{aR(oe);const{duration:ae,delay:he,easing:Ee}=n3({style:C,timeout:R,easing:c},{mode:"enter"});let te;R==="auto"?(te=V.transitions.getAutoHeightDuration(oe.clientHeight),B.current=te):te=ae,oe.style.transition=[V.transitions.create("opacity",{duration:te,delay:he}),V.transitions.create("transform",{duration:q7?te:te*.666,delay:he,easing:Ee})].join(","),h&&h(oe,Z)}),ie=X(y),ue=X(E),$=X(oe=>{const{duration:Z,delay:ae,easing:he}=n3({style:C,timeout:R,easing:c},{mode:"exit"});let Ee;R==="auto"?(Ee=V.transitions.getAutoHeightDuration(oe.clientHeight),B.current=Ee):Ee=Z,oe.style.transition=[V.transitions.create("opacity",{duration:Ee,delay:ae}),V.transitions.create("transform",{duration:q7?Ee:Ee*.666,delay:q7?ae:ae||Ee*.333,easing:he})].join(","),oe.style.opacity=0,oe.style.transform=H7(.75),S&&S(oe)}),le=X(T),K=oe=>{R==="auto"&&z.start(B.current||0,oe),i&&i(L.current,oe)};return H.jsx(_,{appear:o,in:d,nodeRef:L,onEnter:ce,onEntered:ie,onEntering:se,onExit:$,onExited:le,onExiting:ue,addEndListener:K,timeout:R==="auto"?null:R,...N,children:(oe,{ownerState:Z,...ae})=>G.cloneElement(s,{style:{opacity:0,transform:H7(.75),visibility:oe==="exited"&&!d?"hidden":void 0,...IZ[oe],...C,...s.props.style},ref:U,...ae})})});zZ.NODE_ENV!=="production"&&(fb.propTypes={addEndListener:p.func,appear:p.bool,children:mg.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})])}),fb&&(fb.muiSupportAuto=!0);var LZ={};const VZ=e=>{const{classes:t,disableUnderline:n}=e,o=en({root:["root",!n&&"underline"],input:["input"]},CK,t);return{...t,...o}},BZ=it(m3,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...h3(e,t),!n.disableUnderline&&t.underline]}})(Gt(({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:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.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"},[`&.${ib.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ib.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ib.disabled}, .${ib.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ib.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($r()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),jZ=it(g3,{name:"MuiInput",slot:"Input",overridesResolver:p3})({}),E3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:h="input",multiline:y=!1,slotProps:v,slots:S={},type:T="text",...E}=i,C=VZ(i),_={root:{ownerState:{disableUnderline:o}}},N=v??c?Pa(v??c,_):_,z=S.root??s.Root??BZ,B=S.input??s.Input??jZ;return H.jsx(y3,{slots:{root:z,input:B},slotProps:N,fullWidth:d,inputComponent:h,multiline:y,ref:n,type:T,...E,classes:C})});LZ.NODE_ENV!=="production"&&(E3.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:po,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}),E3.muiName="Input";function PZ(e){return Wt("MuiInputAdornment",e)}const p_=Kt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m_={},g_;const UZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},$Z=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:s,variant:c}=e,d={root:["root",n&&"disablePointerEvents",o&&`position${Je(o)}`,c,i&&"hiddenLabel",s&&`size${Je(s)}`]};return en(d,PZ,t)},HZ=it("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:UZ})(Gt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${p_.positionStart}&:not(.${p_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),y_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:c="div",disablePointerEvents:d=!1,disableTypography:h=!1,position:y,variant:v,...S}=i,T=su()||{};let E=v;v&&T.variant&&m_.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 C={...i,hiddenLabel:T.hiddenLabel,size:T.size,disablePointerEvents:d,position:y,variant:E},R=$Z(C);return H.jsx(nb.Provider,{value:null,children:H.jsx(HZ,{as:c,ownerState:C,className:St(R.root,s),ref:n,...S,children:typeof o=="string"&&!h?H.jsx(Hr,{color:"textSecondary",children:o}):H.jsxs(G.Fragment,{children:[y==="start"?g_||(g_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});m_.NODE_ENV!=="production"&&(y_.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 qZ(e){return Wt("MuiInputLabel",e)}Kt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var GZ={};const FZ=e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:s,variant:c,required:d}=e,h={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",i&&i!=="medium"&&`size${Je(i)}`,c],asterisk:[d&&"asterisk"]},y=en(h,qZ,t);return{...t,...y}},YZ=it(d_,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cb.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]]}})(Gt(({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:i})=>t==="filled"&&n.shrink&&i==="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)"}}]}))),v_=G.forwardRef(function(t,n){const i=ln({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:c,variant:d,className:h,...y}=i,v=su();let S=c;typeof S>"u"&&v&&(S=v.filled||v.focused||v.adornedStart);const T=zd({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),E={...i,disableAnimation:o,formControl:v,shrink:S,size:T.size,variant:T.variant,required:T.required,focused:T.focused},C=FZ(E);return H.jsx(YZ,{"data-shrink":S,ref:n,className:St(C.root,h),...y,ownerState:E,classes:C})});GZ.NODE_ENV!=="production"&&(v_.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 XZ={};const uu=G.createContext({});XZ.NODE_ENV!=="production"&&(uu.displayName="ListContext");function WZ(e){return Wt("MuiList",e)}Kt("MuiList",["root","padding","dense","subheader"]);var KZ={};const QZ=e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return en({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},WZ,t)},ZZ=it("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}}]}),T3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiList"}),{children:o,className:s,component:c="ul",dense:d=!1,disablePadding:h=!1,subheader:y,...v}=i,S=G.useMemo(()=>({dense:d}),[d]),T={...i,component:c,dense:d,disablePadding:h},E=QZ(T);return H.jsx(uu.Provider,{value:S,children:H.jsxs(ZZ,{as:c,className:St(E.root,s),ref:n,ownerState:T,...v,children:[y,o]})})});KZ.NODE_ENV!=="production"&&(T3.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 JZ(e){return Wt("MuiListItem",e)}Kt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function eJ(e){return Wt("MuiListItemButton",e)}const vg=Kt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);var b_={};const tJ=(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]},nJ=e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:s,divider:c,selected:d}=e,y=en({root:["root",i&&"dense",!s&&"gutters",c&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",d&&"selected"]},eJ,n);return{...n,...y}},rJ=it(Nd,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:tJ})(Gt(({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"}},[`&.${vg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${vg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${vg.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)}},[`&.${vg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vg.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}}]}))),x_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:c="div",children:d,dense:h=!1,disableGutters:y=!1,divider:v=!1,focusVisibleClassName:S,selected:T=!1,className:E,...C}=i,R=G.useContext(uu),_=G.useMemo(()=>({dense:h||R.dense||!1,alignItems:o,disableGutters:y}),[o,R.dense,h,y]),N=G.useRef(null);Xl(()=>{s&&(N.current?N.current.focus():b_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[s]);const z={...i,alignItems:o,dense:_.dense,disableGutters:y,divider:v,selected:T},B=nJ(z),V=ri(N,n);return H.jsx(uu.Provider,{value:_,children:H.jsx(rJ,{ref:V,href:C.href||C.to,component:(C.href||C.to)&&c==="div"?"button":c,focusVisibleClassName:St(B.focusVisible,S),ownerState:z,className:St(B.root,E),...C,classes:B,children:d})})});b_.NODE_ENV!=="production"&&(x_.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 iJ(e){return Wt("MuiListItemSecondaryAction",e)}Kt("MuiListItemSecondaryAction",["root","disableGutters"]);var aJ={};const oJ=e=>{const{disableGutters:t,classes:n}=e;return en({root:["root",t&&"disableGutters"]},iJ,n)},lJ=it("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}}]}),G7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=i,c=G.useContext(uu),d={...i,disableGutters:c.disableGutters},h=oJ(d);return H.jsx(lJ,{className:St(h.root,o),ownerState:d,ref:n,...s})});aJ.NODE_ENV!=="production"&&(G7.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])}),G7.muiName="ListItemSecondaryAction";var sJ={};const uJ=(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]},cJ=e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:s,divider:c,hasSecondaryAction:d}=e;return en({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",c&&"divider",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},JZ,n)},fJ=it("div",{name:"MuiListItem",slot:"Root",overridesResolver:uJ})(Gt(({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:{[`& > .${vg.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}}]}))),dJ=it("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),S_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:c,component:d,components:h={},componentsProps:y={},ContainerComponent:v="li",ContainerProps:{className:S,...T}={},dense:E=!1,disableGutters:C=!1,disablePadding:R=!1,divider:_=!1,secondaryAction:N,slotProps:z={},slots:B={},...V}=i,L=G.useContext(uu),U=G.useMemo(()=>({dense:E||L.dense||!1,alignItems:o,disableGutters:C}),[o,L.dense,E,C]),X=G.useRef(null),se=G.Children.toArray(s),ce=se.length&&Wm(se[se.length-1],["ListItemSecondaryAction"]),ie={...i,alignItems:o,dense:U.dense,disableGutters:C,disablePadding:R,divider:_,hasSecondaryAction:ce},ue=cJ(ie),$=ri(X,n),le={slots:B,slotProps:z},[K,oe]=nn("secondaryAction",{elementType:G7,externalForwardedProps:le,ownerState:ie,className:ue.secondaryAction}),Z=B.root||h.Root||fJ,ae=z.root||y.root||{},he={className:St(ue.root,ae.className,c),...V};let Ee=d||"li";return ce?(Ee=!he.component&&!d?"div":Ee,v==="li"&&(Ee==="li"?Ee="div":he.component==="li"&&(he.component="div")),H.jsx(uu.Provider,{value:U,children:H.jsxs(dJ,{as:v,className:St(ue.container,S),ref:$,ownerState:ie,...T,children:[H.jsx(Z,{...ae,...!ec(Z)&&{as:Ee,ownerState:{...ie,...ae.ownerState}},...he,children:se}),se.pop()]})})):H.jsx(uu.Provider,{value:U,children:H.jsxs(Z,{...ae,as:Ee,ref:$,...!ec(Z)&&{ownerState:{...ie,...ae.ownerState}},...he,children:[se,N&&H.jsx(K,{...oe,children:N})]})})});sJ.NODE_ENV!=="production"&&(S_.propTypes={alignItems:p.oneOf(["center","flex-start"]),children:ou(p.node,e=>{const t=G.Children.toArray(e.children);let n=-1;for(let i=t.length-1;i>=0;i-=1){const o=t[i];if(Wm(o,["ListItemSecondaryAction"])){n=i;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:t3,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 w_=Kt("MuiListItemIcon",["root","alignItemsFlexStart"]);function hJ(e){return Wt("MuiListItemText",e)}const bg=Kt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var pJ={};const mJ=e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:s}=e;return en({root:["root",n&&"inset",s&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hJ,t)},gJ=it("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.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,[`.${xR.root}:where(& .${bg.primary}), .${xR.root}:where(& .${bg.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),F7=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:c=!1,inset:d=!1,primary:h,primaryTypographyProps:y,secondary:v,secondaryTypographyProps:S,slots:T={},slotProps:E={},...C}=i,{dense:R}=G.useContext(uu);let _=h??o,N=v;const z={...i,disableTypography:c,inset:d,primary:!!_,secondary:!!N,dense:R},B=mJ(z),V={slots:T,slotProps:{primary:y,secondary:S,...E}},[L,U]=nn("root",{className:St(B.root,s),elementType:gJ,externalForwardedProps:{...V,...C},ownerState:z,ref:n}),[X,se]=nn("primary",{className:B.primary,elementType:Hr,externalForwardedProps:V,ownerState:z}),[ce,ie]=nn("secondary",{className:B.secondary,elementType:Hr,externalForwardedProps:V,ownerState:z});return _!=null&&_.type!==Hr&&!c&&(_=H.jsx(X,{variant:R?"body2":"body1",component:se!=null&&se.variant?void 0:"span",...se,children:_})),N!=null&&N.type!==Hr&&!c&&(N=H.jsx(ce,{variant:"body2",color:"textSecondary",...ie,children:N})),H.jsxs(L,{...U,children:[_,N]})});pJ.NODE_ENV!=="production"&&(F7.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 E_={};function Y7(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function T_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A_(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 db(e,t,n,i,o,s){let c=!1,d=o(e,t,t?n:!1);for(;d;){if(d===e.firstChild){if(c)return!1;c=!0}const h=i?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!A_(d,s)||h)d=o(e,d,n);else return d.focus(),!0}return!1}const C_=G.forwardRef(function(t,n){const{actions:i,autoFocus:o=!1,autoFocusItem:s=!1,children:c,className:d,disabledItemsFocusable:h=!1,disableListWrap:y=!1,onKeyDown:v,variant:S="selectedMenu",...T}=t,E=G.useRef(null),C=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xl(()=>{o&&E.current.focus()},[o]),G.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(B,{direction:V})=>{const L=!E.current.style.width;if(B.clientHeight<E.current.clientHeight&&L){const U=`${n_(nf(B))}px`;E.current.style[V==="rtl"?"paddingLeft":"paddingRight"]=U,E.current.style.width=`calc(100% + ${U})`}return E.current}}),[]);const R=B=>{const V=E.current,L=B.key;if(B.ctrlKey||B.metaKey||B.altKey){v&&v(B);return}const X=ob(Ea(V));if(L==="ArrowDown")B.preventDefault(),db(V,X,y,h,Y7);else if(L==="ArrowUp")B.preventDefault(),db(V,X,y,h,T_);else if(L==="Home")B.preventDefault(),db(V,null,y,h,Y7);else if(L==="End")B.preventDefault(),db(V,null,y,h,T_);else if(L.length===1){const se=C.current,ce=L.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&&A_(X,se);se.previousKeyMatched&&(ue||db(V,X,!1,h,Y7,se))?B.preventDefault():se.previousKeyMatched=!1}v&&v(B)},_=ri(E,n);let N=-1;G.Children.forEach(c,(B,V)=>{if(!G.isValidElement(B)){N===V&&(N+=1,N>=c.length&&(N=-1));return}E_.NODE_ENV!=="production"&&fh.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),B.props.disabled||(S==="selectedMenu"&&B.props.selected||N===-1)&&(N=V),N===V&&(B.props.disabled||B.props.muiSkipListHighlight||B.type.muiSkipListHighlight)&&(N+=1,N>=c.length&&(N=-1))});const z=G.Children.map(c,(B,V)=>{if(V===N){const L={};return s&&(L.autoFocus=!0),B.props.tabIndex===void 0&&S==="selectedMenu"&&(L.tabIndex=0),G.cloneElement(B,L)}return B});return H.jsx(T3,{role:"menu",ref:_,className:d,onKeyDown:R,tabIndex:o?0:-1,...T,children:z})});E_.NODE_ENV!=="production"&&(C_.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 yJ(e){return Wt("MuiPopover",e)}Kt("MuiPopover",["root","paper"]);var hb={};function O_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function M_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function R_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pb(e){return typeof e=="function"?e():e}const vJ=e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"]},yJ,t)},bJ=it(B7,{name:"MuiPopover",slot:"Root"})({}),__=it(Fv,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:y,className:v,container:S,elevation:T=8,marginThreshold:E=16,open:C,PaperProps:R={},slots:_={},slotProps:N={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:B,transitionDuration:V="auto",TransitionProps:L={},disableScrollLock:U=!1,...X}=i,se=G.useRef(),ce={...i,anchorOrigin:c,anchorReference:h,elevation:T,marginThreshold:E,transformOrigin:z,TransitionComponent:B,transitionDuration:V,TransitionProps:L},ie=vJ(ce),ue=G.useCallback(()=>{if(h==="anchorPosition")return hb.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const Ke=pb(s),et=Ke&&Ke.nodeType===1?Ke:Ea(se.current).body,Be=et.getBoundingClientRect();if(hb.NODE_ENV!=="production"){const Re=et.getBoundingClientRect();s3()&&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:Be.top+O_(Be,c.vertical),left:Be.left+M_(Be,c.horizontal)}},[s,c.horizontal,c.vertical,d,h]),$=G.useCallback(Ke=>({vertical:O_(Ke,z.vertical),horizontal:M_(Ke,z.horizontal)}),[z.horizontal,z.vertical]),le=G.useCallback(Ke=>{const et={width:Ke.offsetWidth,height:Ke.offsetHeight},Be=$(et);if(h==="none")return{top:null,left:null,transformOrigin:R_(Be)};const Re=ue();let st=Re.top-Be.vertical,Mt=Re.left-Be.horizontal;const Qt=st+et.height,xt=Mt+et.width,Ut=nf(pb(s)),hn=Ut.innerHeight-E,mn=Ut.innerWidth-E;if(E!==null&&st<E){const ot=st-E;st-=ot,Be.vertical+=ot}else if(E!==null&&Qt>hn){const ot=Qt-hn;st-=ot,Be.vertical+=ot}if(hb.NODE_ENV!=="production"&&et.height>hn&&et.height&&hn&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${et.height-hn}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),E!==null&&Mt<E){const ot=Mt-E;Mt-=ot,Be.horizontal+=ot}else if(xt>mn){const ot=xt-mn;Mt-=ot,Be.horizontal+=ot}return{top:`${Math.round(st)}px`,left:`${Math.round(Mt)}px`,transformOrigin:R_(Be)}},[s,h,ue,$,E]),[K,oe]=G.useState(C),Z=G.useCallback(()=>{const Ke=se.current;if(!Ke)return;const et=le(Ke);et.top!==null&&Ke.style.setProperty("top",et.top),et.left!==null&&(Ke.style.left=et.left),Ke.style.transformOrigin=et.transformOrigin,oe(!0)},[le]);G.useEffect(()=>(U&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[s,U,Z]);const ae=()=>{Z()},he=()=>{oe(!1)};G.useEffect(()=>{C&&Z()}),G.useImperativeHandle(o,()=>C?{updatePosition:()=>{Z()}}:null,[C,Z]),G.useEffect(()=>{if(!C)return;const Ke=FM(()=>{Z()}),et=nf(pb(s));return et.addEventListener("resize",Ke),()=>{Ke.clear(),et.removeEventListener("resize",Ke)}},[s,C,Z]);let Ee=V;const te={slots:{transition:B,..._},slotProps:{transition:L,paper:R,...N}},[F,ee]=nn("transition",{elementType:fb,externalForwardedProps:te,ownerState:ce,getSlotProps:Ke=>({...Ke,onEntering:(et,Be)=>{var Re;(Re=Ke.onEntering)==null||Re.call(Ke,et,Be),ae()},onExited:et=>{var Be;(Be=Ke.onExited)==null||Be.call(Ke,et),he()}}),additionalProps:{appear:!0,in:C}});V==="auto"&&!F.muiSupportAuto&&(Ee=void 0);const Y=S||(s?Ea(pb(s)).body:void 0),[Me,{slots:Se,slotProps:_e,...je}]=nn("root",{ref:n,elementType:bJ,externalForwardedProps:{...te,...X},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:XM(typeof N.backdrop=="function"?N.backdrop(ce):N.backdrop,{invisible:!0})},container:Y,open:C},ownerState:ce,className:St(ie.root,v)}),[He,Xe]=nn("paper",{ref:se,className:ie.paper,elementType:__,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:T,style:K?void 0:{opacity:0}},ownerState:ce});return H.jsx(Me,{...je,...!ec(Me)&&{slots:Se,slotProps:_e,disableScrollLock:U},children:H.jsx(F,{...ee,timeout:Ee,children:H.jsx(He,{...Xe,children:y})})})});hb.NODE_ENV!=="production"&&(D_.propTypes={action:po,anchorEl:ou(p.oneOfType([af,p.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=pb(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(hb.NODE_ENV!=="production"&&s3()&&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([af,p.func]),disableScrollLock:p.bool,elevation:dR,marginThreshold:p.number,onClose:p.func,open:p.bool.isRequired,PaperProps:p.shape({component:t3}),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 xJ(e){return Wt("MuiMenu",e)}Kt("MuiMenu",["root","paper","list"]);var N_={};const SJ={vertical:"top",horizontal:"right"},wJ={vertical:"top",horizontal:"left"},EJ=e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"],list:["list"]},xJ,t)},TJ=it(D_,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),AJ=it(__,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),CJ=it(C_,{name:"MuiMenu",slot:"List"})({outline:0}),k_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:c,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:y,open:v,PaperProps:S={},PopoverClasses:T,transitionDuration:E="auto",TransitionProps:{onEntering:C,...R}={},variant:_="selectedMenu",slots:N={},slotProps:z={},...B}=i,V=F5(),L={...i,autoFocus:o,disableAutoFocusItem:d,MenuListProps:h,onEntering:C,PaperProps:S,transitionDuration:E,TransitionProps:R,variant:_},U=EJ(L),X=o&&!d&&v,se=G.useRef(null),ce=(Ee,te)=>{se.current&&se.current.adjustStyleForScrollbar(Ee,{direction:V?"rtl":"ltr"}),C&&C(Ee,te)},ie=Ee=>{Ee.key==="Tab"&&(Ee.preventDefault(),y&&y(Ee,"tabKeyDown"))};let ue=-1;G.Children.map(s,(Ee,te)=>{G.isValidElement(Ee)&&(N_.NODE_ENV!=="production"&&fh.isFragment(Ee)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),Ee.props.disabled||(_==="selectedMenu"&&Ee.props.selected||ue===-1)&&(ue=te))});const $={slots:N,slotProps:{list:h,transition:R,paper:S,...z}},le=rc({elementType:N.root,externalSlotProps:z.root,ownerState:L,className:[U.root,c]}),[K,oe]=nn("paper",{className:U.paper,elementType:AJ,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:L}),[Z,ae]=nn("list",{className:St(U.list,h.className),elementType:CJ,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:Ee=>({...Ee,onKeyDown:te=>{var F;ie(te),(F=Ee.onKeyDown)==null||F.call(Ee,te)}}),ownerState:L}),he=typeof $.slotProps.transition=="function"?$.slotProps.transition(L):$.slotProps.transition;return H.jsx(TJ,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:V?"right":"left"},transformOrigin:V?SJ:wJ,slots:{root:N.root,paper:K,backdrop:N.backdrop,...N.transition&&{transition:N.transition}},slotProps:{root:le,paper:oe,backdrop:typeof z.backdrop=="function"?z.backdrop(L):z.backdrop,transition:{...he,onEntering:(...Ee)=>{var te;ce(...Ee),(te=he==null?void 0:he.onEntering)==null||te.call(he,...Ee)}}},open:v,ref:n,transitionDuration:E,ownerState:L,...B,classes:T,children:H.jsx(Z,{actions:se,autoFocus:o&&(ue===-1||d),autoFocusItem:X,variant:_,...ae,children:s})})});N_.NODE_ENV!=="production"&&(k_.propTypes={anchorEl:p.oneOfType([af,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 OJ(e){return Wt("MuiMenuItem",e)}const mb=Kt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var z_={};const MJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},RJ=e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:s,classes:c}=e,h=en({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",s&&"selected"]},OJ,c);return{...c,...h}},_J=it(Nd,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:MJ})(Gt(({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"}},[`&.${mb.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${mb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${mb.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)}},[`&.${mb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${o_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${o_.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${w_.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,[`& .${w_.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ah=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:c=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:y,role:v="menuitem",tabIndex:S,className:T,...E}=i,C=G.useContext(uu),R=G.useMemo(()=>({dense:c||C.dense||!1,disableGutters:h}),[C.dense,c,h]),_=G.useRef(null);Xl(()=>{o&&(_.current?_.current.focus():z_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const N={...i,dense:R.dense,divider:d,disableGutters:h},z=RJ(i),B=ri(_,n);let V;return i.disabled||(V=S!==void 0?S:-1),H.jsx(uu.Provider,{value:R,children:H.jsx(_J,{ref:B,role:v,tabIndex:V,component:s,focusVisibleClassName:St(z.focusVisible,y),className:St(z.root,T),...E,ownerState:N,classes:z})})});z_.NODE_ENV!=="production"&&(Ah.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});function DJ(e){return Wt("MuiNativeSelect",e)}const X7=Kt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var NJ={};const kJ=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:c}=e,d={select:["select",n,i&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${Je(n)}`,s&&"iconOpen",i&&"disabled"]};return en(d,DJ,t)},I_=it("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${X7.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}}}]})),zJ=it(I_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${X7.multiple}`]:t.multiple}]}})({}),L_=it("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${X7.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}}]})),IJ=it(L_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Je(n.variant)}`],n.open&&t.iconOpen]}})({}),V_=G.forwardRef(function(t,n){const{className:i,disabled:o,error:s,IconComponent:c,inputRef:d,variant:h="standard",...y}=t,v={...t,disabled:o,variant:h,error:s},S=kJ(v);return H.jsxs(G.Fragment,{children:[H.jsx(zJ,{ownerState:v,className:St(S.select,i),disabled:o,ref:d||n,...y}),t.multiple?null:H.jsx(IJ,{as:c,ownerState:v,className:S.icon})]})});NJ.NODE_ENV!=="production"&&(V_.propTypes={children:p.node,classes:p.object,className:p.string,disabled:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:po,multiple:p.bool,name:p.string,onChange:p.func,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var LJ={},B_;const VJ=it("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:wa})({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%"}),BJ=it("legend",{name:"MuiNotchedOutlined",shouldForwardProp:wa})(Gt(({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 j_(e){const{children:t,classes:n,className:i,label:o,notched:s,...c}=e,d=o!=null&&o!=="",h={...e,notched:s,withLabel:d};return H.jsx(VJ,{"aria-hidden":!0,className:i,ownerState:h,...c,children:H.jsx(BJ,{ownerState:h,children:d?H.jsx("span",{children:o}):B_||(B_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}LJ.NODE_ENV!=="production"&&(j_.propTypes={children:p.node,classes:p.object,className:p.string,label:p.node,notched:p.bool.isRequired,style:p.object});var jJ={};const PJ=e=>{const{classes:t}=e,i=en({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},OK,t);return{...t,...i}},UJ=it(m3,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:h3})(Gt(({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 .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ic.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ic.focused} .${ic.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($r()).map(([n])=>({props:{color:n},style:{[`&.${ic.focused} .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ic.error} .${ic.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ic.disabled} .${ic.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:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),$J=it(j_,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Gt(({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}})),HJ=it(g3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:p3})(Gt(({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}}]}))),A3=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:c="input",label:d,multiline:h=!1,notched:y,slots:v={},slotProps:S={},type:T="text",...E}=i,C=PJ(i),R=su(),_=zd({props:i,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),N={...i,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:R,fullWidth:s,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:T},z=v.root??o.Root??UJ,B=v.input??o.Input??HJ,[V,L]=nn("notchedOutline",{elementType:$J,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{slots:v,slotProps:S},additionalProps:{label:d!=null&&d!==""&&_.required?H.jsxs(G.Fragment,{children:[d," ","*"]}):d}});return H.jsx(y3,{slots:{root:z,input:B},slotProps:S,renderSuffix:U=>H.jsx(V,{...L,notched:typeof y<"u"?y:!!(U.startAdornment||U.filled||U.focused)}),fullWidth:s,inputComponent:c,multiline:h,ref:n,type:T,...E,classes:{...C,notchedOutline:null}})});jJ.NODE_ENV!=="production"&&(A3.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:po,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}),A3.muiName="Input";const qJ=Ri(H.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"),GJ=Ri(H.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 FJ={};const YJ=it("span",{name:"MuiRadioButtonIcon",shouldForwardProp:wa})({position:"relative",display:"flex"}),XJ=it(qJ,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),WJ=it(GJ,{name:"MuiRadioButtonIcon"})(Gt(({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 W7(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return H.jsxs(YJ,{className:n.root,ownerState:o,children:[H.jsx(XJ,{fontSize:i,className:n.background,ownerState:o}),H.jsx(WJ,{fontSize:i,className:n.dot,ownerState:o})]})}FJ.NODE_ENV!=="production"&&(W7.propTypes={checked:p.bool,classes:p.object,fontSize:p.oneOf(["small","medium"])});var KJ={};const K7=G.createContext(void 0);KJ.NODE_ENV!=="production"&&(K7.displayName="RadioGroupContext");function QJ(){return G.useContext(K7)}function ZJ(e){return Wt("MuiRadio",e)}const P_=Kt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var JJ={};const eee=e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${Je(n)}`,i!=="medium"&&`size${Je(i)}`]};return{...t,...en(o,ZJ,t)}},tee=it(b3,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Je(n.size)}`],t[`color${Je(n.color)}`]]}})(Gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${P_.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($r()).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($r()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${P_.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function nee(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const ree=H.jsx(W7,{checked:!0}),iee=H.jsx(W7,{}),xg=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=ree,color:c="primary",icon:d=iee,name:h,onChange:y,size:v="medium",className:S,disabled:T,disableRipple:E=!1,slots:C={},slotProps:R={},inputProps:_,...N}=i,z=su();let B=T;z&&typeof B>"u"&&(B=z.disabled),B??(B=!1);const V={...i,disabled:B,disableRipple:E,color:c,size:v},L=eee(V),U=QJ();let X=o;const se=_2(y,U&&U.onChange);let ce=h;U&&(typeof X>"u"&&(X=nee(U.value,i.value)),typeof ce>"u"&&(ce=U.name));const ie=R.input??_,[ue,$]=nn("root",{ref:n,elementType:tee,className:St(L.root,S),shouldForwardComponentProp:!0,externalForwardedProps:{slots:C,slotProps:R,...N},getSlotProps:le=>({...le,onChange:(K,...oe)=>{var Z;(Z=le.onChange)==null||Z.call(le,K,...oe),se(K,...oe)}}),ownerState:V,additionalProps:{type:"radio",icon:G.cloneElement(d,{fontSize:d.props.fontSize??v}),checkedIcon:G.cloneElement(s,{fontSize:s.props.fontSize??v}),disabled:B,name:ce,checked:X,slots:C,slotProps:{input:typeof ie=="function"?ie(V):ie}}});return H.jsx(ue,{...$,classes:L})});JJ.NODE_ENV!=="production"&&(xg.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:po,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 aee(e){return Wt("MuiRadioGroup",e)}Kt("MuiRadioGroup",["root","row","error"]);var oee={};const lee=e=>{const{classes:t,row:n,error:i}=e;return en({root:["root",n&&"row",i&&"error"]},aee,t)},Q7=G.forwardRef(function(t,n){const{actions:i,children:o,className:s,defaultValue:c,name:d,onChange:h,value:y,...v}=t,S=G.useRef(null),T=lee(t),[E,C]=rg({controlled:y,default:c,name:"RadioGroup"});G.useImperativeHandle(i,()=>({focus:()=>{let z=S.current.querySelector("input:not(:disabled):checked");z||(z=S.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const R=ri(n,S),_=mh(d),N=G.useMemo(()=>({name:_,onChange(z){C(z.target.value),h&&h(z,z.target.value)},value:E}),[_,h,C,E]);return H.jsx(K7.Provider,{value:N,children:H.jsx(s_,{role:"radiogroup",ref:R,className:St(T.root,s),...v,children:o})})});oee.NODE_ENV!=="production"&&(Q7.propTypes={children:p.node,className:p.string,defaultValue:p.any,name:p.string,onChange:p.func,value:p.any});const see={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function U_(e){return Wt("MuiSelect",e)}const gb=Kt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var C3={},$_;const uee=it(I_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gb.select}`]:t.select},{[`&.${gb.select}`]:t[n.variant]},{[`&.${gb.error}`]:t.error},{[`&.${gb.multiple}`]:t.multiple}]}})({[`&.${gb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cee=it(L_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Je(n.variant)}`],n.open&&t.iconOpen]}})({}),fee=it("input",{shouldForwardProp:e=>Q5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function H_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dee(e){return e==null||typeof e=="string"&&!e.trim()}const hee=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:c}=e,d={select:["select",n,i&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${Je(n)}`,s&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return en(d,U_,t)},q_=G.forwardRef(function(t,n){var cr,J,Oe,tt;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:c,children:d,className:h,defaultOpen:y,defaultValue:v,disabled:S,displayEmpty:T,error:E=!1,IconComponent:C,inputRef:R,labelId:_,MenuProps:N={},multiple:z,name:B,onBlur:V,onChange:L,onClose:U,onFocus:X,onKeyDown:se,onMouseDown:ce,onOpen:ie,open:ue,readOnly:$,renderValue:le,required:K,SelectDisplayProps:oe={},tabIndex:Z,type:ae,value:he,variant:Ee="standard",...te}=t,[F,ee]=rg({controlled:he,default:v,name:"Select"}),[Y,Me]=rg({controlled:ue,default:y,name:"Select"}),Se=G.useRef(null),_e=G.useRef(null),[je,He]=G.useState(null),{current:Xe}=G.useRef(ue!=null),[Ke,et]=G.useState(),Be=ri(n,R),Re=G.useCallback(Ne=>{_e.current=Ne,Ne&&He(Ne)},[]),st=je==null?void 0:je.parentNode;G.useImperativeHandle(Be,()=>({focus:()=>{_e.current.focus()},node:Se.current,value:F}),[F]);const Mt=je!==null&&Y;G.useEffect(()=>{if(!Mt||!st||c||typeof ResizeObserver>"u")return;const Ne=new ResizeObserver(()=>{et(st.clientWidth)});return Ne.observe(st),()=>{Ne.disconnect()}},[Mt,st,c]),G.useEffect(()=>{y&&Y&&je&&!Xe&&(et(c?null:st.clientWidth),_e.current.focus())},[je,c]),G.useEffect(()=>{s&&_e.current.focus()},[s]),G.useEffect(()=>{if(!_)return;const Ne=Ea(_e.current).getElementById(_);if(Ne){const We=()=>{getSelection().isCollapsed&&_e.current.focus()};return Ne.addEventListener("click",We),()=>{Ne.removeEventListener("click",We)}}},[_]);const Qt=(Ne,We)=>{Ne?ie&&ie(We):U&&U(We),Xe||(et(c?null:st.clientWidth),Me(Ne))},xt=Ne=>{ce==null||ce(Ne),Ne.button===0&&(Ne.preventDefault(),_e.current.focus(),Qt(!0,Ne))},Ut=Ne=>{Qt(!1,Ne)},hn=G.Children.toArray(d),mn=Ne=>{const We=hn.find(Et=>Et.props.value===Ne.target.value);We!==void 0&&(ee(We.props.value),L&&L(Ne,We))},ot=Ne=>We=>{let Et;if(We.currentTarget.hasAttribute("tabindex")){if(z){Et=Array.isArray(F)?F.slice():[];const vt=F.indexOf(Ne.props.value);vt===-1?Et.push(Ne.props.value):Et.splice(vt,1)}else Et=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(We),F!==Et&&(ee(Et),L)){const vt=We.nativeEvent||We,Yt=new vt.constructor(vt.type,vt);Object.defineProperty(Yt,"target",{writable:!0,value:{value:Et,name:B}}),L(Yt,Ne)}z||Qt(!1,We)}},At=Ne=>{$||([" ","ArrowUp","ArrowDown","Enter"].includes(Ne.key)&&(Ne.preventDefault(),Qt(!0,Ne)),se==null||se(Ne))},Rn=Ne=>{!Mt&&V&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:F,name:B}}),V(Ne))};delete te["aria-invalid"];let Bt,Ze;const be=[];let Ve=!1,nt=!1;(d3({value:F})||T)&&(le?Bt=le(F):Ve=!0);const pt=hn.map(Ne=>{if(!G.isValidElement(Ne))return null;C3.NODE_ENV!=="production"&&fh.isFragment(Ne)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let We;if(z){if(!Array.isArray(F))throw new Error(C3.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Zc(2));We=F.some(Et=>H_(Et,Ne.props.value)),We&&Ve&&be.push(Ne.props.children)}else We=H_(F,Ne.props.value),We&&Ve&&(Ze=Ne.props.children);return We&&(nt=!0),G.cloneElement(Ne,{"aria-selected":We?"true":"false",onClick:ot(Ne),onKeyUp:Et=>{Et.key===" "&&Et.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(Et)},role:"option",selected:We,value:void 0,"data-value":Ne.props.value})});C3.NODE_ENV!=="production"&&G.useEffect(()=>{if(!nt&&!z&&F!==""){const Ne=hn.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${B?`(name="${B}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ne.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
`))}},[nt,hn,z,B,F]),Ve&&(z?be.length===0?Bt=null:Bt=be.reduce((Ne,We,Et)=>(Ne.push(We),Et<be.length-1&&Ne.push(", "),Ne),[]):Bt=Ze);let ut=Ke;!c&&Xe&&je&&(ut=st.clientWidth);let yt;typeof Z<"u"?yt=Z:yt=S?null:0;const gn=oe.id||(B?`mui-component-select-${B}`:void 0),kt={...t,variant:Ee,value:F,open:Mt,error:E},jt=hee(kt),Fn={...N.PaperProps,...typeof((cr=N.slotProps)==null?void 0:cr.paper)=="function"?N.slotProps.paper(kt):(J=N.slotProps)==null?void 0:J.paper},bn={...N.MenuListProps,...typeof((Oe=N.slotProps)==null?void 0:Oe.list)=="function"?N.slotProps.list(kt):(tt=N.slotProps)==null?void 0:tt.list},Fr=mh();return H.jsxs(G.Fragment,{children:[H.jsx(uee,{as:"div",ref:Re,tabIndex:yt,role:"combobox","aria-controls":Mt?Fr:void 0,"aria-disabled":S?"true":void 0,"aria-expanded":Mt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[_,gn].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":K?"true":void 0,"aria-invalid":E?"true":void 0,onKeyDown:At,onMouseDown:S||$?null:xt,onBlur:Rn,onFocus:X,...oe,ownerState:kt,className:St(oe.className,jt.select,h),id:gn,children:dee(Bt)?$_||($_=H.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Bt}),H.jsx(fee,{"aria-invalid":E,value:Array.isArray(F)?F.join(","):F,name:B,ref:Se,"aria-hidden":!0,onChange:mn,tabIndex:-1,disabled:S,className:jt.nativeInput,autoFocus:s,required:K,...te,ownerState:kt}),H.jsx(cee,{as:C,className:jt.icon,ownerState:kt}),H.jsx(k_,{id:`menu-${B||""}`,anchorEl:st,open:Mt,onClose:Ut,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...N,slotProps:{...N.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:Fr,...bn},paper:{...Fn,style:{minWidth:ut,...Fn!=null?Fn.style:null}}},children:pt})]})});C3.NODE_ENV!=="production"&&(q_.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:po,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 pee={};const mee=e=>{const{classes:t}=e,i=en({root:["root"]},U_,t);return{...t,...i}},Z7={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>wa(e)&&e!=="variant"},gee=it(E3,Z7)(""),yee=it(A3,Z7)(""),vee=it(w3,Z7)(""),Sg=G.forwardRef(function(t,n){const i=ln({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:c={},className:d,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:v=RK,id:S,input:T,inputProps:E,label:C,labelId:R,MenuProps:_,multiple:N=!1,native:z=!1,onClose:B,onOpen:V,open:L,renderValue:U,SelectDisplayProps:X,variant:se="outlined",...ce}=i,ie=z?V_:q_,ue=su(),$=zd({props:i,muiFormControl:ue,states:["variant","error"]}),le=$.variant||se,K={...i,variant:le,classes:c},oe=mee(K),{root:Z,...ae}=oe,he=T||{standard:H.jsx(gee,{ownerState:K}),outlined:H.jsx(yee,{label:C,ownerState:K}),filled:H.jsx(vee,{ownerState:K})}[le],Ee=ri(n,hg(he));return H.jsx(G.Fragment,{children:G.cloneElement(he,{inputComponent:ie,inputProps:{children:s,error:$.error,IconComponent:v,variant:le,type:void 0,multiple:N,...z?{id:S}:{autoWidth:o,defaultOpen:h,displayEmpty:y,labelId:R,MenuProps:_,onClose:B,onOpen:V,open:L,renderValue:U,SelectDisplayProps:{id:S,...X}},...E,classes:E?Pa(ae,E.classes):ae,...T?T.props.inputProps:{}},...(N&&z||y)&&le==="outlined"?{notched:!0}:{},ref:Ee,className:St(he.props.className,d,oe.root),...!T&&{variant:le},...ce})})});pee.NODE_ENV!=="production"&&(Sg.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"])}),Sg.muiName="Select";function bee(e,t,n=(i,o)=>i===o){return e.length===t.length&&e.every((i,o)=>n(i,t[o]))}const xee=2;function wg(e,t,n,i,o){return n===1?Math.min(e+t,o):Math.max(e-t,i)}function G_(e,t){return e-t}function F_(e,t){const{index:n}=e.reduce((i,o,s)=>{const c=Math.abs(t-o);return i===null||c<i.distance||c===i.distance?{distance:c,index:s}:i},null)??{};return n}function O3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let i=0;i<n.changedTouches.length;i+=1){const o=n.changedTouches[i];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function M3(e,t,n){return(e-t)*100/(n-t)}function See(e,t,n){return(n-t)*e+t}function wee(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),i=n[0].split(".")[1];return(i?i.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Eee(e,t,n){const i=Math.round((e-n)/t)*t+n;return Number(i.toFixed(wee(t)))}function Y_({values:e,newValue:t,index:n}){const i=e.slice();return i[n]=t,i.sort(G_)}function R3({sliderRef:e,activeIndex:t,setActive:n}){var o,s,c;const i=Ea(e.current);(!((o=e.current)!=null&&o.contains(i.activeElement))||Number((s=i==null?void 0:i.activeElement)==null?void 0:s.getAttribute("data-index"))!==t)&&((c=e.current)==null||c.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function _3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?bee(e,t):!1}const Tee={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}%`})}},Aee=e=>e;let D3;function X_(){return D3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?D3=CSS.supports("touch-action","none"):D3=!0),D3}function Cee(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:s=!1,marks:c=!1,max:d=100,min:h=0,name:y,onChange:v,onChangeCommitted:S,orientation:T="horizontal",rootRef:E,scale:C=Aee,step:R=1,shiftStep:_=10,tabIndex:N,value:z}=e,B=G.useRef(void 0),[V,L]=G.useState(-1),[U,X]=G.useState(-1),[se,ce]=G.useState(!1),ie=G.useRef(0),ue=G.useRef(null),[$,le]=rg({controlled:z,default:n??h,name:"Slider"}),K=v&&((Ze,be,Ve)=>{const nt=Ze.nativeEvent||Ze,pt=new nt.constructor(nt.type,nt);Object.defineProperty(pt,"target",{writable:!0,value:{value:be,name:y}}),ue.current=be,v(pt,be,Ve)}),oe=Array.isArray($);let Z=oe?$.slice().sort(G_):[$];Z=Z.map(Ze=>Ze==null?h:Xm(Ze,h,d));const ae=c===!0&&R!==null?[...Array(Math.floor((d-h)/R)+1)].map((Ze,be)=>({value:h+R*be})):c||[],he=ae.map(Ze=>Ze.value),[Ee,te]=G.useState(-1),F=G.useRef(null),ee=ri(E,F),Y=Ze=>be=>{var nt;const Ve=Number(be.currentTarget.getAttribute("data-index"));lg(be.target)&&te(Ve),X(Ve),(nt=Ze==null?void 0:Ze.onFocus)==null||nt.call(Ze,be)},Me=Ze=>be=>{var Ve;lg(be.target)||te(-1),X(-1),(Ve=Ze==null?void 0:Ze.onBlur)==null||Ve.call(Ze,be)},Se=(Ze,be)=>{const Ve=Number(Ze.currentTarget.getAttribute("data-index")),nt=Z[Ve],pt=he.indexOf(nt);let ut=be;if(ae&&R==null){const yt=he[he.length-1];ut>=yt?ut=yt:ut<=he[0]?ut=he[0]:ut=ut<nt?he[pt-1]:he[pt+1]}if(ut=Xm(ut,h,d),oe){o&&(ut=Xm(ut,Z[Ve-1]||-1/0,Z[Ve+1]||1/0));const yt=ut;ut=Y_({values:Z,newValue:ut,index:Ve});let gn=Ve;o||(gn=ut.indexOf(yt)),R3({sliderRef:F,activeIndex:gn})}le(ut),te(Ve),K&&!_3(ut,$)&&K(Ze,ut,Ve),S&&S(Ze,ue.current??ut)},_e=Ze=>be=>{var Ve;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(be.key)){be.preventDefault();const nt=Number(be.currentTarget.getAttribute("data-index")),pt=Z[nt];let ut=null;if(R!=null){const yt=be.shiftKey?_:R;switch(be.key){case"ArrowUp":ut=wg(pt,yt,1,h,d);break;case"ArrowRight":ut=wg(pt,yt,s?-1:1,h,d);break;case"ArrowDown":ut=wg(pt,yt,-1,h,d);break;case"ArrowLeft":ut=wg(pt,yt,s?1:-1,h,d);break;case"PageUp":ut=wg(pt,_,1,h,d);break;case"PageDown":ut=wg(pt,_,-1,h,d);break;case"Home":ut=h;break;case"End":ut=d;break}}else if(ae){const yt=he[he.length-1],gn=he.indexOf(pt),kt=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],jt=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];kt.includes(be.key)?gn===0?ut=he[0]:ut=he[gn-1]:jt.includes(be.key)&&(gn===he.length-1?ut=yt:ut=he[gn+1])}ut!=null&&Se(be,ut)}(Ve=Ze==null?void 0:Ze.onKeyDown)==null||Ve.call(Ze,be)};Xl(()=>{var Ze;i&&F.current.contains(document.activeElement)&&((Ze=document.activeElement)==null||Ze.blur())},[i]),i&&V!==-1&&L(-1),i&&Ee!==-1&&te(-1);const je=Ze=>be=>{var Ve;(Ve=Ze.onChange)==null||Ve.call(Ze,be),Se(be,be.target.valueAsNumber)},He=G.useRef(void 0);let Xe=T;s&&T==="horizontal"&&(Xe+="-reverse");const Ke=({finger:Ze,move:be=!1})=>{const{current:Ve}=F,{width:nt,height:pt,bottom:ut,left:yt}=Ve.getBoundingClientRect();let gn;Xe.startsWith("vertical")?gn=(ut-Ze.y)/pt:gn=(Ze.x-yt)/nt,Xe.includes("-reverse")&&(gn=1-gn);let kt;if(kt=See(gn,h,d),R)kt=Eee(kt,R,h);else{const Fn=F_(he,kt);kt=he[Fn]}kt=Xm(kt,h,d);let jt=0;if(oe){be?jt=He.current:jt=F_(Z,kt),o&&(kt=Xm(kt,Z[jt-1]||-1/0,Z[jt+1]||1/0));const Fn=kt;kt=Y_({values:Z,newValue:kt,index:jt}),o&&be||(jt=kt.indexOf(Fn),He.current=jt)}return{newValue:kt,activeIndex:jt}},et=Wl(Ze=>{const be=O3(Ze,B);if(!be)return;if(ie.current+=1,Ze.type==="mousemove"&&Ze.buttons===0){Be(Ze);return}const{newValue:Ve,activeIndex:nt}=Ke({finger:be,move:!0});R3({sliderRef:F,activeIndex:nt,setActive:L}),le(Ve),!se&&ie.current>xee&&ce(!0),K&&!_3(Ve,$)&&K(Ze,Ve,nt)}),Be=Wl(Ze=>{const be=O3(Ze,B);if(ce(!1),!be)return;const{newValue:Ve}=Ke({finger:be,move:!0});L(-1),Ze.type==="touchend"&&X(-1),S&&S(Ze,ue.current??Ve),B.current=void 0,st()}),Re=Wl(Ze=>{if(i)return;X_()||Ze.preventDefault();const be=Ze.changedTouches[0];be!=null&&(B.current=be.identifier);const Ve=O3(Ze,B);if(Ve!==!1){const{newValue:pt,activeIndex:ut}=Ke({finger:Ve});R3({sliderRef:F,activeIndex:ut,setActive:L}),le(pt),K&&!_3(pt,$)&&K(Ze,pt,ut)}ie.current=0;const nt=Ea(F.current);nt.addEventListener("touchmove",et,{passive:!0}),nt.addEventListener("touchend",Be,{passive:!0})}),st=G.useCallback(()=>{const Ze=Ea(F.current);Ze.removeEventListener("mousemove",et),Ze.removeEventListener("mouseup",Be),Ze.removeEventListener("touchmove",et),Ze.removeEventListener("touchend",Be)},[Be,et]);G.useEffect(()=>{const{current:Ze}=F;return Ze.addEventListener("touchstart",Re,{passive:X_()}),()=>{Ze.removeEventListener("touchstart",Re),st()}},[st,Re]),G.useEffect(()=>{i&&st()},[i,st]);const Mt=Ze=>be=>{var pt;if((pt=Ze.onMouseDown)==null||pt.call(Ze,be),i||be.defaultPrevented||be.button!==0)return;be.preventDefault();const Ve=O3(be,B);if(Ve!==!1){const{newValue:ut,activeIndex:yt}=Ke({finger:Ve});R3({sliderRef:F,activeIndex:yt,setActive:L}),le(ut),K&&!_3(ut,$)&&K(be,ut,yt)}ie.current=0;const nt=Ea(F.current);nt.addEventListener("mousemove",et,{passive:!0}),nt.addEventListener("mouseup",Be)},Qt=M3(oe?Z[0]:h,h,d),xt=M3(Z[Z.length-1],h,d)-Qt,Ut=(Ze={})=>{const be=Gv(Ze),Ve={onMouseDown:Mt(be||{})},nt={...be,...Ve};return{...Ze,ref:ee,...nt}},hn=Ze=>be=>{var nt;(nt=Ze.onMouseOver)==null||nt.call(Ze,be);const Ve=Number(be.currentTarget.getAttribute("data-index"));X(Ve)},mn=Ze=>be=>{var Ve;(Ve=Ze.onMouseLeave)==null||Ve.call(Ze,be),X(-1)},ot=(Ze={})=>{const be=Gv(Ze),Ve={onMouseOver:hn(be||{}),onMouseLeave:mn(be||{})};return{...Ze,...be,...Ve}},At=Ze=>({pointerEvents:V!==-1&&V!==Ze?"none":void 0});let Rn;return T==="vertical"&&(Rn=s?"vertical-rl":"vertical-lr"),{active:V,axis:Xe,axisProps:Tee,dragging:se,focusedThumbIndex:Ee,getHiddenInputProps:(Ze={})=>{const be=Gv(Ze),Ve={onChange:je(be||{}),onFocus:Y(be||{}),onBlur:Me(be||{}),onKeyDown:_e(be||{})},nt={...be,...Ve};return{tabIndex:N,"aria-labelledby":t,"aria-orientation":T,"aria-valuemax":C(d),"aria-valuemin":C(h),name:y,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:i,...Ze,...nt,style:{...see,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Rn}}},getRootProps:Ut,getThumbProps:ot,marks:ae,open:U,range:oe,rootRef:ee,trackLeap:xt,trackOffset:Qt,values:Z,getThumbStyle:At}}const Oee=e=>!e||!ec(e);function Mee(e){return Wt("MuiSlider",e)}const es=Kt("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 Ree={};const _ee=e=>{const{open:t}=e;return{offset:St(t&&es.valueLabelOpen),circle:es.valueLabelCircle,label:es.valueLabelLabel}};function W_(e){const{children:t,className:n,value:i}=e,o=_ee(e);return t?G.cloneElement(t,{className:t.props.className},H.jsxs(G.Fragment,{children:[t.props.children,H.jsx("span",{className:St(o.offset,n),"aria-hidden":!0,children:H.jsx("span",{className:o.circle,children:H.jsx("span",{className:o.label,children:i})})})]})):null}Ree.NODE_ENV!=="production"&&(W_.propTypes={children:p.element.isRequired,className:p.string,value:p.node});var K_={};function Q_(e){return e}const Dee=it("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Je(n.color)}`],n.size!=="medium"&&t[`size${Je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Gt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${es.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${es.dragging}`]:{[`& .${es.thumb}, & .${es.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter($r()).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}}]}))),Nee=it("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}}]}),kee=it("span",{name:"MuiSlider",slot:"Track"})(Gt(({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($r()).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)})}}}))]}))),zee=it("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Je(n.color)}`],n.size!=="medium"&&t[`thumbSize${Je(n.size)}`]]}})(Gt(({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%)"},[`&.${es.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($r()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${es.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${es.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Z_=it(W_,{name:"MuiSlider",slot:"ValueLabel"})(Gt(({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%"},[`&.${es.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%"},[`&.${es.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"}}]})));K_.NODE_ENV!=="production"&&(Z_.propTypes={children:p.element.isRequired,index:p.number.isRequired,open:p.bool.isRequired,value:p.node});const Iee=it("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Q5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Gt(({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}}]}))),Lee=it("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Q5(e)&&e!=="markLabelActive"})(Gt(({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}}]}))),Vee=e=>{const{disabled:t,dragging:n,marked:i,orientation:o,track:s,classes:c,color:d,size:h}=e,y={root:["root",t&&"disabled",n&&"dragging",i&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",d&&`color${Je(d)}`,h&&`size${Je(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${Je(h)}`,d&&`thumbColor${Je(d)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return en(y,Mee,c)},Bee=({children:e})=>e,J_=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSlider"}),o=F5(),{"aria-label":s,"aria-valuetext":c,"aria-labelledby":d,component:h="span",components:y={},componentsProps:v={},color:S="primary",classes:T,className:E,disableSwap:C=!1,disabled:R=!1,getAriaLabel:_,getAriaValueText:N,marks:z=!1,max:B=100,min:V=0,name:L,onChange:U,onChangeCommitted:X,orientation:se="horizontal",shiftStep:ce=10,size:ie="medium",step:ue=1,scale:$=Q_,slotProps:le,slots:K,tabIndex:oe,track:Z="normal",value:ae,valueLabelDisplay:he="off",valueLabelFormat:Ee=Q_,...te}=i,F={...i,isRtl:o,max:B,min:V,classes:T,disabled:R,disableSwap:C,orientation:se,marks:z,color:S,size:ie,step:ue,shiftStep:ce,scale:$,track:Z,valueLabelDisplay:he,valueLabelFormat:Ee},{axisProps:ee,getRootProps:Y,getHiddenInputProps:Me,getThumbProps:Se,open:_e,active:je,axis:He,focusedThumbIndex:Xe,range:Ke,dragging:et,marks:Be,values:Re,trackOffset:st,trackLeap:Mt,getThumbStyle:Qt}=Cee({...F,rootRef:n});F.marked=Be.length>0&&Be.some(Ne=>Ne.label),F.dragging=et,F.focusedThumbIndex=Xe;const xt=Vee(F),Ut=(K==null?void 0:K.root)??y.Root??Dee,hn=(K==null?void 0:K.rail)??y.Rail??Nee,mn=(K==null?void 0:K.track)??y.Track??kee,ot=(K==null?void 0:K.thumb)??y.Thumb??zee,At=(K==null?void 0:K.valueLabel)??y.ValueLabel??Z_,Rn=(K==null?void 0:K.mark)??y.Mark??Iee,Bt=(K==null?void 0:K.markLabel)??y.MarkLabel??Lee,Ze=(K==null?void 0:K.input)??y.Input??"input",be=(le==null?void 0:le.root)??v.root,Ve=(le==null?void 0:le.rail)??v.rail,nt=(le==null?void 0:le.track)??v.track,pt=(le==null?void 0:le.thumb)??v.thumb,ut=(le==null?void 0:le.valueLabel)??v.valueLabel,yt=(le==null?void 0:le.mark)??v.mark,gn=(le==null?void 0:le.markLabel)??v.markLabel,kt=(le==null?void 0:le.input)??v.input,jt=rc({elementType:Ut,getSlotProps:Y,externalSlotProps:be,externalForwardedProps:te,additionalProps:{...Oee(Ut)&&{as:h}},ownerState:{...F,...be==null?void 0:be.ownerState},className:[xt.root,E]}),Fn=rc({elementType:hn,externalSlotProps:Ve,ownerState:F,className:xt.rail}),bn=rc({elementType:mn,externalSlotProps:nt,additionalProps:{style:{...ee[He].offset(st),...ee[He].leap(Mt)}},ownerState:{...F,...nt==null?void 0:nt.ownerState},className:xt.track}),Fr=rc({elementType:ot,getSlotProps:Se,externalSlotProps:pt,ownerState:{...F,...pt==null?void 0:pt.ownerState},className:xt.thumb}),cr=rc({elementType:At,externalSlotProps:ut,ownerState:{...F,...ut==null?void 0:ut.ownerState},className:xt.valueLabel}),J=rc({elementType:Rn,externalSlotProps:yt,ownerState:F,className:xt.mark}),Oe=rc({elementType:Bt,externalSlotProps:gn,ownerState:F,className:xt.markLabel}),tt=rc({elementType:Ze,getSlotProps:Me,externalSlotProps:kt,ownerState:F});return H.jsxs(Ut,{...jt,children:[H.jsx(hn,{...Fn}),H.jsx(mn,{...bn}),Be.filter(Ne=>Ne.value>=V&&Ne.value<=B).map((Ne,We)=>{const Et=M3(Ne.value,V,B),vt=ee[He].offset(Et);let Yt;return Z===!1?Yt=Re.includes(Ne.value):Yt=Z==="normal"&&(Ke?Ne.value>=Re[0]&&Ne.value<=Re[Re.length-1]:Ne.value<=Re[0])||Z==="inverted"&&(Ke?Ne.value<=Re[0]||Ne.value>=Re[Re.length-1]:Ne.value>=Re[0]),H.jsxs(G.Fragment,{children:[H.jsx(Rn,{"data-index":We,...J,...!ec(Rn)&&{markActive:Yt},style:{...vt,...J.style},className:St(J.className,Yt&&xt.markActive)}),Ne.label!=null?H.jsx(Bt,{"aria-hidden":!0,"data-index":We,...Oe,...!ec(Bt)&&{markLabelActive:Yt},style:{...vt,...Oe.style},className:St(xt.markLabel,Oe.className,Yt&&xt.markLabelActive),children:Ne.label}):null]},We)}),Re.map((Ne,We)=>{const Et=M3(Ne,V,B),vt=ee[He].offset(Et),Yt=he==="off"?Bee:At;return H.jsx(Yt,{...!ec(Yt)&&{valueLabelFormat:Ee,valueLabelDisplay:he,value:typeof Ee=="function"?Ee($(Ne),We):Ee,index:We,open:_e===We||je===We||he==="on",disabled:R},...cr,children:H.jsx(ot,{"data-index":We,...Fr,className:St(xt.thumb,Fr.className,je===We&&xt.active,Xe===We&&xt.focusVisible),style:{...vt,...Qt(We),...Fr.style},children:H.jsx(Ze,{"data-index":We,"aria-label":_?_(We):s,"aria-valuenow":$(Ne),"aria-labelledby":d,"aria-valuetext":N?N($(Ne),We):c,value:Re[We],...tt})})},We)})]})});K_.NODE_ENV!=="production"&&(J_.propTypes={"aria-label":ou(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":ou(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 jee(e){return Wt("MuiTooltip",e)}const di=Kt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var N3={};function Pee(e){return Math.round(e*1e5)/1e5}const Uee=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e,c={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${Je(s.split("-")[0])}`],arrow:["arrow"]};return en(c,jee,t)},$ee=it(N7,{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]}})(Gt(({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"] .${di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Hee=it("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${Je(n.placement.split("-")[0])}`]]}})(Gt(({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,[`.${di.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${di.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${di.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${di.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:`${Pee(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qee=it("span",{name:"MuiTooltip",slot:"Arrow"})(Gt(({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 k3=!1;const eD=new e3;let yb={x:0,y:0};function z3(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const tD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:c,components:d={},componentsProps:h={},describeChild:y=!1,disableFocusListener:v=!1,disableHoverListener:S=!1,disableInteractive:T=!1,disableTouchListener:E=!1,enterDelay:C=100,enterNextDelay:R=0,enterTouchDelay:_=700,followCursor:N=!1,id:z,leaveDelay:B=0,leaveTouchDelay:V=1500,onClose:L,onOpen:U,open:X,placement:se="bottom",PopperComponent:ce,PopperProps:ie={},slotProps:ue={},slots:$={},title:le,TransitionComponent:K,TransitionProps:oe,...Z}=i,ae=G.isValidElement(s)?s:H.jsx("span",{children:s}),he=tf(),Ee=F5(),[te,F]=G.useState(),[ee,Y]=G.useState(null),Me=G.useRef(!1),Se=T||N,_e=og(),je=og(),He=og(),Xe=og(),[Ke,et]=rg({controlled:X,default:!1,name:"Tooltip",state:"open"});let Be=Ke;if(N3.NODE_ENV!=="production"){const{current:ct}=G.useRef(X!==void 0);G.useEffect(()=>{te&&te.disabled&&!ct&&le!==""&&te.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,te,ct])}const Re=mh(z),st=G.useRef(),Mt=Wl(()=>{st.current!==void 0&&(document.body.style.WebkitUserSelect=st.current,st.current=void 0),Xe.clear()});G.useEffect(()=>Mt,[Mt]);const Qt=ct=>{eD.clear(),k3=!0,et(!0),U&&!Be&&U(ct)},xt=Wl(ct=>{eD.start(800+B,()=>{k3=!1}),et(!1),L&&Be&&L(ct),_e.start(he.transitions.duration.shortest,()=>{Me.current=!1})}),Ut=ct=>{Me.current&&ct.type!=="touchstart"||(te&&te.removeAttribute("title"),je.clear(),He.clear(),C||k3&&R?je.start(k3?R:C,()=>{Qt(ct)}):Qt(ct))},hn=ct=>{je.clear(),He.start(B,()=>{xt(ct)})},[,mn]=G.useState(!1),ot=ct=>{const Bn=(ct==null?void 0:ct.target)??te;if(!Bn||!lg(Bn)){mn(!1);const oi=ct??new Event("blur");!ct&&Bn&&(Object.defineProperty(oi,"target",{value:Bn}),Object.defineProperty(oi,"currentTarget",{value:Bn})),hn(oi)}},At=ct=>{te||F(ct.currentTarget),lg(ct.target)&&(mn(!0),Ut(ct))},Rn=ct=>{Me.current=!0;const Bn=ae.props;Bn.onTouchStart&&Bn.onTouchStart(ct)},Bt=ct=>{Rn(ct),He.clear(),_e.clear(),Mt(),st.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start(_,()=>{document.body.style.WebkitUserSelect=st.current,Ut(ct)})},Ze=ct=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(ct),Mt(),He.start(V,()=>{xt(ct)})};G.useEffect(()=>{if(!Be)return;function ct(Bn){Bn.key==="Escape"&&xt(Bn)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[xt,Be]);const be=ri(hg(ae),F,n);!le&&le!==0&&(Be=!1);const Ve=G.useRef(),nt=ct=>{const Bn=ae.props;Bn.onMouseMove&&Bn.onMouseMove(ct),yb={x:ct.clientX,y:ct.clientY},Ve.current&&Ve.current.update()},pt={},ut=typeof le=="string";y?(pt.title=!Be&&ut&&!S?le:null,pt["aria-describedby"]=Be?Re:null):(pt["aria-label"]=ut?le:null,pt["aria-labelledby"]=Be&&!ut?Re:null);const yt={...pt,...Z,...ae.props,className:St(Z.className,ae.props.className),onTouchStart:Rn,ref:be,...N?{onMouseMove:nt}:{}};N3.NODE_ENV!=="production"&&(yt["data-mui-internal-clone-element"]=!0,G.useEffect(()=>{te&&!te.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(`
`))},[te]));const gn={};E||(yt.onTouchStart=Bt,yt.onTouchEnd=Ze),S||(yt.onMouseOver=z3(Ut,yt.onMouseOver),yt.onMouseLeave=z3(hn,yt.onMouseLeave),Se||(gn.onMouseOver=Ut,gn.onMouseLeave=hn)),v||(yt.onFocus=z3(At,yt.onFocus),yt.onBlur=z3(ot,yt.onBlur),Se||(gn.onFocus=At,gn.onBlur=ot)),N3.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
`));const kt={...i,isRtl:Ee,arrow:o,disableInteractive:Se,placement:se,PopperComponentProp:ce,touch:Me.current},jt=typeof ue.popper=="function"?ue.popper(kt):ue.popper,Fn=G.useMemo(()=>{var Bn,oi;let ct=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Bn=ie.popperOptions)!=null&&Bn.modifiers&&(ct=ct.concat(ie.popperOptions.modifiers)),(oi=jt==null?void 0:jt.popperOptions)!=null&&oi.modifiers&&(ct=ct.concat(jt.popperOptions.modifiers)),{...ie.popperOptions,...jt==null?void 0:jt.popperOptions,modifiers:ct}},[ee,ie.popperOptions,jt==null?void 0:jt.popperOptions]),bn=Uee(kt),Fr=typeof ue.transition=="function"?ue.transition(kt):ue.transition,cr={slots:{popper:d.Popper,transition:d.Transition??K,tooltip:d.Tooltip,arrow:d.Arrow,...$},slotProps:{arrow:ue.arrow??h.arrow,popper:{...ie,...jt??h.popper},tooltip:ue.tooltip??h.tooltip,transition:{...oe,...Fr??h.transition}}},[J,Oe]=nn("popper",{elementType:$ee,externalForwardedProps:cr,ownerState:kt,className:St(bn.popper,ie==null?void 0:ie.className)}),[tt,Ne]=nn("transition",{elementType:fb,externalForwardedProps:cr,ownerState:kt}),[We,Et]=nn("tooltip",{elementType:Hee,className:bn.tooltip,externalForwardedProps:cr,ownerState:kt}),[vt,Yt]=nn("arrow",{elementType:qee,className:bn.arrow,externalForwardedProps:cr,ownerState:kt,ref:Y});return H.jsxs(G.Fragment,{children:[G.cloneElement(ae,yt),H.jsx(J,{as:ce??N7,placement:se,anchorEl:N?{getBoundingClientRect:()=>({top:yb.y,left:yb.x,right:yb.x,bottom:yb.y,width:0,height:0})}:te,popperRef:Ve,open:te?Be:!1,id:Re,transition:!0,...gn,...Oe,popperOptions:Fn,children:({TransitionProps:ct})=>H.jsx(tt,{timeout:he.transitions.duration.shorter,...ct,...Ne,children:H.jsxs(We,{...Et,children:[le,o?H.jsx(vt,{...Yt}):null]})})})]})});N3.NODE_ENV!=="production"&&(tD.propTypes={arrow:p.bool,children:mg.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 Gee(e){return Wt("MuiSwitch",e)}const mo=Kt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Fee={};const Yee=e=>{const{classes:t,edge:n,size:i,color:o,checked:s,disabled:c}=e,d={root:["root",n&&`edge${Je(n)}`,`size${Je(i)}`],switchBase:["switchBase",`color${Je(o)}`,s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=en(d,Gee,t);return{...t,...h}},Xee=it("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Je(n.edge)}`],t[`size${Je(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,[`& .${mo.thumb}`]:{width:16,height:16},[`& .${mo.switchBase}`]:{padding:4,[`&.${mo.checked}`]:{transform:"translateX(16px)"}}}}]}),Wee=it(b3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${mo.input}`]:t.input},n.color!=="default"&&t[`color${Je(n.color)}`]]}})(Gt(({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}),[`&.${mo.checked}`]:{transform:"translateX(20px)"},[`&.${mo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${mo.checked} + .${mo.track}`]:{opacity:.5},[`&.${mo.disabled} + .${mo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${mo.input}`]:{left:"-100%",width:"300%"}})),Gt(({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($r(["light"])).map(([t])=>({props:{color:t},style:{[`&.${mo.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"}},[`&.${mo.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)}`}},[`&.${mo.checked} + .${mo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Kee=it("span",{name:"MuiSwitch",slot:"Track"})(Gt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,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}`}))),Qee=it("span",{name:"MuiSwitch",slot:"Thumb"})(Gt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),nD=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:d="medium",sx:h,slots:y={},slotProps:v={},...S}=i,T={...i,color:s,edge:c,size:d},E=Yee(T),C={slots:y,slotProps:v},[R,_]=nn("root",{className:St(E.root,o),elementType:Xee,externalForwardedProps:C,ownerState:T,additionalProps:{sx:h}}),[N,z]=nn("thumb",{className:E.thumb,elementType:Qee,externalForwardedProps:C,ownerState:T}),B=H.jsx(N,{...z}),[V,L]=nn("track",{className:E.track,elementType:Kee,externalForwardedProps:C,ownerState:T});return H.jsxs(R,{..._,children:[H.jsx(Wee,{type:"checkbox",icon:B,checkedIcon:B,ref:n,ownerState:T,...S,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:{role:"switch"},...v.input&&{input:typeof v.input=="function"?v.input(T):v.input}}}),H.jsx(V,{...L})]})});Fee.NODE_ENV!=="production"&&(nD.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:po,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});function Zee(e){return Wt("MuiTextField",e)}Kt("MuiTextField",["root"]);var rD={};const Jee={standard:E3,filled:w3,outlined:A3},ete=e=>{const{classes:t}=e;return en({root:["root"]},Zee,t)},tte=it(Hi,{name:"MuiTextField",slot:"Root"})({}),xl=G.forwardRef(function(t,n){const i=ln({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:c,className:d,color:h="primary",defaultValue:y,disabled:v=!1,error:S=!1,FormHelperTextProps:T,fullWidth:E=!1,helperText:C,id:R,InputLabelProps:_,inputProps:N,InputProps:z,inputRef:B,label:V,maxRows:L,minRows:U,multiline:X=!1,name:se,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,required:le=!1,rows:K,select:oe=!1,SelectProps:Z,slots:ae={},slotProps:he={},type:Ee,value:te,variant:F="outlined",...ee}=i,Y={...i,autoFocus:s,color:h,disabled:v,error:S,fullWidth:E,multiline:X,required:le,select:oe,variant:F},Me=ete(Y);rD.NODE_ENV!=="production"&&oe&&!c&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Se=mh(R),_e=C&&Se?`${Se}-helper-text`:void 0,je=V&&Se?`${Se}-label`:void 0,He=Jee[F],Xe={slots:ae,slotProps:{input:z,inputLabel:_,htmlInput:N,formHelperText:T,select:Z,...he}},Ke={},et=Xe.slotProps.inputLabel;F==="outlined"&&(et&&typeof et.shrink<"u"&&(Ke.notched=et.shrink),Ke.label=V),oe&&((!Z||!Z.native)&&(Ke.id=void 0),Ke["aria-describedby"]=void 0);const[Be,Re]=nn("root",{elementType:tte,shouldForwardComponentProp:!0,externalForwardedProps:{...Xe,...ee},ownerState:Y,className:St(Me.root,d),ref:n,additionalProps:{disabled:v,error:S,fullWidth:E,required:le,color:h,variant:F}}),[st,Mt]=nn("input",{elementType:He,externalForwardedProps:Xe,additionalProps:Ke,ownerState:Y}),[Qt,xt]=nn("inputLabel",{elementType:v_,externalForwardedProps:Xe,ownerState:Y}),[Ut,hn]=nn("htmlInput",{elementType:"input",externalForwardedProps:Xe,ownerState:Y}),[mn,ot]=nn("formHelperText",{elementType:f_,externalForwardedProps:Xe,ownerState:Y}),[At,Rn]=nn("select",{elementType:Sg,externalForwardedProps:Xe,ownerState:Y}),Bt=H.jsx(st,{"aria-describedby":_e,autoComplete:o,autoFocus:s,defaultValue:y,fullWidth:E,multiline:X,name:se,rows:K,maxRows:L,minRows:U,type:Ee,value:te,id:Se,inputRef:B,onBlur:ce,onChange:ie,onFocus:ue,placeholder:$,inputProps:hn,slots:{input:ae.htmlInput?Ut:void 0},...Mt});return H.jsxs(Be,{...Re,children:[V!=null&&V!==""&&H.jsx(Qt,{htmlFor:Se,id:je,...xt,children:V}),oe?H.jsx(At,{"aria-describedby":_e,id:Se,labelId:je,value:te,input:Bt,...Rn,children:c}):Bt,C&&H.jsx(mn,{id:_e,...ot,children:C})]})});rD.NODE_ENV!=="production"&&(xl.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:po,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 nte=({model:e,fontSize:t="small"})=>{if(!e)return H.jsx(QM,{fontSize:t});switch(e){case"OPENAI":return H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.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 H.jsxs(gh,{fontSize:t,viewBox:"0 0 24 24",children:[H.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"}),H.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 H.jsx(gh,{fontSize:t,viewBox:"0 0 24 24",children:H.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 H.jsx(QM,{fontSize:t})}},rte=({enabledModels:e})=>{const t=Yu("settings"),n=Yu("chat"),i=t.state,o=(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()},s=d=>{const h=Av[d],y=h.labels;return h.options.map(v=>{const S=v;return{label:y[S],value:S}})},c=d=>{const h=Av[d],y=i.llm.models[d].version,v=h.options;return!y||!v.includes(y)?h.default:y};return H.jsx(xi,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1},children:e.map(d=>H.jsxs(xi,{sx:{display:"flex",alignItems:"center",gap:1},children:[H.jsxs(Hr,{variant:"body2",sx:{minWidth:100},children:[d.name,":"]}),H.jsx(Hi,{size:"small",sx:{minWidth:200},children:H.jsx(Sg,{value:c(d.modelKey),onChange:h=>o(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}},children:s(d.modelKey).map(h=>H.jsx(Ah,{value:h.value,children:h.label},h.value))})})]},d.modelKey))})};function ede(){}function tde(){}function iD(e){const t=[],n=String(e||"");let i=n.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const c=n.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=n.indexOf(",",o)}return t}function ite(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ate=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ote=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lte={};function aD(e,t){return(lte.jsx?ote:ate).test(e)}const ste=/[ \t\n\f\r]/g;function ute(e){return typeof e=="object"?e.type==="text"?oD(e.value):!1:oD(e)}function oD(e){return e.replace(ste,"")===""}class vb{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}vb.prototype.normal={},vb.prototype.property={},vb.prototype.space=void 0;function lD(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new vb(n,i,t)}function bb(e){return e.toLowerCase()}class Ho{constructor(t,n){this.attribute=n,this.property=t}}Ho.prototype.attribute="",Ho.prototype.booleanish=!1,Ho.prototype.boolean=!1,Ho.prototype.commaOrSpaceSeparated=!1,Ho.prototype.commaSeparated=!1,Ho.prototype.defined=!1,Ho.prototype.mustUseProperty=!1,Ho.prototype.number=!1,Ho.prototype.overloadedBoolean=!1,Ho.prototype.property="",Ho.prototype.spaceSeparated=!1,Ho.prototype.space=void 0;let cte=0;const Tn=Ch(),_i=Ch(),J7=Ch(),dt=Ch(),_r=Ch(),Eg=Ch(),Sl=Ch();function Ch(){return 2**++cte}const eT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tn,booleanish:_i,commaOrSpaceSeparated:Sl,commaSeparated:Eg,number:dt,overloadedBoolean:J7,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),tT=Object.keys(eT);class nT extends Ho{constructor(t,n,i,o){let s=-1;if(super(t,n),sD(this,"space",o),typeof i=="number")for(;++s<tT.length;){const c=tT[s];sD(this,tT[s],(i&eT[c])===eT[c])}}}nT.prototype.defined=!0;function sD(e,t,n){n&&(e[t]=n)}function Tg(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const s=new nT(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[bb(i)]=i,n[bb(s.attribute)]=i}return new vb(t,n,e.space)}const uD=Tg({properties:{ariaActiveDescendant:null,ariaAtomic:_i,ariaAutoComplete:null,ariaBusy:_i,ariaChecked:_i,ariaColCount:dt,ariaColIndex:dt,ariaColSpan:dt,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:_i,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:_i,ariaFlowTo:_r,ariaGrabbed:_i,ariaHasPopup:null,ariaHidden:_i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:dt,ariaLive:null,ariaModal:_i,ariaMultiLine:_i,ariaMultiSelectable:_i,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:dt,ariaPressed:_i,ariaReadOnly:_i,ariaRelevant:null,ariaRequired:_i,ariaRoleDescription:_r,ariaRowCount:dt,ariaRowIndex:dt,ariaRowSpan:dt,ariaSelected:_i,ariaSetSize:dt,ariaSort:null,ariaValueMax:dt,ariaValueMin:dt,ariaValueNow:dt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cD(e,t){return t in e?e[t]:t}function fD(e,t){return cD(e,t.toLowerCase())}const fte=Tg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eg,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Tn,allowPaymentRequest:Tn,allowUserMedia:Tn,alt:null,as:null,async:Tn,autoCapitalize:null,autoComplete:_r,autoFocus:Tn,autoPlay:Tn,blocking:_r,capture:null,charSet:null,checked:Tn,cite:null,className:_r,cols:dt,colSpan:null,content:null,contentEditable:_i,controls:Tn,controlsList:_r,coords:dt|Eg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tn,defer:Tn,dir:null,dirName:null,disabled:Tn,download:J7,draggable:_i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tn,formTarget:null,headers:_r,height:dt,hidden:J7,high:dt,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Tn,inputMode:null,integrity:null,is:null,isMap:Tn,itemId:null,itemProp:_r,itemRef:_r,itemScope:Tn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tn,low:dt,manifest:null,max:null,maxLength:dt,media:null,method:null,min:null,minLength:dt,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:dt,pattern:null,ping:_r,placeholder:null,playsInline:Tn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tn,referrerPolicy:null,rel:_r,required:Tn,reversed:Tn,rows:dt,rowSpan:dt,sandbox:_r,scope:null,scoped:Tn,seamless:Tn,selected:Tn,shadowRootClonable:Tn,shadowRootDelegatesFocus:Tn,shadowRootMode:null,shape:null,size:dt,sizes:null,slot:null,span:dt,spellCheck:_i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dt,step:null,style:null,tabIndex:dt,target:null,title:null,translate:null,type:null,typeMustMatch:Tn,useMap:null,value:_i,width:dt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:dt,borderColor:null,bottomMargin:dt,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:dt,leftMargin:dt,link:null,longDesc:null,lowSrc:null,marginHeight:dt,marginWidth:dt,noResize:Tn,noHref:Tn,noShade:Tn,noWrap:Tn,object:null,profile:null,prompt:null,rev:null,rightMargin:dt,rules:null,scheme:null,scrolling:_i,standby:null,summary:null,text:null,topMargin:dt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tn,disableRemotePlayback:Tn,prefix:null,property:null,results:dt,security:null,unselectable:null},space:"html",transform:fD}),dte=Tg({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:Sl,accentHeight:dt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dt,amplitude:dt,arabicForm:null,ascent:dt,attributeName:null,attributeType:null,azimuth:dt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dt,by:null,calcMode:null,capHeight:dt,className:_r,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:dt,diffuseConstant:dt,direction:null,display:null,dur:null,divisor:dt,dominantBaseline:null,download:Tn,dx:null,dy:null,edgeMode:null,editable:null,elevation:dt,enableBackground:null,end:null,event:null,exponent:dt,externalResourcesRequired:null,fill:null,fillOpacity:dt,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:Eg,g2:Eg,glyphName:Eg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dt,horizOriginX:dt,horizOriginY:dt,id:null,ideographic:dt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dt,k:dt,k1:dt,k2:dt,k3:dt,k4:dt,kernelMatrix:Sl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dt,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:dt,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:dt,overlineThickness:dt,paintOrder:null,panose1:null,path:null,pathLength:dt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dt,pointsAtY:dt,pointsAtZ:dt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sl,rev:Sl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sl,requiredFeatures:Sl,requiredFonts:Sl,requiredFormats:Sl,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:dt,specularExponent:dt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dt,strikethroughThickness:dt,string:null,stroke:null,strokeDashArray:Sl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dt,strokeOpacity:dt,strokeWidth:null,style:null,surfaceScale:dt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sl,tabIndex:dt,tableValues:null,target:null,targetX:dt,targetY:dt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dt,underlineThickness:dt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dt,values:null,vAlphabetic:dt,vMathematical:dt,vectorEffect:null,vHanging:dt,vIdeographic:dt,version:null,vertAdvY:dt,vertOriginX:dt,vertOriginY:dt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cD}),dD=Tg({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()}}),hD=Tg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fD}),pD=Tg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hte={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"},pte=/[A-Z]/g,mD=/-[a-z]/g,mte=/^data[-\w.:]+$/i;function gD(e,t){const n=bb(t);let i=t,o=Ho;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mte.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(mD,yte);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!mD.test(s)){let c=s.replace(pte,gte);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=nT}return new o(i,t)}function gte(e){return"-"+e.toLowerCase()}function yte(e){return e.charAt(1).toUpperCase()}const yD=lD([uD,fte,dD,hD,pD],"html"),I3=lD([uD,dte,dD,hD,pD],"svg");function vD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vte(e){return e.join(" ").trim()}var Ag={},rT,bD;function bte(){if(bD)return rT;bD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
`,y="/",v="*",S="",T="comment",E="declaration";function C(_,N){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];N=N||{};var z=1,B=1;function V(K){var oe=K.match(t);oe&&(z+=oe.length);var Z=K.lastIndexOf(h);B=~Z?K.length-Z:B+K.length}function L(){var K={line:z,column:B};return function(oe){return oe.position=new U(K),ce(),oe}}function U(K){this.start=K,this.end={line:z,column:B},this.source=N.source}U.prototype.content=_;function X(K){var oe=new Error(N.source+":"+z+":"+B+": "+K);if(oe.reason=K,oe.filename=N.source,oe.line=z,oe.column=B,oe.source=_,!N.silent)throw oe}function se(K){var oe=K.exec(_);if(oe){var Z=oe[0];return V(Z),_=_.slice(Z.length),oe}}function ce(){se(n)}function ie(K){var oe;for(K=K||[];oe=ue();)oe!==!1&&K.push(oe);return K}function ue(){var K=L();if(!(y!=_.charAt(0)||v!=_.charAt(1))){for(var oe=2;S!=_.charAt(oe)&&(v!=_.charAt(oe)||y!=_.charAt(oe+1));)++oe;if(oe+=2,S===_.charAt(oe-1))return X("End of comment missing");var Z=_.slice(2,oe-2);return B+=2,V(Z),_=_.slice(oe),B+=2,K({type:T,comment:Z})}}function $(){var K=L(),oe=se(i);if(oe){if(ue(),!se(o))return X("property missing ':'");var Z=se(s),ae=K({type:E,property:R(oe[0].replace(e,S)),value:Z?R(Z[0].replace(e,S)):S});return se(c),ae}}function le(){var K=[];ie(K);for(var oe;oe=$();)oe!==!1&&(K.push(oe),ie(K));return K}return ce(),le()}function R(_){return _?_.replace(d,S):S}return rT=C,rT}var xD;function xte(){if(xD)return Ag;xD=1;var e=Ag&&Ag.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=n;const t=e(bte());function n(i,o){let s=null;if(!i||typeof i!="string")return s;const c=(0,t.default)(i),d=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:y,value:v}=h;d?o(y,v,h):v&&(s=s||{},s[y]=v)}),s}return Ag}var xb={},SD;function Ste(){if(SD)return xb;SD=1,Object.defineProperty(xb,"__esModule",{value:!0}),xb.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(y){return!y||n.test(y)||e.test(y)},c=function(y,v){return v.toUpperCase()},d=function(y,v){return"".concat(v,"-")},h=function(y,v){return v===void 0&&(v={}),s(y)?y:(y=y.toLowerCase(),v.reactCompat?y=y.replace(o,d):y=y.replace(i,d),y.replace(t,c))};return xb.camelCase=h,xb}var Sb,wD;function wte(){if(wD)return Sb;wD=1;var e=Sb&&Sb.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(xte()),n=Ste();function i(o,s){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(c[(0,n.camelCase)(d,s)]=h)}),c}return i.default=i,Sb=i,Sb}var Ete=wte();const Tte=pl(Ete),ED=TD("end"),iT=TD("start");function TD(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function AD(e){const t=iT(e),n=ED(e);if(t&&n)return{start:t,end:n}}function wb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?CD(e.position):"start"in e||"end"in e?CD(e):"line"in e||"column"in e?aT(e):""}function aT(e){return OD(e&&e.line)+":"+OD(e&&e.column)}function CD(e){return aT(e&&e.start)+"-"+aT(e&&e.end)}function OD(e){return e&&typeof e=="number"?e:1}class $a extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",s={},c=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(c=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=wb(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$a.prototype.file="",$a.prototype.name="",$a.prototype.reason="",$a.prototype.message="",$a.prototype.stack="",$a.prototype.column=void 0,$a.prototype.line=void 0,$a.prototype.ancestors=void 0,$a.prototype.cause=void 0,$a.prototype.fatal=void 0,$a.prototype.place=void 0,$a.prototype.ruleId=void 0,$a.prototype.source=void 0;const oT={}.hasOwnProperty,Ate=new Map,Cte=/[A-Z]/g,Ote=new Set(["table","tbody","thead","tfoot","tr"]),Mte=new Set(["td","th"]),MD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rte(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Vte(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");i=Lte(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?I3:yD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=RD(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function RD(e,t,n){if(t.type==="element")return _te(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Dte(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kte(e,t,n);if(t.type==="mdxjsEsm")return Nte(e,t);if(t.type==="root")return zte(e,t,n);if(t.type==="text")return Ite(e,t)}function _te(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=I3,e.schema=o),e.ancestors.push(t);const s=DD(e,t.tagName,!1),c=Bte(e,t);let d=sT(e,t);return Ote.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!ute(h):!0})),_D(e,c,s,t),lT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function Dte(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Eb(e,t.position)}function Nte(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eb(e,t.position)}function kte(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=I3,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:DD(e,t.name,!0),c=jte(e,t),d=sT(e,t);return _D(e,c,s,t),lT(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,n)}function zte(e,t,n){const i={};return lT(i,sT(e,t)),e.create(t,e.Fragment,i,n)}function Ite(e,t){return t.value}function _D(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function lT(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lte(e,t,n){return i;function i(o,s,c,d){const y=Array.isArray(c.children)?n:t;return d?y(s,c,d):y(s,c)}}function Vte(e,t){return n;function n(i,o,s,c){const d=Array.isArray(s.children),h=iT(i);return t(o,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Bte(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&oT.call(t.properties,o)){const s=Pte(e,o,t.properties[o]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Mte.has(t.tagName)?i=d:n[c]=d}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function jte(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(n,e.evaluater.evaluateExpression(d.argument))}else Eb(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Eb(e,t.position);else s=i.value===null?!0:i.value;n[o]=s}return n}function sT(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:Ate;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const y=o.get(h)||0;c=h+"-"+y,o.set(h,y+1)}}const d=RD(e,s,c);d!==void 0&&n.push(d)}return n}function Pte(e,t,n){const i=gD(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?ite(n):vte(n)),i.property==="style"){let o=typeof n=="object"?n:Ute(e,String(n));return e.stylePropertyNameCase==="css"&&(o=$te(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?hte[i.property]||i.property:i.attribute,n]}}function Ute(e,t){try{return Tte(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,o=new $a("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=MD+"#cannot-parse-style-attribute",o}}function DD(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,c;for(;++s<o.length;){const d=aD(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=aD(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return oT.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Eb(e)}function Eb(e,t){const n=new $a("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=MD+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $te(e){const t={};let n;for(n in e)oT.call(e,n)&&(t[Hte(n)]=e[n]);return t}function Hte(e){let t=e.replace(Cte,qte);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qte(e){return"-"+e.toLowerCase()}const uT={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"]},Gte={};function cT(e,t){const n=Gte,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ND(e,i,o)}function ND(e,t,n){if(Fte(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 kD(e.children,t,n)}return Array.isArray(e)?kD(e,t,n):""}function kD(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=ND(e[o],t,n);return i.join("")}function Fte(e){return!!(e&&typeof e=="object")}const zD=document.createElement("i");function fT(e){const t="&"+e+";";zD.innerHTML=t;const n=zD.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function wl(e,t,n,i){const o=e.length;let s=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function ts(e,t){return e.length>0?(wl(e,e.length,0,t),e):t}const ID={}.hasOwnProperty;function LD(e){const t={};let n=-1;for(;++n<e.length;)Yte(t,e[n]);return t}function Yte(e,t){let n;for(n in t){const o=(ID.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let c;if(s)for(c in s){ID.call(o,c)||(o[c]=[]);const d=s[c];Xte(o[c],Array.isArray(d)?d:d?[d]:[])}}}function Xte(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);wl(e,0,0,i)}function VD(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 cu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const go=Id(/[A-Za-z]/),Ha=Id(/[\dA-Za-z]/),Wte=Id(/[#-'*+\--9=?A-Z^-~]/);function L3(e){return e!==null&&(e<32||e===127)}const dT=Id(/\d/),Kte=Id(/[\dA-Fa-f]/),Qte=Id(/[!-/:-@[-`{-~]/);function It(e){return e!==null&&e<-2}function Ar(e){return e!==null&&(e<0||e===32)}function Vn(e){return e===-2||e===-1||e===32}const V3=Id(new RegExp("\\p{P}|\\p{S}","u")),Oh=Id(/\s/);function Id(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cg(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const s=e.charCodeAt(n);let c="";if(s===37&&Ha(e.charCodeAt(n+1))&&Ha(e.charCodeAt(n+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(n+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+o+1,c=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function Nn(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return Vn(h)?(e.enter(n),d(h)):t(h)}function d(h){return Vn(h)&&s++<o?(e.consume(h),d):(e.exit(n),t(h))}}const Zte={tokenize:Jte};function Jte(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nn(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return It(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const ene={tokenize:tne},BD={tokenize:nne};function tne(e){const t=this,n=[];let i=0,o,s,c;return d;function d(B){if(i<n.length){const V=n[i];return t.containerState=V[1],e.attempt(V[0].continuation,h,y)(B)}return y(B)}function h(B){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&z();const V=t.events.length;let L=V,U;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){U=t.events[L][1].end;break}N(i);let X=V;for(;X<t.events.length;)t.events[X][1].end={...U},X++;return wl(t.events,L+1,0,t.events.slice(V)),t.events.length=X,y(B)}return d(B)}function y(B){if(i===n.length){if(!o)return T(B);if(o.currentConstruct&&o.currentConstruct.concrete)return C(B);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(BD,v,S)(B)}function v(B){return o&&z(),N(i),T(B)}function S(B){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,C(B)}function T(B){return t.containerState={},e.attempt(BD,E,C)(B)}function E(B){return i++,n.push([t.currentConstruct,t.containerState]),T(B)}function C(B){if(B===null){o&&z(),N(0),e.consume(B);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),R(B)}function R(B){if(B===null){_(e.exit("chunkFlow"),!0),N(0),e.consume(B);return}return It(B)?(e.consume(B),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(B),R)}function _(B,V){const L=t.sliceStream(B);if(V&&L.push(null),B.previous=s,s&&(s.next=B),s=B,o.defineSkip(B.start),o.write(L),t.parser.lazy[B.start.line]){let U=o.events.length;for(;U--;)if(o.events[U][1].start.offset<c&&(!o.events[U][1].end||o.events[U][1].end.offset>c))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(N(i),U=X;U<t.events.length;)t.events[U][1].end={...ie},U++;wl(t.events,se+1,0,t.events.slice(X)),t.events.length=U}}function N(B){let V=n.length;for(;V-- >B;){const L=n[V];t.containerState=L[1],L[0].exit.call(t,e)}n.length=B}function z(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function nne(e,t,n){return Nn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Og(e){if(e===null||Ar(e)||Oh(e))return 1;if(V3(e))return 2}function B3(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const hT={name:"attention",resolveAll:rne,tokenize:ine};function rne(e,t){let n=-1,i,o,s,c,d,h,y,v;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const S={...e[i][1].end},T={...e[n][1].start};jD(S,-h),jD(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:S,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[n][1].start={...d.end},y=[],e[i][1].end.offset-e[i][1].start.offset&&(y=ts(y,[["enter",e[i][1],t],["exit",e[i][1],t]])),y=ts(y,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",s,t]]),y=ts(y,B3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),y=ts(y,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(v=2,y=ts(y,[["enter",e[n][1],t],["exit",e[n][1],t]])):v=0,wl(e,i-1,n-i+3,y),n=i+y.length-v-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ine(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Og(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const y=e.exit("attentionSequence"),v=Og(h),S=!v||v===2&&o||n.includes(h),T=!o||o===2&&v||n.includes(i);return y._open=!!(s===42?S:S&&(o||!T)),y._close=!!(s===42?T:T&&(v||!S)),t(h)}}function jD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ane={name:"autolink",tokenize:one};function one(e,t,n){let i=0;return o;function o(E){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(E),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(E){return go(E)?(e.consume(E),c):E===64?n(E):y(E)}function c(E){return E===43||E===45||E===46||Ha(E)?(i=1,d(E)):y(E)}function d(E){return E===58?(e.consume(E),i=0,h):(E===43||E===45||E===46||Ha(E))&&i++<32?(e.consume(E),d):(i=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||L3(E)?n(E):(e.consume(E),h)}function y(E){return E===64?(e.consume(E),v):Wte(E)?(e.consume(E),y):n(E)}function v(E){return Ha(E)?S(E):n(E)}function S(E){return E===46?(e.consume(E),i=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||Ha(E))&&i++<63){const C=E===45?T:S;return e.consume(E),C}return n(E)}}const Tb={partial:!0,tokenize:lne};function lne(e,t,n){return i;function i(s){return Vn(s)?Nn(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||It(s)?t(s):n(s)}}const PD={continuation:{tokenize:une},exit:cne,name:"blockQuote",tokenize:sne};function sne(e,t,n){const i=this;return o;function o(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return n(c)}function s(c){return Vn(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function une(e,t,n){const i=this;return o;function o(c){return Vn(c)?Nn(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(PD,t,n)(c)}}function cne(e){e.exit("blockQuote")}const UD={name:"characterEscape",tokenize:fne};function fne(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return Qte(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const $D={name:"characterReference",tokenize:dne};function dne(e,t,n){const i=this;let o=0,s,c;return d;function d(S){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),h}function h(S){return S===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(S),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),s=31,c=Ha,v(S))}function y(S){return S===88||S===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(S),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=Kte,v):(e.enter("characterReferenceValue"),s=7,c=dT,v(S))}function v(S){if(S===59&&o){const T=e.exit("characterReferenceValue");return c===Ha&&!fT(i.sliceSerialize(T))?n(S):(e.enter("characterReferenceMarker"),e.consume(S),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(S)&&o++<s?(e.consume(S),v):n(S)}}const HD={partial:!0,tokenize:pne},qD={concrete:!0,name:"codeFenced",tokenize:hne};function hne(e,t,n){const i=this,o={partial:!0,tokenize:L};let s=0,c=0,d;return h;function h(U){return y(U)}function y(U){const X=i.events[i.events.length-1];return s=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(U)}function v(U){return U===d?(c++,e.consume(U),v):c<3?n(U):(e.exit("codeFencedFenceSequence"),Vn(U)?Nn(e,S,"whitespace")(U):S(U))}function S(U){return U===null||It(U)?(e.exit("codeFencedFence"),i.interrupt?t(U):e.check(HD,R,V)(U)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(U))}function T(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),S(U)):Vn(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nn(e,E,"whitespace")(U)):U===96&&U===d?n(U):(e.consume(U),T)}function E(U){return U===null||It(U)?S(U):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(U))}function C(U){return U===null||It(U)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),S(U)):U===96&&U===d?n(U):(e.consume(U),C)}function R(U){return e.attempt(o,V,_)(U)}function _(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),N}function N(U){return s>0&&Vn(U)?Nn(e,z,"linePrefix",s+1)(U):z(U)}function z(U){return U===null||It(U)?e.check(HD,R,V)(U):(e.enter("codeFlowValue"),B(U))}function B(U){return U===null||It(U)?(e.exit("codeFlowValue"),z(U)):(e.consume(U),B)}function V(U){return e.exit("codeFenced"),t(U)}function L(U,X,se){let ce=0;return ie;function ie(oe){return U.enter("lineEnding"),U.consume(oe),U.exit("lineEnding"),ue}function ue(oe){return U.enter("codeFencedFence"),Vn(oe)?Nn(U,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):$(oe)}function $(oe){return oe===d?(U.enter("codeFencedFenceSequence"),le(oe)):se(oe)}function le(oe){return oe===d?(ce++,U.consume(oe),le):ce>=c?(U.exit("codeFencedFenceSequence"),Vn(oe)?Nn(U,K,"whitespace")(oe):K(oe)):se(oe)}function K(oe){return oe===null||It(oe)?(U.exit("codeFencedFence"),X(oe)):se(oe)}}}function pne(e,t,n){const i=this;return o;function o(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const pT={name:"codeIndented",tokenize:gne},mne={partial:!0,tokenize:yne};function gne(e,t,n){const i=this;return o;function o(y){return e.enter("codeIndented"),Nn(e,s,"linePrefix",5)(y)}function s(y){const v=i.events[i.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?c(y):n(y)}function c(y){return y===null?h(y):It(y)?e.attempt(mne,c,h)(y):(e.enter("codeFlowValue"),d(y))}function d(y){return y===null||It(y)?(e.exit("codeFlowValue"),c(y)):(e.consume(y),d)}function h(y){return e.exit("codeIndented"),t(y)}}function yne(e,t,n){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?n(c):It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Nn(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):It(c)?o(c):n(c)}}const vne={name:"codeText",previous:xne,resolve:bne,tokenize:Sne};function bne(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function xne(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sne(e,t,n){let i=0,o,s;return c;function c(S){return e.enter("codeText"),e.enter("codeTextSequence"),d(S)}function d(S){return S===96?(e.consume(S),i++,d):(e.exit("codeTextSequence"),h(S))}function h(S){return S===null?n(S):S===32?(e.enter("space"),e.consume(S),e.exit("space"),h):S===96?(s=e.enter("codeTextSequence"),o=0,v(S)):It(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h):(e.enter("codeTextData"),y(S))}function y(S){return S===null||S===32||S===96||It(S)?(e.exit("codeTextData"),h(S)):(e.consume(S),y)}function v(S){return S===96?(e.consume(S),o++,v):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(S)):(s.type="codeTextData",y(S))}}class wne{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Ab(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ab(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ab(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);Ab(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ab(this.left,n.reverse())}}}function Ab(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 GD(e){const t={};let n=-1,i,o,s,c,d,h,y;const v=new wne(e);for(;++n<v.length;){for(;n in t;)n=t[n];if(i=v.get(n),n&&i[1].type==="chunkFlow"&&v.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Ene(v,n)),n=t[n],y=!0);else if(i[1]._container){for(s=n,o=void 0;s--;)if(c=v.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(v.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...v.get(o)[1].start},d=v.slice(o,n),d.unshift(i),v.splice(o,n-o+1,d))}}return wl(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!y}function Ene(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],y={};let v,S,T=-1,E=n,C=0,R=0;const _=[R];for(;E;){for(;e.get(++o)[1]!==E;);s.push(o),E._tokenizer||(v=i.sliceStream(E),E.next||v.push(null),S&&c.defineSkip(E.start),E._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(v),E._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),S=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(c.events=[],E?(E._tokenizer=void 0,E.previous=void 0):_.pop(),T=_.length;T--;){const N=d.slice(_[T],_[T+1]),z=s.pop();h.push([z,z+N.length-1]),e.splice(z,2,N)}for(h.reverse(),T=-1;++T<h.length;)y[C+h[T][0]]=C+h[T][1],C+=h[T][1]-h[T][0]-1;return y}const Tne={resolve:Cne,tokenize:One},Ane={partial:!0,tokenize:Mne};function Cne(e){return GD(e),e}function One(e,t){let n;return i;function i(d){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):It(d)?e.check(Ane,c,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Mne(e,t,n){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Nn(e,s,"linePrefix")}function s(c){if(c===null||It(c))return n(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function FD(e,t,n,i,o,s,c,d,h){const y=h||Number.POSITIVE_INFINITY;let v=0;return S;function S(N){return N===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(N),e.exit(s),T):N===null||N===32||N===41||L3(N)?n(N):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),R(N))}function T(N){return N===62?(e.enter(s),e.consume(N),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===62?(e.exit("chunkString"),e.exit(d),T(N)):N===null||N===60||It(N)?n(N):(e.consume(N),N===92?C:E)}function C(N){return N===60||N===62||N===92?(e.consume(N),E):E(N)}function R(N){return!v&&(N===null||N===41||Ar(N))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(N)):v<y&&N===40?(e.consume(N),v++,R):N===41?(e.consume(N),v--,R):N===null||N===32||N===40||L3(N)?n(N):(e.consume(N),N===92?_:R)}function _(N){return N===40||N===41||N===92?(e.consume(N),R):R(N)}}function YD(e,t,n,i,o,s){const c=this;let d=0,h;return y;function y(E){return e.enter(i),e.enter(o),e.consume(E),e.exit(o),e.enter(s),v}function v(E){return d>999||E===null||E===91||E===93&&!h||E===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?n(E):E===93?(e.exit(s),e.enter(o),e.consume(E),e.exit(o),e.exit(i),t):It(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),S(E))}function S(E){return E===null||E===91||E===93||It(E)||d++>999?(e.exit("chunkString"),v(E)):(e.consume(E),h||(h=!Vn(E)),E===92?T:S)}function T(E){return E===91||E===92||E===93?(e.consume(E),d++,S):S(E)}}function XD(e,t,n,i,o,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),c=T===40?41:T,h):n(T)}function h(T){return T===c?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),y(T))}function y(T){return T===c?(e.exit(s),h(c)):T===null?n(T):It(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Nn(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===c||T===null||It(T)?(e.exit("chunkString"),y(T)):(e.consume(T),T===92?S:v)}function S(T){return T===c||T===92?(e.consume(T),v):v(T)}}function Cb(e,t){let n;return i;function i(o){return It(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Vn(o)?Nn(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const Rne={name:"definition",tokenize:Dne},_ne={partial:!0,tokenize:Nne};function Dne(e,t,n){const i=this;let o;return s;function s(E){return e.enter("definition"),c(E)}function c(E){return YD.call(i,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function d(E){return o=cu(i.sliceSerialize(i.events[i.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 Ar(E)?Cb(e,y)(E):y(E)}function y(E){return FD(e,v,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function v(E){return e.attempt(_ne,S,S)(E)}function S(E){return Vn(E)?Nn(e,T,"whitespace")(E):T(E)}function T(E){return E===null||It(E)?(e.exit("definition"),i.parser.defined.push(o),t(E)):n(E)}}function Nne(e,t,n){return i;function i(d){return Ar(d)?Cb(e,o)(d):n(d)}function o(d){return XD(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Vn(d)?Nn(e,c,"whitespace")(d):c(d)}function c(d){return d===null||It(d)?t(d):n(d)}}const kne={name:"hardBreakEscape",tokenize:zne};function zne(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return It(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ine={name:"headingAtx",resolve:Lne,tokenize:Vne};function Lne(e,t){let n=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},wl(e,i,n-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function Vne(e,t,n){let i=0;return o;function o(v){return e.enter("atxHeading"),s(v)}function s(v){return e.enter("atxHeadingSequence"),c(v)}function c(v){return v===35&&i++<6?(e.consume(v),c):v===null||Ar(v)?(e.exit("atxHeadingSequence"),d(v)):n(v)}function d(v){return v===35?(e.enter("atxHeadingSequence"),h(v)):v===null||It(v)?(e.exit("atxHeading"),t(v)):Vn(v)?Nn(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||Ar(v)?(e.exit("atxHeadingText"),d(v)):(e.consume(v),y)}}const Bne=["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"],WD=["pre","script","style","textarea"],jne={concrete:!0,name:"htmlFlow",resolveTo:$ne,tokenize:Hne},Pne={partial:!0,tokenize:Gne},Une={partial:!0,tokenize:qne};function $ne(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 Hne(e,t,n){const i=this;let o,s,c,d,h;return y;function y(Y){return v(Y)}function v(Y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Y),S}function S(Y){return Y===33?(e.consume(Y),T):Y===47?(e.consume(Y),s=!0,R):Y===63?(e.consume(Y),o=3,i.interrupt?t:te):go(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function T(Y){return Y===45?(e.consume(Y),o=2,E):Y===91?(e.consume(Y),o=5,d=0,C):go(Y)?(e.consume(Y),o=4,i.interrupt?t:te):n(Y)}function E(Y){return Y===45?(e.consume(Y),i.interrupt?t:te):n(Y)}function C(Y){const Me="CDATA[";return Y===Me.charCodeAt(d++)?(e.consume(Y),d===Me.length?i.interrupt?t:$:C):n(Y)}function R(Y){return go(Y)?(e.consume(Y),c=String.fromCharCode(Y),_):n(Y)}function _(Y){if(Y===null||Y===47||Y===62||Ar(Y)){const Me=Y===47,Se=c.toLowerCase();return!Me&&!s&&WD.includes(Se)?(o=1,i.interrupt?t(Y):$(Y)):Bne.includes(c.toLowerCase())?(o=6,Me?(e.consume(Y),N):i.interrupt?t(Y):$(Y)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(Y):s?z(Y):B(Y))}return Y===45||Ha(Y)?(e.consume(Y),c+=String.fromCharCode(Y),_):n(Y)}function N(Y){return Y===62?(e.consume(Y),i.interrupt?t:$):n(Y)}function z(Y){return Vn(Y)?(e.consume(Y),z):ie(Y)}function B(Y){return Y===47?(e.consume(Y),ie):Y===58||Y===95||go(Y)?(e.consume(Y),V):Vn(Y)?(e.consume(Y),B):ie(Y)}function V(Y){return Y===45||Y===46||Y===58||Y===95||Ha(Y)?(e.consume(Y),V):L(Y)}function L(Y){return Y===61?(e.consume(Y),U):Vn(Y)?(e.consume(Y),L):B(Y)}function U(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?n(Y):Y===34||Y===39?(e.consume(Y),h=Y,X):Vn(Y)?(e.consume(Y),U):se(Y)}function X(Y){return Y===h?(e.consume(Y),h=null,ce):Y===null||It(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||Ar(Y)?L(Y):(e.consume(Y),se)}function ce(Y){return Y===47||Y===62||Vn(Y)?B(Y):n(Y)}function ie(Y){return Y===62?(e.consume(Y),ue):n(Y)}function ue(Y){return Y===null||It(Y)?$(Y):Vn(Y)?(e.consume(Y),ue):n(Y)}function $(Y){return Y===45&&o===2?(e.consume(Y),Z):Y===60&&o===1?(e.consume(Y),ae):Y===62&&o===4?(e.consume(Y),F):Y===63&&o===3?(e.consume(Y),te):Y===93&&o===5?(e.consume(Y),Ee):It(Y)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Pne,ee,le)(Y)):Y===null||It(Y)?(e.exit("htmlFlowData"),le(Y)):(e.consume(Y),$)}function le(Y){return e.check(Une,K,ee)(Y)}function K(Y){return e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),oe}function oe(Y){return Y===null||It(Y)?le(Y):(e.enter("htmlFlowData"),$(Y))}function Z(Y){return Y===45?(e.consume(Y),te):$(Y)}function ae(Y){return Y===47?(e.consume(Y),c="",he):$(Y)}function he(Y){if(Y===62){const Me=c.toLowerCase();return WD.includes(Me)?(e.consume(Y),F):$(Y)}return go(Y)&&c.length<8?(e.consume(Y),c+=String.fromCharCode(Y),he):$(Y)}function Ee(Y){return Y===93?(e.consume(Y),te):$(Y)}function te(Y){return Y===62?(e.consume(Y),F):Y===45&&o===2?(e.consume(Y),te):$(Y)}function F(Y){return Y===null||It(Y)?(e.exit("htmlFlowData"),ee(Y)):(e.consume(Y),F)}function ee(Y){return e.exit("htmlFlow"),t(Y)}}function qne(e,t,n){const i=this;return o;function o(c){return It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):n(c)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Gne(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Tb,t,n)}}const Fne={name:"htmlText",tokenize:Yne};function Yne(e,t,n){const i=this;let o,s,c;return d;function d(te){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(te),h}function h(te){return te===33?(e.consume(te),y):te===47?(e.consume(te),L):te===63?(e.consume(te),B):go(te)?(e.consume(te),se):n(te)}function y(te){return te===45?(e.consume(te),v):te===91?(e.consume(te),s=0,C):go(te)?(e.consume(te),z):n(te)}function v(te){return te===45?(e.consume(te),E):n(te)}function S(te){return te===null?n(te):te===45?(e.consume(te),T):It(te)?(c=S,ae(te)):(e.consume(te),S)}function T(te){return te===45?(e.consume(te),E):S(te)}function E(te){return te===62?Z(te):te===45?T(te):S(te)}function C(te){const F="CDATA[";return te===F.charCodeAt(s++)?(e.consume(te),s===F.length?R:C):n(te)}function R(te){return te===null?n(te):te===93?(e.consume(te),_):It(te)?(c=R,ae(te)):(e.consume(te),R)}function _(te){return te===93?(e.consume(te),N):R(te)}function N(te){return te===62?Z(te):te===93?(e.consume(te),N):R(te)}function z(te){return te===null||te===62?Z(te):It(te)?(c=z,ae(te)):(e.consume(te),z)}function B(te){return te===null?n(te):te===63?(e.consume(te),V):It(te)?(c=B,ae(te)):(e.consume(te),B)}function V(te){return te===62?Z(te):B(te)}function L(te){return go(te)?(e.consume(te),U):n(te)}function U(te){return te===45||Ha(te)?(e.consume(te),U):X(te)}function X(te){return It(te)?(c=X,ae(te)):Vn(te)?(e.consume(te),X):Z(te)}function se(te){return te===45||Ha(te)?(e.consume(te),se):te===47||te===62||Ar(te)?ce(te):n(te)}function ce(te){return te===47?(e.consume(te),Z):te===58||te===95||go(te)?(e.consume(te),ie):It(te)?(c=ce,ae(te)):Vn(te)?(e.consume(te),ce):Z(te)}function ie(te){return te===45||te===46||te===58||te===95||Ha(te)?(e.consume(te),ie):ue(te)}function ue(te){return te===61?(e.consume(te),$):It(te)?(c=ue,ae(te)):Vn(te)?(e.consume(te),ue):ce(te)}function $(te){return te===null||te===60||te===61||te===62||te===96?n(te):te===34||te===39?(e.consume(te),o=te,le):It(te)?(c=$,ae(te)):Vn(te)?(e.consume(te),$):(e.consume(te),K)}function le(te){return te===o?(e.consume(te),o=void 0,oe):te===null?n(te):It(te)?(c=le,ae(te)):(e.consume(te),le)}function K(te){return te===null||te===34||te===39||te===60||te===61||te===96?n(te):te===47||te===62||Ar(te)?ce(te):(e.consume(te),K)}function oe(te){return te===47||te===62||Ar(te)?ce(te):n(te)}function Z(te){return te===62?(e.consume(te),e.exit("htmlTextData"),e.exit("htmlText"),t):n(te)}function ae(te){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(te),e.exit("lineEnding"),he}function he(te){return Vn(te)?Nn(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):Ee(te)}function Ee(te){return e.enter("htmlTextData"),c(te)}}const mT={name:"labelEnd",resolveAll:Qne,resolveTo:Zne,tokenize:Jne},Xne={tokenize:ere},Wne={tokenize:tre},Kne={tokenize:nre};function Qne(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&wl(e,0,e.length,n),e}function Zne(e,t){let n=e.length,i=0,o,s,c,d;for(;n--;)if(o=e[n][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},y={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},v={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",y,t]],d=ts(d,e.slice(s+1,s+i+3)),d=ts(d,[["enter",v,t]]),d=ts(d,B3(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=ts(d,[["exit",v,t],e[c-2],e[c-1],["exit",y,t]]),d=ts(d,e.slice(c+1)),d=ts(d,[["exit",h,t]]),wl(e,s,e.length,d),e}function Jne(e,t,n){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(T){return s?s._inactive?S(T):(c=i.parser.defined.includes(cu(i.sliceSerialize({start:s.end,end:i.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(Xne,v,c?v:S)(T):T===91?e.attempt(Wne,v,c?y:S)(T):c?v(T):S(T)}function y(T){return e.attempt(Kne,v,S)(T)}function v(T){return t(T)}function S(T){return s._balanced=!0,n(T)}}function ere(e,t,n){return i;function i(S){return e.enter("resource"),e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),o}function o(S){return Ar(S)?Cb(e,s)(S):s(S)}function s(S){return S===41?v(S):FD(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(S)}function c(S){return Ar(S)?Cb(e,h)(S):v(S)}function d(S){return n(S)}function h(S){return S===34||S===39||S===40?XD(e,y,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(S):v(S)}function y(S){return Ar(S)?Cb(e,v)(S):v(S)}function v(S){return S===41?(e.enter("resourceMarker"),e.consume(S),e.exit("resourceMarker"),e.exit("resource"),t):n(S)}}function tre(e,t,n){const i=this;return o;function o(d){return YD.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(cu(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function c(d){return n(d)}}function nre(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const rre={name:"labelStartImage",resolveAll:mT.resolveAll,tokenize:ire};function ire(e,t,n){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):n(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):t(d)}}const are={name:"labelStartLink",resolveAll:mT.resolveAll,tokenize:ore};function ore(e,t,n){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const gT={name:"lineEnding",tokenize:lre};function lre(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Nn(e,t,"linePrefix")}}const j3={name:"thematicBreak",tokenize:sre};function sre(e,t,n){let i=0,o;return s;function s(y){return e.enter("thematicBreak"),c(y)}function c(y){return o=y,d(y)}function d(y){return y===o?(e.enter("thematicBreakSequence"),h(y)):i>=3&&(y===null||It(y))?(e.exit("thematicBreak"),t(y)):n(y)}function h(y){return y===o?(e.consume(y),i++,h):(e.exit("thematicBreakSequence"),Vn(y)?Nn(e,d,"whitespace")(y):d(y))}}const qo={continuation:{tokenize:dre},exit:pre,name:"list",tokenize:fre},ure={partial:!0,tokenize:mre},cre={partial:!0,tokenize:hre};function fre(e,t,n){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(E){const C=i.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||E===i.containerState.marker:dT(E)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(j3,n,y)(E):y(E);if(!i.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(E)}return n(E)}function h(E){return dT(E)&&++c<10?(e.consume(E),h):(!i.interrupt||c<2)&&(i.containerState.marker?E===i.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"),i.containerState.marker=i.containerState.marker||E,e.check(Tb,i.interrupt?n:v,e.attempt(ure,T,S))}function v(E){return i.containerState.initialBlankLine=!0,s++,T(E)}function S(E){return Vn(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),T):n(E)}function T(E){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function dre(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Tb,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Nn(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Vn(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(cre,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Nn(e,e.attempt(qo,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function hre(e,t,n){const i=this;return Nn(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):n(s)}}function pre(e){e.exit(this.containerState.type)}function mre(e,t,n){const i=this;return Nn(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!Vn(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const KD={name:"setextUnderline",resolveTo:gre,tokenize:yre};function gre(e,t){let n=e.length,i,o,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function yre(e,t,n){const i=this;let o;return s;function s(y){let v=i.events.length,S;for(;v--;)if(i.events[v][1].type!=="lineEnding"&&i.events[v][1].type!=="linePrefix"&&i.events[v][1].type!=="content"){S=i.events[v][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||S)?(e.enter("setextHeadingLine"),o=y,c(y)):n(y)}function c(y){return e.enter("setextHeadingLineSequence"),d(y)}function d(y){return y===o?(e.consume(y),d):(e.exit("setextHeadingLineSequence"),Vn(y)?Nn(e,h,"lineSuffix")(y):h(y))}function h(y){return y===null||It(y)?(e.exit("setextHeadingLine"),t(y)):n(y)}}const vre={tokenize:bre};function bre(e){const t=this,n=e.attempt(Tb,i,e.attempt(this.parser.constructs.flowInitial,o,Nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Tne,o)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xre={resolveAll:ZD()},Sre=QD("string"),wre=QD("text");function QD(e){return{resolveAll:ZD(e==="text"?Ere:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,c,d);return c;function c(v){return y(v)?s(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"),s(v)):(n.consume(v),h)}function y(v){if(v===null)return!0;const S=o[v];let T=-1;if(S)for(;++T<S.length;){const E=S[T];if(!E.previous||E.previous.call(i,i.previous))return!0}return!1}}}function ZD(e){return t;function t(n,i){let o=-1,s;for(;++o<=n.length;)s===void 0?n[o]&&n[o][1].type==="data"&&(s=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(n,i):n}}function Ere(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 i=e[n-1][1],o=t.sliceStream(i);let s=o.length,c=-1,d=0,h;for(;s--;){const y=o[s];if(typeof y=="string"){for(c=y.length;y.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(y===-2)h=!0,d++;else if(y!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(d=0),d){const y={type:n===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...y.start},i.start.offset===i.end.offset?Object.assign(i,y):(e.splice(n,0,["enter",y,t],["exit",y,t]),n+=2)}n++}return e}const Tre=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Rne},disable:{null:[]},document:{42:qo,43:qo,45:qo,48:qo,49:qo,50:qo,51:qo,52:qo,53:qo,54:qo,55:qo,56:qo,57:qo,62:PD},flow:{35:Ine,42:j3,45:[KD,j3],60:jne,61:KD,95:j3,96:qD,126:qD},flowInitial:{[-2]:pT,[-1]:pT,32:pT},insideSpan:{null:[hT,xre]},string:{38:$D,92:UD},text:{[-5]:gT,[-4]:gT,[-3]:gT,33:rre,38:$D,42:hT,60:[ane,Fne],91:are,92:[kne,UD],93:mT,95:hT,96:vne}},Symbol.toStringTag,{value:"Module"}));function Are(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},s=[];let c=[],d=[];const h={attempt:X(L),check:X(U),consume:z,enter:B,exit:V,interrupt:X(U,{interrupt:!0})},y={code:null,containerState:{},defineSkip:R,events:[],now:C,parser:e,previous:null,sliceSerialize:T,sliceStream:E,write:S};let v=t.tokenize.call(y,h);return t.resolveAll&&s.push(t),y;function S(ue){return c=ts(c,ue),_(),c[c.length-1]!==null?[]:(se(t,0),y.events=B3(s,y.events,y),y.events)}function T(ue,$){return Ore(E(ue),$)}function E(ue){return Cre(c,ue)}function C(){const{_bufferIndex:ue,_index:$,line:le,column:K,offset:oe}=i;return{_bufferIndex:ue,_index:$,line:le,column:K,offset:oe}}function R(ue){o[ue.line]=ue.column,ie()}function _(){let ue;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(ue=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ue&&i._bufferIndex<$.length;)N($.charCodeAt(i._bufferIndex));else N($)}}function N(ue){v=v(ue)}function z(ue){It(ue)?(i.line++,i.column=1,i.offset+=ue===-3?2:1,ie()):ue!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),y.previous=ue}function B(ue,$){const le=$||{};return le.type=ue,le.start=C(),y.events.push(["enter",le,y]),d.push(le),le}function V(ue){const $=d.pop();return $.end=C(),y.events.push(["exit",$,y]),$}function L(ue,$){se(ue,$.from)}function U(ue,$){$.restore()}function X(ue,$){return le;function le(K,oe,Z){let ae,he,Ee,te;return Array.isArray(K)?ee(K):"tokenize"in K?ee([K]):F(K);function F(_e){return je;function je(He){const Xe=He!==null&&_e[He],Ke=He!==null&&_e.null,et=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return ee(et)(He)}}function ee(_e){return ae=_e,he=0,_e.length===0?Z:Y(_e[he])}function Y(_e){return je;function je(He){return te=ce(),Ee=_e,_e.partial||(y.currentConstruct=_e),_e.name&&y.parser.constructs.disable.null.includes(_e.name)?Se():_e.tokenize.call($?Object.assign(Object.create(y),$):y,h,Me,Se)(He)}}function Me(_e){return ue(Ee,te),oe}function Se(_e){return te.restore(),++he<ae.length?Y(ae[he]):Z}}}function se(ue,$){ue.resolveAll&&!s.includes(ue)&&s.push(ue),ue.resolve&&wl(y.events,$,y.events.length-$,ue.resolve(y.events.slice($),y)),ue.resolveTo&&(y.events=ue.resolveTo(y.events,y))}function ce(){const ue=C(),$=y.previous,le=y.currentConstruct,K=y.events.length,oe=Array.from(d);return{from:K,restore:Z};function Z(){i=ue,y.previous=$,y.currentConstruct=le,y.events.length=K,d=oe,ie()}}function ie(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function Cre(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let c;if(n===o)c=[e[n].slice(i,s)];else{if(c=e.slice(n,o),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function Ore(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const s=e[n];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
`;break}case-3:{c=`\r
`;break}case-2:{c=t?" ":"	";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function Mre(e){const i={constructs:LD([Tre,...(e||{}).extensions||[]]),content:o(Zte),defined:[],document:o(ene),flow:o(vre),lazy:{},string:o(Sre),text:o(wre)};return i;function o(s){return c;function c(d){return Are(i,s,d)}}}function Rre(e){for(;!GD(e););return e}const JD=/[\0\t\n\r]/g;function _re(){let e=1,t="",n=!0,i;return o;function o(s,c,d){const h=[];let y,v,S,T,E;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),S=0,t="",n&&(s.charCodeAt(0)===65279&&S++,n=void 0);S<s.length;){if(JD.lastIndex=S,y=JD.exec(s),T=y&&y.index!==void 0?y.index:s.length,E=s.charCodeAt(T),!y){t=s.slice(S);break}if(E===10&&S===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),S<T&&(h.push(s.slice(S,T)),e+=T-S),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:i=!0,e=1}S=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const Dre=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nre(e){return e.replace(Dre,kre)}function kre(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return VD(n.slice(s?2:1),s?16:10)}return fT(n)||e}const eN={}.hasOwnProperty;function zre(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Ire(n)(Rre(Mre(n).document().write(_re()(e,t,!0))))}function Ire(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(hn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:s(Mt),blockQuote:s(Ke),characterEscape:ce,characterReference:ce,codeFenced:s(et),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(et,c),codeText:s(Be,c),codeTextData:ce,data:ce,codeFlowValue:ce,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(st),hardBreakEscape:s(Qt),hardBreakTrailing:s(Qt),htmlFlow:s(xt,c),htmlFlowData:ce,htmlText:s(xt,c),htmlTextData:ce,image:s(Ut),label:c,link:s(hn),listItem:s(ot),listItemValue:T,listOrdered:s(mn,S),listUnordered:s(mn),paragraph:s(At),reference:Y,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Mt),strong:s(Rn),thematicBreak:s(Ze)},exit:{atxHeading:h(),atxHeadingSequence:L,autolink:h(),autolinkEmail:Xe,autolinkProtocol:He,blockQuote:h(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:_e,characterReference:je,codeFenced:h(_),codeFencedFence:R,codeFencedFenceInfo:E,codeFencedFenceMeta:C,codeFlowValue:ie,codeIndented:h(N),codeText:h(oe),codeTextData:ie,data:ie,definition:h(),definitionDestinationString:V,definitionLabelString:z,definitionTitleString:B,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(le),htmlFlowData:ie,htmlText:h(K),htmlTextData:ie,image:h(ae),label:Ee,labelText:he,lineEnding:ue,link:h(Z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Me,resourceDestinationString:te,resourceTitleString:F,resource:ee,setextHeading:h(se),setextHeadingLineSequence:X,setextHeadingText:U,strong:h(),thematicBreak:h()}};tN(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(be){let Ve={type:"root",children:[]};const nt={stack:[Ve],tokenStack:[],config:t,enter:d,exit:y,buffer:c,resume:v,data:n},pt=[];let ut=-1;for(;++ut<be.length;)if(be[ut][1].type==="listOrdered"||be[ut][1].type==="listUnordered")if(be[ut][0]==="enter")pt.push(ut);else{const yt=pt.pop();ut=o(be,yt,ut)}for(ut=-1;++ut<be.length;){const yt=t[be[ut][0]];eN.call(yt,be[ut][1].type)&&yt[be[ut][1].type].call(Object.assign({sliceSerialize:be[ut][2].sliceSerialize},nt),be[ut][1])}if(nt.tokenStack.length>0){const yt=nt.tokenStack[nt.tokenStack.length-1];(yt[1]||nN).call(nt,void 0,yt[0])}for(Ve.position={start:Ld(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:Ld(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<t.transforms.length;)Ve=t.transforms[ut](Ve)||Ve;return Ve}function o(be,Ve,nt){let pt=Ve-1,ut=-1,yt=!1,gn,kt,jt,Fn;for(;++pt<=nt;){const bn=be[pt];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?ut++:ut--,Fn=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(gn&&!Fn&&!ut&&!jt&&(jt=pt),Fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fn=void 0}if(!ut&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||ut===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(gn){let Fr=pt;for(kt=void 0;Fr--;){const cr=be[Fr];if(cr[1].type==="lineEnding"||cr[1].type==="lineEndingBlank"){if(cr[0]==="exit")continue;kt&&(be[kt][1].type="lineEndingBlank",yt=!0),cr[1].type="lineEnding",kt=Fr}else if(!(cr[1].type==="linePrefix"||cr[1].type==="blockQuotePrefix"||cr[1].type==="blockQuotePrefixWhitespace"||cr[1].type==="blockQuoteMarker"||cr[1].type==="listItemIndent"))break}jt&&(!kt||jt<kt)&&(gn._spread=!0),gn.end=Object.assign({},kt?be[kt][1].start:bn[1].end),be.splice(kt||pt,0,["exit",gn,bn[2]]),pt++,nt++}if(bn[1].type==="listItemPrefix"){const Fr={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};gn=Fr,be.splice(pt,0,["enter",Fr,bn[2]]),pt++,nt++,jt=void 0,Fn=!0}}}return be[Ve][1]._spread=yt,nt}function s(be,Ve){return nt;function nt(pt){d.call(this,be(pt),pt),Ve&&Ve.call(this,pt)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(be,Ve,nt){this.stack[this.stack.length-1].children.push(be),this.stack.push(be),this.tokenStack.push([Ve,nt||void 0]),be.position={start:Ld(Ve.start),end:void 0}}function h(be){return Ve;function Ve(nt){be&&be.call(this,nt),y.call(this,nt)}}function y(be,Ve){const nt=this.stack.pop(),pt=this.tokenStack.pop();if(pt)pt[0].type!==be.type&&(Ve?Ve.call(this,be,pt[0]):(pt[1]||nN).call(this,be,pt[0]));else throw new Error("Cannot close `"+be.type+"` ("+wb({start:be.start,end:be.end})+"): it’s not open");nt.position.end=Ld(be.end)}function v(){return cT(this.stack.pop())}function S(){this.data.expectingFirstListItemValue=!0}function T(be){if(this.data.expectingFirstListItemValue){const Ve=this.stack[this.stack.length-2];Ve.start=Number.parseInt(this.sliceSerialize(be),10),this.data.expectingFirstListItemValue=void 0}}function E(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.lang=be}function C(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.meta=be}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be.replace(/(\r?\n|\r)$/g,"")}function z(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase()}function B(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function V(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function L(be){const Ve=this.stack[this.stack.length-1];if(!Ve.depth){const nt=this.sliceSerialize(be).length;Ve.depth=nt}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function X(be){const Ve=this.stack[this.stack.length-1];Ve.depth=this.sliceSerialize(be).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(be){const nt=this.stack[this.stack.length-1].children;let pt=nt[nt.length-1];(!pt||pt.type!=="text")&&(pt=Bt(),pt.position={start:Ld(be.start),end:void 0},nt.push(pt)),this.stack.push(pt)}function ie(be){const Ve=this.stack.pop();Ve.value+=this.sliceSerialize(be),Ve.position.end=Ld(be.end)}function ue(be){const Ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const nt=Ve.children[Ve.children.length-1];nt.position.end=Ld(be.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ve.type)&&(ce.call(this,be),ie.call(this,be))}function $(){this.data.atHardBreak=!0}function le(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function K(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function oe(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.value=be}function Z(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function ae(){const be=this.stack[this.stack.length-1];if(this.data.inReference){const Ve=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=Ve,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function he(be){const Ve=this.sliceSerialize(be),nt=this.stack[this.stack.length-2];nt.label=Nre(Ve),nt.identifier=cu(Ve).toLowerCase()}function Ee(){const be=this.stack[this.stack.length-1],Ve=this.resume(),nt=this.stack[this.stack.length-1];if(this.data.inReference=!0,nt.type==="link"){const pt=be.children;nt.children=pt}else nt.alt=Ve}function te(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.url=be}function F(){const be=this.resume(),Ve=this.stack[this.stack.length-1];Ve.title=be}function ee(){this.data.inReference=void 0}function Y(){this.data.referenceType="collapsed"}function Me(be){const Ve=this.resume(),nt=this.stack[this.stack.length-1];nt.label=Ve,nt.identifier=cu(this.sliceSerialize(be)).toLowerCase(),this.data.referenceType="full"}function Se(be){this.data.characterReferenceType=be.type}function _e(be){const Ve=this.sliceSerialize(be),nt=this.data.characterReferenceType;let pt;nt?(pt=VD(Ve,nt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pt=fT(Ve);const ut=this.stack[this.stack.length-1];ut.value+=pt}function je(be){const Ve=this.stack.pop();Ve.position.end=Ld(be.end)}function He(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url=this.sliceSerialize(be)}function Xe(be){ie.call(this,be);const Ve=this.stack[this.stack.length-1];Ve.url="mailto:"+this.sliceSerialize(be)}function Ke(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function Be(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Mt(){return{type:"heading",depth:0,children:[]}}function Qt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Ut(){return{type:"image",title:null,url:"",alt:null}}function hn(){return{type:"link",title:null,url:"",children:[]}}function mn(be){return{type:"list",ordered:be.type==="listOrdered",start:null,spread:be._spread,children:[]}}function ot(be){return{type:"listItem",spread:be._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function Rn(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Ld(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?tN(e,i):Lre(e,i)}}function Lre(e,t){let n;for(n in t)if(eN.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function nN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wb({start:t.start,end:t.end})+") is still open")}function Vre(e){const t=this;t.parser=n;function n(i){return zre(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Bre(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 jre(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function Pre(e,t){const n=t.value?t.value+`
`:"",i={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(i.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Ure(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $re(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hre(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=Cg(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const y={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,y),e.applyData(t,y)}function qre(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 Gre(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function rN(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function Fre(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return rN(e,t);const o={src:Cg(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function Yre(e,t){const n={src:Cg(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function Xre(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function Wre(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return rN(e,t);const o={href:Cg(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Kre(e,t){const n={href:Cg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Qre(e,t,n){const i=e.all(t),o=n?Zre(n):iN(t),s={},c=[];if(typeof t.checked=="boolean"){const v=i[0];let S;v&&v.type==="element"&&v.tagName==="p"?S=v:(S={type:"element",tagName:"p",properties:{},children:[]},i.unshift(S)),S.children.length>0&&S.children.unshift({type:"text",value:" "}),S.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const v=i[d];(o||d!==0||v.type!=="element"||v.tagName!=="p")&&c.push({type:"text",value:`
`}),v.type==="element"&&v.tagName==="p"&&!o?c.push(...v.children):c.push(v)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
`});const y={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,y),e.applyData(t,y)}function Zre(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=iN(n[i])}return t}function iN(e){const t=e.spread;return t??e.children.length>1}function Jre(e,t){const n={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function eie(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tie(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function nie(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rie(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),o.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},d=iT(t.children[1]),h=ED(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function iie(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,d=c?c.length:t.children.length;let h=-1;const y=[];for(;++h<d;){const S=t.children[h],T={},E=c?c[h]:void 0;E&&(T.align=E);let C={type:"element",tagName:s,properties:T,children:[]};S&&(C.children=e.all(S),e.patch(S,C),C=e.applyData(S,C)),y.push(C)}const v={type:"element",tagName:"tr",properties:{},children:e.wrap(y,!0)};return e.patch(t,v),e.applyData(t,v)}function aie(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const aN=9,oN=32;function oie(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),o=0;const s=[];for(;i;)s.push(lN(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return s.push(lN(t.slice(o),o>0,!1)),s.join("")}function lN(e,t,n){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===aN||s===oN;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(o-1);for(;s===aN||s===oN;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function lie(e,t){const n={type:"text",value:oie(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sie(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const uie={blockquote:Bre,break:jre,code:Pre,delete:Ure,emphasis:$re,footnoteReference:Hre,heading:qre,html:Gre,imageReference:Fre,image:Yre,inlineCode:Xre,linkReference:Wre,link:Kre,listItem:Qre,list:Jre,paragraph:eie,root:tie,strong:nie,table:rie,tableCell:aie,tableRow:iie,text:lie,thematicBreak:sie,toml:P3,yaml:P3,definition:P3,footnoteDefinition:P3};function P3(){}const sN=-1,U3=0,Ob=1,$3=2,yT=3,vT=4,bT=5,xT=6,uN=7,cN=8,fN=typeof self=="object"?self:globalThis,cie=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=t[o];switch(s){case U3:case sN:return n(c,o);case Ob:{const d=n([],o);for(const h of c)d.push(i(h));return d}case $3:{const d=n({},o);for(const[h,y]of c)d[i(h)]=i(y);return d}case yT:return n(new Date(c),o);case vT:{const{source:d,flags:h}=c;return n(new RegExp(d,h),o)}case bT:{const d=n(new Map,o);for(const[h,y]of c)d.set(i(h),i(y));return d}case xT:{const d=n(new Set,o);for(const h of c)d.add(i(h));return d}case uN:{const{name:d,message:h}=c;return n(new fN[d](h),o)}case cN:return n(BigInt(c),o);case"BigInt":return n(Object(BigInt(c)),o);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return n(new DataView(d),c)}}return n(new fN[s](c),o)};return i},dN=e=>cie(new Map,e)(0),Mg="",{toString:fie}={},{keys:die}=Object,Mb=e=>{const t=typeof e;if(t!=="object"||!e)return[U3,t];const n=fie.call(e).slice(8,-1);switch(n){case"Array":return[Ob,Mg];case"Object":return[$3,Mg];case"Date":return[yT,Mg];case"RegExp":return[vT,Mg];case"Map":return[bT,Mg];case"Set":return[xT,Mg];case"DataView":return[Ob,n]}return n.includes("Array")?[Ob,n]:n.includes("Error")?[uN,n]:[$3,n]},H3=([e,t])=>e===U3&&(t==="function"||t==="symbol"),hie=(e,t,n,i)=>{const o=(c,d)=>{const h=i.push(c)-1;return n.set(d,h),h},s=c=>{if(n.has(c))return n.get(c);let[d,h]=Mb(c);switch(d){case U3:{let v=c;switch(h){case"bigint":d=cN,v=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);v=null;break;case"undefined":return o([sN],c)}return o([d,v],c)}case Ob:{if(h){let T=c;return h==="DataView"?T=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(c)),o([h,[...T]],c)}const v=[],S=o([d,v],c);for(const T of c)v.push(s(T));return S}case $3:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const v=[],S=o([d,v],c);for(const T of die(c))(e||!H3(Mb(c[T])))&&v.push([s(T),s(c[T])]);return S}case yT:return o([d,c.toISOString()],c);case vT:{const{source:v,flags:S}=c;return o([d,{source:v,flags:S}],c)}case bT:{const v=[],S=o([d,v],c);for(const[T,E]of c)(e||!(H3(Mb(T))||H3(Mb(E))))&&v.push([s(T),s(E)]);return S}case xT:{const v=[],S=o([d,v],c);for(const T of c)(e||!H3(Mb(T)))&&v.push(s(T));return S}}const{message:y}=c;return o([d,{name:h,message:y}],c)};return s},hN=(e,{json:t,lossy:n}={})=>{const i=[];return hie(!(t||n),!!t,new Map,i)(e),i},Rb=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dN(hN(e,t)):structuredClone(e):(e,t)=>dN(hN(e,t));function pie(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 mie(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gie(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||pie,i=e.options.footnoteBackLabel||mie,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=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),S=String(y.identifier).toUpperCase(),T=Cg(S.toLowerCase());let E=0;const C=[],R=e.footnoteCounts.get(S);for(;R!==void 0&&++E<=R;){C.length>0&&C.push({type:"text",value:" "});let z=typeof n=="string"?n:n(h,E);typeof z=="string"&&(z={type:"text",value:z}),C.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(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(...C)}else v.push(...C);const N={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(v,!0)};e.patch(y,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Rb(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
`}]}}const _b=(function(e){if(e==null)return xie;if(typeof e=="function")return q3(e);if(typeof e=="object")return Array.isArray(e)?yie(e):vie(e);if(typeof e=="string")return bie(e);throw new Error("Expected function, string, or object as test")});function yie(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_b(e[n]);return q3(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function vie(e){const t=e;return q3(n);function n(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function bie(e){return q3(t);function t(n){return n&&n.type===e}}function q3(e){return t;function t(n,i,o){return!!(Sie(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function xie(){return!0}function Sie(e){return e!==null&&typeof e=="object"&&"type"in e}function fde(e){return e}const pN=[],wie=!0,ST=!1,mN="skip";function wT(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const s=_b(o),c=i?-1:1;d(e,void 0,[])();function d(h,y,v){const S=h&&typeof h=="object"?h:{};if(typeof S.type=="string"){const E=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(E?"<"+E+">":""))+")"})}return T;function T(){let E=pN,C,R,_;if((!t||s(h,y,v[v.length-1]||void 0))&&(E=Eie(n(h,v)),E[0]===ST))return E;if("children"in h&&h.children){const N=h;if(N.children&&E[0]!==mN)for(R=(i?N.children.length:-1)+c,_=v.concat(N);R>-1&&R<N.children.length;){const z=N.children[R];if(C=d(z,R,_)(),C[0]===ST)return C;R=typeof C[1]=="number"?C[1]:R+c}}return E}}}function Eie(e){return Array.isArray(e)?e:typeof e=="number"?[wie,e]:e==null?pN:[e]}function ET(e,t,n,i){let o,s,c;typeof t=="function"&&typeof n!="function"?(s=void 0,c=t,o=n):(s=t,c=n,o=i),wT(e,s,d,o);function d(h,y){const v=y[y.length-1],S=v?v.children.indexOf(h):void 0;return c(h,S,v)}}const TT={}.hasOwnProperty,Tie={};function Aie(e,t){const n=t||Tie,i=new Map,o=new Map,s=new Map,c={...uie,...n.handlers},d={all:y,applyData:Oie,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:n,patch:Cie,wrap:Rie};return ET(e,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const S=v.type==="definition"?i:o,T=String(v.identifier).toUpperCase();S.has(T)||S.set(T,v)}}),d;function h(v,S){const T=v.type,E=d.handlers[T];if(TT.call(d.handlers,T)&&E)return E(d,v,S);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in v){const{children:R,..._}=v,N=Rb(_);return N.children=d.all(v),N}return Rb(v)}return(d.options.unknownHandler||Mie)(d,v,S)}function y(v){const S=[];if("children"in v){const T=v.children;let E=-1;for(;++E<T.length;){const C=d.one(T[E],v);if(C){if(E&&T[E-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=gN(C.value)),!Array.isArray(C)&&C.type==="element")){const R=C.children[0];R&&R.type==="text"&&(R.value=gN(R.value))}Array.isArray(C)?S.push(...C):S.push(C)}}}return S}}function Cie(e,t){e.position&&(t.position=AD(e))}function Oie(e,t){let n=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&s&&Object.assign(n.properties,Rb(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Mie(e,t){const n=t.data||{},i="value"in t&&!(TT.call(n,"hProperties")||TT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Rie(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
`});++i<e.length;)i&&n.push({type:"text",value:`
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function gN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yN(e,t){const n=Aie(e,t),i=n.one(e,void 0),o=gie(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
`},o),s}function _ie(e,t){return e&&"run"in e?async function(n,i){const o=yN(n,{file:i,...t});await e.run(o,i)}:function(n,i){return yN(n,{file:i,...e||t})}}function vN(e){if(e)throw e}var AT,bN;function Die(){if(bN)return AT;bN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(y){return typeof Array.isArray=="function"?Array.isArray(y):t.call(y)==="[object Array]"},s=function(y){if(!y||t.call(y)!=="[object Object]")return!1;var v=e.call(y,"constructor"),S=y.constructor&&y.constructor.prototype&&e.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!v&&!S)return!1;var T;for(T in y);return typeof T>"u"||e.call(y,T)},c=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(i)return i(y,v).value}else return;return y[v]};return AT=function h(){var y,v,S,T,E,C,R=arguments[0],_=1,N=arguments.length,z=!1;for(typeof R=="boolean"&&(z=R,R=arguments[1]||{},_=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});_<N;++_)if(y=arguments[_],y!=null)for(v in y)S=d(R,v),T=d(y,v),R!==T&&(z&&T&&(s(T)||(E=o(T)))?(E?(E=!1,C=S&&o(S)?S:[]):C=S&&s(S)?S:{},c(R,{name:v,newValue:h(z,C,T)})):typeof T<"u"&&c(R,{name:v,newValue:T}));return R},AT}var Nie=Die();const CT=pl(Nie);function OT(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 kie(){const e=[],t={run:n,use:i};return t;function n(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(h,...y){const v=e[++s];let S=-1;if(h){c(h);return}for(;++S<o.length;)(y[S]===null||y[S]===void 0)&&(y[S]=o[S]);o=y,v?zie(v,d)(...y):c(null,...y)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function zie(e,t){let n;return i;function i(...c){const d=e.length>c.length;let h;d&&c.push(o);try{h=e.apply(this,c)}catch(y){const v=y;if(d&&n)throw v;return o(v)}d||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...d){n||(n=!0,t(c,...d))}function s(c){o(null,c)}}const ac={basename:Iie,dirname:Lie,extname:Vie,join:Bie,sep:"/"};function Iie(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Db(e);let n=0,i=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function Lie(e){if(Db(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Vie(e){Db(e);let t=e.length,n=-1,i=0,o=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===i+1?"":e.slice(o,n)}function Bie(...e){let t=-1,n;for(;++t<e.length;)Db(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":jie(n)}function jie(e){Db(e);const t=e.codePointAt(0)===47;let n=Pie(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Pie(e,t){let n="",i=0,o=-1,s=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(n.length<2||i!==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="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=c,s=0;continue}}else if(n.length>0){n="",i=0,o=c,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,c):n=e.slice(o+1,c),i=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return n}function Db(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Uie={cwd:$ie};function $ie(){return"/"}function MT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hie(e){if(typeof e=="string")e=new URL(e);else if(!MT(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 qie(e)}function qie(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const RT=["history","path","basename","stem","extname","dirname"];class xN{constructor(t){let n;t?MT(t)?n={path:t}:typeof t=="string"||Gie(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Uie.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<RT.length;){const s=RT[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let o;for(o in n)RT.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ac.basename(this.path):void 0}set basename(t){DT(t,"basename"),_T(t,"basename"),this.path=ac.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ac.dirname(this.path):void 0}set dirname(t){SN(this.basename,"dirname"),this.path=ac.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ac.extname(this.path):void 0}set extname(t){if(_T(t,"extname"),SN(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=ac.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){MT(t)&&(t=Hie(t)),DT(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ac.basename(this.path,this.extname):void 0}set stem(t){DT(t,"stem"),_T(t,"stem"),this.path=ac.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const o=this.message(t,n,i);throw o.fatal=!0,o}info(t,n,i){const o=this.message(t,n,i);return o.fatal=void 0,o}message(t,n,i){const o=new $a(t,n,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _T(e,t){if(e&&e.includes(ac.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ac.sep+"`")}function DT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function SN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fie=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Yie={}.hasOwnProperty;class NT extends Fie{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=kie()}copy(){const t=new NT;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(CT(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(IT("data",this.frozen),this.namespace[t]=n,this):Yie.call(this.namespace,t)&&this.namespace[t]||void 0:t?(IT("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=n.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=G3(t),i=this.parser||this.Parser;return kT("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),kT("process",this.parser||this.Parser),zT("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(s,c){const d=G3(t),h=i.parse(d);i.run(h,d,function(v,S,T){if(v||!S||!T)return y(v);const E=S,C=i.stringify(E,T);Kie(C)?T.value=C:T.result=C,y(v,T)});function y(v,S){v||!S?c(v):s?s(S):n(void 0,S)}}}processSync(t){let n=!1,i;return this.freeze(),kT("processSync",this.parser||this.Parser),zT("processSync",this.compiler||this.Compiler),this.process(t,o),EN("processSync","process",n),i;function o(s,c){n=!0,vN(s),i=c}}run(t,n,i){wN(t),this.freeze();const o=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const h=G3(n);o.run(t,h,y);function y(v,S,T){const E=S||t;v?d(v):c?c(E):i(void 0,E,T)}}}runSync(t,n){let i=!1,o;return this.run(t,n,s),EN("runSync","run",i),o;function s(c,d){vN(c),o=d,i=!0}}stringify(t,n){this.freeze();const i=G3(n),o=this.compiler||this.Compiler;return zT("stringify",o),wN(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(IT("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(y){if(typeof y=="function")h(y,[]);else if(typeof y=="object")if(Array.isArray(y)){const[v,...S]=y;h(v,S)}else c(y);else throw new TypeError("Expected usable value, not `"+y+"`")}function c(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&&(o.settings=CT(!0,o.settings,y.settings))}function d(y){let v=-1;if(y!=null)if(Array.isArray(y))for(;++v<y.length;){const S=y[v];s(S)}else throw new TypeError("Expected a list of plugins, not `"+y+"`")}function h(y,v){let S=-1,T=-1;for(;++S<i.length;)if(i[S][0]===y){T=S;break}if(T===-1)i.push([y,...v]);else if(v.length>0){let[E,...C]=v;const R=i[T][1];OT(R)&&OT(E)&&(E=CT(!0,R,E)),i[T]=[y,E,...C]}}}}const Xie=new NT().freeze();function kT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function IT(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 wN(e){if(!OT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function EN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function G3(e){return Wie(e)?e:new xN(e)}function Wie(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Kie(e){return typeof e=="string"||Qie(e)}function Qie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zie="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",TN=[],AN={allowDangerousHtml:!0},Jie=/^(https?|ircs?|mailto|xmpp)$/i,eae=[{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 tae(e){const t=nae(e),n=rae(e);return iae(t.runSync(t.parse(n),n),e)}function nae(e){const t=e.rehypePlugins||TN,n=e.remarkPlugins||TN,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...AN}:AN;return Xie().use(Vre).use(n).use(_ie,i).use(t)}function rae(e){const t=e.children||"",n=new xN;return typeof t=="string"&&(n.value=t),n}function iae(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||aae;for(const v of eae)Object.hasOwn(t,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+Zie+v.id,void 0);return ET(e,y),Rte(e,{Fragment:H.Fragment,components:o,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function y(v,S,T){if(v.type==="raw"&&T&&typeof S=="number")return c?T.children.splice(S,1):T.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let E;for(E in uT)if(Object.hasOwn(uT,E)&&Object.hasOwn(v.properties,E)){const C=v.properties[E],R=uT[E];(R===null||R.includes(v.tagName))&&(v.properties[E]=h(String(C||""),E,v))}}if(v.type==="element"){let E=n?!n.includes(v.tagName):s?s.includes(v.tagName):!1;if(!E&&i&&typeof S=="number"&&(E=!i(v,S,T)),E&&T&&typeof S=="number")return d&&v.children?T.children.splice(S,1,...v.children):T.children.splice(S,1),S}}}function aae(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||i!==-1&&t>i||Jie.test(e.slice(0,t))?e:""}const CN=/[#.]/g;function oae(e,t){const n=e||"",i={};let o=0,s,c;for(;o<n.length;){CN.lastIndex=o;const d=CN.exec(n),h=n.slice(o,d?d.index:n.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,o+=h.length),d&&(s=d[0],o++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function ON(e,t,n){const i=n?cae(n):void 0;function o(s,c,...d){let h;if(s==null){h={type:"root",children:[]};const y=c;d.unshift(y)}else{h=oae(s,t);const y=h.tagName.toLowerCase(),v=i?i.get(y):void 0;if(h.tagName=v||y,lae(c))d.unshift(c);else for(const[S,T]of Object.entries(c))sae(e,h.properties,S,T)}for(const y of d)LT(h.children,y);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}function lae(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 i of n){const o=t[i];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const s=o;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function sae(e,t,n,i){const o=gD(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?o.spaceSeparated?s=vD(i):o.commaSeparated?s=iD(i):o.commaOrSpaceSeparated?s=vD(iD(i).join(" ")):s=MN(o,o.property,i):Array.isArray(i)?s=[...i]:s=o.property==="style"?uae(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(MN(o,o.property,d));s=c}o.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[o.property]=s}}function LT(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)LT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?LT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function MN(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||bb(n)===bb(t)))return!0}return n}function uae(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function cae(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const fae=["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"],dae=ON(yD,"div"),hae=ON(I3,"g",fae),VT={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function pae(e,t){return RN(e,{})||{type:"root",children:[]}}function RN(e,t){const n=mae(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function mae(e,t){switch(e.nodeType){case 1:return bae(e,t);case 3:return yae(e);case 8:return vae(e);case 9:return _N(e,t);case 10:return gae();case 11:return _N(e,t);default:return}}function _N(e,t){return{type:"root",children:DN(e,t)}}function gae(){return{type:"doctype"}}function yae(e){return{type:"text",value:e.nodeValue||""}}function vae(e){return{type:"comment",value:e.nodeValue||""}}function bae(e,t){const n=e.namespaceURI,i=n===VT.svg?hae:dae,o=n===VT.html?e.tagName.toLowerCase():e.tagName,s=n===VT.html&&o==="template"?e.content:e,c=e.getAttributeNames(),d={};let h=-1;for(;++h<c.length;)d[c[h]]=e.getAttribute(c[h])||"";return i(o,d,DN(s,t))}function DN(e,t){const n=e.childNodes,i=[];let o=-1;for(;++o<n.length;){const s=RN(n[o],t);s!==void 0&&i.push(s)}return i}new DOMParser;function xae(e,t){const n=Sae(e);return pae(n)}function Sae(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const NN=(function(e,t,n){const i=_b(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(i(e.children[t],t,e))return e.children[t]}),Mh=(function(e){if(e==null)return Tae;if(typeof e=="string")return Eae(e);if(typeof e=="object")return wae(e);if(typeof e=="function")return BT(e);throw new Error("Expected function, string, or array as `test`")});function wae(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mh(e[n]);return BT(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Eae(e){return BT(t);function t(n){return n.tagName===e}}function BT(e){return t;function t(n,i,o){return!!(Aae(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function Tae(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Aae(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const kN=/\n/g,zN=/[\t ]+/g,jT=Mh("br"),IN=Mh(kae),Cae=Mh("p"),LN=Mh("tr"),Oae=Mh(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Nae,zae]),VN=Mh(["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 Mae(e,t){const n=t||{},i="children"in e?e.children:[],o=VN(e),s=PN(e,{whitespace:n.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...jN(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)c.push(...BN(i[d],e,{whitespace:s,breakBefore:d?void 0:o,breakAfter:d<i.length-1?jT(i[d+1]):o}));const h=[];let y;for(d=-1;++d<c.length;){const v=c[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 BN(e,t,n){return e.type==="element"?Rae(e,t,n):e.type==="text"?n.whitespace==="normal"?jN(e,n):_ae(e):[]}function Rae(e,t,n){const i=PN(e,n),o=e.children||[];let s=-1,c=[];if(Oae(e))return c;let d,h;for(jT(e)||LN(e)&&NN(t,e,LN)?h=`
`:Cae(e)?(d=2,h=2):VN(e)&&(d=1,h=1);++s<o.length;)c=c.concat(BN(o[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<o.length-1?jT(o[s+1]):h}));return IN(e)&&NN(t,e,IN)&&c.push("	"),d&&c.unshift(d),h&&c.push(h),c}function jN(e,t){const n=String(e.value),i=[],o=[];let s=0;for(;s<=n.length;){kN.lastIndex=s;const h=kN.exec(n),y=h&&"index"in h?h.index:n.length;i.push(Dae(n.slice(s,y).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,y===n.length?t.breakAfter:!0)),s=y+1}let c=-1,d;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(o.push(i[c]),d=void 0):i[c]?(typeof d=="number"&&o.push(d),o.push(i[c]),d=0):(c===0||c===i.length-1)&&o.push(0);return o}function _ae(e){return[String(e.value)]}function Dae(e,t,n){const i=[];let o=0,s;for(;o<e.length;){zN.lastIndex=o;const c=zN.exec(e);s=c?c.index:e.length,!o&&!s&&c&&!t&&i.push(""),o!==s&&i.push(e.slice(o,s)),o=c?s+c[0].length:s}return o!==s&&!n&&i.push(""),i.join(" ")}function PN(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 Nae(e){return!!(e.properties||{}).hidden}function kae(e){return e.tagName==="td"||e.tagName==="th"}function zae(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ft extends Error{constructor(t,n){var i="KaTeX parse error: "+t,o,s,c=n&&n.loc;if(c&&c.start<=c.end){var d=c.lexer.input;o=c.start,s=c.end,o===d.length?i+=" at end of input: ":i+=" at position "+(o+1)+": ";var h=d.slice(o,s).replace(/[^]/g,"$&̲"),y;o>15?y="…"+d.slice(o-15,o):y=d.slice(0,o);var v;s+15<d.length?v=d.slice(s,s+15)+"…":v=d.slice(s),i+=y+h+v}super(i),this.name="ParseError",Object.setPrototypeOf(this,ft.prototype),this.position=o,o!=null&&s!=null&&(this.length=s-o),this.rawMessage=t}}var Iae=/([A-Z])/g,PT=e=>e.replace(Iae,"-$1").toLowerCase(),Lae={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Vae=/[&><"']/g,qa=e=>String(e).replace(Vae,t=>Lae[t]),F3=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?F3(e.body[0]):e:e.type==="font"?F3(e.body):e,Bae=new Set(["mathord","textord","atom"]),lf=e=>Bae.has(F3(e).type),jae=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"},UT={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 Pae(e){if("default"in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let $T=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var n of Object.keys(UT)){var i=UT[n],o=t[n];this[n]=o!==void 0?i.processor?i.processor(o):o:Pae(i)}}reportNonstrict(t,n,i){var o=this.strict;if(typeof o=="function"&&(o=o(t,n,i)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new ft("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);o==="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 '"+o+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var o=this.strict;if(typeof o=="function")try{o=o(t,n,i)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="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 '"+o+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=jae(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}};class Vd{constructor(t,n,i){this.id=t,this.size=n,this.cramped=i}sup(){return oc[Uae[this.id]]}sub(){return oc[$ae[this.id]]}fracNum(){return oc[Hae[this.id]]}fracDen(){return oc[qae[this.id]]}cramp(){return oc[Gae[this.id]]}text(){return oc[Fae[this.id]]}isTight(){return this.size>=2}}var HT=0,Y3=1,Rg=2,sf=3,Nb=4,ns=5,_g=6,yo=7,oc=[new Vd(HT,0,!1),new Vd(Y3,0,!0),new Vd(Rg,1,!1),new Vd(sf,1,!0),new Vd(Nb,2,!1),new Vd(ns,2,!0),new Vd(_g,3,!1),new Vd(yo,3,!0)],Uae=[Nb,ns,Nb,ns,_g,yo,_g,yo],$ae=[ns,ns,ns,ns,yo,yo,yo,yo],Hae=[Rg,sf,Nb,ns,_g,yo,_g,yo],qae=[sf,sf,ns,ns,yo,yo,yo,yo],Gae=[Y3,Y3,sf,sf,ns,ns,yo,yo],Fae=[HT,Y3,Rg,sf,Rg,sf,Rg,sf],un={DISPLAY:oc[HT],TEXT:oc[Rg],SCRIPT:oc[Nb],SCRIPTSCRIPT:oc[_g]},qT=[{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 Yae(e){for(var t=0;t<qT.length;t++)for(var n=qT[t],i=0;i<n.blocks.length;i++){var o=n.blocks[i];if(e>=o[0]&&e<=o[1])return n.name}return null}var X3=[];qT.forEach(e=>e.blocks.forEach(t=>X3.push(...t)));function UN(e){for(var t=0;t<X3.length;t+=2)if(e>=X3[t]&&e<=X3[t+1])return!0;return!1}var Dg=80,Xae=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"},Wae=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"},Kae=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"},Qae=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"},Zae=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"},Jae=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},eoe=function(t,n,i){var o=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
H742v`+o+`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"},toe=function(t,n,i){n=1e3*n;var o="";switch(t){case"sqrtMain":o=Xae(n,Dg);break;case"sqrtSize1":o=Wae(n,Dg);break;case"sqrtSize2":o=Kae(n,Dg);break;case"sqrtSize3":o=Qae(n,Dg);break;case"sqrtSize4":o=Zae(n,Dg);break;case"sqrtTall":o=eoe(n,Dg,i)}return o},noe=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},$N={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:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
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:`M0 50 h400000 v40H0z m0 194h40000v40H0z
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:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
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`},roe=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 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.")}};let Ng=class{constructor(t){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(){var t=n=>n.toText();return this.children.map(t).join("")}};var GT={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},ioe={ex:!0,em:!0,mu:!0},HN=function(t){return typeof t!="string"&&(t=t.unit),t in GT||t in ioe||t==="ex"},ii=function(t,n){var i;if(t.unit in GT)i=GT[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,t.unit==="ex")i=o.fontMetrics().xHeight;else if(t.unit==="em")i=o.fontMetrics().quad;else throw new ft("Invalid unit: '"+t.unit+"'");o!==n&&(i*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},mt=function(t){return+t.toFixed(4)+"em"},Bd=function(t){return t.filter(n=>n).join(" ")},qN=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},GN=function(t){var n=document.createElement(t);n.className=Bd(this.classes);for(var i of Object.keys(this.style))n.style[i]=this.style[i];for(var o of Object.keys(this.attributes))n.setAttribute(o,this.attributes[o]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},aoe=/[\s"'>/=\x00-\x1f]/,FN=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+qa(Bd(this.classes))+'"');var i="";for(var o of Object.keys(this.style))i+=PT(o)+":"+this.style[o]+";";i&&(n+=' style="'+qa(i)+'"');for(var s of Object.keys(this.attributes)){if(aoe.test(s))throw new ft("Invalid attribute name '"+s+"'");n+=" "+s+'="'+qa(this.attributes[s])+'"'}n+=">";for(var c=0;c<this.children.length;c++)n+=this.children[c].toMarkup();return n+="</"+t+">",n};class kg{constructor(t,n,i,o){qN.call(this,t,i,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"span")}toMarkup(){return FN.call(this,"span")}}class W3{constructor(t,n,i,o){qN.call(this,n,o),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return GN.call(this,"a")}toMarkup(){return FN.call(this,"a")}}class ooe{constructor(t,n,i){this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n of Object.keys(this.style))t.style[n]=this.style[n];return t}toMarkup(){var t='<img src="'+qa(this.src)+'"'+(' alt="'+qa(this.alt)+'"'),n="";for(var i of Object.keys(this.style))n+=PT(i)+":"+this.style[i]+";";return n&&(t+=' style="'+qa(n)+'"'),t+="'/>",t}}var loe={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class El{constructor(t,n,i,o,s,c,d,h){this.text=t,this.height=n||0,this.depth=i||0,this.italic=o||0,this.skew=s||0,this.width=c||0,this.classes=d||[],this.style=h||{},this.maxFontSize=0;var y=Yae(this.text.charCodeAt(0));y&&this.classes.push(y+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=loe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=mt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Bd(this.classes));for(var i of Object.keys(this.style))n=n||document.createElement("span"),n.style[i]=this.style[i];return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=qa(Bd(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+mt(this.italic)+";");for(var o of Object.keys(this.style))i+=PT(o)+":"+this.style[o]+";";i&&(t=!0,n+=' style="'+qa(i)+'"');var s=qa(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class uf{constructor(t,n){this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class jd{constructor(t,n){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",$N[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+qa(this.alternate)+'"/>':'<path d="'+qa($N[this.pathName])+'"/>'}}class FT{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+qa(this.attributes[n])+'"';return t+="/>",t}}function soe(e){if(e instanceof El)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function uoe(e){if(e instanceof kg)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var coe=e=>e instanceof kg||e instanceof W3||e instanceof Ng,lc={"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]}},K3={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]},YN={Å:"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 foe(e,t){lc[e]=t}function YT(e,t,n){if(!lc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),o=lc[t][i];if(!o&&e[0]in YN&&(i=YN[e[0]].charCodeAt(0),o=lc[t][i]),!o&&n==="text"&&UN(i)&&(o=lc[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var XT={};function doe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!XT[t]){var n=XT[t]={cssEmPerMu:K3.quad[t]/18};for(var i in K3)K3.hasOwnProperty(i)&&(n[i]=K3[i][t])}return XT[t]}var hoe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},poe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},qr={math:{},text:{}};function k(e,t,n,i,o,s){qr[e][o]={font:t,group:n,replace:i},s&&i&&(qr[e][i]=qr[e][o])}var I="math",at="text",W="main",de="ams",Gr="accent-token",Ot="bin",vo="close",zg="inner",Ft="mathord",Di="op-token",Tl="open",kb="punct",me="rel",cf="spacing",Ce="textord";k(I,W,me,"≡","\\equiv",!0),k(I,W,me,"≺","\\prec",!0),k(I,W,me,"≻","\\succ",!0),k(I,W,me,"∼","\\sim",!0),k(I,W,me,"⊥","\\perp"),k(I,W,me,"⪯","\\preceq",!0),k(I,W,me,"⪰","\\succeq",!0),k(I,W,me,"≃","\\simeq",!0),k(I,W,me,"∣","\\mid",!0),k(I,W,me,"≪","\\ll",!0),k(I,W,me,"≫","\\gg",!0),k(I,W,me,"≍","\\asymp",!0),k(I,W,me,"∥","\\parallel"),k(I,W,me,"⋈","\\bowtie",!0),k(I,W,me,"⌣","\\smile",!0),k(I,W,me,"⊑","\\sqsubseteq",!0),k(I,W,me,"⊒","\\sqsupseteq",!0),k(I,W,me,"≐","\\doteq",!0),k(I,W,me,"⌢","\\frown",!0),k(I,W,me,"∋","\\ni",!0),k(I,W,me,"∝","\\propto",!0),k(I,W,me,"⊢","\\vdash",!0),k(I,W,me,"⊣","\\dashv",!0),k(I,W,me,"∋","\\owns"),k(I,W,kb,".","\\ldotp"),k(I,W,kb,"⋅","\\cdotp"),k(I,W,kb,"⋅","·"),k(at,W,Ce,"⋅","·"),k(I,W,Ce,"#","\\#"),k(at,W,Ce,"#","\\#"),k(I,W,Ce,"&","\\&"),k(at,W,Ce,"&","\\&"),k(I,W,Ce,"ℵ","\\aleph",!0),k(I,W,Ce,"∀","\\forall",!0),k(I,W,Ce,"ℏ","\\hbar",!0),k(I,W,Ce,"∃","\\exists",!0),k(I,W,Ce,"∇","\\nabla",!0),k(I,W,Ce,"♭","\\flat",!0),k(I,W,Ce,"ℓ","\\ell",!0),k(I,W,Ce,"♮","\\natural",!0),k(I,W,Ce,"♣","\\clubsuit",!0),k(I,W,Ce,"℘","\\wp",!0),k(I,W,Ce,"♯","\\sharp",!0),k(I,W,Ce,"♢","\\diamondsuit",!0),k(I,W,Ce,"ℜ","\\Re",!0),k(I,W,Ce,"♡","\\heartsuit",!0),k(I,W,Ce,"ℑ","\\Im",!0),k(I,W,Ce,"♠","\\spadesuit",!0),k(I,W,Ce,"§","\\S",!0),k(at,W,Ce,"§","\\S"),k(I,W,Ce,"¶","\\P",!0),k(at,W,Ce,"¶","\\P"),k(I,W,Ce,"†","\\dag"),k(at,W,Ce,"†","\\dag"),k(at,W,Ce,"†","\\textdagger"),k(I,W,Ce,"‡","\\ddag"),k(at,W,Ce,"‡","\\ddag"),k(at,W,Ce,"‡","\\textdaggerdbl"),k(I,W,vo,"⎱","\\rmoustache",!0),k(I,W,Tl,"⎰","\\lmoustache",!0),k(I,W,vo,"⟯","\\rgroup",!0),k(I,W,Tl,"⟮","\\lgroup",!0),k(I,W,Ot,"∓","\\mp",!0),k(I,W,Ot,"⊖","\\ominus",!0),k(I,W,Ot,"⊎","\\uplus",!0),k(I,W,Ot,"⊓","\\sqcap",!0),k(I,W,Ot,"∗","\\ast"),k(I,W,Ot,"⊔","\\sqcup",!0),k(I,W,Ot,"◯","\\bigcirc",!0),k(I,W,Ot,"∙","\\bullet",!0),k(I,W,Ot,"‡","\\ddagger"),k(I,W,Ot,"≀","\\wr",!0),k(I,W,Ot,"⨿","\\amalg"),k(I,W,Ot,"&","\\And"),k(I,W,me,"⟵","\\longleftarrow",!0),k(I,W,me,"⇐","\\Leftarrow",!0),k(I,W,me,"⟸","\\Longleftarrow",!0),k(I,W,me,"⟶","\\longrightarrow",!0),k(I,W,me,"⇒","\\Rightarrow",!0),k(I,W,me,"⟹","\\Longrightarrow",!0),k(I,W,me,"↔","\\leftrightarrow",!0),k(I,W,me,"⟷","\\longleftrightarrow",!0),k(I,W,me,"⇔","\\Leftrightarrow",!0),k(I,W,me,"⟺","\\Longleftrightarrow",!0),k(I,W,me,"↦","\\mapsto",!0),k(I,W,me,"⟼","\\longmapsto",!0),k(I,W,me,"↗","\\nearrow",!0),k(I,W,me,"↩","\\hookleftarrow",!0),k(I,W,me,"↪","\\hookrightarrow",!0),k(I,W,me,"↘","\\searrow",!0),k(I,W,me,"↼","\\leftharpoonup",!0),k(I,W,me,"⇀","\\rightharpoonup",!0),k(I,W,me,"↙","\\swarrow",!0),k(I,W,me,"↽","\\leftharpoondown",!0),k(I,W,me,"⇁","\\rightharpoondown",!0),k(I,W,me,"↖","\\nwarrow",!0),k(I,W,me,"⇌","\\rightleftharpoons",!0),k(I,de,me,"≮","\\nless",!0),k(I,de,me,"","\\@nleqslant"),k(I,de,me,"","\\@nleqq"),k(I,de,me,"⪇","\\lneq",!0),k(I,de,me,"≨","\\lneqq",!0),k(I,de,me,"","\\@lvertneqq"),k(I,de,me,"⋦","\\lnsim",!0),k(I,de,me,"⪉","\\lnapprox",!0),k(I,de,me,"⊀","\\nprec",!0),k(I,de,me,"⋠","\\npreceq",!0),k(I,de,me,"⋨","\\precnsim",!0),k(I,de,me,"⪹","\\precnapprox",!0),k(I,de,me,"≁","\\nsim",!0),k(I,de,me,"","\\@nshortmid"),k(I,de,me,"∤","\\nmid",!0),k(I,de,me,"⊬","\\nvdash",!0),k(I,de,me,"⊭","\\nvDash",!0),k(I,de,me,"⋪","\\ntriangleleft"),k(I,de,me,"⋬","\\ntrianglelefteq",!0),k(I,de,me,"⊊","\\subsetneq",!0),k(I,de,me,"","\\@varsubsetneq"),k(I,de,me,"⫋","\\subsetneqq",!0),k(I,de,me,"","\\@varsubsetneqq"),k(I,de,me,"≯","\\ngtr",!0),k(I,de,me,"","\\@ngeqslant"),k(I,de,me,"","\\@ngeqq"),k(I,de,me,"⪈","\\gneq",!0),k(I,de,me,"≩","\\gneqq",!0),k(I,de,me,"","\\@gvertneqq"),k(I,de,me,"⋧","\\gnsim",!0),k(I,de,me,"⪊","\\gnapprox",!0),k(I,de,me,"⊁","\\nsucc",!0),k(I,de,me,"⋡","\\nsucceq",!0),k(I,de,me,"⋩","\\succnsim",!0),k(I,de,me,"⪺","\\succnapprox",!0),k(I,de,me,"≆","\\ncong",!0),k(I,de,me,"","\\@nshortparallel"),k(I,de,me,"∦","\\nparallel",!0),k(I,de,me,"⊯","\\nVDash",!0),k(I,de,me,"⋫","\\ntriangleright"),k(I,de,me,"⋭","\\ntrianglerighteq",!0),k(I,de,me,"","\\@nsupseteqq"),k(I,de,me,"⊋","\\supsetneq",!0),k(I,de,me,"","\\@varsupsetneq"),k(I,de,me,"⫌","\\supsetneqq",!0),k(I,de,me,"","\\@varsupsetneqq"),k(I,de,me,"⊮","\\nVdash",!0),k(I,de,me,"⪵","\\precneqq",!0),k(I,de,me,"⪶","\\succneqq",!0),k(I,de,me,"","\\@nsubseteqq"),k(I,de,Ot,"⊴","\\unlhd"),k(I,de,Ot,"⊵","\\unrhd"),k(I,de,me,"↚","\\nleftarrow",!0),k(I,de,me,"↛","\\nrightarrow",!0),k(I,de,me,"⇍","\\nLeftarrow",!0),k(I,de,me,"⇏","\\nRightarrow",!0),k(I,de,me,"↮","\\nleftrightarrow",!0),k(I,de,me,"⇎","\\nLeftrightarrow",!0),k(I,de,me,"△","\\vartriangle"),k(I,de,Ce,"ℏ","\\hslash"),k(I,de,Ce,"▽","\\triangledown"),k(I,de,Ce,"◊","\\lozenge"),k(I,de,Ce,"Ⓢ","\\circledS"),k(I,de,Ce,"®","\\circledR"),k(at,de,Ce,"®","\\circledR"),k(I,de,Ce,"∡","\\measuredangle",!0),k(I,de,Ce,"∄","\\nexists"),k(I,de,Ce,"℧","\\mho"),k(I,de,Ce,"Ⅎ","\\Finv",!0),k(I,de,Ce,"⅁","\\Game",!0),k(I,de,Ce,"‵","\\backprime"),k(I,de,Ce,"▲","\\blacktriangle"),k(I,de,Ce,"▼","\\blacktriangledown"),k(I,de,Ce,"■","\\blacksquare"),k(I,de,Ce,"⧫","\\blacklozenge"),k(I,de,Ce,"★","\\bigstar"),k(I,de,Ce,"∢","\\sphericalangle",!0),k(I,de,Ce,"∁","\\complement",!0),k(I,de,Ce,"ð","\\eth",!0),k(at,W,Ce,"ð","ð"),k(I,de,Ce,"╱","\\diagup"),k(I,de,Ce,"╲","\\diagdown"),k(I,de,Ce,"□","\\square"),k(I,de,Ce,"□","\\Box"),k(I,de,Ce,"◊","\\Diamond"),k(I,de,Ce,"¥","\\yen",!0),k(at,de,Ce,"¥","\\yen",!0),k(I,de,Ce,"✓","\\checkmark",!0),k(at,de,Ce,"✓","\\checkmark"),k(I,de,Ce,"ℶ","\\beth",!0),k(I,de,Ce,"ℸ","\\daleth",!0),k(I,de,Ce,"ℷ","\\gimel",!0),k(I,de,Ce,"ϝ","\\digamma",!0),k(I,de,Ce,"ϰ","\\varkappa"),k(I,de,Tl,"┌","\\@ulcorner",!0),k(I,de,vo,"┐","\\@urcorner",!0),k(I,de,Tl,"└","\\@llcorner",!0),k(I,de,vo,"┘","\\@lrcorner",!0),k(I,de,me,"≦","\\leqq",!0),k(I,de,me,"⩽","\\leqslant",!0),k(I,de,me,"⪕","\\eqslantless",!0),k(I,de,me,"≲","\\lesssim",!0),k(I,de,me,"⪅","\\lessapprox",!0),k(I,de,me,"≊","\\approxeq",!0),k(I,de,Ot,"⋖","\\lessdot"),k(I,de,me,"⋘","\\lll",!0),k(I,de,me,"≶","\\lessgtr",!0),k(I,de,me,"⋚","\\lesseqgtr",!0),k(I,de,me,"⪋","\\lesseqqgtr",!0),k(I,de,me,"≑","\\doteqdot"),k(I,de,me,"≓","\\risingdotseq",!0),k(I,de,me,"≒","\\fallingdotseq",!0),k(I,de,me,"∽","\\backsim",!0),k(I,de,me,"⋍","\\backsimeq",!0),k(I,de,me,"⫅","\\subseteqq",!0),k(I,de,me,"⋐","\\Subset",!0),k(I,de,me,"⊏","\\sqsubset",!0),k(I,de,me,"≼","\\preccurlyeq",!0),k(I,de,me,"⋞","\\curlyeqprec",!0),k(I,de,me,"≾","\\precsim",!0),k(I,de,me,"⪷","\\precapprox",!0),k(I,de,me,"⊲","\\vartriangleleft"),k(I,de,me,"⊴","\\trianglelefteq"),k(I,de,me,"⊨","\\vDash",!0),k(I,de,me,"⊪","\\Vvdash",!0),k(I,de,me,"⌣","\\smallsmile"),k(I,de,me,"⌢","\\smallfrown"),k(I,de,me,"≏","\\bumpeq",!0),k(I,de,me,"≎","\\Bumpeq",!0),k(I,de,me,"≧","\\geqq",!0),k(I,de,me,"⩾","\\geqslant",!0),k(I,de,me,"⪖","\\eqslantgtr",!0),k(I,de,me,"≳","\\gtrsim",!0),k(I,de,me,"⪆","\\gtrapprox",!0),k(I,de,Ot,"⋗","\\gtrdot"),k(I,de,me,"⋙","\\ggg",!0),k(I,de,me,"≷","\\gtrless",!0),k(I,de,me,"⋛","\\gtreqless",!0),k(I,de,me,"⪌","\\gtreqqless",!0),k(I,de,me,"≖","\\eqcirc",!0),k(I,de,me,"≗","\\circeq",!0),k(I,de,me,"≜","\\triangleq",!0),k(I,de,me,"∼","\\thicksim"),k(I,de,me,"≈","\\thickapprox"),k(I,de,me,"⫆","\\supseteqq",!0),k(I,de,me,"⋑","\\Supset",!0),k(I,de,me,"⊐","\\sqsupset",!0),k(I,de,me,"≽","\\succcurlyeq",!0),k(I,de,me,"⋟","\\curlyeqsucc",!0),k(I,de,me,"≿","\\succsim",!0),k(I,de,me,"⪸","\\succapprox",!0),k(I,de,me,"⊳","\\vartriangleright"),k(I,de,me,"⊵","\\trianglerighteq"),k(I,de,me,"⊩","\\Vdash",!0),k(I,de,me,"∣","\\shortmid"),k(I,de,me,"∥","\\shortparallel"),k(I,de,me,"≬","\\between",!0),k(I,de,me,"⋔","\\pitchfork",!0),k(I,de,me,"∝","\\varpropto"),k(I,de,me,"◀","\\blacktriangleleft"),k(I,de,me,"∴","\\therefore",!0),k(I,de,me,"∍","\\backepsilon"),k(I,de,me,"▶","\\blacktriangleright"),k(I,de,me,"∵","\\because",!0),k(I,de,me,"⋘","\\llless"),k(I,de,me,"⋙","\\gggtr"),k(I,de,Ot,"⊲","\\lhd"),k(I,de,Ot,"⊳","\\rhd"),k(I,de,me,"≂","\\eqsim",!0),k(I,W,me,"⋈","\\Join"),k(I,de,me,"≑","\\Doteq",!0),k(I,de,Ot,"∔","\\dotplus",!0),k(I,de,Ot,"∖","\\smallsetminus"),k(I,de,Ot,"⋒","\\Cap",!0),k(I,de,Ot,"⋓","\\Cup",!0),k(I,de,Ot,"⩞","\\doublebarwedge",!0),k(I,de,Ot,"⊟","\\boxminus",!0),k(I,de,Ot,"⊞","\\boxplus",!0),k(I,de,Ot,"⋇","\\divideontimes",!0),k(I,de,Ot,"⋉","\\ltimes",!0),k(I,de,Ot,"⋊","\\rtimes",!0),k(I,de,Ot,"⋋","\\leftthreetimes",!0),k(I,de,Ot,"⋌","\\rightthreetimes",!0),k(I,de,Ot,"⋏","\\curlywedge",!0),k(I,de,Ot,"⋎","\\curlyvee",!0),k(I,de,Ot,"⊝","\\circleddash",!0),k(I,de,Ot,"⊛","\\circledast",!0),k(I,de,Ot,"⋅","\\centerdot"),k(I,de,Ot,"⊺","\\intercal",!0),k(I,de,Ot,"⋒","\\doublecap"),k(I,de,Ot,"⋓","\\doublecup"),k(I,de,Ot,"⊠","\\boxtimes",!0),k(I,de,me,"⇢","\\dashrightarrow",!0),k(I,de,me,"⇠","\\dashleftarrow",!0),k(I,de,me,"⇇","\\leftleftarrows",!0),k(I,de,me,"⇆","\\leftrightarrows",!0),k(I,de,me,"⇚","\\Lleftarrow",!0),k(I,de,me,"↞","\\twoheadleftarrow",!0),k(I,de,me,"↢","\\leftarrowtail",!0),k(I,de,me,"↫","\\looparrowleft",!0),k(I,de,me,"⇋","\\leftrightharpoons",!0),k(I,de,me,"↶","\\curvearrowleft",!0),k(I,de,me,"↺","\\circlearrowleft",!0),k(I,de,me,"↰","\\Lsh",!0),k(I,de,me,"⇈","\\upuparrows",!0),k(I,de,me,"↿","\\upharpoonleft",!0),k(I,de,me,"⇃","\\downharpoonleft",!0),k(I,W,me,"⊶","\\origof",!0),k(I,W,me,"⊷","\\imageof",!0),k(I,de,me,"⊸","\\multimap",!0),k(I,de,me,"↭","\\leftrightsquigarrow",!0),k(I,de,me,"⇉","\\rightrightarrows",!0),k(I,de,me,"⇄","\\rightleftarrows",!0),k(I,de,me,"↠","\\twoheadrightarrow",!0),k(I,de,me,"↣","\\rightarrowtail",!0),k(I,de,me,"↬","\\looparrowright",!0),k(I,de,me,"↷","\\curvearrowright",!0),k(I,de,me,"↻","\\circlearrowright",!0),k(I,de,me,"↱","\\Rsh",!0),k(I,de,me,"⇊","\\downdownarrows",!0),k(I,de,me,"↾","\\upharpoonright",!0),k(I,de,me,"⇂","\\downharpoonright",!0),k(I,de,me,"⇝","\\rightsquigarrow",!0),k(I,de,me,"⇝","\\leadsto"),k(I,de,me,"⇛","\\Rrightarrow",!0),k(I,de,me,"↾","\\restriction"),k(I,W,Ce,"‘","`"),k(I,W,Ce,"$","\\$"),k(at,W,Ce,"$","\\$"),k(at,W,Ce,"$","\\textdollar"),k(I,W,Ce,"%","\\%"),k(at,W,Ce,"%","\\%"),k(I,W,Ce,"_","\\_"),k(at,W,Ce,"_","\\_"),k(at,W,Ce,"_","\\textunderscore"),k(I,W,Ce,"∠","\\angle",!0),k(I,W,Ce,"∞","\\infty",!0),k(I,W,Ce,"′","\\prime"),k(I,W,Ce,"△","\\triangle"),k(I,W,Ce,"Γ","\\Gamma",!0),k(I,W,Ce,"Δ","\\Delta",!0),k(I,W,Ce,"Θ","\\Theta",!0),k(I,W,Ce,"Λ","\\Lambda",!0),k(I,W,Ce,"Ξ","\\Xi",!0),k(I,W,Ce,"Π","\\Pi",!0),k(I,W,Ce,"Σ","\\Sigma",!0),k(I,W,Ce,"Υ","\\Upsilon",!0),k(I,W,Ce,"Φ","\\Phi",!0),k(I,W,Ce,"Ψ","\\Psi",!0),k(I,W,Ce,"Ω","\\Omega",!0),k(I,W,Ce,"A","Α"),k(I,W,Ce,"B","Β"),k(I,W,Ce,"E","Ε"),k(I,W,Ce,"Z","Ζ"),k(I,W,Ce,"H","Η"),k(I,W,Ce,"I","Ι"),k(I,W,Ce,"K","Κ"),k(I,W,Ce,"M","Μ"),k(I,W,Ce,"N","Ν"),k(I,W,Ce,"O","Ο"),k(I,W,Ce,"P","Ρ"),k(I,W,Ce,"T","Τ"),k(I,W,Ce,"X","Χ"),k(I,W,Ce,"¬","\\neg",!0),k(I,W,Ce,"¬","\\lnot"),k(I,W,Ce,"⊤","\\top"),k(I,W,Ce,"⊥","\\bot"),k(I,W,Ce,"∅","\\emptyset"),k(I,de,Ce,"∅","\\varnothing"),k(I,W,Ft,"α","\\alpha",!0),k(I,W,Ft,"β","\\beta",!0),k(I,W,Ft,"γ","\\gamma",!0),k(I,W,Ft,"δ","\\delta",!0),k(I,W,Ft,"ϵ","\\epsilon",!0),k(I,W,Ft,"ζ","\\zeta",!0),k(I,W,Ft,"η","\\eta",!0),k(I,W,Ft,"θ","\\theta",!0),k(I,W,Ft,"ι","\\iota",!0),k(I,W,Ft,"κ","\\kappa",!0),k(I,W,Ft,"λ","\\lambda",!0),k(I,W,Ft,"μ","\\mu",!0),k(I,W,Ft,"ν","\\nu",!0),k(I,W,Ft,"ξ","\\xi",!0),k(I,W,Ft,"ο","\\omicron",!0),k(I,W,Ft,"π","\\pi",!0),k(I,W,Ft,"ρ","\\rho",!0),k(I,W,Ft,"σ","\\sigma",!0),k(I,W,Ft,"τ","\\tau",!0),k(I,W,Ft,"υ","\\upsilon",!0),k(I,W,Ft,"ϕ","\\phi",!0),k(I,W,Ft,"χ","\\chi",!0),k(I,W,Ft,"ψ","\\psi",!0),k(I,W,Ft,"ω","\\omega",!0),k(I,W,Ft,"ε","\\varepsilon",!0),k(I,W,Ft,"ϑ","\\vartheta",!0),k(I,W,Ft,"ϖ","\\varpi",!0),k(I,W,Ft,"ϱ","\\varrho",!0),k(I,W,Ft,"ς","\\varsigma",!0),k(I,W,Ft,"φ","\\varphi",!0),k(I,W,Ot,"∗","*",!0),k(I,W,Ot,"+","+"),k(I,W,Ot,"−","-",!0),k(I,W,Ot,"⋅","\\cdot",!0),k(I,W,Ot,"∘","\\circ",!0),k(I,W,Ot,"÷","\\div",!0),k(I,W,Ot,"±","\\pm",!0),k(I,W,Ot,"×","\\times",!0),k(I,W,Ot,"∩","\\cap",!0),k(I,W,Ot,"∪","\\cup",!0),k(I,W,Ot,"∖","\\setminus",!0),k(I,W,Ot,"∧","\\land"),k(I,W,Ot,"∨","\\lor"),k(I,W,Ot,"∧","\\wedge",!0),k(I,W,Ot,"∨","\\vee",!0),k(I,W,Ce,"√","\\surd"),k(I,W,Tl,"⟨","\\langle",!0),k(I,W,Tl,"∣","\\lvert"),k(I,W,Tl,"∥","\\lVert"),k(I,W,vo,"?","?"),k(I,W,vo,"!","!"),k(I,W,vo,"⟩","\\rangle",!0),k(I,W,vo,"∣","\\rvert"),k(I,W,vo,"∥","\\rVert"),k(I,W,me,"=","="),k(I,W,me,":",":"),k(I,W,me,"≈","\\approx",!0),k(I,W,me,"≅","\\cong",!0),k(I,W,me,"≥","\\ge"),k(I,W,me,"≥","\\geq",!0),k(I,W,me,"←","\\gets"),k(I,W,me,">","\\gt",!0),k(I,W,me,"∈","\\in",!0),k(I,W,me,"","\\@not"),k(I,W,me,"⊂","\\subset",!0),k(I,W,me,"⊃","\\supset",!0),k(I,W,me,"⊆","\\subseteq",!0),k(I,W,me,"⊇","\\supseteq",!0),k(I,de,me,"⊈","\\nsubseteq",!0),k(I,de,me,"⊉","\\nsupseteq",!0),k(I,W,me,"⊨","\\models"),k(I,W,me,"←","\\leftarrow",!0),k(I,W,me,"≤","\\le"),k(I,W,me,"≤","\\leq",!0),k(I,W,me,"<","\\lt",!0),k(I,W,me,"→","\\rightarrow",!0),k(I,W,me,"→","\\to"),k(I,de,me,"≱","\\ngeq",!0),k(I,de,me,"≰","\\nleq",!0),k(I,W,cf," ","\\ "),k(I,W,cf," ","\\space"),k(I,W,cf," ","\\nobreakspace"),k(at,W,cf," ","\\ "),k(at,W,cf," "," "),k(at,W,cf," ","\\space"),k(at,W,cf," ","\\nobreakspace"),k(I,W,cf,null,"\\nobreak"),k(I,W,cf,null,"\\allowbreak"),k(I,W,kb,",",","),k(I,W,kb,";",";"),k(I,de,Ot,"⊼","\\barwedge",!0),k(I,de,Ot,"⊻","\\veebar",!0),k(I,W,Ot,"⊙","\\odot",!0),k(I,W,Ot,"⊕","\\oplus",!0),k(I,W,Ot,"⊗","\\otimes",!0),k(I,W,Ce,"∂","\\partial",!0),k(I,W,Ot,"⊘","\\oslash",!0),k(I,de,Ot,"⊚","\\circledcirc",!0),k(I,de,Ot,"⊡","\\boxdot",!0),k(I,W,Ot,"△","\\bigtriangleup"),k(I,W,Ot,"▽","\\bigtriangledown"),k(I,W,Ot,"†","\\dagger"),k(I,W,Ot,"⋄","\\diamond"),k(I,W,Ot,"⋆","\\star"),k(I,W,Ot,"◃","\\triangleleft"),k(I,W,Ot,"▹","\\triangleright"),k(I,W,Tl,"{","\\{"),k(at,W,Ce,"{","\\{"),k(at,W,Ce,"{","\\textbraceleft"),k(I,W,vo,"}","\\}"),k(at,W,Ce,"}","\\}"),k(at,W,Ce,"}","\\textbraceright"),k(I,W,Tl,"{","\\lbrace"),k(I,W,vo,"}","\\rbrace"),k(I,W,Tl,"[","\\lbrack",!0),k(at,W,Ce,"[","\\lbrack",!0),k(I,W,vo,"]","\\rbrack",!0),k(at,W,Ce,"]","\\rbrack",!0),k(I,W,Tl,"(","\\lparen",!0),k(I,W,vo,")","\\rparen",!0),k(at,W,Ce,"<","\\textless",!0),k(at,W,Ce,">","\\textgreater",!0),k(I,W,Tl,"⌊","\\lfloor",!0),k(I,W,vo,"⌋","\\rfloor",!0),k(I,W,Tl,"⌈","\\lceil",!0),k(I,W,vo,"⌉","\\rceil",!0),k(I,W,Ce,"\\","\\backslash"),k(I,W,Ce,"∣","|"),k(I,W,Ce,"∣","\\vert"),k(at,W,Ce,"|","\\textbar",!0),k(I,W,Ce,"∥","\\|"),k(I,W,Ce,"∥","\\Vert"),k(at,W,Ce,"∥","\\textbardbl"),k(at,W,Ce,"~","\\textasciitilde"),k(at,W,Ce,"\\","\\textbackslash"),k(at,W,Ce,"^","\\textasciicircum"),k(I,W,me,"↑","\\uparrow",!0),k(I,W,me,"⇑","\\Uparrow",!0),k(I,W,me,"↓","\\downarrow",!0),k(I,W,me,"⇓","\\Downarrow",!0),k(I,W,me,"↕","\\updownarrow",!0),k(I,W,me,"⇕","\\Updownarrow",!0),k(I,W,Di,"∐","\\coprod"),k(I,W,Di,"⋁","\\bigvee"),k(I,W,Di,"⋀","\\bigwedge"),k(I,W,Di,"⨄","\\biguplus"),k(I,W,Di,"⋂","\\bigcap"),k(I,W,Di,"⋃","\\bigcup"),k(I,W,Di,"∫","\\int"),k(I,W,Di,"∫","\\intop"),k(I,W,Di,"∬","\\iint"),k(I,W,Di,"∭","\\iiint"),k(I,W,Di,"∏","\\prod"),k(I,W,Di,"∑","\\sum"),k(I,W,Di,"⨂","\\bigotimes"),k(I,W,Di,"⨁","\\bigoplus"),k(I,W,Di,"⨀","\\bigodot"),k(I,W,Di,"∮","\\oint"),k(I,W,Di,"∯","\\oiint"),k(I,W,Di,"∰","\\oiiint"),k(I,W,Di,"⨆","\\bigsqcup"),k(I,W,Di,"∫","\\smallint"),k(at,W,zg,"…","\\textellipsis"),k(I,W,zg,"…","\\mathellipsis"),k(at,W,zg,"…","\\ldots",!0),k(I,W,zg,"…","\\ldots",!0),k(I,W,zg,"⋯","\\@cdots",!0),k(I,W,zg,"⋱","\\ddots",!0),k(I,W,Ce,"⋮","\\varvdots"),k(at,W,Ce,"⋮","\\varvdots"),k(I,W,Gr,"ˊ","\\acute"),k(I,W,Gr,"ˋ","\\grave"),k(I,W,Gr,"¨","\\ddot"),k(I,W,Gr,"~","\\tilde"),k(I,W,Gr,"ˉ","\\bar"),k(I,W,Gr,"˘","\\breve"),k(I,W,Gr,"ˇ","\\check"),k(I,W,Gr,"^","\\hat"),k(I,W,Gr,"⃗","\\vec"),k(I,W,Gr,"˙","\\dot"),k(I,W,Gr,"˚","\\mathring"),k(I,W,Ft,"","\\@imath"),k(I,W,Ft,"","\\@jmath"),k(I,W,Ce,"ı","ı"),k(I,W,Ce,"ȷ","ȷ"),k(at,W,Ce,"ı","\\i",!0),k(at,W,Ce,"ȷ","\\j",!0),k(at,W,Ce,"ß","\\ss",!0),k(at,W,Ce,"æ","\\ae",!0),k(at,W,Ce,"œ","\\oe",!0),k(at,W,Ce,"ø","\\o",!0),k(at,W,Ce,"Æ","\\AE",!0),k(at,W,Ce,"Œ","\\OE",!0),k(at,W,Ce,"Ø","\\O",!0),k(at,W,Gr,"ˊ","\\'"),k(at,W,Gr,"ˋ","\\`"),k(at,W,Gr,"ˆ","\\^"),k(at,W,Gr,"˜","\\~"),k(at,W,Gr,"ˉ","\\="),k(at,W,Gr,"˘","\\u"),k(at,W,Gr,"˙","\\."),k(at,W,Gr,"¸","\\c"),k(at,W,Gr,"˚","\\r"),k(at,W,Gr,"ˇ","\\v"),k(at,W,Gr,"¨",'\\"'),k(at,W,Gr,"˝","\\H"),k(at,W,Gr,"◯","\\textcircled");var XN={"--":!0,"---":!0,"``":!0,"''":!0};k(at,W,Ce,"–","--",!0),k(at,W,Ce,"–","\\textendash"),k(at,W,Ce,"—","---",!0),k(at,W,Ce,"—","\\textemdash"),k(at,W,Ce,"‘","`",!0),k(at,W,Ce,"‘","\\textquoteleft"),k(at,W,Ce,"’","'",!0),k(at,W,Ce,"’","\\textquoteright"),k(at,W,Ce,"“","``",!0),k(at,W,Ce,"“","\\textquotedblleft"),k(at,W,Ce,"”","''",!0),k(at,W,Ce,"”","\\textquotedblright"),k(I,W,Ce,"°","\\degree",!0),k(at,W,Ce,"°","\\degree"),k(at,W,Ce,"°","\\textdegree",!0),k(I,W,Ce,"£","\\pounds"),k(I,W,Ce,"£","\\mathsterling",!0),k(at,W,Ce,"£","\\pounds"),k(at,W,Ce,"£","\\textsterling",!0),k(I,de,Ce,"✠","\\maltese"),k(at,de,Ce,"✠","\\maltese");for(var WN='0123456789/@."',WT=0;WT<WN.length;WT++){var KN=WN.charAt(WT);k(I,W,Ce,KN,KN)}for(var QN='0123456789!@*()-=+";:?/.,',KT=0;KT<QN.length;KT++){var ZN=QN.charAt(KT);k(at,W,Ce,ZN,ZN)}for(var Q3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",QT=0;QT<Q3.length;QT++){var Z3=Q3.charAt(QT);k(I,W,Ft,Z3,Z3),k(at,W,Ce,Z3,Z3)}k(I,de,Ce,"C","ℂ"),k(at,de,Ce,"C","ℂ"),k(I,de,Ce,"H","ℍ"),k(at,de,Ce,"H","ℍ"),k(I,de,Ce,"N","ℕ"),k(at,de,Ce,"N","ℕ"),k(I,de,Ce,"P","ℙ"),k(at,de,Ce,"P","ℙ"),k(I,de,Ce,"Q","ℚ"),k(at,de,Ce,"Q","ℚ"),k(I,de,Ce,"R","ℝ"),k(at,de,Ce,"R","ℝ"),k(I,de,Ce,"Z","ℤ"),k(at,de,Ce,"Z","ℤ"),k(I,W,Ft,"h","ℎ"),k(at,W,Ft,"h","ℎ");for(var rn="",bo=0;bo<Q3.length;bo++){var hi=Q3.charAt(bo);rn=String.fromCharCode(55349,56320+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56372+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56424+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56580+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56684+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56736+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56788+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56840+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56944+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),bo<26&&(rn=String.fromCharCode(55349,56632+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn),rn=String.fromCharCode(55349,56476+bo),k(I,W,Ft,hi,rn),k(at,W,Ce,hi,rn))}rn="𝕜",k(I,W,Ft,"k",rn),k(at,W,Ce,"k",rn);for(var Rh=0;Rh<10;Rh++){var Pd=Rh.toString();rn=String.fromCharCode(55349,57294+Rh),k(I,W,Ft,Pd,rn),k(at,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57314+Rh),k(I,W,Ft,Pd,rn),k(at,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57324+Rh),k(I,W,Ft,Pd,rn),k(at,W,Ce,Pd,rn),rn=String.fromCharCode(55349,57334+Rh),k(I,W,Ft,Pd,rn),k(at,W,Ce,Pd,rn)}for(var ZT="ÐÞþ",JT=0;JT<ZT.length;JT++){var J3=ZT.charAt(JT);k(I,W,Ft,J3,J3),k(at,W,Ce,J3,J3)}var e6=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],JN=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],moe=(e,t)=>{var n=e.charCodeAt(0),i=e.charCodeAt(1),o=(n-55296)*1024+(i-56320)+65536,s=t==="math"?0:1;if(119808<=o&&o<120484){var c=Math.floor((o-119808)/26);return[e6[c][2],e6[c][s]]}else if(120782<=o&&o<=120831){var d=Math.floor((o-120782)/10);return[JN[d][2],JN[d][s]]}else{if(o===120485||o===120486)return[e6[0][2],e6[0][s]];if(120486<o&&o<120782)return["",""];throw new ft("Unsupported character: "+e)}},t6=function(t,n,i){if(qr[i][t]){var o=qr[i][t].replace;o&&(t=o)}return{value:t,metrics:YT(t,n,i)}},xo=function(t,n,i,o,s){var c=t6(t,n,i),d=c.metrics;t=c.value;var h;if(d){var y=d.italic;(i==="text"||o&&o.font==="mathit")&&(y=0),h=new El(t,d.height,d.depth,y,d.skew,d.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new El(t,0,0,0,0,0,s);if(o){h.maxFontSize=o.sizeMultiplier,o.style.isTight()&&h.classes.push("mtight");var v=o.getColor();v&&(h.style.color=v)}return h},e8=function(t,n,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&t6(t,"Main-Bold",n).metrics?xo(t,"Main-Bold",n,i,o.concat(["mathbf"])):t==="\\"||qr[n][t].font==="main"?xo(t,"Main-Regular",n,i,o):xo(t,"AMS-Regular",n,i,o.concat(["amsrm"]))},goe=function(t,n,i,o,s){return s!=="textord"&&t6(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},n6=function(t,n,i){var o=t.mode,s=t.text,c=["mord"],d=o==="math"||o==="text"&&n.font,h=d?n.font:n.fontFamily,y="",v="";if(s.charCodeAt(0)===55349&&([y,v]=moe(s,o)),y.length>0)return xo(s,y,o,n,c.concat(v));if(h){var S,T;if(h==="boldsymbol"){var E=goe(s,o,n,c,i);S=E.fontName,T=[E.fontClass]}else d?(S=n8[h].fontName,T=[h]):(S=r6(h,n.fontWeight,n.fontShape),T=[h,n.fontWeight,n.fontShape]);if(t6(s,S,o).metrics)return xo(s,S,o,n,c.concat(T));if(XN.hasOwnProperty(s)&&S.slice(0,10)==="Typewriter"){for(var C=[],R=0;R<s.length;R++)C.push(xo(s[R],S,o,n,c.concat(T)));return ff(C)}}if(i==="mathord")return xo(s,"Math-Italic",o,n,c.concat(["mathnormal"]));if(i==="textord"){var _=qr[o][s]&&qr[o][s].font;if(_==="ams"){var N=r6("amsrm",n.fontWeight,n.fontShape);return xo(s,N,o,n,c.concat("amsrm",n.fontWeight,n.fontShape))}else if(_==="main"||!_){var z=r6("textrm",n.fontWeight,n.fontShape);return xo(s,z,o,n,c.concat(n.fontWeight,n.fontShape))}else{var B=r6(_,n.fontWeight,n.fontShape);return xo(s,B,o,n,c.concat(B,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},yoe=(e,t)=>{if(Bd(e.classes)!==Bd(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 i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var o of Object.keys(t.style))if(e.style[o]!==t.style[o])return!1;return!0},ek=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof El&&i instanceof El&&yoe(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},t8=function(t){for(var n=0,i=0,o=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>n&&(n=c.height),c.depth>i&&(i=c.depth),c.maxFontSize>o&&(o=c.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=o},lt=function(t,n,i,o){var s=new kg(t,n,i,o);return t8(s),s},Ud=(e,t,n,i)=>new kg(e,t,n,i),Ig=function(t,n,i){var o=lt([t],[],n);return o.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=mt(o.height),o.maxFontSize=1,o},voe=function(t,n,i,o){var s=new W3(t,n,i,o);return t8(s),s},ff=function(t){var n=new Ng(t);return t8(n),n},Lg=function(t,n){return t instanceof Ng?lt([],[t],n):t},boe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],o=-n[0].shift-n[0].elem.depth,s=o,c=1;c<n.length;c++){var d=-n[c].shift-s-n[c].elem.depth,h=d-(n[c-1].elem.height+n[c-1].elem.depth);s=s+d,i.push({type:"kern",size:h}),i.push(n[c])}return{children:i,depth:o}}var y;if(t.positionType==="top"){for(var v=t.positionData,S=0;S<t.children.length;S++){var T=t.children[S];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}},er=function(t,n){for(var{children:i,depth:o}=boe(t),s=0,c=0;c<i.length;c++){var d=i[c];if(d.type==="elem"){var h=d.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var y=lt(["pstrut"],[]);y.style.height=mt(s);for(var v=[],S=o,T=o,E=o,C=0;C<i.length;C++){var R=i[C];if(R.type==="kern")E+=R.size;else{var _=R.elem,N=R.wrapperClasses||[],z=R.wrapperStyle||{},B=lt(N,[y,_],void 0,z);B.style.top=mt(-s-E-_.depth),R.marginLeft&&(B.style.marginLeft=R.marginLeft),R.marginRight&&(B.style.marginRight=R.marginRight),v.push(B),E+=_.height+_.depth}S=Math.min(S,E),T=Math.max(T,E)}var V=lt(["vlist"],v);V.style.height=mt(T);var L;if(S<0){var U=lt([],[]),X=lt(["vlist"],[U]);X.style.height=mt(-S);var se=lt(["vlist-s"],[new El("​")]);L=[lt(["vlist-r"],[V,se]),lt(["vlist-r"],[X])]}else L=[lt(["vlist-r"],[V])];var ce=lt(["vlist-t"],L);return L.length===2&&ce.classes.push("vlist-t2"),ce.height=T,ce.depth=-S,ce},tk=(e,t)=>{var n=lt(["mspace"],[],t),i=ii(e,t);return n.style.marginRight=mt(i),n},r6=function(t,n,i){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var s;return n==="textbf"&&i==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",o+"-"+s},n8={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"}},nk={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rk=function(t,n){var[i,o,s]=nk[t],c=new jd(i),d=new uf([c],{width:mt(o),height:mt(s),style:"width:"+mt(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=Ud(["overlay"],[d],n);return h.height=s,h.style.height=mt(s),h.style.width=mt(o),h},ai={number:3,unit:"mu"},_h={number:4,unit:"mu"},df={number:5,unit:"mu"},xoe={mord:{mop:ai,mbin:_h,mrel:df,minner:ai},mop:{mord:ai,mop:ai,mrel:df,minner:ai},mbin:{mord:_h,mop:_h,mopen:_h,minner:_h},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:ai,mbin:_h,mrel:df,minner:ai},mpunct:{mord:ai,mop:ai,mrel:df,mopen:ai,mclose:ai,mpunct:ai,minner:ai},minner:{mord:ai,mop:ai,mbin:_h,mrel:df,mopen:ai,mpunct:ai,minner:ai}},Soe={mord:{mop:ai},mop:{mord:ai,mop:ai},mbin:{},mrel:{},mopen:{},mclose:{mop:ai},mpunct:{},minner:{mop:ai}},ik={},i6={},a6={};function Tt(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},h=0;h<n.length;++h)ik[n[h]]=d;t&&(s&&(i6[t]=s),c&&(a6[t]=c))}function Dh(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;Tt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var o6=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ni=function(t){return t.type==="ordgroup"?t.body:[t]},woe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Eoe=new Set(["rightmost","mrel","mclose","mpunct"]),Toe={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT},Aoe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},qi=function(t,n,i,o){o===void 0&&(o=[null,null]);for(var s=[],c=0;c<t.length;c++){var d=tr(t[c],n);if(d instanceof Ng){var h=d.children;s.push(...h)}else s.push(d)}if(ek(s),!i)return s;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(Toe[v.style]))}var S=lt([o[0]||"leftmost"],[],n),T=lt([o[1]||"rightmost"],[],n),E=i==="root";return r8(s,(C,R)=>{var _=R.classes[0],N=C.classes[0];_==="mbin"&&Eoe.has(N)?R.classes[0]="mord":N==="mbin"&&woe.has(_)&&(C.classes[0]="mord")},{node:S},T,E),r8(s,(C,R)=>{var _,N,z=a8(R),B=a8(C),V=z&&B?C.hasClass("mtight")?(_=Soe[z])==null?void 0:_[B]:(N=xoe[z])==null?void 0:N[B]:null;if(V)return tk(V,y)},{node:S},T,E),s},r8=function(t,n,i,o,s){o&&t.push(o);for(var c=0;c<t.length;c++){var d=t[c],h=ak(d);if(h){r8(h.children,n,i,null,s);continue}var y=!d.hasClass("mspace");if(y){var v=n(d,i.node);v&&(i.insertAfter?i.insertAfter(v):(t.unshift(v),c++))}y?i.node=d:s&&d.hasClass("newline")&&(i.node=lt(["leftmost"])),i.insertAfter=(S=>T=>{t.splice(S+1,0,T),c++})(c)}o&&t.pop()},ak=function(t){return t instanceof Ng||t instanceof W3||t instanceof kg&&t.hasClass("enclosing")?t:null},i8=function(t,n){var i=ak(t);if(i){var o=i.children;if(o.length){if(n==="right")return i8(o[o.length-1],"right");if(n==="left")return i8(o[0],"left")}}return t},a8=function(t,n){if(!t)return null;n&&(t=i8(t,n));var i=t.classes[0];return Aoe[i]||null},zb=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return lt(n.concat(i))},tr=function(t,n,i){if(!t)return lt();if(i6[t.type]){var o=i6[t.type](t,n);if(i&&n.size!==i.size){o=lt(n.sizingClasses(i),[o],n);var s=n.sizeMultiplier/i.sizeMultiplier;o.height*=s,o.depth*=s}return o}else throw new ft("Got group of unknown type: '"+t.type+"'")};function l6(e,t){var n=lt(["base"],e,t),i=lt(["strut"]);return i.style.height=mt(n.height+n.depth),n.depth&&(i.style.verticalAlign=mt(-n.depth)),n.children.unshift(i),n}function o8(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=qi(e,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var s=[],c=[],d=0;d<i.length;d++)if(c.push(i[d]),i[d].hasClass("mbin")||i[d].hasClass("mrel")||i[d].hasClass("allowbreak")){for(var h=!1;d<i.length-1&&i[d+1].hasClass("mspace")&&!i[d+1].hasClass("newline");)d++,c.push(i[d]),i[d].hasClass("nobreak")&&(h=!0);h||(s.push(l6(c,t)),c=[])}else i[d].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(l6(c,t)),c=[]),s.push(i[d]));c.length>0&&s.push(l6(c,t));var y;n?(y=l6(qi(n,t,!0),t),y.classes=["tag"],s.push(y)):o&&s.push(o);var v=lt(["katex-html"],s);if(v.setAttribute("aria-hidden","true"),y){var S=y.children[0];S.style.height=mt(v.height+v.depth),v.depth&&(S.style.verticalAlign=mt(-v.depth))}return v}function ok(e){return new Ng(e)}class ht{constructor(t,n,i){this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}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=Bd(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof ki&&this.children[i+1]instanceof ki){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof ki;)o+=this.children[++i].toText();t.appendChild(new ki(o).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=qa(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+qa(Bd(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class ki{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return qa(this.toText())}toText(){return this.text}}class lk{constructor(t){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",mt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+mt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Coe=new Set(["\\imath","\\jmath"]),Ooe=new Set(["mrow","mtable"]),rs=function(t,n,i){return qr[n][t]&&qr[n][t].replace&&t.charCodeAt(0)!==55349&&!(XN.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=qr[n][t].replace),new ki(t)},l8=function(t){return t.length===1?t[0]:new ht("mrow",t)},s8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var i=n.font;if(!i||i==="mathnormal")return null;var o=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var s=t.text;if(Coe.has(s))return null;if(qr[o][s]){var c=qr[o][s].replace;c&&(s=c)}var d=n8[i].fontName;return YT(s,d,o)?n8[i].variant:null};function u8(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof ki&&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 ki&&n.text===","}else return!1}var Al=function(t,n,i){if(t.length===1){var o=Cr(t[0],n);return i&&o instanceof ht&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var s=[],c,d=0;d<t.length;d++){var h=Cr(t[d],n);if(h instanceof ht&&c instanceof ht){if(h.type==="mtext"&&c.type==="mtext"&&h.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...h.children);continue}else if(h.type==="mn"&&c.type==="mn"){c.children.push(...h.children);continue}else if(u8(h)&&c.type==="mn"){c.children.push(...h.children);continue}else if(h.type==="mn"&&u8(c))h.children=[...c.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(c.type==="mn"||u8(c))){var y=h.children[0];y instanceof ht&&y.type==="mn"&&(y.children=[...c.children,...y.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var v=c.children[0];if(v instanceof ki&&v.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var S=h.children[0];S instanceof ki&&S.text.length>0&&(S.text=S.text.slice(0,1)+"̸"+S.text.slice(1),s.pop())}}}s.push(h),c=h}return s},$d=function(t,n,i){return l8(Al(t,n,i))},Cr=function(t,n){if(!t)return new ht("mrow");if(a6[t.type]){var i=a6[t.type](t,n);return i}else throw new ft("Got group of unknown type: '"+t.type+"'")};function sk(e,t,n,i,o){var s=Al(e,n),c;s.length===1&&s[0]instanceof ht&&Ooe.has(s[0].type)?c=s[0]:c=new ht("mrow",s);var d=new ht("annotation",[new ki(t)]);d.setAttribute("encoding","application/x-tex");var h=new ht("semantics",[c,d]),y=new ht("math",[h]);y.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&y.setAttribute("display","block");var v=o?"katex":"katex-mathml";return lt([v],[y])}var Moe=[[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]],uk=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ck=function(t,n){return n.size<2?t:Moe[t-1][n.size-1]};class hf{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||hf.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=uk[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 hf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ck(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:uk[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=ck(hf.BASESIZE,t);return this.size===n&&this.textSize===hf.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!==hf.BASESIZE?["sizing","reset-size"+this.size,"size"+hf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=doe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}hf.BASESIZE=6;var fk=function(t){return new hf({style:t.displayMode?un.DISPLAY:un.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},dk=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=lt(i,[t])}return t},Roe=function(t,n,i){var o=fk(i),s;if(i.output==="mathml")return sk(t,n,o,i.displayMode,!0);if(i.output==="html"){var c=o8(t,o);s=lt(["katex"],[c])}else{var d=sk(t,n,o,i.displayMode,!1),h=o8(t,o);s=lt(["katex"],[d,h])}return dk(s,i)},_oe=function(t,n,i){var o=fk(i),s=o8(t,o),c=lt(["katex"],[s]);return dk(c,i)},Doe={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":"="},s6=function(t){var n=new ht("mo",[new ki(Doe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Noe={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]},koe=new Set(["widehat","widecheck","widetilde","utilde"]),u6=function(t,n){function i(){var d=4e5,h=t.label.slice(1);if(koe.has(h)){var y=t,v=y.base.type==="ordgroup"?y.base.body.length:1,S,T,E;if(v>5)h==="widehat"||h==="widecheck"?(S=420,d=2364,E=.42,T=h+"4"):(S=312,d=2340,E=.34,T="tilde4");else{var C=[1,1,2,2,3,3][v];h==="widehat"||h==="widecheck"?(d=[0,1062,2364,2364,2364][C],S=[0,239,300,360,420][C],E=[0,.24,.3,.3,.36,.42][C],T=h+C):(d=[0,600,1033,2339,2340][C],S=[0,260,286,306,312][C],E=[0,.26,.286,.3,.306,.34][C],T="tilde"+C)}var R=new jd(T),_=new uf([R],{width:"100%",height:mt(E),viewBox:"0 0 "+d+" "+S,preserveAspectRatio:"none"});return{span:Ud([],[_],n),minWidth:0,height:E}}else{var N=[],z=Noe[h],[B,V,L]=z,U=L/1e3,X=B.length,se,ce;if(X===1){var ie=z[3];se=["hide-tail"],ce=[ie]}else if(X===2)se=["halfarrow-left","halfarrow-right"],ce=["xMinYMin","xMaxYMin"];else if(X===3)se=["brace-left","brace-center","brace-right"],ce=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+X+" children.");for(var ue=0;ue<X;ue++){var $=new jd(B[ue]),le=new uf([$],{width:"400em",height:mt(U),viewBox:"0 0 "+d+" "+L,preserveAspectRatio:ce[ue]+" slice"}),K=Ud([se[ue]],[le],n);if(X===1)return{span:K,minWidth:V,height:U};K.style.height=mt(U),N.push(K)}return{span:lt(["stretchy"],N,n),minWidth:V,height:U}}}var{span:o,minWidth:s,height:c}=i();return o.height=c,o.style.height=mt(c),s>0&&(o.style.minWidth=mt(s)),o},zoe=function(t,n,i,o,s){var c,d=t.height+t.depth+i+o;if(/fbox|color|angl/.test(n)){if(c=lt(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(c.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new FT({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new FT({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new uf(y,{width:"100%",height:mt(d)});c=Ud([],[v],s)}return c.height=d,c.style.height=mt(d),c};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 c6(e){var t=f6(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 f6(e){return e&&(e.type==="atom"||poe.hasOwnProperty(e.type))?e:null}var hk=e=>{if(e instanceof El)return e;if(coe(e)&&e.children.length===1)return hk(e.children[0])},c8=(e,t)=>{var n,i,o;e&&e.type==="supsub"?(i=An(e.base,"accent"),n=i.base,e.base=n,o=uoe(tr(e,t)),e.base=i):(i=An(e,"accent"),n=i.base);var s=tr(n,t.havingCrampedStyle()),c=i.isShifty&&lf(n),d=0;if(c){var h,y;d=(h=(y=hk(s))==null?void 0:y.skew)!=null?h:0}var v=i.label==="\\c",S=v?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),T;if(i.isStretchy)T=u6(i,t),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+mt(2*d)+")",marginLeft:mt(2*d)}:void 0}]});else{var E,C;i.label==="\\vec"?(E=rk("vec",t),C=nk.vec[1]):(E=n6({mode:i.mode,text:i.label},t,"textord"),E=soe(E),E.italic=0,C=E.width,v&&(S+=E.depth)),T=lt(["accent-body"],[E]);var R=i.label==="\\textcircled";R&&(T.classes.push("accent-full"),S=s.height);var _=d;R||(_-=C/2),T.style.left=mt(_),i.label==="\\textcircled"&&(T.style.top=".2em"),T=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-S},{type:"elem",elem:T}]})}var N=lt(["mord","accent"],[T],t);return o?(o.children[0]=N,o.height=Math.max(N.height,o.height),o.classes[0]="mord",o):N},pk=(e,t)=>{var n=e.isStretchy?s6(e.label):new ht("mo",[rs(e.label,e.mode)]),i=new ht("mover",[Cr(e.base,t),n]);return i.setAttribute("accent","true"),i},Ioe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Tt({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=o6(t[0]),i=!Ioe.test(e.funcName),o=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:c8,mathmlBuilder:pk}),Tt({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],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:c8,mathmlBuilder:pk}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:(e,t)=>{var n=tr(e.base,t),i=u6(e,t),o=e.label==="\\utilde"?.12:0,s=er({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]});return lt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=s6(e.label),i=new ht("munder",[Cr(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var d6=e=>{var t=new ht("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Tt({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:i,funcName:o}=e;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),o=Lg(tr(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var c;e.below&&(i=t.havingStyle(n.sub()),c=Lg(tr(e.below,i,t),t),c.classes.push(s+"-arrow-pad"));var d=u6(e,t),h=-t.fontMetrics().axisHeight+.5*d.height,y=-t.fontMetrics().axisHeight-.5*d.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(y-=o.depth);var v;if(c){var S=-t.fontMetrics().axisHeight+c.height+.5*d.height+.111;v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h},{type:"elem",elem:c,shift:S}]})}else v=er({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h}]});return v.children[0].children[0].children[1].classes.push("svg-align"),lt(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var n=s6(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=d6(Cr(e.body,t));if(e.below){var s=d6(Cr(e.below,t));i=new ht("munderover",[n,s,o])}else i=new ht("mover",[n,o])}else if(e.below){var c=d6(Cr(e.below,t));i=new ht("munder",[n,c])}else i=d6(),i=new ht("mover",[n,i]);return i}});function mk(e,t){var n=qi(e.body,t,!0);return lt([e.mclass],n,t)}function gk(e,t){var n,i=Al(e.body,t);return e.mclass==="minner"?n=new ht("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new ht("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new ht("mo",i),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}Tt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:Ni(o),isCharacterBox:lf(o)}},htmlBuilder:mk,mathmlBuilder:gk});var h6=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"};Tt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:h6(t[0]),body:Ni(t[1]),isCharacterBox:lf(t[1])}}}),Tt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,o=t[1],s=t[0],c;i!=="\\stackrel"?c=h6(o):c="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Ni(o)},h={type:"supsub",mode:s.mode,base:d,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:lf(h)}},htmlBuilder:mk,mathmlBuilder:gk}),Tt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:h6(t[0]),body:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!0),i=lt([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Al(e.body,t),i=new ht("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var Loe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yk=()=>({type:"styling",body:[],mode:"math",style:"display"}),vk=e=>e.type==="textord"&&e.text==="@",Voe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Boe(e,t,n){var i=Loe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},c=n.callFunction("\\Big",[s],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[o,c,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 joe(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 ft("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],o=[i],s=0;s<t.length;s++){for(var c=t[s],d=yk(),h=0;h<c.length;h++)if(!vk(c[h]))d.body.push(c[h]);else{i.push(d),h+=1;var y=c6(c[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 S=0;S<2;S++){for(var T=!0,E=h+1;E<c.length;E++){if(Voe(c[E],y)){T=!1,h=E;break}if(vk(c[E]))throw new ft("Missing a "+y+" character to complete a CD arrow.",c[E]);v[S].body.push(c[E])}if(T)throw new ft("Missing a "+y+" character to complete a CD arrow.",c[h])}else throw new ft('Expected one of "<>AV=|." after @',c[h]);var C=Boe(y,v,e),R={type:"styling",body:[C],mode:"math",style:"display"};i.push(R),d=yk()}s%2===0?i.push(d):i.shift(),i=[],o.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Tt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=Lg(tr(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=mt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new ht("mrow",[Cr(e.label,t)]);return n=new ht("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ht("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Tt({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=Lg(tr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ht("mrow",[Cr(e.fragment,t)])}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=An(t[0],"ordgroup"),o=i.body,s="",c=0;c<o.length;c++){var d=An(o[c],"textord");s+=d.text}var h=parseInt(s),y;if(isNaN(h))throw new ft("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new ft("\\@char with invalid code point "+s);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 bk=(e,t)=>{var n=qi(e.body,t.withColor(e.color),!1);return ff(n)},xk=(e,t)=>{var n=Al(e.body,t.withColor(e.color)),i=new ht("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Tt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=An(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:Ni(o)}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,o=An(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:bk,mathmlBuilder:xk}),Tt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:o&&An(o,"size").value}},htmlBuilder(e,t){var n=lt(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=mt(ii(e.size,t)))),n},mathmlBuilder(e,t){var n=new ht("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",mt(ii(e.size,t)))),n}});var f8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Sk=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ft("Expected a control sequence",e);return t},Poe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},wk=(e,t,n,i)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,i)};Tt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(f8[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=f8[i.text]),An(t.parseFunction(),"internal");throw new ft("Invalid token after macro prefix",i)}}),Tt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new ft("Expected a control sequence",i);for(var s=0,c,d=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),d[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new ft('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new ft('Argument number "'+i.text+'" out of order');s++,d.push([])}else{if(i.text==="EOF")throw new ft("Expected a macro definition");d[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(o,{tokens:h,numArgs:s,delimiters:d},n===f8[n]),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken());t.gullet.consumeSpaces();var o=Poe(t);return wk(t,i,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Tt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=Sk(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return wk(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var Ib=function(t,n,i){var o=qr.math[t]&&qr.math[t].replace,s=YT(o||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},d8=function(t,n,i,o){var s=i.havingBaseStyle(n),c=lt(o.concat(s.sizingClasses(i)),[t],i),d=s.sizeMultiplier/i.sizeMultiplier;return c.height*=d,c.depth*=d,c.maxFontSize=s.sizeMultiplier,c},Ek=function(t,n,i){var o=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=mt(s),t.height-=s,t.depth+=s},Uoe=function(t,n,i,o,s,c){var d=xo(t,"Main-Regular",s,o),h=d8(d,n,o,c);return Ek(h,o,n),h},$oe=function(t,n,i,o){return xo(t,"Size"+n+"-Regular",i,o)},Tk=function(t,n,i,o,s,c){var d=$oe(t,n,s,o),h=d8(lt(["delimsizing","size"+n],[d],o),un.TEXT,o,c);return i&&Ek(h,o,un.TEXT),h},h8=function(t,n,i){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=lt(["delimsizinginner",o],[lt([],[xo(t,n,i)])]);return{type:"elem",elem:s}},p8=function(t,n,i){var o=lc["Size4-Regular"][t.charCodeAt(0)]?lc["Size4-Regular"][t.charCodeAt(0)][4]:lc["Size1-Regular"][t.charCodeAt(0)][4],s=new jd("inner",noe(t,Math.round(1e3*n))),c=new uf([s],{width:mt(o),height:mt(n),style:"width:"+mt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Ud([],[c],i);return d.height=n,d.style.height=mt(n),d.style.width=mt(o),{type:"elem",elem:d}},m8=.008,p6={type:"kern",size:-1*m8},Hoe=new Set(["|","\\lvert","\\rvert","\\vert"]),qoe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ak=function(t,n,i,o,s,c){var d,h,y,v,S="",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"):Hoe.has(t)?(y="∣",S="vert",T=333):qoe.has(t)?(y="∥",S="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",v="⎣",E="Size4-Regular",S="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",v="⎦",E="Size4-Regular",S="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",v="⎣",E="Size4-Regular",S="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=v="⎢",E="Size4-Regular",S="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",v="⎦",E="Size4-Regular",S="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=v="⎥",E="Size4-Regular",S="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",v="⎝",E="Size4-Regular",S="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",v="⎠",E="Size4-Regular",S="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 C=Ib(d,E,s),R=C.height+C.depth,_=Ib(y,E,s),N=_.height+_.depth,z=Ib(v,E,s),B=z.height+z.depth,V=0,L=1;if(h!==null){var U=Ib(h,E,s);V=U.height+U.depth,L=2}var X=R+B+V,se=Math.max(0,Math.ceil((n-X)/(L*N))),ce=X+se*L*N,ie=o.fontMetrics().axisHeight;i&&(ie*=o.sizeMultiplier);var ue=ce/2-ie,$=[];if(S.length>0){var le=ce-R-B,K=Math.round(ce*1e3),oe=roe(S,Math.round(le*1e3)),Z=new jd(S,oe),ae=mt(T/1e3),he=mt(K/1e3),Ee=new uf([Z],{width:ae,height:he,viewBox:"0 0 "+T+" "+K}),te=Ud([],[Ee],o);te.height=K/1e3,te.style.width=ae,te.style.height=he,$.push({type:"elem",elem:te})}else{if($.push(h8(v,E,s)),$.push(p6),h===null){var F=ce-R-B+2*m8;$.push(p8(y,F,o))}else{var ee=(ce-R-B-V)/2+2*m8;$.push(p8(y,ee,o)),$.push(p6),$.push(h8(h,E,s)),$.push(p6),$.push(p8(y,ee,o))}$.push(p6),$.push(h8(d,E,s))}var Y=o.havingBaseStyle(un.TEXT),Me=er({positionType:"bottom",positionData:ue,children:$});return d8(lt(["delimsizing","mult"],[Me],Y),un.TEXT,o,c)},g8=80,y8=.08,v8=function(t,n,i,o,s){var c=toe(t,o,i),d=new jd(t,c),h=new uf([d],{width:"400em",height:mt(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Ud(["hide-tail"],[h],s)},Goe=function(t,n){var i=n.havingBaseSizing(),o=_k("\\surd",t*i.sizeMultiplier,Rk,i),s=i.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h=0,y=0,v=0,S;return o.type==="small"?(v=1e3+1e3*c+g8,t<1?s=1:t<1.4&&(s=.7),h=(1+c+y8)/s,y=(1+c)/s,d=v8("sqrtMain",h,v,c,n),d.style.minWidth="0.853em",S=.833/s):o.type==="large"?(v=(1e3+g8)*Lb[o.size],y=(Lb[o.size]+c)/s,h=(Lb[o.size]+c+y8)/s,d=v8("sqrtSize"+o.size,h,v,c,n),d.style.minWidth="1.02em",S=1/s):(h=t+c+y8,y=t+c,v=Math.floor(1e3*t+c)+g8,d=v8("sqrtTall",h,v,c,n),d.style.minWidth="0.742em",S=1.056),d.height=y,d.style.height=mt(h),{span:d,advanceWidth:S,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*s}},Ck=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Foe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Ok=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Lb=[0,1.2,1.8,2.4,3],Mk=function(t,n,i,o,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ck.has(t)||Ok.has(t))return Tk(t,n,!1,i,o,s);if(Foe.has(t))return Ak(t,Lb[n],!1,i,o,s);throw new ft("Illegal delimiter: '"+t+"'")},Yoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xoe=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"stack"}],Rk=[{type:"small",style:un.SCRIPTSCRIPT},{type:"small",style:un.SCRIPT},{type:"small",style:un.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Woe=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.")},_k=function(t,n,i,o){for(var s=Math.min(2,3-o.style.size),c=s;c<i.length;c++){var d=i[c];if(d.type==="stack")break;var h=Ib(t,Woe(d),"math"),y=h.height+h.depth;if(d.type==="small"){var v=o.havingBaseStyle(d.style);y*=v.sizeMultiplier}if(y>n)return d}return i[i.length-1]},b8=function(t,n,i,o,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;Ok.has(t)?d=Yoe:Ck.has(t)?d=Rk:d=Xoe;var h=_k(t,n,d,o);return h.type==="small"?Uoe(t,h.style,i,o,s,c):h.type==="large"?Tk(t,h.size,i,o,s,c):Ak(t,n,i,o,s,c)},x8=function(t,n,i,o,s,c){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,h=901,y=5/o.fontMetrics().ptPerEm,v=Math.max(n-d,i+d),S=Math.max(v/500*h,2*v-y);return b8(t,S,!0,o,s,c)},Dk={"\\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}},Koe=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 m6(e,t){var n=f6(e);if(n&&Koe.has(n.text))return n;throw n?new ft("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new ft("Invalid delimiter type '"+e.type+"'",e)}Tt({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=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Dk[e.funcName].size,mclass:Dk[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?lt([e.mclass]):Mk(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(rs(e.delim,e.mode));var n=new ht("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=mt(Lb[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function Nk(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({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 ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=An(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Nk(e);for(var n=qi(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,c=0;c<n.length;c++)n[c].isMiddle?s=!0:(i=Math.max(n[c].height,i),o=Math.max(n[c].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var d;if(e.left==="."?d=zb(t,["mopen"]):d=x8(e.left,i,o,t,e.mode,["mopen"]),n.unshift(d),s)for(var h=1;h<n.length;h++){var y=n[h],v=y.isMiddle;v&&(n[h]=x8(v.delim,i,o,v.options,e.mode,[]))}var S;if(e.right===".")S=zb(t,["mclose"]);else{var T=e.rightColor?t.withColor(e.rightColor):t;S=x8(e.right,i,o,T,e.mode,["mclose"])}return n.push(S),lt(["minner"],n,t)},mathmlBuilder:(e,t)=>{Nk(e);var n=Al(e.body,t);if(e.left!=="."){var i=new ht("mo",[rs(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new ht("mo",[rs(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return l8(n)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new ft("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=zb(t,[]);else{n=Mk(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?rs("|","text"):rs(e.delim,e.mode),i=new ht("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var g6=(e,t)=>{var n=Lg(tr(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s,c=0,d=lf(e.body);if(i==="sout")s=lt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/o,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=ii({number:.6,unit:"pt"},t),y=ii({number:.35,unit:"ex"},t),v=t.havingBaseSizing();o=o/v.sizeMultiplier;var S=n.height+n.depth+h+y;n.style.paddingLeft=mt(S/2+h);var T=Math.floor(1e3*S*o),E=Jae(T),C=new uf([new jd("phase",E)],{width:"400em",height:mt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});s=Ud(["hide-tail"],[C],t),s.style.height=mt(S),c=n.depth+h+y}else{/cancel/.test(i)?d||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var R=0,_=0,N=0;/box/.test(i)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(i==="colorbox"?0:N),_=R):i==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*N,_=Math.max(0,.25-n.depth)):(R=d?.2:0,_=R),s=zoe(n,i,R,_,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=mt(N)):i==="angl"&&N!==.049&&(s.style.borderTopWidth=mt(N),s.style.borderRightWidth=mt(N)),c=n.depth+_,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=er({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:0}]});else{var B=/cancel|phase/.test(i)?["svg-align"]:[];z=er({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:B}]})}return/cancel/.test(i)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(i)&&!d?lt(["mord","cancel-lap"],[z],t):lt(["mord"],[z],t)},y6=(e,t)=>{var n=0,i=new ht(e.label.includes("colorbox")?"mpadded":"menclose",[Cr(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+mt(o)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=An(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:c}},htmlBuilder:g6,mathmlBuilder:y6}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:o}=e,s=An(t[0],"color-token").color,c=An(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:c,borderColor:s,body:d}},htmlBuilder:g6,mathmlBuilder:y6}),Tt({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]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:g6,mathmlBuilder:y6}),Tt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var o=t[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:g6,mathmlBuilder:y6}),Tt({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 kk={};function sc(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:c}=e,d={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},h=0;h<n.length;++h)kk[n[h]]=d;s&&(i6[t]=s),c&&(a6[t]=c)}var zk={};function re(e,t){zk[e]=t}class Go{constructor(t,n,i){this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Go(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Cl{constructor(t,n){this.text=t,this.loc=n}range(t,n){return new Cl(n,Go.range(this,t))}}function Ik(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 v6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ft("{"+e.envName+"} can be used only in display mode.")},Qoe=new Set(["gather","gather*"]);function S8(e){if(!e.includes("ed"))return!e.includes("*")}function Hd(e,t,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:c,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:v,maxNumCols:S,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var E=e.gullet.expandMacroAsText("\\arraystretch");if(E==null)c=1;else if(c=parseFloat(E),!c||c<0)throw new ft("Invalid \\arraystretch: "+E)}e.gullet.beginGroup();var C=[],R=[C],_=[],N=[],z=h!=null?[]:void 0;function B(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function V(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Cl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(Ik(e));;){var L=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var U={type:"ordgroup",mode:e.mode,body:L};n&&(U={type:"styling",mode:e.mode,style:n,body:[U]}),C.push(U);var X=e.fetch().text;if(X==="&"){if(S&&C.length===S){if(y||d)throw new ft("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"){V(),C.length===1&&U.type==="styling"&&U.body.length===1&&U.body[0].type==="ordgroup"&&U.body[0].body.length===0&&(R.length>1||!v)&&R.pop(),N.length<R.length+1&&N.push([]);break}else if(X==="\\\\"){e.consume();var se=void 0;e.gullet.future().text!==" "&&(se=e.parseSizeGroup(!0)),_.push(se?se.value:null),V(),N.push(Ik(e)),C=[],R.push(C),B()}else throw new ft("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:c,body:R,cols:s,rowGaps:_,hskipBeforeAndAfter:i,hLinesBeforeRow:N,colSeparationType:d,tags:z,leqno:T}}function w8(e){return e.slice(0,1)==="d"?"display":"text"}var uc=function(t,n){var i,o,s=t.body.length,c=t.hLinesBeforeRow,d=0,h=new Array(s),y=[],v=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),S=1/n.fontMetrics().ptPerEm,T=5*S;if(t.colSeparationType&&t.colSeparationType==="small"){var E=n.havingStyle(un.SCRIPT).sizeMultiplier;T=.2778*(E/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?ii({number:3,unit:"ex"},n):12*S,R=3*S,_=t.arraystretch*C,N=.7*_,z=.3*_,B=0;function V(nt){for(var pt=0;pt<nt.length;++pt)pt>0&&(B+=.25),y.push({pos:B,isDashed:nt[pt]})}for(V(c[0]),i=0;i<t.body.length;++i){var L=t.body[i],U=N,X=z;d<L.length&&(d=L.length);var se=new Array(L.length);for(o=0;o<L.length;++o){var ce=tr(L[o],n);X<ce.depth&&(X=ce.depth),U<ce.height&&(U=ce.height),se[o]=ce}var ie=t.rowGaps[i],ue=0;ie&&(ue=ii(ie,n),ue>0&&(ue+=z,X<ue&&(X=ue),ue=0)),t.addJot&&i<t.body.length-1&&(X+=R),se.height=U,se.depth=X,B+=U,se.pos=B,B+=X+ue,h[i]=se,V(c[i+1])}var $=B/2+n.fontMetrics().axisHeight,le=t.cols||[],K=[],oe,Z,ae=[];if(t.tags&&t.tags.some(nt=>nt))for(i=0;i<s;++i){var he=h[i],Ee=he.pos-$,te=t.tags[i],F=void 0;te===!0?F=lt(["eqn-num"],[],n):te===!1?F=lt([],[],n):F=lt([],qi(te,n,!0),n),F.depth=he.depth,F.height=he.height,ae.push({type:"elem",elem:F,shift:Ee})}for(o=0,Z=0;o<d||Z<le.length;++o,++Z){for(var ee,Y=le[Z],Me=!0;((Se=Y)==null?void 0:Se.type)==="separator";){var Se;if(Me||(oe=lt(["arraycolsep"],[]),oe.style.width=mt(n.fontMetrics().doubleRuleSep),K.push(oe)),Y.separator==="|"||Y.separator===":"){var _e=Y.separator==="|"?"solid":"dashed",je=lt(["vertical-separator"],[],n);je.style.height=mt(B),je.style.borderRightWidth=mt(v),je.style.borderRightStyle=_e,je.style.margin="0 "+mt(-v/2);var He=B-$;He&&(je.style.verticalAlign=mt(-He)),K.push(je)}else throw new ft("Invalid separator type: "+Y.separator);Z++,Y=le[Z],Me=!1}if(!(o>=d)){var Xe=void 0;if(o>0||t.hskipBeforeAndAfter){var Ke,et;Xe=(Ke=(et=Y)==null?void 0:et.pregap)!=null?Ke:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=mt(Xe),K.push(oe))}var Be=[];for(i=0;i<s;++i){var Re=h[i],st=Re[o];if(st){var Mt=Re.pos-$;st.depth=Re.depth,st.height=Re.height,Be.push({type:"elem",elem:st,shift:Mt})}}var Qt=er({positionType:"individualShift",children:Be}),xt=lt(["col-align-"+(((ee=Y)==null?void 0:ee.align)||"c")],[Qt]);if(K.push(xt),o<d-1||t.hskipBeforeAndAfter){var Ut,hn;Xe=(Ut=(hn=Y)==null?void 0:hn.postgap)!=null?Ut:T,Xe!==0&&(oe=lt(["arraycolsep"],[]),oe.style.width=mt(Xe),K.push(oe))}}}var mn=lt(["mtable"],K);if(y.length>0){for(var ot=Ig("hline",n,v),At=Ig("hdashline",n,v),Rn=[{type:"elem",elem:mn,shift:0}];y.length>0;){var Bt=y.pop(),Ze=Bt.pos-$;Bt.isDashed?Rn.push({type:"elem",elem:At,shift:Ze}):Rn.push({type:"elem",elem:ot,shift:Ze})}mn=er({positionType:"individualShift",children:Rn})}if(ae.length===0)return lt(["mord"],[mn],n);var be=er({positionType:"individualShift",children:ae}),Ve=lt(["tag"],[be],n);return ff([mn,Ve])},Zoe={c:"center ",l:"left ",r:"right "},cc=function(t,n){for(var i=[],o=new ht("mtd",[],["mtr-glue"]),s=new ht("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var d=t.body[c],h=[],y=0;y<d.length;y++)h.push(new ht("mtd",[Cr(d[y],n)]));t.tags&&t.tags[c]&&(h.unshift(o),h.push(o),t.leqno?h.unshift(s):h.push(s)),i.push(new ht("mtr",h))}var v=new ht("mtable",i),S=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",mt(S));var T="",E="";if(t.cols&&t.cols.length>0){var C=t.cols,R="",_=!1,N=0,z=C.length;C[0].type==="separator"&&(T+="top ",N=1),C[C.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var B=N;B<z;B++){var V=C[B];V.type==="align"?(E+=Zoe[V.align],_&&(R+="none "),_=!0):V.type==="separator"&&_&&(R+=V.separator==="|"?"solid ":"dashed ",_=!1)}v.setAttribute("columnalign",E.trim()),/[sd]/.test(R)&&v.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var L=t.cols||[],U="",X=1;X<L.length;X++)U+=X%2?"0em ":"1em ";v.setAttribute("columnspacing",U.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 ht("menclose",[v]),v.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(v=new ht("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},Lk=function(t,n){t.envName.includes("ed")||v6(t);var i=[],o=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=Hd(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:S8(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?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="",S=0;S<n[0].body.length;S++){var T=An(n[0].body[S],"textord");v+=T.text}d=Number(v),h=d*2}var E=!h;c.body.forEach(function(N){for(var z=1;z<N.length;z+=2){var B=An(N[z],"styling"),V=An(B.body[0],"ordgroup");V.body.unshift(y)}if(E)h<N.length&&(h=N.length);else{var L=N.length/2;if(d<L)throw new ft("Too many math in a row: "+("expected "+d+", but got "+L),N[0])}});for(var C=0;C<h;++C){var R="r",_=0;C%2===1?R="l":C>0&&E&&(_=1),i[C]={type:"align",align:R,pregap:_,postgap:0}}return c.colSeparationType=E?"align":"alignat",c};sc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:An(t[0],"ordgroup").body,o=i.map(function(c){var d=c6(c),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 ft("Unknown column alignment: "+h,c)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Hd(e.parser,s,w8(e.envName))},htmlBuilder:uc,mathmlBuilder:cc}),sc({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",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,!"lcr".includes(n))throw new ft("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var s=Hd(e.parser,i,w8(e.envName)),c=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(c).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Hd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=f6(t[0]),i=n?[t[0]]:An(t[0],"ordgroup").body,o=i.map(function(d){var h=c6(d),y=h.text;if("lc".includes(y))return{type:"align",align:y};throw new ft("Unknown column alignment: "+y,d)});if(o.length>1)throw new ft("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5},c=Hd(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new ft("{subarray} can contain only one column");return c},htmlBuilder:uc,mathmlBuilder:cc}),sc({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=Hd(e.parser,t,w8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Qoe.has(e.envName)&&v6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:S8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Lk,htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){v6(e);var t={autoTag:S8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hd(e.parser,t,"display")},htmlBuilder:uc,mathmlBuilder:cc}),sc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return v6(e),joe(e.parser)},htmlBuilder:uc,mathmlBuilder:cc}),re("\\nonumber","\\gdef\\@eqnsw{0}"),re("\\notag","\\nonumber"),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ft(e.funcName+" valid only within array environment")}});var Vk=kk;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,o=t[0];if(o.type!=="ordgroup")throw new ft("Invalid environment name",o);for(var s="",c=0;c<o.body.length;++c)s+=An(o.body[c],"textord").text;if(i==="\\begin"){if(!Vk.hasOwnProperty(s))throw new ft("No such environment: "+s,o);var d=Vk[s],{args:h,optArgs:y}=n.parseArguments("\\begin{"+s+"}",d),v={mode:n.mode,envName:s,parser:n},S=d.handler(v,h,y);n.expect("\\end",!1);var T=n.nextToken,E=An(n.parseFunction(),"environment");if(E.name!==s)throw new ft("Mismatch: \\begin{"+s+"} matched by \\end{"+E.name+"}",T);return S}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var Bk=(e,t)=>{var n=e.font,i=t.withFont(n);return tr(e.body,i)},jk=(e,t)=>{var n=e.font,i=t.withFont(n);return Cr(e.body,i)},Pk={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Tt({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:i}=e,o=o6(t[0]),s=i;return s in Pk&&(s=Pk[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:Bk,mathmlBuilder:jk}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:h6(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:lf(i)}}}),Tt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:o}=e,{mode:s}=n,c=n.parseExpression(!0,o),d="math"+i.slice(1);return{type:"font",mode:s,font:d,body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:Bk,mathmlBuilder:jk});var Joe=(e,t)=>{var n=t.style,i=n.fracNum(),o=n.fracDen(),s;s=t.havingStyle(i);var c=tr(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;c.height=c.height<d?d:c.height,c.depth=c.depth<h?h:c.depth}s=t.havingStyle(o);var y=tr(e.denom,s,t),v,S,T;e.hasBarLine?(e.barSize?(S=ii(e.barSize,t),v=Ig("frac-line",t,S)):v=Ig("frac-line",t),S=v.height,T=v.height):(v=null,S=0,T=t.fontMetrics().defaultRuleThickness);var E,C,R;n.size===un.DISPLAY.size?(E=t.fontMetrics().num1,S>0?C=3*T:C=7*T,R=t.fontMetrics().denom1):(S>0?(E=t.fontMetrics().num2,C=T):(E=t.fontMetrics().num3,C=3*T),R=t.fontMetrics().denom2);var _;if(v){var z=t.fontMetrics().axisHeight;E-c.depth-(z+.5*S)<C&&(E+=C-(E-c.depth-(z+.5*S))),z-.5*S-(y.height-R)<C&&(R+=C-(z-.5*S-(y.height-R)));var B=-(z-.5*S);_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:v,shift:B},{type:"elem",elem:c,shift:-E}]})}else{var N=E-c.depth-(y.height-R);N<C&&(E+=.5*(C-N),R+=.5*(C-N)),_=er({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:c,shift:-E}]})}s=t.havingStyle(n),_.height*=s.sizeMultiplier/t.sizeMultiplier,_.depth*=s.sizeMultiplier/t.sizeMultiplier;var V;n.size===un.DISPLAY.size?V=t.fontMetrics().delim1:n.size===un.SCRIPTSCRIPT.size?V=t.havingStyle(un.SCRIPT).fontMetrics().delim2:V=t.fontMetrics().delim2;var L,U;return e.leftDelim==null?L=zb(t,["mopen"]):L=b8(e.leftDelim,V,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=lt([]):e.rightDelim==null?U=zb(t,["mclose"]):U=b8(e.rightDelim,V,!0,t.havingStyle(n),e.mode,["mclose"]),lt(["mord"].concat(s.sizingClasses(t)),[L,lt(["mfrac"],[_]),U],t)},ele=(e,t)=>{var n=new ht("mfrac",[Cr(e.numer,t),Cr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=ii(e.barSize,t);n.setAttribute("linethickness",mt(i))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new ht("mo",[new ki(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new ht("mo",[new ki(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return l8(o)}return n},Uk=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Tt({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:i}=e,o=t[0],s=t[1],c,d=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,d="(",h=")";break;case"\\\\bracefrac":c=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var y=i==="\\cfrac",v=null;return y||i.startsWith("\\d")?v="display":i.startsWith("\\t")&&(v="text"),Uk({type:"genfrac",mode:n.mode,numer:o,denom:s,continued:y,hasBarLine:c,leftDelim:d,rightDelim:h,barSize:null},v)},htmlBuilder:Joe,mathmlBuilder:ele}),Tt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var $k=["display","text","script","scriptscript"],Hk=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],o=t[5],s=o6(t[0]),c=s.type==="atom"&&s.family==="open"?Hk(s.text):null,d=o6(t[1]),h=d.type==="atom"&&d.family==="close"?Hk(d.text):null,y=An(t[2],"size"),v,S=null;y.isBlank?v=!0:(S=y.value,v=S.number>0);var T=null,E=t[3];if(E.type==="ordgroup"){if(E.body.length>0){var C=An(E.body[0],"textord");T=$k[Number(C.text)]}}else E=An(E,"textord"),T=$k[Number(E.text)];return Uk({type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:v,barSize:S,leftDelim:c,rightDelim:h},T)}}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:An(t[0],"size").value,token:o}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=An(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],d=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:c,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null}}});var qk=(e,t)=>{var n=t.style,i,o;e.type==="supsub"?(i=e.sup?tr(e.sup,t.havingStyle(n.sup()),t):tr(e.sub,t.havingStyle(n.sub()),t),o=An(e.base,"horizBrace")):o=An(e,"horizBrace");var s=tr(o.base,t.havingBaseStyle(un.DISPLAY)),c=u6(o,t),d;if(o.isOver?(d=er({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]}),d.children[0].children[0].children[1].classes.push("svg-align")):(d=er({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]}),d.children[0].children[0].children[0].classes.push("svg-align")),i){var h=lt(["minner",o.isOver?"mover":"munder"],[d],t);o.isOver?d=er({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):d=er({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return lt(["minner",o.isOver?"mover":"munder"],[d],t)},tle=(e,t)=>{var n=s6(e.label);return new ht(e.isOver?"mover":"munder",[Cr(e.base,t),n])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:qk,mathmlBuilder:tle}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],o=An(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Ni(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1);return voe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=$d(e.body,t);return n instanceof ht||(n=new ht("mrow",[n])),n.setAttribute("href",e.href),n}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=An(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<i.length;s++){var c=i[s];c==="~"&&(c="\\textasciitilde"),o.push({type:"textord",mode:"text",text:c})}var d={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:Ni(d)}}}),Tt({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:Ni(t[0])}},htmlBuilder(e,t){var n=qi(e.body,t,!1);return ff(n)},mathmlBuilder(e,t){return new ht("mrow",Al(e.body,t))}}),Tt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:o}=e,s=An(t[0],"raw").string,c=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var d,h={};switch(i){case"\\htmlClass":h.class=s,d={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,d={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,d={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var y=s.split(","),v=0;v<y.length;v++){var S=y[v],T=S.indexOf("=");if(T<0)throw new ft("\\htmlData key/value '"+S+"' missing equals sign");var E=S.slice(0,T),C=S.slice(T+1);h["data-"+E.trim()]=C}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:Ni(c)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=qi(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=lt(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,t)=>$d(e.body,t)}),Tt({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:Ni(t[0]),mathml:Ni(t[1])}},htmlBuilder:(e,t)=>{var n=qi(e.html,t,!1);return ff(n)},mathmlBuilder:(e,t)=>$d(e.mathml,t)});var E8=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 ft("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!HN(i))throw new ft("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Tt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},c={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 S=y[v].split("=");if(S.length===2){var T=S[1].trim();switch(S[0].trim()){case"alt":d=T;break;case"width":o=E8(T);break;case"height":s=E8(T);break;case"totalheight":c=E8(T);break;default:throw new ft("Invalid key: '"+S[0]+"' in \\includegraphics.")}}}var E=An(t[0],"url").url;return d===""&&(d=E,d=d.replace(/^.*[\\/]/,""),d=d.substring(0,d.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:E})?{type:"includegraphics",mode:i.mode,alt:d,width:o,height:s,totalheight:c,src:E}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ii(e.height,t),i=0;e.totalheight.number>0&&(i=ii(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ii(e.width,t));var s={height:mt(n+i)};o>0&&(s.width=mt(o)),i>0&&(s.verticalAlign=mt(-i));var c=new ooe(e.src,e.alt,s);return c.height=n,c.depth=i,c},mathmlBuilder:(e,t)=>{var n=new ht("mglyph",[]);n.setAttribute("alt",e.alt);var i=ii(e.height,t),o=0;if(e.totalheight.number>0&&(o=ii(e.totalheight,t)-i,n.setAttribute("valign",mt(-o))),n.setAttribute("height",mt(i+o)),e.width.number>0){var s=ii(e.width,t);n.setAttribute("width",mt(s))}return n.setAttribute("src",e.src),n}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,o=An(t[0],"size");if(n.settings.strict){var s=i[1]==="m",c=o.value.unit==="mu";s?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return tk(e.dimension,t)},mathmlBuilder(e,t){var n=ii(e.dimension,t);return new lk(n)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=lt([],[tr(e.body,t)]),n=lt(["inner"],[n],t)):n=lt(["inner"],[tr(e.body,t)]);var i=lt(["fix"],[]),o=lt([e.alignment],[n,i],t),s=lt(["strut"]);return s.style.height=mt(o.height+o.depth),o.depth&&(s.style.verticalAlign=mt(-o.depth)),o.children.unshift(s),o=lt(["thinbox"],[o],t),lt(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,o=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",c=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:c}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ft("Mismatched "+e.funcName)}});var Gk=(e,t)=>{switch(t.style.size){case un.DISPLAY.size:return e.display;case un.TEXT.size:return e.text;case un.SCRIPT.size:return e.script;case un.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ni(t[0]),text:Ni(t[1]),script:Ni(t[2]),scriptscript:Ni(t[3])}},htmlBuilder:(e,t)=>{var n=Gk(e,t),i=qi(n,t,!1);return ff(i)},mathmlBuilder:(e,t)=>{var n=Gk(e,t);return $d(n,t)}});var Fk=(e,t,n,i,o,s,c)=>{e=lt([],[e]);var d=n&&lf(n),h,y;if(t){var v=tr(t,i.havingStyle(o.sup()),i);y={elem:v,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-v.depth)}}if(n){var S=tr(n,i.havingStyle(o.sub()),i);h={elem:S,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-S.height)}}var T;if(y&&h){var E=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+c;T=er({positionType:"bottom",positionData:E,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:mt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var C=e.height-c;T=er({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(y){var R=e.depth+c;T=er({positionType:"bottom",positionData:R,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:mt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var _=[T];if(h&&s!==0&&!d){var N=lt(["mspace"],[],i);N.style.marginRight=mt(s),_.unshift(N)}return lt(["mop","op-limits"],_,i)},Yk=new Set(["\\smallint"]),Vg=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=An(e.base,"op"),o=!0):s=An(e,"op");var c=t.style,d=!1;c.size===un.DISPLAY.size&&s.symbol&&!Yk.has(s.name)&&(d=!0);var h;if(s.symbol){var y=d?"Size2-Regular":"Size1-Regular",v="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(v=s.name.slice(1),s.name=v==="oiint"?"\\iint":"\\iiint"),h=xo(s.name,y,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),v.length>0){var S=h.italic,T=rk(v+"Size"+(d?"2":"1"),t);h=er({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]}),s.name="\\"+v,h.classes.unshift("mop"),h.italic=S}}else if(s.body){var E=qi(s.body,t,!0);E.length===1&&E[0]instanceof El?(h=E[0],h.classes[0]="mop"):h=lt(["mop"],E,t)}else{for(var C=[],R=1;R<s.name.length;R++)C.push(e8(s.name[R],s.mode,t));h=lt(["mop"],C,t)}var _=0,N=0;return(h instanceof El||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,N=h.italic||0),o?Fk(h,n,i,t,c,N,_):(_&&(h.style.position="relative",h.style.top=mt(_)),h)},Vb=(e,t)=>{var n;if(e.symbol)n=new ht("mo",[rs(e.name,e.mode)]),Yk.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ht("mo",Al(e.body,t));else{n=new ht("mi",[new ki(e.name.slice(1))]);var i=new ht("mo",[rs("⁡","text")]);e.parentIsSupSub?n=new ht("mrow",[n,i]):n=ok([n,i])}return n},nle={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Tt({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:i}=e,o=i;return o.length===1&&(o=nle[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Vg,mathmlBuilder:Vb}),Tt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ni(i)}},htmlBuilder:Vg,mathmlBuilder:Vb});var rle={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Tt({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:Vg,mathmlBuilder:Vb}),Tt({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:Vg,mathmlBuilder:Vb}),Tt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=rle[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Vg,mathmlBuilder:Vb});var Xk=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=An(e.base,"operatorname"),o=!0):s=An(e,"operatorname");var c;if(s.body.length>0){for(var d=s.body.map(S=>{var T="text"in S?S.text:void 0;return typeof T=="string"?{type:"textord",mode:S.mode,text:T}:S}),h=qi(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var v=h[y];v instanceof El&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=lt(["mop"],h,t)}else c=lt(["mop"],[],t);return o?Fk(c,n,i,t,t.style,0,0):c},ile=(e,t)=>{for(var n=Al(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof lk))if(s instanceof ht)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ki?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var d=n.map(v=>v.toText()).join("");n=[new ki(d)]}var h=new ht("mi",n);h.setAttribute("mathvariant","normal");var y=new ht("mo",[rs("⁡","text")]);return e.parentIsSupSub?new ht("mrow",[h,y]):ok([h,y])};Tt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:Ni(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Xk,mathmlBuilder:ile}),re("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Dh({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ff(qi(e.body,t,!1)):lt(["mord"],qi(e.body,t,!0),t)},mathmlBuilder(e,t){return $d(e.body,t,!0)}}),Tt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle()),i=Ig("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]});return lt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("mover",[Cr(e.body,t),n]);return i.setAttribute("accent","true"),i}}),Tt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:Ni(i)}},htmlBuilder:(e,t)=>{var n=qi(e.body,t.withPhantom(),!1);return ff(n)},mathmlBuilder:(e,t)=>{var n=Al(e.body,t);return new ht("mphantom",n)}}),re("\\hphantom","\\smash{\\phantom{#1}}"),Tt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=lt(["inner"],[tr(e.body,t.withPhantom())]),i=lt(["fix"],[]);return lt(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Al(Ni(e.body),t),i=new ht("mphantom",n),o=new ht("mpadded",[i]);return o.setAttribute("width","0px"),o}}),Tt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=An(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,t){var n=tr(e.body,t),i=ii(e.dy,t);return er({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ht("mpadded",[Cr(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),Tt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Tt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,o=n[0],s=An(t[0],"size"),c=An(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&An(o,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var n=lt(["mord","rule"],[],t),i=ii(e.width,t),o=ii(e.height,t),s=e.shift?ii(e.shift,t):0;return n.style.borderRightWidth=mt(i),n.style.borderTopWidth=mt(o),n.style.bottom=mt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ii(e.width,t),i=ii(e.height,t),o=e.shift?ii(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ht("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",mt(n)),c.setAttribute("height",mt(i));var d=new ht("mpadded",[c]);return o>=0?d.setAttribute("height",mt(o)):(d.setAttribute("height",mt(o)),d.setAttribute("depth",mt(-o))),d.setAttribute("voffset",mt(o)),d}});function Wk(e,t,n){for(var i=qi(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var c=i[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[c+1]==="reset-size"+t.size&&(i[s].classes[c+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return ff(i)}var Kk=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ale=(e,t)=>{var n=t.havingSize(e.size);return Wk(e.body,n,t)};Tt({type:"sizing",names:Kk,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Kk.indexOf(i)+1,body:s}},htmlBuilder:ale,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Al(e.body,n),o=new ht("mstyle",i);return o.setAttribute("mathsize",mt(n.sizeMultiplier)),o}}),Tt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,o=!1,s=!1,c=n[0]&&An(n[0],"ordgroup");if(c)for(var d="",h=0;h<c.body.length;++h){var y=c.body[h];if(d=c6(y).text,d==="t")o=!0;else if(d==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var v=t[0];return{type:"smash",mode:i.mode,body:v,smashHeight:o,smashDepth:s}},htmlBuilder:(e,t)=>{var n=lt([],[tr(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 lt(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var o=er({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return lt(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ht("mpadded",[Cr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Tt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,o=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:o}},htmlBuilder(e,t){var n=tr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Lg(n,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,s=o;t.style.id<un.TEXT.id&&(s=t.fontMetrics().xHeight);var c=o+s/4,d=n.height+n.depth+c+o,{span:h,ruleWidth:y,advanceWidth:v}=Goe(d,t),S=h.height-y;S>n.height+n.depth+c&&(c=(c+S-n.height-n.depth)/2);var T=h.height-n.height-c-y;n.style.paddingLeft=mt(v);var E=er({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 C=t.havingStyle(un.SCRIPTSCRIPT),R=tr(e.index,C,t),_=.6*(E.height-E.depth),N=er({positionType:"shift",positionData:-_,children:[{type:"elem",elem:R}]}),z=lt(["root"],[N]);return lt(["mord","sqrt"],[z,E],t)}else return lt(["mord","sqrt"],[E],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new ht("mroot",[Cr(n,t),Cr(i,t)]):new ht("msqrt",[Cr(n,t)])}});var Qk={display:un.DISPLAY,text:un.TEXT,script:un.SCRIPT,scriptscript:un.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!0,n),c=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:c,body:s}},htmlBuilder(e,t){var n=Qk[e.style],i=t.havingStyle(n).withFont("");return Wk(e.body,i,t)},mathmlBuilder(e,t){var n=Qk[e.style],i=t.havingStyle(n),o=Al(e.body,i),s=new ht("mstyle",o),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=c[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var ole=function(t,n){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(n.style.size===un.DISPLAY.size||i.alwaysHandleSupSub);return o?Vg:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===un.DISPLAY.size||i.limits);return s?Xk:null}else{if(i.type==="accent")return lf(i.base)?c8:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?qk:null}else return null}else return null};Dh({type:"supsub",htmlBuilder(e,t){var n=ole(e,t);if(n)return n(e,t);var{base:i,sup:o,sub:s}=e,c=tr(i,t),d,h,y=t.fontMetrics(),v=0,S=0,T=i&&lf(i);if(o){var E=t.havingStyle(t.style.sup());d=tr(o,E,t),T||(v=c.height-E.fontMetrics().supDrop*E.sizeMultiplier/t.sizeMultiplier)}if(s){var C=t.havingStyle(t.style.sub());h=tr(s,C,t),T||(S=c.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var R;t.style===un.DISPLAY?R=y.sup1:t.style.cramped?R=y.sup3:R=y.sup2;var _=t.sizeMultiplier,N=mt(.5/y.ptPerEm/_),z=null;if(h){var B=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof El||B)&&(z=mt(-c.italic))}var V;if(d&&h){v=Math.max(v,R,d.depth+.25*y.xHeight),S=Math.max(S,y.sub2);var L=y.defaultRuleThickness,U=4*L;if(v-d.depth-(h.height-S)<U){S=U-(v-d.depth)+h.height;var X=.8*y.xHeight-(v-d.depth);X>0&&(v+=X,S-=X)}var se=[{type:"elem",elem:h,shift:S,marginRight:N,marginLeft:z},{type:"elem",elem:d,shift:-v,marginRight:N}];V=er({positionType:"individualShift",children:se})}else if(h){S=Math.max(S,y.sub1,h.height-.8*y.xHeight);var ce=[{type:"elem",elem:h,marginLeft:z,marginRight:N}];V=er({positionType:"shift",positionData:S,children:ce})}else if(d)v=Math.max(v,R,d.depth+.25*y.xHeight),V=er({positionType:"shift",positionData:-v,children:[{type:"elem",elem:d,marginRight:N}]});else throw new Error("supsub must have either sup or sub.");var ie=a8(c,"right")||"mord";return lt([ie],[c,lt(["msupsub"],[V])],t)},mathmlBuilder(e,t){var n=!1,i,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Cr(e.base,t)];e.sub&&s.push(Cr(e.sub,t)),e.sup&&s.push(Cr(e.sup,t));var c;if(n)c=i?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===un.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===un.DISPLAY||y.limits)?c="munderover":c="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===un.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===un.DISPLAY)?c="munder":c="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===un.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===un.DISPLAY)?c="mover":c="msup"}return new ht(c,s)}}),Dh({type:"atom",htmlBuilder(e,t){return e8(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ht("mo",[rs(e.text,e.mode)]);if(e.family==="bin"){var i=s8(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Zk={mi:"italic",mn:"normal",mtext:"normal"};Dh({type:"mathord",htmlBuilder(e,t){return n6(e,t,"mathord")},mathmlBuilder(e,t){var n=new ht("mi",[rs(e.text,e.mode,t)]),i=s8(e,t)||"italic";return i!==Zk[n.type]&&n.setAttribute("mathvariant",i),n}}),Dh({type:"textord",htmlBuilder(e,t){return n6(e,t,"textord")},mathmlBuilder(e,t){var n=rs(e.text,e.mode,t),i=s8(e,t)||"normal",o;return e.mode==="text"?o=new ht("mtext",[n]):/[0-9]/.test(e.text)?o=new ht("mn",[n]):e.text==="\\prime"?o=new ht("mo",[n]):o=new ht("mi",[n]),i!==Zk[o.type]&&o.setAttribute("mathvariant",i),o}});var T8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},A8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Dh({type:"spacing",htmlBuilder(e,t){if(A8.hasOwnProperty(e.text)){var n=A8[e.text].className||"";if(e.mode==="text"){var i=n6(e,t,"textord");return i.classes.push(n),i}else return lt(["mspace",n],[e8(e.text,e.mode,t)],t)}else{if(T8.hasOwnProperty(e.text))return lt(["mspace",T8[e.text]],[],t);throw new ft('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(A8.hasOwnProperty(e.text))n=new ht("mtext",[new ki(" ")]);else{if(T8.hasOwnProperty(e.text))return new ht("mspace");throw new ft('Unknown type of space "'+e.text+'"')}return n}});var Jk=()=>{var e=new ht("mtd",[]);return e.setAttribute("width","50%"),e};Dh({type:"tag",mathmlBuilder(e,t){var n=new ht("mtable",[new ht("mtr",[Jk(),new ht("mtd",[$d(e.body,t)]),Jk(),new ht("mtd",[$d(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ez={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tz={"\\textbf":"textbf","\\textmd":"textmd"},lle={"\\textit":"textit","\\textup":"textup"},nz=(e,t)=>{var n=e.font;if(n){if(ez[n])return t.withTextFontFamily(ez[n]);if(tz[n])return t.withTextFontWeight(tz[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(lle[n])};Tt({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:i}=e,o=t[0];return{type:"text",mode:n.mode,body:Ni(o),font:i}},htmlBuilder(e,t){var n=nz(e,t),i=qi(e.body,n,!0);return lt(["mord","text"],i,n)},mathmlBuilder(e,t){var n=nz(e,t);return $d(e.body,n)}}),Tt({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=tr(e.body,t),i=Ig("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=er({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]});return lt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ht("mo",[new ki("‾")]);n.setAttribute("stretchy","true");var i=new ht("munder",[Cr(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),Tt({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=tr(e.body,t),i=t.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return er({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){return new ht("mpadded",[Cr(e.body,t)],["vcenter"])}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=rz(e),i=[],o=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push(xo(c,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return lt(["mord","text"].concat(o.sizingClasses(t)),ek(i),o)},mathmlBuilder(e,t){var n=new ki(rz(e)),i=new ht("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var rz=e=>e.body.replace(/ /g,e.star?"␣":" "),qd=ik,iz=`[ \r
	]`,sle="\\\\[a-zA-Z@]+",ule="\\\\[^\uD800-\uDFFF]",cle="("+sle+")"+iz+"*",fle=`\\\\(
|[ \r	]+
?)[ \r	]*`,C8="[̀-ͯ]",dle=new RegExp(C8+"+$"),hle="("+iz+"+)|"+(fle+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(C8+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(C8+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+cle)+("|"+ule+")");class az{constructor(t,n){this.input=t,this.settings=n,this.tokenRegex=new RegExp(hle,"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 Cl("EOF",new Go(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new ft("Unexpected character: '"+t[n]+"'",new Cl(t[n],new Go(this,n,n+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var s=t.indexOf(`
`,this.tokenRegex.lastIndex);return s===-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=s+1,this.lex()}return new Cl(o,new Go(this,n,this.tokenRegex.lastIndex))}}class ple{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ft("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,i){if(i===void 0&&(i=!1),i){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var mle=zk;re("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),re("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),re("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),re("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),re("\\@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}}),re("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),re("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var oz={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};re("\\char",function(e){var t=e.popToken(),n,i=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]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ft("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=oz[t.text],i==null||i>=n)throw new ft("Invalid base-"+n+" digit "+t.text);for(var o;(o=oz[e.future().text])!=null&&o<n;)i*=n,i+=o,e.popToken()}return"\\@char{"+i+"}"});var O8=(e,t,n,i)=>{var o=e.consumeArg().tokens;if(o.length!==1)throw new ft("\\newcommand's first argument must be a macro name");var s=o[0].text,c=e.isDefined(s);if(c&&!t)throw new ft("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!n)throw new ft("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var d=0;if(o=e.consumeArg().tokens,o.length===1&&o[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 ft("Invalid number of arguments: "+h);d=parseInt(h),o=e.consumeArg().tokens}return c&&i||e.macros.set(s,{tokens:o,numArgs:d}),""};re("\\newcommand",e=>O8(e,!1,!0,!1)),re("\\renewcommand",e=>O8(e,!0,!1,!1)),re("\\providecommand",e=>O8(e,!0,!0,!0)),re("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),re("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),re("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),qd[n],qr.math[n],qr.text[n]),""}),re("\\bgroup","{"),re("\\egroup","}"),re("~","\\nobreakspace"),re("\\lq","`"),re("\\rq","'"),re("\\aa","\\r a"),re("\\AA","\\r A"),re("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),re("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),re("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),re("ℬ","\\mathscr{B}"),re("ℰ","\\mathscr{E}"),re("ℱ","\\mathscr{F}"),re("ℋ","\\mathscr{H}"),re("ℐ","\\mathscr{I}"),re("ℒ","\\mathscr{L}"),re("ℳ","\\mathscr{M}"),re("ℛ","\\mathscr{R}"),re("ℭ","\\mathfrak{C}"),re("ℌ","\\mathfrak{H}"),re("ℨ","\\mathfrak{Z}"),re("\\Bbbk","\\Bbb{k}"),re("\\llap","\\mathllap{\\textrm{#1}}"),re("\\rlap","\\mathrlap{\\textrm{#1}}"),re("\\clap","\\mathclap{\\textrm{#1}}"),re("\\mathstrut","\\vphantom{(}"),re("\\underbar","\\underline{\\text{#1}}"),re("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),re("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),re("\\ne","\\neq"),re("≠","\\neq"),re("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),re("∉","\\notin"),re("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),re("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),re("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),re("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),re("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),re("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),re("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),re("⟂","\\perp"),re("‼","\\mathclose{!\\mkern-0.8mu!}"),re("∌","\\notni"),re("⌜","\\ulcorner"),re("⌝","\\urcorner"),re("⌞","\\llcorner"),re("⌟","\\lrcorner"),re("©","\\copyright"),re("®","\\textregistered"),re("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),re("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),re("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),re("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),re("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),re("⋮","\\vdots"),re("\\varGamma","\\mathit{\\Gamma}"),re("\\varDelta","\\mathit{\\Delta}"),re("\\varTheta","\\mathit{\\Theta}"),re("\\varLambda","\\mathit{\\Lambda}"),re("\\varXi","\\mathit{\\Xi}"),re("\\varPi","\\mathit{\\Pi}"),re("\\varSigma","\\mathit{\\Sigma}"),re("\\varUpsilon","\\mathit{\\Upsilon}"),re("\\varPhi","\\mathit{\\Phi}"),re("\\varPsi","\\mathit{\\Psi}"),re("\\varOmega","\\mathit{\\Omega}"),re("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),re("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),re("\\boxed","\\fbox{$\\displaystyle{#1}$}"),re("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),re("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),re("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),re("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),re("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lz={",":"\\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"},gle=new Set(["bin","rel"]);re("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in lz?t=lz[n]:(n.slice(0,4)==="\\not"||n in qr.math&&gle.has(qr.math[n].group))&&(t="\\dotsb"),t});var M8={")":!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};re("\\dotso",function(e){var t=e.future().text;return t in M8?"\\ldots\\,":"\\ldots"}),re("\\dotsc",function(e){var t=e.future().text;return t in M8&&t!==","?"\\ldots\\,":"\\ldots"}),re("\\cdots",function(e){var t=e.future().text;return t in M8?"\\@cdots\\,":"\\@cdots"}),re("\\dotsb","\\cdots"),re("\\dotsm","\\cdots"),re("\\dotsi","\\!\\cdots"),re("\\dotsx","\\ldots\\,"),re("\\DOTSI","\\relax"),re("\\DOTSB","\\relax"),re("\\DOTSX","\\relax"),re("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),re("\\,","\\tmspace+{3mu}{.1667em}"),re("\\thinspace","\\,"),re("\\>","\\mskip{4mu}"),re("\\:","\\tmspace+{4mu}{.2222em}"),re("\\medspace","\\:"),re("\\;","\\tmspace+{5mu}{.2777em}"),re("\\thickspace","\\;"),re("\\!","\\tmspace-{3mu}{.1667em}"),re("\\negthinspace","\\!"),re("\\negmedspace","\\tmspace-{4mu}{.2222em}"),re("\\negthickspace","\\tmspace-{5mu}{.277em}"),re("\\enspace","\\kern.5em "),re("\\enskip","\\hskip.5em\\relax"),re("\\quad","\\hskip1em\\relax"),re("\\qquad","\\hskip2em\\relax"),re("\\tag","\\@ifstar\\tag@literal\\tag@paren"),re("\\tag@paren","\\tag@literal{({#1})}"),re("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ft("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),re("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),re("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),re("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),re("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),re("\\newline","\\\\\\relax"),re("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var sz=mt(lc["Main-Regular"][84][1]-.7*lc["Main-Regular"][65][1]);re("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+sz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),re("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+sz+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),re("\\hspace","\\@ifstar\\@hspacer\\@hspace"),re("\\@hspace","\\hskip #1\\relax"),re("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),re("\\ordinarycolon",":"),re("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),re("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),re("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),re("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),re("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),re("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),re("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),re("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),re("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),re("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),re("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),re("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),re("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),re("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),re("∷","\\dblcolon"),re("∹","\\eqcolon"),re("≔","\\coloneqq"),re("≕","\\eqqcolon"),re("⩴","\\Coloneqq"),re("\\ratio","\\vcentcolon"),re("\\coloncolon","\\dblcolon"),re("\\colonequals","\\coloneqq"),re("\\coloncolonequals","\\Coloneqq"),re("\\equalscolon","\\eqqcolon"),re("\\equalscoloncolon","\\Eqqcolon"),re("\\colonminus","\\coloneq"),re("\\coloncolonminus","\\Coloneq"),re("\\minuscolon","\\eqcolon"),re("\\minuscoloncolon","\\Eqcolon"),re("\\coloncolonapprox","\\Colonapprox"),re("\\coloncolonsim","\\Colonsim"),re("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),re("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),re("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),re("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),re("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),re("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),re("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),re("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),re("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),re("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),re("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),re("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),re("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),re("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),re("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),re("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),re("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),re("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),re("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),re("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),re("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),re("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),re("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),re("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),re("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),re("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),re("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),re("\\imath","\\html@mathml{\\@imath}{ı}"),re("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),re("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),re("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),re("⟦","\\llbracket"),re("⟧","\\rrbracket"),re("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),re("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),re("⦃","\\lBrace"),re("⦄","\\rBrace"),re("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),re("⦵","\\minuso"),re("\\darr","\\downarrow"),re("\\dArr","\\Downarrow"),re("\\Darr","\\Downarrow"),re("\\lang","\\langle"),re("\\rang","\\rangle"),re("\\uarr","\\uparrow"),re("\\uArr","\\Uparrow"),re("\\Uarr","\\Uparrow"),re("\\N","\\mathbb{N}"),re("\\R","\\mathbb{R}"),re("\\Z","\\mathbb{Z}"),re("\\alef","\\aleph"),re("\\alefsym","\\aleph"),re("\\Alpha","\\mathrm{A}"),re("\\Beta","\\mathrm{B}"),re("\\bull","\\bullet"),re("\\Chi","\\mathrm{X}"),re("\\clubs","\\clubsuit"),re("\\cnums","\\mathbb{C}"),re("\\Complex","\\mathbb{C}"),re("\\Dagger","\\ddagger"),re("\\diamonds","\\diamondsuit"),re("\\empty","\\emptyset"),re("\\Epsilon","\\mathrm{E}"),re("\\Eta","\\mathrm{H}"),re("\\exist","\\exists"),re("\\harr","\\leftrightarrow"),re("\\hArr","\\Leftrightarrow"),re("\\Harr","\\Leftrightarrow"),re("\\hearts","\\heartsuit"),re("\\image","\\Im"),re("\\infin","\\infty"),re("\\Iota","\\mathrm{I}"),re("\\isin","\\in"),re("\\Kappa","\\mathrm{K}"),re("\\larr","\\leftarrow"),re("\\lArr","\\Leftarrow"),re("\\Larr","\\Leftarrow"),re("\\lrarr","\\leftrightarrow"),re("\\lrArr","\\Leftrightarrow"),re("\\Lrarr","\\Leftrightarrow"),re("\\Mu","\\mathrm{M}"),re("\\natnums","\\mathbb{N}"),re("\\Nu","\\mathrm{N}"),re("\\Omicron","\\mathrm{O}"),re("\\plusmn","\\pm"),re("\\rarr","\\rightarrow"),re("\\rArr","\\Rightarrow"),re("\\Rarr","\\Rightarrow"),re("\\real","\\Re"),re("\\reals","\\mathbb{R}"),re("\\Reals","\\mathbb{R}"),re("\\Rho","\\mathrm{P}"),re("\\sdot","\\cdot"),re("\\sect","\\S"),re("\\spades","\\spadesuit"),re("\\sub","\\subset"),re("\\sube","\\subseteq"),re("\\supe","\\supseteq"),re("\\Tau","\\mathrm{T}"),re("\\thetasym","\\vartheta"),re("\\weierp","\\wp"),re("\\Zeta","\\mathrm{Z}"),re("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),re("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),re("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),re("\\bra","\\mathinner{\\langle{#1}|}"),re("\\ket","\\mathinner{|{#1}\\rangle}"),re("\\braket","\\mathinner{\\langle{#1}\\rangle}"),re("\\Bra","\\left\\langle#1\\right|"),re("\\Ket","\\left|#1\\right\\rangle");var uz=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var h=S=>T=>{e&&(T.macros.set("|",c),o.length&&T.macros.set("\\|",d));var E=S;if(!S&&o.length){var C=T.future();C.text==="|"&&(T.popToken(),E=!0)}return{tokens:E?o:i,numArgs:0}};t.macros.set("|",h(!1)),o.length&&t.macros.set("\\|",h(!0));var y=t.consumeArg().tokens,v=t.expandTokens([...s,...y,...n]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};re("\\bra@ket",uz(!1)),re("\\bra@set",uz(!0)),re("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),re("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),re("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),re("\\angln","{\\angl n}"),re("\\blue","\\textcolor{##6495ed}{#1}"),re("\\orange","\\textcolor{##ffa500}{#1}"),re("\\pink","\\textcolor{##ff00af}{#1}"),re("\\red","\\textcolor{##df0030}{#1}"),re("\\green","\\textcolor{##28ae7b}{#1}"),re("\\gray","\\textcolor{gray}{#1}"),re("\\purple","\\textcolor{##9d38bd}{#1}"),re("\\blueA","\\textcolor{##ccfaff}{#1}"),re("\\blueB","\\textcolor{##80f6ff}{#1}"),re("\\blueC","\\textcolor{##63d9ea}{#1}"),re("\\blueD","\\textcolor{##11accd}{#1}"),re("\\blueE","\\textcolor{##0c7f99}{#1}"),re("\\tealA","\\textcolor{##94fff5}{#1}"),re("\\tealB","\\textcolor{##26edd5}{#1}"),re("\\tealC","\\textcolor{##01d1c1}{#1}"),re("\\tealD","\\textcolor{##01a995}{#1}"),re("\\tealE","\\textcolor{##208170}{#1}"),re("\\greenA","\\textcolor{##b6ffb0}{#1}"),re("\\greenB","\\textcolor{##8af281}{#1}"),re("\\greenC","\\textcolor{##74cf70}{#1}"),re("\\greenD","\\textcolor{##1fab54}{#1}"),re("\\greenE","\\textcolor{##0d923f}{#1}"),re("\\goldA","\\textcolor{##ffd0a9}{#1}"),re("\\goldB","\\textcolor{##ffbb71}{#1}"),re("\\goldC","\\textcolor{##ff9c39}{#1}"),re("\\goldD","\\textcolor{##e07d10}{#1}"),re("\\goldE","\\textcolor{##a75a05}{#1}"),re("\\redA","\\textcolor{##fca9a9}{#1}"),re("\\redB","\\textcolor{##ff8482}{#1}"),re("\\redC","\\textcolor{##f9685d}{#1}"),re("\\redD","\\textcolor{##e84d39}{#1}"),re("\\redE","\\textcolor{##bc2612}{#1}"),re("\\maroonA","\\textcolor{##ffbde0}{#1}"),re("\\maroonB","\\textcolor{##ff92c6}{#1}"),re("\\maroonC","\\textcolor{##ed5fa6}{#1}"),re("\\maroonD","\\textcolor{##ca337c}{#1}"),re("\\maroonE","\\textcolor{##9e034e}{#1}"),re("\\purpleA","\\textcolor{##ddd7ff}{#1}"),re("\\purpleB","\\textcolor{##c6b9fc}{#1}"),re("\\purpleC","\\textcolor{##aa87ff}{#1}"),re("\\purpleD","\\textcolor{##7854ab}{#1}"),re("\\purpleE","\\textcolor{##543b78}{#1}"),re("\\mintA","\\textcolor{##f5f9e8}{#1}"),re("\\mintB","\\textcolor{##edf2df}{#1}"),re("\\mintC","\\textcolor{##e0e5cc}{#1}"),re("\\grayA","\\textcolor{##f6f7f7}{#1}"),re("\\grayB","\\textcolor{##f0f1f2}{#1}"),re("\\grayC","\\textcolor{##e3e5e6}{#1}"),re("\\grayD","\\textcolor{##d6d8da}{#1}"),re("\\grayE","\\textcolor{##babec2}{#1}"),re("\\grayF","\\textcolor{##888d93}{#1}"),re("\\grayG","\\textcolor{##626569}{#1}"),re("\\grayH","\\textcolor{##3b3e40}{#1}"),re("\\grayI","\\textcolor{##21242c}{#1}"),re("\\kaBlue","\\textcolor{##314453}{#1}"),re("\\kaGreen","\\textcolor{##71B307}{#1}");var cz={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class yle{constructor(t,n,i){this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new ple(mle,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new az(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,i,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:i}=this.consumeArg(["]"])}else({tokens:o,start:n,end:i}=this.consumeArg());return this.pushToken(new Cl("EOF",i.loc)),this.pushTokens(o),new Cl("",Go.range(n,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],i=t&&t.length>0;i||this.consumeSpaces();var o=this.future(),s,c=0,d=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new ft("Extra }",s)}else if(s.text==="EOF")throw new ft("Unexpected end of input in a macro argument, expected '"+(t&&i?t[d]:"}")+"'",s);if(t&&i)if((c===0||c===1&&t[d]==="{")&&s.text===t[d]){if(++d,d===t.length){n.splice(-d,d);break}}else d=0}while(c!==0||i);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new ft("The length of delimiters doesn't match the number of args!");for(var i=n[0],o=0;o<i.length;o++){var s=this.popToken();if(i[o]!==s.text)throw new ft("Use of the macro doesn't match its definition",s)}}for(var c=[],d=0;d<t;d++)c.push(this.consumeArg(n&&n[d+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ft("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,o=n.noexpand?null:this._getExpansion(i);if(o==null||t&&o.unexpandable){if(t&&o==null&&i[0]==="\\"&&!this.isDefined(i))throw new ft("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=o.tokens,c=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(var d=s.length-1;d>=0;--d){var h=s[d];if(h.text==="#"){if(d===0)throw new ft("Incomplete placeholder at end of macro body",h);if(h=s[--d],h.text==="#")s.splice(d+1,1);else if(/^[1-9]$/.test(h.text))s.splice(d,2,...c[+h.text-1]);else throw new ft("Not a valid argument number",h)}}}return this.pushTokens(s),s.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 Cl(t)]):void 0}expandTokens(t){var n=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(i=>i.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var s=0;if(o.includes("#"))for(var c=o.replace(/##/g,"");c.includes("#"+(s+1));)++s;for(var d=new az(o,this.settings),h=[],y=d.lex();y.text!=="EOF";)h.push(y),y=d.lex();h.reverse();var v={tokens:h,numArgs:s};return v}return o}isDefined(t){return this.macros.has(t)||qd.hasOwnProperty(t)||qr.math.hasOwnProperty(t)||qr.text.hasOwnProperty(t)||cz.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:qd.hasOwnProperty(t)&&!qd[t].primitive}}var fz=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,b6=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),R8={"́":{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"}},dz={á:"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 x6{constructor(t,n){this.mode="math",this.gullet=new yle(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 ft("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 Cl("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(t,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(x6.endOfExpression.has(o.text)||n&&o.text===n||t&&qd[o.text]&&qd[o.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,o=0;o<t.length;o++){var s=t[o];if(s.type==="infix"){if(n!==-1)throw new ft("only one infix operator per group",s.token);n=o,i=s.replaceWith}}if(n!==-1&&i){var c,d,h=t.slice(0,n),y=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?c=h[0]:c={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 i==="\\\\abovefrac"?v=this.callFunction(i,[c,t[n],d],[]):v=this.callFunction(i,[c,d],[]),[v]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var o;do{var s;o=this.parseGroup(t)}while(((s=o)==null?void 0:s.type)==="internal");if(!o)throw new ft("Expected group after '"+i+"'",n);return o}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var o={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var i,o;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var c=s.text==="\\limits";n.limits=c,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new ft("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new ft("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(o)throw new ft("Double subscript",s);o=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new ft("Double superscript",s);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")),i={type:"ordgroup",mode:this.mode,body:h}}else if(b6[s.text]){var y=fz.test(s.text),v=[];for(v.push(new Cl(b6[s.text])),this.consume();;){var S=this.fetch().text;if(!b6[S]||fz.test(S)!==y)break;v.unshift(new Cl(b6[S])),this.consume()}var T=this.subparse(v);y?o={type:"ordgroup",mode:"math",body:T}:i={type:"ordgroup",mode:"math",body:T}}else break}return i||o?{type:"supsub",mode:this.mode,base:n,sup:i,sub:o}:n}parseFunction(t,n){var i=this.fetch(),o=i.text,s=qd[o];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new ft("Got function '"+o+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new ft("Can't use function '"+o+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new ft("Can't use function '"+o+"' in math mode",i);var{args:c,optArgs:d}=this.parseArguments(o,s);return this.callFunction(o,c,d,i,t)}callFunction(t,n,i,o,s){var c={funcName:t,parser:this,token:o,breakOnTokenText:s},d=qd[t];if(d&&d.handler)return d.handler(c,n,i);throw new ft("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var o=[],s=[],c=0;c<i;c++){var d=n.argTypes&&n.argTypes[c],h=c<n.numOptionalArgs;("primitive"in n&&n.primitive&&d==null||n.type==="sqrt"&&c===1&&s[0]==null)&&(d="primitive");var y=this.parseGroupOfType("argument to '"+t+"'",d,h);if(h)s.push(y);else if(y!=null)o.push(y);else throw new ft("Null argument, please report this as a bug")}return{args:o,optArgs:s}}parseGroupOfType(t,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var o=this.parseArgumentGroup(i,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new ft("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new ft("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new ft("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var o="",s;(s=this.fetch()).text!=="EOF";)o+=s.text,this.consume();return this.consume(),i.text=o,i}parseRegexGroup(t,n){for(var i=this.fetch(),o=i,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)o=c,s+=o.text,this.consume();if(s==="")throw new ft("Invalid "+n+": '"+i.text+"'",i);return i.range(o,s)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new ft("Invalid color: '"+n.text+"'",n);var o=i[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var n,i=!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",i=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new ft("Invalid size: '"+n.text+"'",n);var s={number:+(o[1]+o[2]),unit:o[3]};if(!HN(s))throw new ft("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:i}}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 i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,n){var i=this.gullet.scanArgument(t);if(i==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(o),c}parseGroup(t,n){var i=this.fetch(),o=i.text,s;if(o==="{"||o==="\\begingroup"){this.consume();var c=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,c),h=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Go.range(i,h),body:d,semisimple:o==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&o[0]==="\\"&&!cz.hasOwnProperty(o)){if(this.settings.throwOnError)throw new ft("Undefined control sequence: "+o,i);s=this.formatUnsupportedCmd(o),this.consume()}return s}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var o=t[i];if(o.type==="textord"){var s=o.text,c=t[i+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var d=t[i+2];i+1<n&&d&&d.type==="textord"&&d.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Go.range(o,d),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Go.range(o,c),text:"--"}),n-=1)}(s==="'"||s==="`")&&c.text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:Go.range(o,c),text:s+s}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),o=i.charAt(0)==="*";if(o&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new ft(`\\verb assertion failed --
                    please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:o}}dz.hasOwnProperty(n[0])&&!qr[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=dz[n[0]]+n.slice(1));var s=dle.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var c;if(qr[this.mode][n]){this.settings.strict&&this.mode==="math"&&ZT.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var d=qr[this.mode][n].group,h=Go.range(t),y;if(hoe.hasOwnProperty(d)){var v=d;y={type:"atom",mode:this.mode,family:v,loc:h,text:n}}else y={type:d,mode:this.mode,loc:h,text:n};c=y}else if(n.charCodeAt(0)>=128)this.settings.strict&&(UN(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)),c={type:"textord",mode:"text",loc:Go.range(t),text:n};else return null;if(this.consume(),s)for(var S=0;S<s[0].length;S++){var T=s[0][S];if(!R8[T])throw new ft("Unknown accent ' "+T+"'",t);var E=R8[T][this.mode]||R8[T].text;if(!E)throw new ft("Accent "+T+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:Go.range(t),label:E,isStretchy:!1,isShifty:!0,base:c}}return c}}x6.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var _8=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new x6(t,n);delete i.gullet.macros.current["\\df@tag"];var o=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new ft("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:i.subparse([new Cl("\\df@tag")])}]}return o},hz=function(t,n,i){n.textContent="";var o=D8(t,i).toNode();n.appendChild(o)};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."),hz=function(){throw new ft("KaTeX doesn't work in quirks mode.")});var vle=function(t,n){var i=D8(t,n).toMarkup();return i},ble=function(t,n){var i=new $T(n);return _8(t,i)},pz=function(t,n,i){if(i.throwOnError||!(t instanceof ft))throw t;var o=lt(["katex-error"],[new El(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+i.errorColor),o},D8=function(t,n){var i=new $T(n);try{var o=_8(t,i);return Roe(o,t,i)}catch(s){return pz(s,t,i)}},xle=function(t,n){var i=new $T(n);try{var o=_8(t,i);return _oe(o,t,i)}catch(s){return pz(s,t,i)}},Sle="0.16.44",wle={Span:kg,Anchor:W3,SymbolNode:El,SvgNode:uf,PathNode:jd,LineNode:FT},mz={version:Sle,render:hz,renderToString:vle,ParseError:ft,SETTINGS_SCHEMA:UT,__parse:ble,__renderToDomTree:D8,__renderToHTMLTree:xle,__setFontMetrics:foe,__defineSymbol:k,__defineFunction:Tt,__defineMacro:re,__domTree:wle};const Ele={},Tle=[];function Ale(e){const t=e||Ele;return function(n,i){wT(n,"element",function(o,s){const c=Array.isArray(o.properties.className)?o.properties.className:Tle,d=c.includes("language-math"),h=c.includes("math-display"),y=c.includes("math-inline");let v=h;if(!d&&!h&&!y)return;let S=s[s.length-1],T=o;if(o.tagName==="code"&&d&&S&&S.type==="element"&&S.tagName==="pre"&&(T=S,S=s[s.length-2],v=!0),!S)return;const E=Mae(T,{whitespace:"pre"});let C;try{C=mz.renderToString(E,{...t,displayMode:v,throwOnError:!0})}catch(_){const N=_,z=N.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,o],cause:N,place:o.position,ruleId:z,source:"rehype-katex"});try{C=mz.renderToString(E,{...t,displayMode:v,strict:"ignore",throwOnError:!1})}catch{C=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(_)},children:[{type:"text",value:E}]}]}}typeof C=="string"&&(C=xae(C).children);const R=S.children.indexOf(T);return S.children.splice(R,1,...C),mN})}}const Nh=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],gz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Nh,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Nh],h2:[["className","sr-only"]],img:[...Nh,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Nh,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Nh],table:[...Nh],ul:[...Nh,["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"]},Gd={}.hasOwnProperty;function Cle(e,t){let n={type:"root",children:[]};const i={schema:t?{...gz,...t}:gz,stack:[]},o=yz(i,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function yz(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Ole(e,n);case"doctype":return Mle(e,n);case"element":return Rle(e,n);case"root":return _le(e,n);case"text":return Dle(e,n)}}}function Ole(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",i=n.indexOf("-->"),s={type:"comment",value:i<0?n:n.slice(0,i)};return Bb(s,t),s}}function Mle(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Bb(n,t),n}}function Rle(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=vz(e,t.children),o=Nle(e,t.properties);e.stack.pop();let s=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&Gd.call(e.schema.ancestors,n))){const d=e.schema.ancestors[n];let h=-1;for(s=!1;++h<d.length;)e.stack.includes(d[h])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;const c={type:"element",tagName:n,properties:o,children:i};return Bb(c,t),c}function _le(e,t){const i={type:"root",children:vz(e,t.children)};return Bb(i,t),i}function Dle(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return Bb(i,t),i}function vz(e,t){const n=[];if(Array.isArray(t)){const i=t;let o=-1;for(;++o<i.length;){const s=yz(e,i[o]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function Nle(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,o=e.schema.required,s=i&&Gd.call(i,n)?i[n]:void 0,c=i&&Gd.call(i,"*")?i["*"]:void 0,d=t&&typeof t=="object"?t:{},h={};let y;for(y in d)if(Gd.call(d,y)){const v=d[y];let S=bz(e,Sz(s,y),y,v);S==null&&(S=bz(e,Sz(c,y),y,v)),S!=null&&(h[y]=S)}if(o&&Gd.call(o,n)){const v=o[n];for(y in v)Gd.call(v,y)&&!Gd.call(h,y)&&(h[y]=v[y])}return h}function bz(e,t,n,i){return t?Array.isArray(i)?kle(e,t,n,i):xz(e,t,n,i):void 0}function kle(e,t,n,i){let o=-1;const s=[];for(;++o<i.length;){const c=xz(e,t,n,i[o]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function xz(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&zle(e,n,i)){if(typeof t=="object"&&t.length>1){let o=!1,s=0;for(;++s<t.length;){const c=t[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){o=!0;break}}else if(c===i){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function zle(e,t,n){const i=e.schema.protocols&&Gd.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const o=String(n),s=o.indexOf(":"),c=o.indexOf("?"),d=o.indexOf("#"),h=o.indexOf("/");if(s<0||h>-1&&s>h||c>-1&&s>c||d>-1&&s>d)return!0;let y=-1;for(;++y<i.length;){const v=i[y];if(s===v.length&&o.slice(0,v.length)===v)return!0}return!1}function Bb(e,t){const n=AD(t);t.data&&(e.data=Rb(t.data)),n&&(e.position=n)}function Sz(e,t){let n,i=-1;if(e)for(;++i<e.length;){const o=e[i],s=typeof o=="string"?o:o[0];if(s===t)return o;s==="data*"&&(n=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Ile(e){return function(t){return Cle(t,e)}}function wz(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,o=n.indexOf(t);for(;o!==-1;)i++,o=n.indexOf(t,o+t.length);return i}function Lle(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vle(e,t,n){const o=_b((n||{}).ignore||[]),s=Ble(t);let c=-1;for(;++c<s.length;)wT(e,"text",d);function d(y,v){let S=-1,T;for(;++S<v.length;){const E=v[S],C=T?T.children:void 0;if(o(E,C?C.indexOf(E):void 0,T))return;T=E}if(T)return h(y,v)}function h(y,v){const S=v[v.length-1],T=s[c][0],E=s[c][1];let C=0;const _=S.children.indexOf(y);let N=!1,z=[];T.lastIndex=0;let B=T.exec(y.value);for(;B;){const V=B.index,L={index:B.index,input:B.input,stack:[...v,y]};let U=E(...B,L);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?T.lastIndex=V+1:(C!==V&&z.push({type:"text",value:y.value.slice(C,V)}),Array.isArray(U)?z.push(...U):U&&z.push(U),C=V+B[0].length,N=!0),!T.global)break;B=T.exec(y.value)}return N?(C<y.value.length&&z.push({type:"text",value:y.value.slice(C)}),S.children.splice(_,1,...z)):z=[y],_+z.length}}function Ble(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 i=-1;for(;++i<n.length;){const o=n[i];t.push([jle(o[0]),Ple(o[1])])}return t}function jle(e){return typeof e=="string"?new RegExp(Lle(e),"g"):e}function Ple(e){return typeof e=="function"?e:function(){return e}}const N8="phrasing",k8=["autolink","link","image","label"];function Ule(){return{transforms:[Xle],enter:{literalAutolink:Hle,literalAutolinkEmail:z8,literalAutolinkHttp:z8,literalAutolinkWww:z8},exit:{literalAutolink:Yle,literalAutolinkEmail:Fle,literalAutolinkHttp:qle,literalAutolinkWww:Gle}}}function $le(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:N8,notInConstruct:k8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:N8,notInConstruct:k8},{character:":",before:"[ps]",after:"\\/",inConstruct:N8,notInConstruct:k8}]}}function Hle(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function z8(e){this.config.enter.autolinkProtocol.call(this,e)}function qle(e){this.config.exit.autolinkProtocol.call(this,e)}function Gle(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 Fle(e){this.config.exit.autolinkEmail.call(this,e)}function Yle(e){this.exit(e)}function Xle(e){Vle(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Wle],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Kle]],{ignore:["link","linkReference"]})}function Wle(e,t,n,i,o){let s="";if(!Ez(o)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Qle(n)))return!1;const c=Zle(n+i);if(!c[0])return!1;const d={type:"link",title:null,url:s+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function Kle(e,t,n,i){return!Ez(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Qle(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 Zle(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const o=wz(e,"(");let s=wz(e,")");for(;i!==-1&&o>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function Ez(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Oh(n)||V3(n))&&(!t||n!==47)}Tz.peek=lse;function Jle(){this.buffer()}function ese(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function tse(){this.buffer()}function nse(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rse(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ise(e){this.exit(e)}function ase(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ose(e){this.exit(e)}function lse(){return"["}function Tz(e,t,n,i){const o=n.createTracker(i);let s=o.move("[^");const c=n.enter("footnoteReference"),d=n.enter("reference");return s+=o.move(n.safe(n.associationId(e),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function sse(){return{enter:{gfmFootnoteCallString:Jle,gfmFootnoteCall:ese,gfmFootnoteDefinitionLabelString:tse,gfmFootnoteDefinition:nse},exit:{gfmFootnoteCallString:rse,gfmFootnoteCall:ise,gfmFootnoteDefinitionLabelString:ase,gfmFootnoteDefinition:ose}}}function use(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Tz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,o,s,c){const d=s.createTracker(c);let h=d.move("[^");const y=s.enter("footnoteDefinition"),v=s.enter("label");return h+=d.move(s.safe(s.associationId(i),{before:h,after:"]"})),v(),h+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),h+=d.move((t?`
`:" ")+s.indentLines(s.containerFlow(i,d.current()),t?Az:cse))),y(),h}}function cse(e,t,n){return t===0?e:Az(e,t,n)}function Az(e,t,n){return(n?"":"    ")+e}const fse=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cz.peek=gse;function dse(){return{canContainEols:["delete"],enter:{strikethrough:pse},exit:{strikethrough:mse}}}function hse(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fse}],handlers:{delete:Cz}}}function pse(e){this.enter({type:"delete",children:[]},e)}function mse(e){this.exit(e)}function Cz(e,t,n,i){const o=n.createTracker(i),s=n.enter("strikethrough");let c=o.move("~~");return c+=n.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function gse(){return"~"}function yse(e){return e.length}function vse(e,t){const n=t||{},i=(n.align||[]).concat(),o=n.stringLength||yse,s=[],c=[],d=[],h=[];let y=0,v=-1;for(;++v<e.length;){const R=[],_=[];let N=-1;for(e[v].length>y&&(y=e[v].length);++N<e[v].length;){const z=bse(e[v][N]);if(n.alignDelimiters!==!1){const B=o(z);_[N]=B,(h[N]===void 0||B>h[N])&&(h[N]=B)}R.push(z)}c[v]=R,d[v]=_}let S=-1;if(typeof i=="object"&&"length"in i)for(;++S<y;)s[S]=Oz(i[S]);else{const R=Oz(i);for(;++S<y;)s[S]=R}S=-1;const T=[],E=[];for(;++S<y;){const R=s[S];let _="",N="";R===99?(_=":",N=":"):R===108?_=":":R===114&&(N=":");let z=n.alignDelimiters===!1?1:Math.max(1,h[S]-_.length-N.length);const B=_+"-".repeat(z)+N;n.alignDelimiters!==!1&&(z=_.length+z+N.length,z>h[S]&&(h[S]=z),E[S]=z),T[S]=B}c.splice(1,0,T),d.splice(1,0,E),v=-1;const C=[];for(;++v<c.length;){const R=c[v],_=d[v];S=-1;const N=[];for(;++S<y;){const z=R[S]||"";let B="",V="";if(n.alignDelimiters!==!1){const L=h[S]-(_[S]||0),U=s[S];U===114?B=" ".repeat(L):U===99?L%2?(B=" ".repeat(L/2+.5),V=" ".repeat(L/2-.5)):(B=" ".repeat(L/2),V=B):V=" ".repeat(L)}n.delimiterStart!==!1&&!S&&N.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||S)&&N.push(" "),n.alignDelimiters!==!1&&N.push(B),N.push(z),n.alignDelimiters!==!1&&N.push(V),n.padding!==!1&&N.push(" "),(n.delimiterEnd!==!1||S!==y-1)&&N.push("|")}C.push(n.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return C.join(`
`)}function bse(e){return e==null?"":String(e)}function Oz(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 xse(e,t,n,i){const o=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const c=n.indentLines(n.containerFlow(e,s.current()),Sse);return o(),c}function Sse(e,t,n){return">"+(n?"":" ")+e}function wse(e,t){return Mz(e,t.inConstruct,!0)&&!Mz(e,t.notInConstruct,!1)}function Mz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Rz(e,t,n,i){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
`&&wse(n.stack,n.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
`}function _z(e,t){const n=String(e);let i=n.indexOf(t),o=i,s=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+t.length,i=n.indexOf(t,o);return c}function Ese(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 Tse(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 Ase(e,t,n,i){const o=Tse(n),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Ese(e,n)){const S=n.enter("codeIndented"),T=n.indentLines(s,Cse);return S(),T}const d=n.createTracker(i),h=o.repeat(Math.max(_z(s,o)+1,3)),y=n.enter("codeFenced");let v=d.move(h);if(e.lang){const S=n.enter(`codeFencedLang${c}`);v+=d.move(n.safe(e.lang,{before:v,after:" ",encode:["`"],...d.current()})),S()}if(e.lang&&e.meta){const S=n.enter(`codeFencedMeta${c}`);v+=d.move(" "),v+=d.move(n.safe(e.meta,{before:v,after:`
`,encode:["`"],...d.current()})),S()}return v+=d.move(`
`),s&&(v+=d.move(s+`
`)),v+=d.move(h),y(),v}function Cse(e,t,n){return(n?"":"    ")+e}function I8(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 Ose(e,t,n,i){const o=I8(n),s=o==='"'?"Quote":"Apostrophe",c=n.enter("definition");let d=n.enter("label");const h=n.createTracker(i);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${s}`),y+=h.move(" "+o),y+=h.move(n.safe(e.title,{before:y,after:o,...h.current()})),y+=h.move(o),d()),c(),y}function Mse(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 jb(e){return"&#x"+e.toString(16).toUpperCase()+";"}function S6(e,t,n){const i=Og(e),o=Og(t);return i===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Dz.peek=Rse;function Dz(e,t,n,i){const o=Mse(n),s=n.enter("emphasis"),c=n.createTracker(i),d=c.move(o);let h=c.move(n.containerPhrasing(e,{after:o,before:d,...c.current()}));const y=h.charCodeAt(0),v=S6(i.before.charCodeAt(i.before.length-1),y,o);v.inside&&(h=jb(y)+h.slice(1));const S=h.charCodeAt(h.length-1),T=S6(i.after.charCodeAt(0),S,o);T.inside&&(h=h.slice(0,-1)+jb(S));const E=c.move(o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:v.outside},d+h+E}function Rse(e,t,n){return n.options.emphasis||"*"}function _se(e,t){let n=!1;return ET(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,ST}),!!((!e.depth||e.depth<3)&&cT(e)&&(t.options.setext||n))}function Dse(e,t,n,i){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(_se(e,n)){const v=n.enter("headingSetext"),S=n.enter("phrasing"),T=n.containerPhrasing(e,{...s.current(),before:`
`,after:`
`});return S(),v(),T+`
`+(o===1?"=":"-").repeat(T.length-(Math.max(T.lastIndexOf("\r"),T.lastIndexOf(`
`))+1))}const c="#".repeat(o),d=n.enter("headingAtx"),h=n.enter("phrasing");s.move(c+" ");let y=n.containerPhrasing(e,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(y)&&(y=jb(y.charCodeAt(0))+y.slice(1)),y=y?c+" "+y:c,n.options.closeAtx&&(y+=" "+c),h(),d(),y}Nz.peek=Nse;function Nz(e){return e.value||""}function Nse(){return"<"}kz.peek=kse;function kz(e,t,n,i){const o=I8(n),s=o==='"'?"Quote":"Apostrophe",c=n.enter("image");let d=n.enter("label");const h=n.createTracker(i);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${s}`),y+=h.move(" "+o),y+=h.move(n.safe(e.title,{before:y,after:o,...h.current()})),y+=h.move(o),d()),y+=h.move(")"),c(),y}function kse(){return"!"}zz.peek=zse;function zz(e,t,n,i){const o=e.referenceType,s=n.enter("imageReference");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("![");const y=n.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),c();const v=n.stack;n.stack=[],c=n.enter("reference");const S=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return c(),n.stack=v,s(),o==="full"||!y||y!==S?h+=d.move(S+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function zse(){return"!"}Iz.peek=Ise;function Iz(e,t,n){let i=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const c=n.unsafe[s],d=n.compilePattern(c);let h;if(c.atBreak)for(;h=d.exec(i);){let y=h.index;i.charCodeAt(y)===10&&i.charCodeAt(y-1)===13&&y--,i=i.slice(0,y)+" "+i.slice(h.index+1)}}return o+i+o}function Ise(){return"`"}function Lz(e,t){const n=cT(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))}Vz.peek=Lse;function Vz(e,t,n,i){const o=I8(n),s=o==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let d,h;if(Lz(e,n)){const v=n.stack;n.stack=[],d=n.enter("autolink");let S=c.move("<");return S+=c.move(n.containerPhrasing(e,{before:S,after:">",...c.current()})),S+=c.move(">"),d(),n.stack=v,S}d=n.enter("link"),h=n.enter("label");let y=c.move("[");return y+=c.move(n.containerPhrasing(e,{before:y,after:"](",...c.current()})),y+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),y+=c.move("<"),y+=c.move(n.safe(e.url,{before:y,after:">",...c.current()})),y+=c.move(">")):(h=n.enter("destinationRaw"),y+=c.move(n.safe(e.url,{before:y,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=n.enter(`title${s}`),y+=c.move(" "+o),y+=c.move(n.safe(e.title,{before:y,after:o,...c.current()})),y+=c.move(o),h()),y+=c.move(")"),d(),y}function Lse(e,t,n){return Lz(e,n)?"<":"["}Bz.peek=Vse;function Bz(e,t,n,i){const o=e.referenceType,s=n.enter("linkReference");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("[");const y=n.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(y+"]["),c();const v=n.stack;n.stack=[],c=n.enter("reference");const S=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return c(),n.stack=v,s(),o==="full"||!y||y!==S?h+=d.move(S+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function Vse(){return"["}function L8(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 Bse(e){const t=L8(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 jse(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 jz(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 Pse(e,t,n,i){const o=n.enter("list"),s=n.bulletCurrent;let c=e.ordered?jse(n):L8(n);const d=e.ordered?c==="."?")":".":Bse(n);let h=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const v=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&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),jz(n)===c&&v){let S=-1;for(;++S<e.children.length;){const T=e.children[S];if(T&&T.type==="listItem"&&T.children&&T.children[0]&&T.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=d),n.bulletCurrent=c;const y=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=s,o(),y}function Use(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 $se(e,t,n,i){const o=Use(n);let s=n.bulletCurrent||L8(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=n.createTracker(i);d.move(s+" ".repeat(c-s.length)),d.shift(c);const h=n.enter("listItem"),y=n.indentLines(n.containerFlow(e,d.current()),v);return h(),y;function v(S,T,E){return T?(E?"":" ".repeat(c))+S:(E?s:s+" ".repeat(c-s.length))+S}}function Hse(e,t,n,i){const o=n.enter("paragraph"),s=n.enter("phrasing"),c=n.containerPhrasing(e,i);return s(),o(),c}const qse=_b(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gse(e,t,n,i){return(e.children.some(function(c){return qse(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Fse(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Pz.peek=Yse;function Pz(e,t,n,i){const o=Fse(n),s=n.enter("strong"),c=n.createTracker(i),d=c.move(o+o);let h=c.move(n.containerPhrasing(e,{after:o,before:d,...c.current()}));const y=h.charCodeAt(0),v=S6(i.before.charCodeAt(i.before.length-1),y,o);v.inside&&(h=jb(y)+h.slice(1));const S=h.charCodeAt(h.length-1),T=S6(i.after.charCodeAt(0),S,o);T.inside&&(h=h.slice(0,-1)+jb(S));const E=c.move(o+o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:v.outside},d+h+E}function Yse(e,t,n){return n.options.strong||"*"}function Xse(e,t,n,i){return n.safe(e.value,i)}function Wse(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 Kse(e,t,n){const i=(jz(n)+(n.options.ruleSpaces?" ":"")).repeat(Wse(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Uz={blockquote:xse,break:Rz,code:Ase,definition:Ose,emphasis:Dz,hardBreak:Rz,heading:Dse,html:Nz,image:kz,imageReference:zz,inlineCode:Iz,link:Vz,linkReference:Bz,list:Pse,listItem:$se,paragraph:Hse,root:Gse,strong:Pz,text:Xse,thematicBreak:Kse};function Qse(){return{enter:{table:Zse,tableData:$z,tableHeader:$z,tableRow:eue},exit:{codeText:tue,table:Jse,tableData:V8,tableHeader:V8,tableRow:V8}}}function Zse(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 Jse(e){this.exit(e),this.data.inTable=void 0}function eue(e){this.enter({type:"tableRow",children:[]},e)}function V8(e){this.exit(e)}function $z(e){this.enter({type:"tableCell",children:[]},e)}function tue(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nue));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nue(e,t){return t==="|"?t:e}function rue(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,o=t.stringLength,s=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:c,tableCell:h,tableRow:d}};function c(E,C,R,_){return y(v(E,R,_),E.align)}function d(E,C,R,_){const N=S(E,R,_),z=y([N]);return z.slice(0,z.indexOf(`
`))}function h(E,C,R,_){const N=R.enter("tableCell"),z=R.enter("phrasing"),B=R.containerPhrasing(E,{..._,before:s,after:s});return z(),N(),B}function y(E,C){return vse(E,{align:C,alignDelimiters:i,padding:n,stringLength:o})}function v(E,C,R){const _=E.children;let N=-1;const z=[],B=C.enter("table");for(;++N<_.length;)z[N]=S(_[N],C,R);return B(),z}function S(E,C,R){const _=E.children;let N=-1;const z=[],B=C.enter("tableRow");for(;++N<_.length;)z[N]=h(_[N],E,C,R);return B(),z}function T(E,C,R){let _=Uz.inlineCode(E,C,R);return R.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function iue(){return{exit:{taskListCheckValueChecked:Hz,taskListCheckValueUnchecked:Hz,paragraph:oue}}}function aue(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lue}}}function Hz(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function oue(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 i=n.children[0];if(i&&i.type==="text"){const o=t.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function lue(e,t,n,i){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=n.createTracker(i);s&&d.move(c);let h=Uz.listItem(e,t,n,{...i,...d.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),h;function y(v){return v+c}}function sue(){return[Ule(),sse(),dse(),Qse(),iue()]}function uue(e){return{extensions:[$le(),use(e),hse(),rue(e),aue()]}}const cue={tokenize:gue,partial:!0},qz={tokenize:yue,partial:!0},Gz={tokenize:vue,partial:!0},Fz={tokenize:bue,partial:!0},fue={tokenize:xue,partial:!0},Yz={name:"wwwAutolink",tokenize:pue,previous:Wz},Xz={name:"protocolAutolink",tokenize:mue,previous:Kz},pf={name:"emailAutolink",tokenize:hue,previous:Qz},fc={};function due(){return{text:fc}}let kh=48;for(;kh<123;)fc[kh]=pf,kh++,kh===58?kh=65:kh===91&&(kh=97);fc[43]=pf,fc[45]=pf,fc[46]=pf,fc[95]=pf,fc[72]=[pf,Xz],fc[104]=[pf,Xz],fc[87]=[pf,Yz],fc[119]=[pf,Yz];function hue(e,t,n){const i=this;let o,s;return c;function c(S){return!B8(S)||!Qz.call(i,i.previous)||j8(i.events)?n(S):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(S))}function d(S){return B8(S)?(e.consume(S),d):S===64?(e.consume(S),h):n(S)}function h(S){return S===46?e.check(fue,v,y)(S):S===45||S===95||Ha(S)?(s=!0,e.consume(S),h):v(S)}function y(S){return e.consume(S),o=!0,h}function v(S){return s&&o&&go(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(S)):n(S)}}function pue(e,t,n){const i=this;return o;function o(c){return c!==87&&c!==119||!Wz.call(i,i.previous)||j8(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cue,e.attempt(qz,e.attempt(Gz,s),n),n)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function mue(e,t,n){const i=this;let o="",s=!1;return c;function c(S){return(S===72||S===104)&&Kz.call(i,i.previous)&&!j8(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(S),e.consume(S),d):n(S)}function d(S){if(go(S)&&o.length<5)return o+=String.fromCodePoint(S),e.consume(S),d;if(S===58){const T=o.toLowerCase();if(T==="http"||T==="https")return e.consume(S),h}return n(S)}function h(S){return S===47?(e.consume(S),s?y:(s=!0,h)):n(S)}function y(S){return S===null||L3(S)||Ar(S)||Oh(S)||V3(S)?n(S):e.attempt(qz,e.attempt(Gz,v),n)(S)}function v(S){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(S)}}function gue(e,t,n){let i=0;return o;function o(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),o):c===46&&i===3?(e.consume(c),s):n(c)}function s(c){return c===null?n(c):t(c)}}function yue(e,t,n){let i,o,s;return c;function c(y){return y===46||y===95?e.check(Fz,h,d)(y):y===null||Ar(y)||Oh(y)||y!==45&&V3(y)?h(y):(s=!0,e.consume(y),c)}function d(y){return y===95?i=!0:(o=i,i=void 0),e.consume(y),c}function h(y){return o||i||!s?n(y):t(y)}}function vue(e,t){let n=0,i=0;return o;function o(c){return c===40?(n++,e.consume(c),o):c===41&&i<n?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Fz,t,s)(c):c===null||Ar(c)||Oh(c)?t(c):(e.consume(c),o)}function s(c){return c===41&&i++,e.consume(c),o}}function bue(e,t,n){return i;function i(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),i):d===38?(e.consume(d),s):d===93?(e.consume(d),o):d===60||d===null||Ar(d)||Oh(d)?t(d):n(d)}function o(d){return d===null||d===40||d===91||Ar(d)||Oh(d)?t(d):i(d)}function s(d){return go(d)?c(d):n(d)}function c(d){return d===59?(e.consume(d),i):go(d)?(e.consume(d),c):n(d)}}function xue(e,t,n){return i;function i(s){return e.consume(s),o}function o(s){return Ha(s)?n(s):t(s)}}function Wz(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ar(e)}function Kz(e){return!go(e)}function Qz(e){return!(e===47||B8(e))}function B8(e){return e===43||e===45||e===46||e===95||Ha(e)}function j8(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Sue={tokenize:Rue,partial:!0};function wue(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Cue,continuation:{tokenize:Oue},exit:Mue}},text:{91:{name:"gfmFootnoteCall",tokenize:Aue},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Eue,resolveTo:Tue}}}}function Eue(e,t,n){const i=this;let o=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;o--;){const h=i.events[o][1];if(h.type==="labelImage"){c=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(!c||!c._balanced)return n(h);const y=cu(i.sliceSerialize({start:c.end,end:i.now()}));return y.codePointAt(0)!==94||!s.includes(y.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function Tue(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 i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",c,t],["exit",c,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...d),e}function Aue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return d;function d(S){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(S),e.exit("gfmFootnoteCallLabelMarker"),h}function h(S){return S!==94?n(S):(e.enter("gfmFootnoteCallMarker"),e.consume(S),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",y)}function y(S){if(s>999||S===93&&!c||S===null||S===91||Ar(S))return n(S);if(S===93){e.exit("chunkString");const T=e.exit("gfmFootnoteCallString");return o.includes(cu(i.sliceSerialize(T)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(S),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(S)}return Ar(S)||(c=!0),s++,e.consume(S),S===92?v:y}function v(S){return S===91||S===92||S===93?(e.consume(S),s++,y):y(S)}}function Cue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,d;return h;function h(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),y}function y(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):n(C)}function v(C){if(c>999||C===93&&!d||C===null||C===91||Ar(C))return n(C);if(C===93){e.exit("chunkString");const R=e.exit("gfmFootnoteDefinitionLabelString");return s=cu(i.sliceSerialize(R)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),T}return Ar(C)||(d=!0),c++,e.consume(C),C===92?S:v}function S(C){return C===91||C===92||C===93?(e.consume(C),c++,v):v(C)}function T(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),o.includes(s)||o.push(s),Nn(e,E,"gfmFootnoteDefinitionWhitespace")):n(C)}function E(C){return t(C)}}function Oue(e,t,n){return e.check(Tb,t,e.attempt(Sue,t,n))}function Mue(e){e.exit("gfmFootnoteDefinition")}function Rue(e,t,n){const i=this;return Nn(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(s):n(s)}}function _ue(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:o};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(c,d){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let y=h;for(;y--;)if(c[y][0]==="exit"&&c[y][1].type==="strikethroughSequenceTemporary"&&c[y][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[y][1].end.offset-c[y][1].start.offset){c[h][1].type="strikethroughSequence",c[y][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},c[y][1].start),end:Object.assign({},c[h][1].end)},S={type:"strikethroughText",start:Object.assign({},c[y][1].end),end:Object.assign({},c[h][1].start)},T=[["enter",v,d],["enter",c[y][1],d],["exit",c[y][1],d],["enter",S,d]],E=d.parser.constructs.insideSpan.null;E&&wl(T,T.length,0,B3(E,c.slice(y+1,h),d)),wl(T,T.length,0,[["exit",S,d],["enter",c[h][1],d],["exit",c[h][1],d],["exit",v,d]]),wl(c,y-1,h-y+3,T),h=y+T.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,d,h){const y=this.previous,v=this.events;let S=0;return T;function T(C){return y===126&&v[v.length-1][1].type!=="characterEscape"?h(C):(c.enter("strikethroughSequenceTemporary"),E(C))}function E(C){const R=Og(y);if(C===126)return S>1?h(C):(c.consume(C),S++,E);if(S<2&&!n)return h(C);const _=c.exit("strikethroughSequenceTemporary"),N=Og(C);return _._open=!N||N===2&&!!R,_._close=!R||R===2&&!!N,d(C)}}}class Due{constructor(){this.map=[]}add(t,n,i){Nue(this,t,n,i)}consume(t){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let o=i.pop();for(;o;){for(const s of o)t.push(s);o=i.pop()}this.map.length=0}}function Nue(e,t,n,i){let o=0;if(!(n===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...i);return}o+=1}e.map.push([t,n,i])}}function kue(e,t){let n=!1;const i=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function zue(){return{flow:{null:{name:"table",tokenize:Iue,resolveAll:Lue}}}}function Iue(e,t,n){const i=this;let o=0,s=0,c;return d;function d(ie){let ue=i.events.length-1;for(;ue>-1;){const K=i.events[ue][1].type;if(K==="lineEnding"||K==="linePrefix")ue--;else break}const $=ue>-1?i.events[ue][1].type:null,le=$==="tableHead"||$==="tableRow"?U:h;return le===U&&i.parser.lazy[i.now().line]?n(ie):le(ie)}function h(ie){return e.enter("tableHead"),e.enter("tableRow"),y(ie)}function y(ie){return ie===124||(c=!0,s+=1),v(ie)}function v(ie){return ie===null?n(ie):It(ie)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),E):n(ie):Vn(ie)?Nn(e,v,"whitespace")(ie):(s+=1,c&&(c=!1,o+=1),ie===124?(e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),c=!0,v):(e.enter("data"),S(ie)))}function S(ie){return ie===null||ie===124||Ar(ie)?(e.exit("data"),v(ie)):(e.consume(ie),ie===92?T:S)}function T(ie){return ie===92||ie===124?(e.consume(ie),S):S(ie)}function E(ie){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(ie):(e.enter("tableDelimiterRow"),c=!1,Vn(ie)?Nn(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):C(ie))}function C(ie){return ie===45||ie===58?_(ie):ie===124?(c=!0,e.enter("tableCellDivider"),e.consume(ie),e.exit("tableCellDivider"),R):L(ie)}function R(ie){return Vn(ie)?Nn(e,_,"whitespace")(ie):_(ie)}function _(ie){return ie===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),N):ie===45?(s+=1,N(ie)):ie===null||It(ie)?V(ie):L(ie)}function N(ie){return ie===45?(e.enter("tableDelimiterFiller"),z(ie)):L(ie)}function z(ie){return ie===45?(e.consume(ie),z):ie===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(ie),e.exit("tableDelimiterMarker"),B):(e.exit("tableDelimiterFiller"),B(ie))}function B(ie){return Vn(ie)?Nn(e,V,"whitespace")(ie):V(ie)}function V(ie){return ie===124?C(ie):ie===null||It(ie)?!c||o!==s?L(ie):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(ie)):L(ie)}function L(ie){return n(ie)}function U(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||It(ie)?(e.exit("tableRow"),t(ie)):Vn(ie)?Nn(e,X,"whitespace")(ie):(e.enter("data"),se(ie))}function se(ie){return ie===null||ie===124||Ar(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 Lue(e,t){let n=-1,i=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,y,v,S;const T=new Due;for(;++n<e.length;){const E=e[n],C=E[1];E[0]==="enter"?C.type==="tableHead"?(d=!1,h!==0&&(Zz(T,t,h,y,v),v=void 0,h=0),y={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},T.add(n,0,[["enter",y,t]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,S=void 0,s=[0,0,0,0],c=[0,n+1,0,0],d&&(d=!1,v={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},T.add(n,0,[["enter",v,t]])),o=C.type==="tableDelimiterRow"?2:v?3:1):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],S=w6(T,t,s,o,void 0,S),s=[0,0,0,0]),c[2]=n)):C.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],S=w6(T,t,s,o,void 0,S)),s=c,c=[s[1],n,0,0])):C.type==="tableHead"?(d=!0,h=n):C.type==="tableRow"||C.type==="tableDelimiterRow"?(h=n,s[1]!==0?(c[0]=c[1],S=w6(T,t,s,o,n,S)):c[1]!==0&&(S=w6(T,t,c,o,n,S)),o=0):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(c[3]=n)}for(h!==0&&Zz(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=kue(t.events,n))}return e}function w6(e,t,n,i,o,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";n[0]!==0&&(s.end=Object.assign({},Bg(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Bg(t.events,n[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const y=Bg(t.events,n[2]),v=Bg(t.events,n[3]),S={type:d,start:Object.assign({},y),end:Object.assign({},v)};if(e.add(n[2],0,[["enter",S,t]]),i!==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 C=n[2]+1,R=n[3]-n[2]-1;e.add(C,R,[])}}e.add(n[3]+1,0,[["exit",S,t]])}return o!==void 0&&(s.end=Object.assign({},Bg(t.events,o)),e.add(o,0,[["exit",s,t]]),s=void 0),s}function Zz(e,t,n,i,o){const s=[],c=Bg(t.events,n);o&&(o.end=Object.assign({},c),s.push(["exit",o,t])),i.end=Object.assign({},c),s.push(["exit",i,t]),e.add(n+1,0,s)}function Bg(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const Vue={name:"tasklistCheck",tokenize:jue};function Bue(){return{text:{91:Vue}}}function jue(e,t,n){const i=this;return o;function o(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return Ar(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):n(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):n(h)}function d(h){return It(h)?t(h):Vn(h)?e.check({tokenize:Pue},t,n)(h):n(h)}}function Pue(e,t,n){return Nn(e,i,"whitespace");function i(o){return o===null?n(o):t(o)}}function Uue(e){return LD([due(),wue(),_ue(e),zue(),Bue()])}const $ue={};function Hue(e){const t=this,n=e||$ue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Uue(n)),s.push(sue()),c.push(uue(n))}function que(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:o,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:d,mathText:c,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 i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(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 S=v.data.hChildren[0];S.type,S.tagName,S.children.push({type:"text",value:y}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(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 Gue(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=o,{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:i}};function n(s,c,d,h){const y=s.value||"",v=d.createTracker(h),S="$".repeat(Math.max(_z(y,"$")+1,2)),T=d.enter("mathFlow");let E=v.move(S);if(s.meta){const C=d.enter("mathFlowMeta");E+=v.move(d.safe(s.meta,{after:`
`,before:E,encode:["$"],...v.current()})),C()}return E+=v.move(`
`),y&&(E+=v.move(y+`
`)),E+=v.move(S),T(),E}function i(s,c,d){let h=s.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 S=-1;for(;++S<d.unsafe.length;){const T=d.unsafe[S];if(!T.atBreak)continue;const E=d.compilePattern(T);let C;for(;C=E.exec(h);){let R=C.index;h.codePointAt(R)===10&&h.codePointAt(R-1)===13&&R--,h=h.slice(0,R)+" "+h.slice(C.index+1)}}return v+h+v}function o(){return"$"}}const Fue={tokenize:Yue,concrete:!0,name:"mathFlow"},Jz={tokenize:Xue,partial:!0};function Yue(e,t,n){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=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),c++,h):c<2?n(z):(e.exit("mathFlowFenceSequence"),Nn(e,y,"whitespace")(z))}function y(z){return z===null||It(z)?S(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||It(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),S(z)):z===36?n(z):(e.consume(z),v)}function S(z){return e.exit("mathFlowFence"),i.interrupt?t(z):e.attempt(Jz,T,_)(z)}function T(z){return e.attempt({tokenize:N,partial:!0},_,E)(z)}function E(z){return(s?Nn(e,C,"linePrefix",s+1):C)(z)}function C(z){return z===null?_(z):It(z)?e.attempt(Jz,T,_)(z):(e.enter("mathFlowValue"),R(z))}function R(z){return z===null||It(z)?(e.exit("mathFlowValue"),C(z)):(e.consume(z),R)}function _(z){return e.exit("mathFlow"),t(z)}function N(z,B,V){let L=0;return Nn(z,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(ce){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),X(ce)}function X(ce){return ce===36?(L++,z.consume(ce),X):L<c?V(ce):(z.exit("mathFlowFenceSequence"),Nn(z,se,"whitespace")(ce))}function se(ce){return ce===null||It(ce)?(z.exit("mathFlowFence"),B(ce)):V(ce)}}}function Xue(e,t,n){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function Wue(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:Kue,previous:Que,name:"mathText"};function i(o,s,c){let d=0,h,y;return v;function v(R){return o.enter("mathText"),o.enter("mathTextSequence"),S(R)}function S(R){return R===36?(o.consume(R),d++,S):d<2&&!n?c(R):(o.exit("mathTextSequence"),T(R))}function T(R){return R===null?c(R):R===36?(y=o.enter("mathTextSequence"),h=0,C(R)):R===32?(o.enter("space"),o.consume(R),o.exit("space"),T):It(R)?(o.enter("lineEnding"),o.consume(R),o.exit("lineEnding"),T):(o.enter("mathTextData"),E(R))}function E(R){return R===null||R===32||R===36||It(R)?(o.exit("mathTextData"),T(R)):(o.consume(R),E)}function C(R){return R===36?(o.consume(R),h++,C):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(R)):(y.type="mathTextData",E(R))}}}function Kue(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function Que(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Zue(e){return{flow:{36:Fue},text:{36:Wue(e)}}}const Jue={};function ece(e){const t=this,n=e||Jue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Zue(n)),s.push(que()),c.push(Gue(n))}const tce=({text:e,isUser:t,onTypingUpdate:n})=>{const[i,o]=G.useState(""),[s,c]=G.useState(!0),d=G.useRef(null),h=au("settings"),y=G.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),v=G.useMemo(()=>y?{contain:"layout style",willChange:"auto",overflowWrap:"anywhere",wordBreak:"break-word"}:{},[y]);return G.useEffect(()=>{if(t||y){o(e),c(!1);return}let S=0;const E=setInterval(()=>{S<=e.length?(o(e.slice(0,S)),S++,n&&n()):(c(!1),clearInterval(E))},10);return()=>clearInterval(E)},[e,t,y]),G.useEffect(()=>{if(!s&&d.current){const S=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${S}`)}},[s]),H.jsxs(xi,{style:v,children:[H.jsx("div",{className:`chat-message-content ${t?"user":""}`,children:H.jsx(tae,{rehypePlugins:[Ale,[Ile,{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:[Hue,ece],components:{pre:({node:S,...T})=>H.jsx("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:S,...T})=>H.jsx("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:S,...T})=>H.jsx("img",{...T,alt:T.alt||"Image in message"})},children:i})}),H.jsx("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true",children:s?"":e}),s&&!y&&H.jsx("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation",children:"|"})]})};function P8(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const nce=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:i})=>{const o=()=>e.isUser?H.jsx(DY,{}):H.jsx(nte,{model:e.model}),s=()=>{const c=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${P8(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${c}${d}${h}`};return H.jsx(xi,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem",children:H.jsxs(xi,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"},children:[H.jsx(WR,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true",children:o()}),H.jsxs(xi,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":s(),children:[!e.isUser&&H.jsx(Hr,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${P8(e.model)}`,children:P8(e.model)}),H.jsx(tce,{text:e.text,isUser:e.isUser,onTypingUpdate:i}),e.isWelcomeMessage&&e.modelSelections&&H.jsx(rte,{enabledModels:e.modelSelections}),H.jsxs(xi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[t&&e.id.startsWith("system-")&&H.jsx(gg,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0},children:"Open Settings"}),H.jsx(Hr,{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"&&H.jsx(xi,{role:"status","aria-label":"AI is typing",children:H.jsx(Yv,{size:16})})]})]})})},eI=G.memo(({suggestion:e,onClick:t})=>{const n=tf();return H.jsx(qR,{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}}})});eI.displayName="SuggestionChip";const tI=G.memo(({suggestions:e,onSuggestionClick:t})=>{const n=tf();return!e||!e.length?null:H.jsx(xi,{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(i=>H.jsx(eI,{suggestion:i,onClick:()=>t(i)},i.id))})});tI.displayName="Suggestions";const rce=()=>{var B;const e=G.useId(),t=tf(),n=Yu("chat"),i=Yu("settings"),{messages:o,suggestions:s}=au("chat"),c=!n.canSend,[d,h]=G.useState(""),y=G.useRef(null),v=G.useRef(null),S=G.useRef(0),T=G.useRef(null),E=()=>{i.toggle()},C=(V=!1)=>{if(!v.current)return;const L=v.current;(L.scrollTop+L.clientHeight>=L.scrollHeight-100||V)&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"smooth"})})};G.useEffect(()=>{const V=setTimeout(()=>{C(!0)},200);return()=>clearTimeout(V)},[o.length]),G.useEffect(()=>{setTimeout(()=>C(!0),200)},[]),G.useEffect(()=>{if(!v.current)return;const V=v.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(L=>{let U=!1;L.forEach(X=>{(X.type==="childList"||X.type==="characterData")&&V.scrollTop+V.clientHeight>=V.scrollHeight-100&&(U=!0)}),U&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"auto"})})}),T.current.observe(V,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[o.length]),G.useEffect(()=>{if(!v.current)return;const V=v.current,L=V.scrollHeight;L>S.current&&V.scrollTop+V.clientHeight>=S.current-100&&requestAnimationFrame(()=>{V.scrollTo({top:L,behavior:"auto"})}),S.current=L},[o]),G.useEffect(()=>{if(o.length>0){const V=o[o.length-1];if(V.status==="SUCCESS"||V.status==="FAILED"){const L=setTimeout(()=>{C(!0)},300);return()=>clearTimeout(L)}}},[o.length>0?(B=o[o.length-1])==null?void 0:B.status:""]);const R=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>C(!0),100))},N=V=>{h(V.text)},z=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),_())};return H.jsxs(lb,{id:e,role:"dialog",open:!0,onClose:R,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}},children:[H.jsx($7,{component:"h2",sx:{p:2},children:H.jsxs(zt,{container:!0,justifyContent:"space-between",alignItems:"center",children:[H.jsx(zt,{size:"auto",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface",children:"Chart Assistant"})}),H.jsx(zt,{size:"auto",children:H.jsx(sg,{onClick:R,"aria-label":"Close chat dialog",children:H.jsx(KM,{})})})]})}),H.jsx(sb,{dividers:!0,sx:{p:0,overflow:"hidden"},children:H.jsxs(zt,{container:!0,direction:"column",sx:{height:"100%"},children:[H.jsxs(zt,{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:[o.map(V=>H.jsx(nce,{message:V,disabled:c,_onOpenSettings:E,onTypingUpdate:()=>{if(v.current){const L=v.current;L.scrollTop+L.clientHeight>=L.scrollHeight-100&&requestAnimationFrame(()=>{L.scrollTo({top:L.scrollHeight,behavior:"auto"})})}}},V.id)),H.jsx("div",{ref:y})]}),H.jsx(tI,{suggestions:s,onSuggestionClick:N}),H.jsx(zt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`},children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{size:{xs:10},children:H.jsx(xl,{value:d,disabled:c,onChange:V=>h(V.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"})}),H.jsx(zt,{size:{xs:2},container:!0,justifyContent:"flex-end",children:H.jsx(sg,{onClick:_,disabled:c,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:H.jsx(zY,{})})})]})})]})})]})};function ice(){const{commandExecutor:e}=oO(),t=G.useCallback(s=>{e.executeCommand(s)},[e]),n=G.useCallback(s=>{const c=e.onScopeChange(s);return()=>c.dispose()},[e]),i=G.useCallback(()=>e.getCurrentScope(),[e]),o=G.useSyncExternalStore(n,i);return{executeCommand:t,currentScope:o}}const ace=()=>{const e=Yu("commandPalette"),t=au("commandPalette"),{executeCommand:n}=ice(),[i]=G.useState(""),o=G.useRef(null),s=G.useRef(null),c=G.useRef(!1),d=G.useMemo(()=>{if(!t.search.trim())return t.commands;const S=t.search.toLowerCase();return t.commands.filter(T=>T.description.toLowerCase().includes(S)||T.key.toLowerCase().includes(S))},[t.commands,t.search]);G.useEffect(()=>{t.visible&&o.current&&setTimeout(()=>{o.current&&o.current.focus()},100)},[t.visible]),G.useEffect(()=>{t.visible&&o.current&&t.selectedIndex},[t.selectedIndex,t.visible]),G.useEffect(()=>{if(s.current&&t.selectedIndex>=0){const S=s.current,T=S.children[t.selectedIndex];if(T){T.focus();const E=S.getBoundingClientRect(),C=T.getBoundingClientRect();(C.top<E.top||C.bottom>E.bottom)&&T.scrollIntoView({behavior:"smooth",block:"nearest"})}}},[t.selectedIndex]);const h=G.useCallback(()=>{e.hide()},[e]),y=G.useCallback(S=>{n(S),h()},[n,h]),v=G.useCallback(S=>{e.updateSearch(S.target.value)},[e]);return t.visible?H.jsxs(lb,{open:t.visible,onClose:h,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:[H.jsx(xi,{component:"h2",id:"command-palette-title",sx:{p:2,m:0},children:H.jsx(xi,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600},children:"Command Palette"})}),H.jsxs(sb,{dividers:!0,sx:{p:2,overflow:"hidden"},children:[H.jsx(xi,{id:"command-palette-description",sx:{mb:2},children:H.jsx(Hr,{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"})}),H.jsx(xl,{ref:o,fullWidth:!0,placeholder:"Search commands...",value:t.search,onChange:v,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:S=>{if(S.key==="Enter"){if(S.preventDefault(),S.stopPropagation(),d.length>0&&t.selectedIndex>=0){const T=d[t.selectedIndex];T&&y(T.commandKey)}}else S.key==="ArrowDown"?(S.preventDefault(),S.stopPropagation(),e.moveDown()):S.key==="ArrowUp"&&(S.preventDefault(),S.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),H.jsx(T3,{ref:s,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"},children:d.map((S,T)=>H.jsx(x_,{id:`command-${T}`,role:"option","aria-selected":T===t.selectedIndex,"aria-label":`${S.description} (${S.key})`,selected:T===t.selectedIndex,tabIndex:T===t.selectedIndex?0:-1,onClick:()=>{c.current||y(S.commandKey)},onKeyDown:E=>{E.key==="Enter"?(E.preventDefault(),E.stopPropagation(),c.current=!0,setTimeout(()=>{c.current=!1},100),y(S.commandKey)):E.key==="ArrowUp"?(E.preventDefault(),E.stopPropagation(),T===0?e.moveToSearch():e.moveUp()):E.key==="ArrowDown"&&(E.preventDefault(),E.stopPropagation(),e.moveDown())},sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"},"&.Mui-selected":{bgcolor:"action.selected"}},children:H.jsx(F7,{primary:S.description,secondary:`${S.key}`})},S.commandKey))}),i&&H.jsx("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:i})]})]}):null},oce=({label:e,shortcut:t})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:7},children:H.jsx(Hr,{variant:"body2",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:5},children:H.jsx(Hr,{variant:"body2",fontWeight:300,children:t})})]}),lce=()=>{const e=G.useId(),t=Yu("help"),{items:n}=t.state,i=()=>{t.toggle()};return H.jsxs(lb,{id:e,role:"dialog",open:!0,onClose:i,maxWidth:"sm",fullWidth:!0,disablePortal:!0,children:[H.jsx(zt,{container:!0,component:$7,children:H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",children:"Keyboard Shortcuts"})})}),H.jsx(sb,{children:H.jsx(zt,{container:!0,spacing:1,children:n.map((o,s)=>H.jsxs(nu.Fragment,{children:[H.jsx(zt,{size:12,children:H.jsx(oce,{label:o.description,shortcut:o.key})},s),s!==n.length-1&&H.jsx(zt,{size:12,children:H.jsx(yg,{})})]},s))})}),H.jsx(zt,{container:!0,component:U7,children:H.jsx(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1},children:H.jsx(zt,{size:"auto",children:H.jsx(gg,{variant:"contained",color:"primary",onClick:i,children:"Close"})})})})]})},sce=()=>{const e=G.useId(),{value:t}=au("review");return H.jsx("div",{id:e,children:H.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 E6{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(i){return{isValid:!1,error:i instanceof Error?i.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"}}}}P(E6,"OPENAI_API_URL","https://api.openai.com/v1/models"),P(E6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),P(E6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const T6=10;function uce(e,t){const n=Av[e],i=n.options;return!t||!i.includes(t)?n.default:t}const Fo=({label:e,input:t,alignLabel:n="center"})=>H.jsxs(zt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1},children:[H.jsx(zt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0,children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:e})}),H.jsx(zt,{size:{xs:12,sm:6,md:8},children:t})]}),cce=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:i,onChangeVersion:o})=>{const s=uce(e,t.version),[c,d]=G.useState(!1),[h,y]=G.useState(null),v=()=>t.enabled?c?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",S=async E=>{if(!t.enabled||!E.trim()){y(null);return}d(!0);try{const C=await E6.validateApiKey(e,E);y(C.isValid)}catch{y(!1)}finally{d(!1)}};G.useEffect(()=>{const E=setTimeout(()=>{S(t.apiKey)},500);return()=>clearTimeout(E)},[t.apiKey,t.enabled,e]);const T=()=>{const E=Av[e];return E.options.map(C=>{const R=E.labels[C],_=t.version===C;return H.jsxs(Ah,{value:C,className:`llm-model-setting-row-menu-item ${_?"selected":""}`,children:[_&&H.jsx(WM,{className:"llm-model-setting-row-check-icon"}),R]},C)})};return H.jsx(Fo,{label:t.name,input:H.jsxs(zt,{container:!0,spacing:1,alignItems:"center",children:[H.jsx(zt,{children:H.jsx(nD,{checked:t.enabled,onChange:E=>n(e,E.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})}),H.jsx(zt,{size:7,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{disabled:!t.enabled,fullWidth:!0,size:"small",value:t.apiKey,onChange:E=>i(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:H.jsx(y_,{position:"end",children:H.jsx("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":c?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":"",children:c?H.jsx(Yv,{size:20}):h===!0?H.jsx(WM,{color:"success"}):h===!1?H.jsx(NY,{color:"error"}):null})})}}})})}),H.jsx(zt,{size:8,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(Sg,{value:s,onChange:E=>{const C=E.target.value;o(e,C)},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()})})})]})})},fce=()=>{const e=G.useId(),t=Yu("settings"),n=Yu("chat"),{general:i,llm:o}=t.state,[s,c]=G.useState(i),[d,h]=G.useState(o);G.useEffect(()=>{t.load()},[t]),G.useEffect(()=>{c(i),h(o)},[i,o]);const y=(z,B)=>{c(V=>({...V,[z]:B}))},v=(z,B)=>{h(V=>({...V,[z]:B}))},S=(z,B,V)=>{h(L=>({...L,models:{...L.models,[z]:{...L.models[z],[B]:B==="apiKey"&&typeof V=="string"?V.trim():V}}}))},T=()=>{t.reset();const{general:z,llm:B}=t.state;c(z),h(B)},E=()=>{t.toggle()},C=()=>{t.saveAndClose({general:s,llm:d}),n.refreshInitialMessage()},R=G.useCallback(z=>{z.stopPropagation()},[]),_=G.useCallback(z=>{z.stopPropagation(),v("expertiseLevel",z.target.value)},[v]),N=d.expertiseLevel!=="custom"||d.customInstruction.length>=T6;return H.jsxs(lb,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:z=>z.stopPropagation(),className:"settings-dialog",children:[H.jsxs(sb,{className:"settings-dialog-content",children:[H.jsx(zt,{size:"grow",children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,children:"General Settings"})}),H.jsxs(zt,{container:!0,spacing:.5,children:[H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Volume",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(J_,{value:s.volume,onChange:(z,B)=>y("volume",Number(B)),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"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Outline Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highlightColor,onChange:z=>y("highlightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Mode",input:H.jsx(Hi,{children:H.jsx(Th,{control:H.jsx(t_,{checked:s.highContrastMode,onChange:z=>y("highContrastMode",z.target.checked),size:"small"}),label:s.highContrastMode?"On":"Off",slotProps:{typography:{variant:"body2"}},"aria-label":"High Contrast Mode"})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Levels",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.highContrastLevels,onChange:z=>y("highContrastLevels",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"High Contrast Levels",min:2,max:20}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Light Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastLightColor,onChange:z=>y("highContrastLightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Light Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"High Contrast Dark Color",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"color",size:"small",value:s.highContrastDarkColor,onChange:z=>y("highContrastDarkColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"High Contrast Dark Color"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Braille Display Size",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.brailleDisplaySize,onChange:z=>y("brailleDisplaySize",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Braille Display Size"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Min Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.minFrequency,onChange:z=>y("minFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Max Frequency (Hz)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.maxFrequency,onChange:z=>y("maxFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Autoplay Duration (ms)",input:H.jsx(Hi,{fullWidth:!0,children:H.jsx(xl,{fullWidth:!0,type:"number",size:"small",value:s.autoplayDuration,onChange:z=>y("autoplayDuration",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"ARIA Mode",input:H.jsx(Hi,{children:H.jsxs(Q7,{row:!0,value:s.ariaMode,onChange:z=>y("ariaMode",z.target.value),"aria-label":"ARIA Mode",children:[H.jsx(Th,{value:"assertive",control:H.jsx(xg,{size:"small"}),label:"Assertive"}),H.jsx(Th,{value:"polite",control:H.jsx(xg,{size:"small"}),label:"Polite"})]})})})}),H.jsx(zt,{size:12,children:H.jsx(Fo,{label:"Hover Mode",input:H.jsx(Hi,{children:H.jsxs(Q7,{row:!0,value:s.hoverMode,onChange:z=>y("hoverMode",z.target.value),"aria-label":"Hover Mode",children:[H.jsx(Th,{value:"off",control:H.jsx(xg,{size:"small"}),label:"Off"}),H.jsx(Th,{value:"pointermove",control:H.jsx(xg,{size:"small"}),label:"Hover"}),H.jsx(Th,{value:"click",control:H.jsx(xg,{size:"small"}),label:"Click"})]})})})})]}),H.jsx(zt,{size:12,children:H.jsx(yg,{className:"settings-divider"})}),H.jsxs(zt,{container:!0,spacing:.5,className:"settings-section",children:[H.jsx(zt,{size:12,children:H.jsx(Hr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title",children:"LLM Settings"})}),Object.keys(d.models).map(z=>{const B=d.models[z];return H.jsx(zt,{size:12,className:"settings-model-row",children:H.jsx(cce,{modelKey:z,modelSettings:B,onToggle:(V,L)=>S(V,"enabled",L),onChangeKey:(V,L)=>S(V,"apiKey",L),onChangeVersion:(V,L)=>S(V,"version",L)})},z)}),H.jsx(zt,{size:12,className:"settings-row",children:H.jsx(Hi,{fullWidth:!0,size:"small",className:"settings-model-select",children:H.jsx(Fo,{label:"Expertise Level",input:H.jsxs(Sg,{value:d.expertiseLevel,onChange:_,onClick:R,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}},children:[H.jsx(Ah,{value:"basic",children:"Basic"}),H.jsx(Ah,{value:"intermediate",children:"Intermediate"}),H.jsx(Ah,{value:"advanced",children:"Advanced"}),H.jsx(Ah,{value:"custom",children:"Custom"})]})})})}),d.expertiseLevel==="custom"&&H.jsx(zt,{size:12,children:H.jsxs(zt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1},children:[H.jsx(zt,{size:12,sx:{py:1},children:H.jsx(Hr,{variant:"body2",fontWeight:"normal",children:"Custom Instructions"})}),H.jsx(zt,{size:12,children:H.jsx(Hi,{fullWidth:!0,children:H.jsx(k7,{minRows:3,maxRows:6,value:d.customInstruction,onChange:z=>v("customInstruction",z.target.value),style:{width:"100%",padding:"8px",border:"1px solid #ccc",borderRadius:"4px"},placeholder:"Enter custom instruction...","aria-label":"Custom Instructions"})})}),d.customInstruction.length<T6&&H.jsx(zt,{size:12,sx:{mt:1},children:H.jsxs(bR,{severity:"warning",children:["Custom instructions must be at least"," ",T6," ","characters long"]})})]})})]}),H.jsx(zt,{size:12,children:H.jsx(yg,{className:"settings-divider"})})]}),H.jsxs(zt,{container:!0,component:U7,alignItems:"center",className:"settings-footer",children:[H.jsx(zt,{size:"auto",className:"settings-grid-padding",children:H.jsx(gg,{variant:"text",color:"inherit",onClick:T,"aria-label":"Reset Settings",children:"Reset"})}),H.jsxs(zt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions",children:[H.jsx(zt,{size:"auto",children:H.jsx(gg,{variant:"outlined",color:"inherit",onClick:E,"aria-label":"Close Settings with no changes",children:"Close"})}),H.jsx(zt,{size:"auto",children:H.jsx(gg,{variant:"contained",color:"primary",onClick:C,disabled:!N,title:N?"":`Custom instructions must be at least ${T6} characters long`,"aria-label":"Save & Close Settings",children:"Save & Close"})})]})]})]})},dce={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},hce=()=>{const{enabled:e,announce:t,value:n,revision:i,message:o}=au("text"),{rotor_value:s}=au("rotor"),c=au("settings"),d=e&&n||"",h=typeof o=="string"?o:"",y=h.trim().length>0?h:t&&d?d:"",v=h.trim().length>0?h:d;return H.jsxs("div",{children:[H.jsx("div",{id:fe.TEXT_CONTAINER,children:v&&v.trim().length>0&&H.jsx("p",{children:v})}),y&&H.jsx("div",{role:"alert",style:dce,children:y},i),H.jsx("div",{id:fe.ROTOR_AREA,"aria-live":c.general.ariaMode,children:s})]})},pce=({plot:e})=>{const{tooltip:t}=au("display"),[n,i]=G.useState(!1),o=G.useRef({x:0,y:0}),s=G.useRef(null),c=G.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(o.current.x,o.current.y,0,0)}),[]);return G.useEffect(()=>{if(!e)return;const d=v=>{var S,T;o.current={x:v.clientX,y:v.clientY},(T=(S=s.current)==null?void 0:S.update)==null||T.call(S),i(!0)},h=()=>i(!0),y=()=>i(!1);return e.addEventListener(qu.MOUSE_MOVE,d),e.addEventListener(qu.MOUSE_ENTER,h),e.addEventListener(qu.MOUSE_LEAVE,y),()=>{e.removeEventListener(qu.MOUSE_MOVE,d),e.removeEventListener(qu.MOUSE_ENTER,h),e.removeEventListener(qu.MOUSE_LEAVE,y)}},[e]),H.jsx(tD,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:s,anchorEl:c}},children:H.jsx(xi,{sx:{display:"none"},children:"TooltipAnchor"})})};function mce(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 gce=()=>{const e=Yu("goToExtrema"),t=au("goToExtrema"),n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(null),[c,d]=G.useState(""),[h,y]=G.useState(!1),[v,S]=G.useState([]),[T,E]=G.useState(-1),C=G.useRef(null),R=G.useRef(null),_=G.useRef(null),N=G.useRef(null);G.useEffect(()=>{o.current&&o.current.focus()},[]);const z=G.useMemo(()=>e.getAvailableXValues(),[e]);G.useEffect(()=>{if(c.trim()==="")S(z);else{const K=c.toLowerCase();S(z.filter(oe=>String(oe).toLowerCase().includes(K)))}h&&E(K=>K<0?0:Math.min(K,Math.max(0,z.length-1)))},[c,z,h]);const B=T>=0&&v[T]!==void 0?String(v[T]):void 0,V={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":B,"aria-label":"Search and select X value",endAdornment:H.jsx(sg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:K=>{K.stopPropagation(),y(!h)},children:H.jsx(kY,{})})}};G.useEffect(()=>{if(N.current){const K=B??"";N.current.textContent=K}},[T,B]),G.useEffect(()=>{if(n.current&&i.current){const K=i.current,oe=n.current;oe.focus();const Z=K.getBoundingClientRect(),ae=oe.getBoundingClientRect();ae.bottom>Z.bottom?oe.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):ae.top<Z.top&&oe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),G.useEffect(()=>{if(h&&T>=0&&_.current){const K=_.current.querySelector(`#option-${T}`);K&&K.scrollIntoView({block:"nearest"})}},[T,h]);const L=K=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&U(oe)&&oe.navigateToExtrema(K),e.hide()};function U(K){return K!==null&&typeof K=="object"&&"navigateToExtrema"in K&&typeof K.navigateToExtrema=="function"}const X=()=>{N.current&&(N.current.textContent=""),e.hide()},se=K=>{var Z;const oe=(Z=e.activeContext)==null?void 0:Z.active;oe&&ce(oe)&&(oe.moveToXValue(K),y(!1),E(-1),d(""),e.hide())};function ce(K){return K!==null&&typeof K=="object"&&"moveToXValue"in K&&typeof K.moveToXValue=="function"}const ie=()=>{R.current?R.current.focus():C.current&&C.current.focus()},ue=K=>{N.current&&(N.current.textContent=K)},$=K=>{if(K.key==="ArrowDown")if(K.preventDefault(),K.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 oe=t.targets[t.selectedIndex+1];ue(`Selected: ${oe.label}`)}else if(K.key==="ArrowUp")if(K.preventDefault(),K.stopPropagation(),t.selectedIndex===0)ue("At first extrema option");else{e.moveUp();const oe=t.targets[t.selectedIndex-1];ue(`Selected: ${oe.label}`)}else if(K.key==="Enter"&&(K.preventDefault(),K.stopPropagation(),t.selectedIndex<t.targets.length)){const oe=t.targets[t.selectedIndex];oe&&L(oe)}},le=K=>{if(K.key==="Enter")K.preventDefault(),K.stopPropagation(),T>=0&&v[T]!==void 0&&se(v[T]);else if(K.key==="ArrowDown")K.preventDefault(),K.stopPropagation(),T===v.length-1?ue("At last search result"):(E(oe=>Math.min(oe+1,v.length-1)),v[T+1]&&ue(`Selected: ${v[T+1]}`));else if(K.key==="ArrowUp")if(K.preventDefault(),K.stopPropagation(),T===0){y(!1),E(-1);const oe=t.targets[t.selectedIndex];ue(`Returning to extrema options: ${oe.label}`),n.current&&n.current.focus()}else E(oe=>Math.max(0,oe-1)),v[T-1]&&ue(`Selected: ${v[T-1]}`)};return t.visible&&t.targets.length>0?H.jsxs(H.Fragment,{children:[H.jsx(xi,{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"}),H.jsxs(xi,{ref:o,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:[H.jsxs(xi,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[H.jsx(Hr,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600},children:"Go To"}),H.jsx(sg,{onClick:X,"aria-label":"Close dialog",size:"small",children:H.jsx(KM,{})})]}),H.jsx(xi,{id:"go-to-extrema-description",sx:{mb:2},children:H.jsx(Hr,{variant:"body2",color:"text.secondary",sx:{m:0},children:t.description||"Navigate to points of interest"})}),H.jsxs(xi,{ref:i,role:"listbox","aria-label":"Navigation targets",onKeyDown:$,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1},children:[t.targets.map((K,oe)=>{const Z=K.type==="intersection";let ae;if(Z&&K.display)ae=`${K.intersectionKind==="point"?"Point intersection":K.intersectionKind==="slope"?"Slope intersection":"Intersection"} with ${K.display.otherLines} at ${K.display.coords}`;else if(Z)ae=K.label;else{const he=K.label.split(" at ");ae=he[1]?`${he[0]} Value: ${K.value.toFixed(2)} at ${he[1]}`:`${he[0]} Value: ${K.value.toFixed(2)}`}return H.jsx(xi,{ref:oe===t.selectedIndex?n:null,id:`extrema-target-${oe}`,onClick:()=>L(K),role:"option","aria-selected":t.selectedIndex===oe,"aria-label":ae,tabIndex:0,sx:mce(t.selectedIndex===oe),children:H.jsx(Hr,{variant:"body2",sx:{fontWeight:600},children:ae})},`target-${oe}-${K.type}-${K.label}`)}),z.length>0&&H.jsxs(xi,{ref:s,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:[H.jsx(xl,{ref:C,inputRef:R,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:c,onChange:K=>{d(K.target.value),y(!0),T<0&&E(0)},onFocus:()=>{y(!0),T<0&&E(0)},onKeyDown:le,slotProps:V}),h&&v.length>0&&H.jsx(T3,{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((K,oe)=>H.jsx(S_,{id:`option-${oe}`,role:"option","aria-selected":T===oe,"aria-label":String(K),tabIndex:0,onClick:()=>se(K),onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.stopPropagation(),se(K)):Z.key==="ArrowDown"?(Z.preventDefault(),Z.stopPropagation(),E(ae=>Math.min(ae+1,v.length-1))):Z.key==="ArrowUp"&&(Z.preventDefault(),Z.stopPropagation(),E(ae=>Math.max(ae-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===oe?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}},children:H.jsx(F7,{primary:String(K)})},`${K}-${oe}`))}),H.jsx("div",{ref:N,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}})]})]})]})]}):null},yce=({plot:e})=>{const{focus:t,tooltip:n}=au("display"),i=o=>{switch(o){case"BRAILLE":return H.jsx(gH,{});case"CHAT":return H.jsx(rce,{});case"COMMAND_PALETTE":return H.jsx(ace,{});case"GO_TO_EXTREMA":return H.jsx(gce,{});case"HELP":return H.jsx(lce,{});case"REVIEW":return H.jsx(sce,{});case"SETTINGS":return H.jsx(fce,{});default:return null}};return H.jsxs(H.Fragment,{children:[n.visible&&H.jsx(pce,{plot:e}),H.jsx(hce,{}),i(t)]})};function vce({plot:e,store:t,contextValue:n}){return H.jsx(cH,{store:t,children:H.jsx(aO.Provider,{value:n,children:H.jsx(yce,{plot:e})})})}function bce(e,t){return t?t===_t.HORIZONTAL||t==="horz"?`horizontal ${e}`:t===_t.VERTICAL||t==="vert"?`vertical ${e}`:e:e}function xce(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 i=(v=t[0])==null?void 0:v[0],o=(i==null?void 0:i.layers.length)??0,s=i==null?void 0:i.layers[0],c=(s==null?void 0:s.type)??"chart";let d=c,h="";if(c===En.LINE&&Array.isArray(s==null?void 0:s.data)){const S=s.data.length;S>1?(d="multiline",h=` with ${S} groups`):d="single line"}const y=bce(d,s==null?void 0:s.orientation);return o>1?`This is a maidr plot containing ${o} layers, and this is layer 1 of ${o}: ${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 Sce({data:e,children:t}){const n=G.useRef(null);n.current===null&&(n.current=X$());const i=n.current,{plotRef:o,figureRef:s,contextValue:c,onFocusIn:d,onFocusOut:h}=F$(e,i),y=G.useMemo(()=>xce(e),[e]);return H.jsx("article",{id:`maidr-article-${e.id}`,children:H.jsxs("figure",{ref:s,id:`maidr-figure-${e.id}`,onFocus:d,onBlur:h,children:[H.jsx("div",{ref:o,tabIndex:0,role:"img","aria-label":y,title:y,style:{width:"fit-content"},children:t}),c&&o.current&&H.jsx("div",{id:`react-container-${e.id}`,children:H.jsx(vce,{plot:o.current,store:i,contextValue:c})})]})})}document.readyState==="loading"?document.addEventListener(qu.DOM_LOADED,rI):rI();function nI(e,t,n){try{const i=JSON.parse(t);RV(e)&&_V(e,i),iI(i,e)}catch(i){console.error(`Error parsing ${n} attribute:`,i)}}function rI(){const e=document.querySelectorAll(fe.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(o=>{const s=o.getAttribute(fe.MAIDR);s&&nI(o,s,"maidr")});return}const t=document.querySelectorAll(`[${fe.MAIDR_DATA}]`);if(t.forEach(o=>{const s=o.getAttribute(fe.MAIDR_DATA);s&&nI(o,s,"maidr-data")}),t.length!==0)return;const n=window.maidr;if(!n)return;const i=document.getElementById(n.id);if(!i){console.error("Plot not found for maidr:",n.id);return}iI(n,i)}function wce({node:e}){const t=G.useCallback(n=>{var i;n?n.contains(e)||n.appendChild(e):(i=e.parentNode)==null||i.removeChild(e)},[e]);return H.jsx("div",{ref:t,style:{display:"contents"}})}function iI(e,t){const n=document.createElement(fe.DIV);n.style.display="contents",t.parentNode.replaceChild(n,t),MV.createRoot(n,{identifierPrefix:e.id}).render(H.jsx(Sce,{data:e,children:H.jsx(wce,{node:t})}))}}));
//# sourceMappingURL=maidr.js.map
