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