2026-02-19 17:13:13 -05:00
|
|
|
(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})}};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,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{Package:()=>x,PackageError:()=>p});var n={};e.r(n),e.d(n,{CONFIG:()=>L,Loader:()=>v,MathJax:()=>w,PathFilters:()=>g});const s="4.1.1",o={},a="undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof globalThis?globalThis:o;function i(e){return"object"==typeof e&&null!==e}function r(e,t,n=!1){var s;for(const o of Object.keys(t))"__esModule"!==o&&e[o]!==t[o]&&null!==t[o]&&void 0!==t[o]&&(i(e[o])&&i(t[o])?r(e[o],t[o],n||"_"===o):n&&(null===(s=Object.getOwnPropertyDescriptor(e,o))||void 0===s?void 0:s.get)||(e[o]=t[o]));return e}function d(e,t,n){e[t]||(e[t]={}),e=e[t];for(const t of Object.keys(n))i(e[t])&&i(n[t])?d(e,t,n[t]):null==e[t]&&null!=n[t]&&(e[t]=n[t]);return e}function c(e){return r(h,e)}void 0!==a.MathJax&&a.MathJax.constructor==={}.constructor||(a.MathJax={}),a.MathJax.version||(a.MathJax={version:s,_:{},config:a.MathJax});const h=a.MathJax,l="undefined"!=typeof window,u={window:l?window:null,document:l?window.document:null,os:(()=>{if(l&&window.navigator){const e=window.navigator.appVersion,t=[["Win","Windows"],["Mac","MacOS"],["X11","Unix"],["Linux","Unix"]];for(const[n,s]of t)if(e.includes(n))return s;if(window.navigator.userAgent.includes("Android"))return"Unix"}else if("undefined"!=typeof process)return{linux:"Unix",android:"Unix",aix:"Unix",freebsd:"Unix",netbsd:"Unix",openbsd:"Unix",sunos:"Unix",darwin:"MacOS",win32:"Windows",cygwin:"Windows"}[process.platform]||process.platform;return"unknown"})(),path:e=>e};"Windows"===u.os&&(u.path=e=>e.match(/^[/\\]?[a-zA-Z]:[/\\]/)?"file://"+e.replace(/\\/g,"/").replace(/^\//,""):e.replace(/^\//,"file:///"));class p extends Error{constructor(e,t){super(e),this.package=t}}class x{get canLoad(){return 0===this.dependencyCount&&!this.noLoad&&!this.isLoading&&!this.hasFailed}static loadPromise(e){const t=L[e]||{},n=t.extraLoads?v.load(...t.extraLoads):Promise.resolve(),s=t.checkReady||(()=>Promise.resolve());return n.then(()=>s())}static resolvePath(e,t=!0){const n={name:e,original:e,addExtension:t};return v.pathFilters.execute(n),n.name}static loadAll(){for(const e of this.packages.values())e.canLoad&&e.load()}constructor(e,t=!1){this.isLoaded=!1,this.result={},this.isLoading=!1,this.hasFailed=!1,this.dependents=[],this.dependencies=[],this.dependencyCount=0,this.provided=[],this.name=e,this.noLoad=t,x.packages.set(e,this),this.promise=this.makePromise(this.makeDependencies())}makeDependencies(){const e=[],t=x.packages,n=this.noLoad,s=this.name,o=[];Object.hasOwn(L.dependencies,s)?o.push(...L.dependencies[s]):"core"!==s&&o.push("core");for(const s of o){const o=t.get(s)||new x(s,n);this.dependencies.includes(o)||(o.addDependent(this,n),this.dependencies.push(o),o.isLoaded||(this.dependencyCount++,e.push(o.promise)))}return e}makePromise(e){let t=new Promise((e,t)=>{this.resolve=e,this.reject=t});const n=L[this.name]||{};return n.ready&&(t=t.then(e=>n.ready(this.name))),e.length&&(e.push(t),t=Promise.all(e).then(e=>e.join(", "))),n.failed&&t.catch(e=>n.failed(new p(e,this.name))),t}load(){if(!this.isLoaded&&!this.isLoading&&!this.noLoad){this.isLoading=!0;const e=x.resolvePath(this.name);L.require?this.loadCustom(e):this.loadScript(e)}}loadCustom(e){try{const t=L.require(e);t instanceof Promise?t.then(e=>this.result=e).then(()=>this.checkLoad()).catch(t=>this.failed("Can't load \""+e+'"\n'+t.message.trim())):(this.result=t,this.checkLoad())}catch(e){this.failed(e.message)}}loadScript(e){const t=u.document.createElement("script");t.src=e,t.charset="UTF-8",t.onload=e=>this.checkLoad(),t.onerror=t=>this.failed("Can't load \""+e+'"'),u.d
|