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 1.9 kB
(()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};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,{DsfontConfiguration:()=>x});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults),o=n.combineWithMathJax,r=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=r.ConfigurationType,s=r.HandlerType,d=MathJax._.input.tex.Configuration,f=d.Configuration,p=(d.ConfigurationHandler,d.ParserConfiguration,MathJax._.input.tex.TokenMap),u=(p.parseResult,p.AbstractTokenMap,p.RegExpMap,p.AbstractParseMap,p.CharacterMap,p.DelimiterMap,p.MacroMap,p.CommandMap),c=(p.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),l=(c.splitAlignArray,c.default);new u("dsfont",{mathds:function(t,e){l.MathFont(t,e,t.options.dsfont.sans?"-ds-ss":"-ds-rm")}});const x=f.create("dsfont",{[i.HANDLER]:{[s.MACRO]:["dsfont"]},[i.OPTIONS]:{dsfont:{sans:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/dsfont","4.1.0","tex-extension"),o({_:{input:{tex:{dsfont:{DsfontConfiguration:e}}}}}),function(t,e,n=`[fonts]/${e}`){if(MathJax.loader){const o=e.replace(/-font-extension$/,"-extension"),r=MathJax.config?.startup?.output||"chtml";a(MathJax.config.loader,"paths",{[o]:n}),MathJax._.output?.[r]||a(MathJax.config.loader,"dependencies",{[`[${o}]/${r}`]:[`output/${r}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${o}]/${r}`],rendererExtensions:[o]})}}("[tex]/dsfont","mathjax-dsfont-font-extension")})();