(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{UnitsConfiguration:()=>f,UnitsMethods:()=>p});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=a.ConfigurationType,r=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,u=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexParser.default),l=MathJax._.input.tex.TokenMap,g=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),p=(l.EnvironmentMap,{Unit(t,e){const n=t.GetBrackets(e);let i=`\\mathrm{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},UnitFrac(t,e){const n=t.GetBrackets(e);let i=`\\nicefrac[\\mathrm]{${t.GetArgument(e)}}{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},NiceFrac(t,e){const n=t.GetBrackets(e,"\\mathrm"),i=t.GetArgument(e),a=t.GetArgument(e),o=new u(`${n}{${i}}`,Object.assign({},t.stack.env),t.configuration).mml(),r=new u(`${n}{${a}}`,Object.assign({},t.stack.env),t.configuration).mml(),s=t.options.units.ugly?{}:{bevelled:!0},c=t.create("node","mfrac",[o,r],s);t.Push(c)}});new g("units",{units:p.Unit,unitfrac:p.UnitFrac,nicefrac:p.NiceFrac});const f=c.create("units",{[o.HANDLER]:{[r.MACRO]:["units"]},[o.OPTIONS]:{units:{loose:!1,ugly:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/units","4.1.3","tex-extension"),i({_:{input:{tex:{units:{UnitsConfiguration:e}}}}})})();