(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const o="4.1.1",t="undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof globalThis?globalThis:{};void 0!==t.MathJax&&t.MathJax.constructor==={}.constructor||(t.MathJax={}),t.MathJax.version||(t.MathJax={version:o,_:{},config:t.MathJax});const r=t.MathJax;var n,a,i,c;[[null===(n=r._.ui)||void 0===n?void 0:n.dialog,"core",()=>{const{DraggableDialog:e}=r._.ui.dialog.DraggableDialog;delete e.styles["@media (prefers-color-scheme: dark)"]}],[null===(a=r._.a11y)||void 0===a?void 0:a.explorer,"a11y/explorer",()=>{const e=r._.a11y.explorer.Region;for(const o of["LiveRegion","HoverRegion","ToolTip"])e[o].style.styles["@media (prefers-color-scheme: dark)"]={};e.LiveRegion.style.styles["@media (prefers-color-scheme: dark)"]["mjx-ignore"]={ignore:1},r.startup.extendHandler(e=>(delete e.documentClass.speechStyles["@media (prefers-color-scheme: dark) /* explorer */"],e))}],[null===(i=r._.output)||void 0===i?void 0:i.chtml,"output/chtml",()=>{const{CHTML:e}=r._.output.chtml_ts;delete e.commonStyles["@media (prefers-color-scheme: dark)"];const{ChtmlMaction:o}=r._.output.chtml.Wrappers.maction;delete o.styles["@media (prefers-color-scheme: dark) /* chtml maction */"]}],[null===(c=r._.output)||void 0===c?void 0:c.svg,"output/svg",()=>{const{SVG:e}=r._.output.svg_ts;delete e.commonStyles["@media (prefers-color-scheme: dark)"];const{SvgMaction:o}=r._.output.svg.Wrappers.maction;delete o.styles["@media (prefers-color-scheme: dark) /* svg maction */"]}]].forEach(([e,o,t])=>{var n;if(e)t();else{const e=r.config.loader;null!==(n=e[o])&&void 0!==n||(e[o]={});const a=e[o].checkReady;e[o].checkReady=()=>function(e,o,t,r){return new(t||(t=Promise))(function(n,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var o;e.done?n(e.value):(o=e.value,o instanceof t?o:new t(function(e){e(o)})).then(i,c)}s((r=r.apply(e,o||[])).next())})}(void 0,void 0,void 0,function*(){return a&&(yield a()),t()})}}),MathJax.loader&&MathJax.loader.checkVersion("ui/no-dark-mode",o,"extension")})();