leilukin-tumbleblog/modules/mathjax/es5/loader.js

1 line
18 KiB
JavaScript
Raw Normal View History

2024-06-20 14:10:42 +00:00
!function(){"use strict";var e={515:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MathJax=t.combineWithMathJax=t.combineDefaults=t.combineConfig=t.isObject=void 0;var o=r(282);function a(e){return"object"==typeof e&&null!==e}function i(e,t){var r,o;try{for(var c=n(Object.keys(t)),s=c.next();!s.done;s=c.next()){var l=s.value;"__esModule"!==l&&(!a(e[l])||!a(t[l])||t[l]instanceof Promise?null!==t[l]&&void 0!==t[l]&&(e[l]=t[l]):i(e[l],t[l]))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return e}t.isObject=a,t.combineConfig=i,t.combineDefaults=function e(t,r,o){var i,c;t[r]||(t[r]={}),t=t[r];try{for(var s=n(Object.keys(o)),l=s.next();!l.done;l=s.next()){var u=l.value;a(t[u])&&a(o[u])?e(t,u,o[u]):null==t[u]&&null!=o[u]&&(t[u]=o[u])}}catch(e){i={error:e}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(i)throw i.error}}return t},t.combineWithMathJax=function(e){return i(t.MathJax,e)},void 0===r.g.MathJax&&(r.g.MathJax={}),r.g.MathJax.version||(r.g.MathJax={version:o.VERSION,_:{},config:r.g.MathJax}),t.MathJax=r.g.MathJax},235:function(e,t,r){var n,o,a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG=t.MathJax=t.Loader=t.PathFilters=t.PackageError=t.Package=void 0;var i=r(515),c=r(265),s=r(265);Object.defineProperty(t,"Package",{enumerable:!0,get:function(){return s.Package}}),Object.defineProperty(t,"PackageError",{enumerable:!0,get:function(){return s.PackageError}});var l,u=r(525);if(t.PathFilters={source:function(e){return t.CONFIG.source.hasOwnProperty(e.name)&&(e.name=t.CONFIG.source[e.name]),!0},normalize:function(e){var t=e.name;return t.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)||(e.name="[mathjax]/"+t.replace(/^\.\//,"")),e.addExtension&&!t.match(/\.[^\/]+$/)&&(e.name+=".js"),!0},prefix:function(e){for(var r;(r=e.name.match(/^\[([^\]]*)\]/))&&t.CONFIG.paths.hasOwnProperty(r[1]);)e.name=t.CONFIG.paths[r[1]]+e.name.substr(r[0].length);return!0}},function(e){var r=i.MathJax.version;e.versions=new Map,e.ready=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];0===r.length&&(r=Array.from(c.Package.packages.keys()));var o=[];try{for(var i=a(r),s=i.next();!s.done;s=i.next()){var l=s.value,u=c.Package.packages.get(l)||new c.Package(l,!0);o.push(u.promise)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return Promise.all(o)},e.load=function(){for(var r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(0===o.length)return Promise.resolve();var s=[],l=function(r){var n=c.Package.packages.get(r);n||(n=new c.Package(r)).provides(t.CONFIG.provides[r]),n.checkNoLoad(),s.push(n.promise.then((function(){t.CONFIG.versionWarnings&&n.isLoaded&&!e.versions.has(c.Package.resolvePath(r))&&console.warn("No version information available for component ".concat(r))})))};try{for(var u=a(o),d=u.next();!d.done;d=u.next()){var f=d.value;l(f)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return c.Package.loadAll(),Promise.all(s)},e.preLoad=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=a(n),s=i.next();!s.done;s=i.next()){var l=s.value,u=c.Package.packages.get(l);u||(u=new c.Package(l,!0)).provides(t.CONFIG.provides[l]),u.loaded()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},e.defaultReady=function(){void 0!==