UNPKG

mathjax

Version:

Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers. This package includes the packaged components (install mathjax-full to get the source

1 lines 2.59 kB
(()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};e.r(n),e.d(n,{ConfigMacrosConfiguration:()=>v});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),a=(t.MathJax,MathJax._.input.tex.HandlerTypes),i=a.ConfigurationType,r=a.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,p=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.util.Options),f=(p.isObject,p.APPEND,p.REMOVE,p.OPTIONS,p.Expandable,p.expandable),u=(p.makeArray,p.keys,p.copy,p.insert,p.defaultOptions,p.userOptions,p.selectOptions,p.selectOptionsFromKeys,p.separateOptions,p.lookup,MathJax._.input.tex.TokenMap),d=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap),l=u.CommandMap,m=u.EnvironmentMap,M=MathJax._.input.tex.ParseMethods.default,g=MathJax._.input.tex.Token,h=(g.Token,g.Macro),O=MathJax._.input.tex.newcommand.NewcommandMethods.default,x=MathJax._.input.tex.newcommand.NewcommandItems.BeginEnvItem,y="configmacros-map",b="configmacros-active-map",w="configmacros-env-map";function T(e,n,t){const o=t.parseOptions.handlers.retrieve(n),a=t.parseOptions.options[e];for(const e of Object.keys(a)){const n="string"==typeof a[e]?[a[e]]:a[e],t=Array.isArray(n[2])?new h(e,O.MacroWithTemplate,n.slice(0,2).concat(n[2])):new h(e,O.Macro,n);o.add(e,t)}}const v=s.create("configmacros",{[i.INIT]:function(e){new d(b,{}),new l(y,{}),new m(w,M.environment,{}),e.append(s.local({handler:{[r.CHARACTER]:[b],[r.MACRO]:[y],[r.ENVIRONMENT]:[w]},priority:3}))},[i.CONFIG]:function(e,n){!function(e){T("active",b,e)}(n),function(e){T("macros",y,e)}(n),function(e){const n=e.parseOptions.handlers.retrieve(w),t=e.parseOptions.options.environments;for(const e of Object.keys(t))n.add(e,new h(e,O.BeginEnv,[!0].concat(t[e])))}(n)},[i.ITEMS]:{[x.prototype.kind]:x},[i.OPTIONS]:{active:f({}),macros:f({}),environments:f({})}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/configmacros","4.1.0","tex-extension"),o({_:{input:{tex:{configmacros:{ConfigMacrosConfiguration:n}}}}})})();