UNPKG

@bokeh/bokehjs

Version:

Interactive, novel data visualization

55 lines (54 loc) 1.79 MB
/*! * Copyright (c) Anaconda, Inc., and Bokeh Contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of Anaconda nor the names of any contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ import main from "./bokeh.esm.js"; const plugin = (function(modules, entry, aliases, externals) { main.register_plugin(modules, entry, aliases); })({ 734: function _(n,c,f,i,o){i(),n(735)}, 735: function _(n,t,e,o,a){o(),e.tex2svg=function(n,t,e={}){const o=new s.TeX({packages:m.AllPackages,macros:e});return c.mathjax.document("",{InputJax:o,OutputJax:x}).convert(n,{...h,...t})},e.ascii2svg=function(n){throw new Error("not implemented")},e.mathml2svg=function(n){const t=new r.MathML({});return c.mathjax.document("",{InputJax:t,OutputJax:x}).convert(n,h)},e.find_tex=function(n){return new d.FindTeX({processEnvironments:!1,processEscapes:!1,processRefs:!1}).findMath([n])};const c=n(736),s=n(741),r=n(779),i=n(782),u=n(931),p=n(934),m=n(952),d=n(745),f=(0,u.browserAdaptor)();(0,p.RegisterHTMLHandler)(f);const x=new i.SVG({fontCache:"local"}),h={display:!0,em:16,ex:8,containerWidth:1280}}, 736: function _(e,r,n,t,a){t();var d=e(737),o=e(738),l=e(740);n.mathjax={version:d.VERSION,handlers:new o.HandlerList,document:function(e,r){return n.mathjax.handlers.document(e,r)},handleRetriesFor:l.handleRetriesFor,retryAfter:l.retryAfter,asyncLoad:null}}, 737: function _(n,c,f,i,o){i(),f.VERSION="0.0.0"}, 738: function _(t,r,n,e,o){var i,u=this&&this.__extends||(i=function(t,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},i(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),c=this&&this.__values||function(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};e();var l=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return u(r,t),r.prototype.register=function(t){return this.add(t,t.priority)},r.prototype.unregister=function(t){this.remove(t)},r.prototype.handlesDocument=function(t){var r,n;try{for(var e=c(this),o=e.next();!o.done;o=e.next()){var i=o.value.item;if(i.handlesDocument(t))return i}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}throw new Error("Can't find handler for document")},r.prototype.document=function(t,r){return void 0===r&&(r=null),this.handlesDocument(t).create(t,r)},r}(t(739).PrioritizedList);n.HandlerList=l}, 739: function _(t,i,e,r,n){r();var o=function(){function t(){this.items=[],this.items=[]}return t.prototype[Symbol.iterator]=function(){var t=0,i=this.items;return{next:function(){return{value:i[t++],done:t>i.length}}}},t.prototype.add=function(i,e){void 0===e&&(e=t.DEFAULTPRIORITY);var r=this.items.length;do{r--}while(r>=0&&e<this.items[r].priority);return this.items.splice(r+1,0,{item:i,priority:e}),i},t.prototype.remove=function(t){var i=this.items.length;do{i--}while(i>=0&&this.items[i].item!==t);i>=0&&this.items.splice(i,1)},t.DEFAULTPRIORITY=5,t}();e.PrioritizedList=o}, 740: function _(r,t,e,n,a){n(),e.handleRetriesFor=function(r){return new Promise((function t(e,n){try{e(r())}catch(r){r.retry&&r.retry instanceof Promise?r.retry.then((function(){return t(e,n)})).catch((function(r){return n(r)})):r.restart&&r.restart.isCallback?MathJax.Callback.After((function(){return t(e,n)}),r.restart):n(r)}}))},e.retryAfter=function(r){var t=new Error("MathJax retry");throw t.retry=r,t}}, 741: function _(t,e,r,o,n){var i,s=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};o();var u=t(742),c=t(743),f=t(745),d=l(t(749)),h=l(t(753)),y=l(t(756)),O=l(t(758)),g=l(t(762)),F=t(767),m=t(768);t(770);var _=function(t){function e(r){void 0===r&&(r={});var o=this,n=p((0,c.separateOptions)(r,e.OPTIONS,f.FindTeX.OPTIONS),3),i=n[0],s=n[1],a=n[2];(o=t.call(this,s)||this).findTeX=o.options.FindTeX||new f.FindTeX(a);var l=o.options.packages,u=o.configuration=e.configure(l),h=o._parseOptions=new g.default(u,[o.options,F.TagsFactory.OPTIONS]);return(0,c.userOptions)(h.options,i),u.config(o),e.tags(h,u),o.postFilters.add(d.default.cleanSubSup,-6),o.postFilters.add(d.default.setInherited,-5),o.postFilters.add(d.default.moveLimits,-4),o.postFilters.add(d.default.cleanStretchy,-3),o.postFilters.add(d.default.cleanAttributes,-2),o.postFilters.add(d.default.combineRelations,-1),o}return s(e,t),e.configure=function(t){var e=new m.ParserConfiguration(t,["tex"]);return e.init(),e},e.tags=function(t,e){F.TagsFactory.addTags(e.tags),F.TagsFactory.setDefault(t.options.tags),t.tags=F.TagsFactory.getDefault(),t.tags.configuration=t},e.prototype.setMmlFactory=function(e){t.prototype.setMmlFactory.call(this,e),this._parseOptions.nodeFactory.setMmlFactory(e)},Object.defineProperty(e.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),e.prototype.reset=function(t){void 0===t&&(t=0),this.parseOptions.tags.reset(t)},e.prototype.compile=function(t,e){this.parseOptions.clear(),this.executeFilters(this.preFilters,t,e,this.parseOptions);var r,o,n=t.display;this.latex=t.math,this.parseOptions.tags.startEquation(t);try{var i=new y.default(this.latex,{display:n,isInner:!1},this.parseOptions);r=i.mml(),o=i.stack.global}catch(t){if(!(t instanceof O.default))throw t;this.parseOptions.error=!0,r=this.options.formatError(this,t)}return r=this.parseOptions.nodeFactory.create("node","math",[r]),(null==o?void 0:o.indentalign)&&h.default.setAttribute(r,"indentalign",o.indentalign),n&&h.default.setAttribute(r,"display","block"),this.parseOptions.tags.finishEquation(t),this.parseOptions.root=r,this.executeFilters(this.postFilters,t,e,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},e.prototype.findMath=function(t){return this.findTeX.findMath(t)},e.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)},e.NAME="TeX",e.OPTIONS=a(a({},u.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120,formatError:function(t,e){return t.formatError(e)}}),e}(u.AbstractInputJax);r.TeX=_}, 742: function _(t,e,n,o,r){o();var i=t(743),u=t(744),c=function(){function t(t){void 0===t&&(t={}),this.adaptor=null,this.mmlFactory=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t),this.preFilters=new u.FunctionList,this.postFilters=new u.FunctionList}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.setAdaptor=function(t){this.adaptor=t},t.prototype.setMmlFactory=function(t){this.mmlFactory=t},t.prototype.initialize=function(){},t.prototype.reset=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},Object.defineProperty(t.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.findMath=function(t,e){return[]},t.prototype.executeFilters=function(t,e,n,o){var r={math:e,document:n,data:o};return t.execute(r),r.data},t.NAME="generic",t.OPTIONS={},t}();n.AbstractInputJax=c}, 743: function _(r,t,n,e,o){var a=this&&this.__values||function(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,a=n.call(r),i=[];try{for(;(void 0===t||t-- >0)&&!(e=a.next()).done;)i.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},l=this&&this.__spreadArray||function(r,t,n){if(n||2===arguments.length)for(var e,o=0,a=t.length;o<a;o++)!e&&o in t||(e||(e=Array.prototype.slice.call(t,0,o)),e[o]=t[o]);return r.concat(e||Array.prototype.slice.call(t))};e();var c={}.constructor;function u(r){return"object"==typeof r&&null!==r&&(r.constructor===c||r.constructor===f)}n.isObject=u,n.APPEND="[+]",n.REMOVE="[-]",n.OPTIONS={invalidOption:"warn",optionError:function(r,t){if("fatal"===n.OPTIONS.invalidOption)throw new Error(r);console.warn("MathJax: "+r)}};var f=function(){};function y(r){return Object.assign(Object.create(f.prototype),r)}function s(r){return r?Object.keys(r).concat(Object.getOwnPropertySymbols(r)):[]}function v(r){var t,n,e={};try{for(var o=a(s(r)),i=o.next();!i.done;i=o.next()){var l=i.value,c=Object.getOwnPropertyDescriptor(r,l),h=c.value;Array.isArray(h)?c.value=p([],h,!1):u(h)&&(c.value=v(h)),c.enumerable&&(e[l]=c)}}catch(r){t={error:r}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return Object.defineProperties(r.constructor===f?y({}):{},e)}function p(r,t,e){var o,c;void 0===e&&(e=!0);var y=function(o){if(e&&void 0===r[o]&&r.constructor!==f)return"symbol"==typeof o&&(o=o.toString()),n.OPTIONS.optionError('Invalid option "'.concat(o,'" (no default value).'),o),"continue";var a=t[o],c=r[o];if(!u(a)||null===c||"object"!=typeof c&&"function"!=typeof c)Array.isArray(a)?(r[o]=[],p(r[o],a,!1)):u(a)?r[o]=v(a):r[o]=a;else{var y=s(a);Array.isArray(c)&&(1===y.length&&(y[0]===n.APPEND||y[0]===n.REMOVE)&&Array.isArray(a[y[0]])||2===y.length&&y.sort().join(",")===n.APPEND+","+n.REMOVE&&Array.isArray(a[n.APPEND])&&Array.isArray(a[n.REMOVE]))?(a[n.REMOVE]&&(c=r[o]=c.filter((function(r){return a[n.REMOVE].indexOf(r)<0}))),a[n.APPEND]&&(r[o]=l(l([],i(c),!1),i(a[n.APPEND]),!1))):p(c,a,e)}};try{for(var h=a(s(t)),d=h.next();!d.done;d=h.next()){y(d.value)}}catch(r){o={error:r}}finally{try{d&&!d.done&&(c=h.return)&&c.call(h)}finally{if(o)throw o.error}}return r}function h(r){for(var t,n,e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];var i={};try{for(var l=a(e),c=l.next();!c.done;c=l.next()){var u=c.value;r.hasOwnProperty(u)&&(i[u]=r[u])}}catch(r){t={error:r}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return i}n.Expandable=f,n.expandable=y,n.makeArray=function(r){return Array.isArray(r)?r:[r]},n.keys=s,n.copy=v,n.insert=p,n.defaultOptions=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return p(r,t,!1)})),r},n.userOptions=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return p(r,t,!0)})),r},n.selectOptions=h,n.selectOptionsFromKeys=function(r,t){return h.apply(void 0,l([r],i(Object.keys(t)),!1))},n.separateOptions=function(r){for(var t,n,e,o,i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];var c=[];try{for(var u=a(i),f=u.next();!f.done;f=u.next()){var y=f.value,s={},v={};try{for(var p=(e=void 0,a(Object.keys(r||{}))),h=p.next();!h.done;h=p.next()){var d=h.value;(void 0===y[d]?v:s)[d]=r[d]}}catch(r){e={error:r}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(e)throw e.error}}c.push(s),r=v}}catch(r){t={error:r}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return c.unshift(r),c},n.lookup=function(r,t,n){return void 0===n&&(n=null),t.hasOwnProperty(r)?t[r]:n}}, 744: function _(t,r,n,e,o){var i,a=this&&this.__extends||(i=function(t,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},i(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),l=this&&this.__values||function(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))};e();var f=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return a(r,t),r.prototype.execute=function(){for(var t,r,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{for(var o=l(this),i=o.next();!i.done;i=o.next()){var a=i.value;if(!1===a.item.apply(a,c([],u(n),!1)))return!1}}catch(r){t={error:r}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},r.prototype.asyncExecute=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=-1,e=this.items;return new Promise((function(r,o){!function i(){for(var a;++n<e.length;){var l=(a=e[n]).item.apply(a,c([],u(t),!1));if(l instanceof Promise)return void l.then(i).catch((function(t){return o(t)}));if(!1===l)return void r(!1)}r(!0)}()}))},r}(t(739).PrioritizedList);n.FunctionList=f}, 745: function _(t,n,e,r,s){var o,i=this&&this.__extends||(o=function(t,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},o(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),a=this&&this.__read||function(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,s,o=e.call(t),i=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(t){s={error:t}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(s)throw s.error}}return i};r();var h=t(746),u=t(747),p=t(748),c=function(t){function n(n){var e=t.call(this,n)||this;return e.getPatterns(),e}return i(n,t),n.prototype.getPatterns=function(){var t=this,n=this.options,e=[],r=[],s=[];this.end={},this.env=this.sub=0;var o=1;n.inlineMath.forEach((function(n){return t.addPattern(e,n,!1)})),n.displayMath.forEach((function(n){return t.addPattern(e,n,!0)})),e.length&&r.push(e.sort(u.sortLength).join("|")),n.processEnvironments&&(r.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=o,o++),n.processEscapes&&s.push("\\\\([\\\\$])"),n.processRefs&&s.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),s.length&&(r.push("("+s.join("|")+")"),this.sub=o),this.start=new RegExp(r.join("|"),"g"),this.hasPatterns=r.length>0},n.prototype.addPattern=function(t,n,e){var r=a(n,2),s=r[0],o=r[1];t.push((0,u.quotePattern)(s)),this.end[s]=[o,e,this.endPattern(o)]},n.prototype.endPattern=function(t,n){return new RegExp((n||(0,u.quotePattern)(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},n.prototype.findEnd=function(t,n,e,r){for(var s,o=a(r,3),i=o[0],h=o[1],u=o[2],c=u.lastIndex=e.index+e[0].length,f=0;s=u.exec(t);){if((s[1]||s[0])===i&&0===f)return(0,p.protoItem)(e[0],t.substr(c,s.index-c),s[0],n,e.index,s.index+s[0].length,h);"{"===s[0]?f++:"}"===s[0]&&f&&f--}return null},n.prototype.findMathInString=function(t,n,e){var r,s;for(this.start.lastIndex=0;r=this.start.exec(e);){if(void 0!==r[this.env]&&this.env){var o="\\\\end\\s*(\\{"+(0,u.quotePattern)(r[this.env])+"\\})";(s=this.findEnd(e,n,r,["{"+r[this.env]+"}",!0,this.endPattern(null,o)]))&&(s.math=s.open+s.math+s.close,s.open=s.close="")}else if(void 0!==r[this.sub]&&this.sub){var i=r[this.sub];o=r.index+r[this.sub].length;s=2===i.length?(0,p.protoItem)("",i.substr(1),"",n,r.index,o):(0,p.protoItem)("",i,"",n,r.index,o,!1)}else s=this.findEnd(e,n,r,this.end[r[0]]);s&&(t.push(s),this.start.lastIndex=s.end.n)}},n.prototype.findMath=function(t){var n=[];if(this.hasPatterns)for(var e=0,r=t.length;e<r;e++)this.findMathInString(n,e,t[e]);return n},n.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},n}(h.AbstractFindMath);e.FindTeX=c}, 746: function _(t,n,i,o,r){o();var s=t(743),u=function(){function t(t){var n=this.constructor;this.options=(0,s.userOptions)((0,s.defaultOptions)({},n.OPTIONS),t)}return t.OPTIONS={},t}();i.AbstractFindMath=u}, 747: function _(r,t,n,e,o){var i=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),c=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)c.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},c=this&&this.__spreadArray||function(r,t,n){if(n||2===arguments.length)for(var e,o=0,i=t.length;o<i;o++)!e&&o in t||(e||(e=Array.prototype.slice.call(t,0,o)),e[o]=t[o]);return r.concat(e||Array.prototype.slice.call(t))};e(),n.sortLength=function(r,t){return r.length!==t.length?t.length-r.length:r===t?0:r<t?-1:1},n.quotePattern=function(r){return r.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},n.unicodeChars=function(r){return Array.from(r).map((function(r){return r.codePointAt(0)}))},n.unicodeString=function(r){return String.fromCodePoint.apply(String,c([],i(r),!1))},n.isPercent=function(r){return!!r.match(/%\s*$/)},n.split=function(r){return r.trim().split(/\s+/)}}, 748: function _(t,e,i,o,s){o(),i.protoItem=function(t,e,i,o,s,n,r){return void 0===r&&(r=null),{open:t,math:e,close:i,n:o,start:{n:s},end:{n},display:r}};var n=function(){function t(t,e,o,s,n){void 0===o&&(o=!0),void 0===s&&(s={i:0,n:0,delim:""}),void 0===n&&(n={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=i.STATE.UNPROCESSED,this.math=t,this.inputJax=e,this.display=o,this.start=s,this.end=n,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(t.prototype,"isEscaped",{get:function(){return null===this.display},enumerable:!1,configurable:!0}),t.prototype.render=function(t){t.renderActions.renderMath(this,t)},t.prototype.rerender=function(t,e){void 0===e&&(e=i.STATE.RERENDER),this.state()>=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)},t.prototype.convert=function(t,e){void 0===e&&(e=i.STATE.LAST),t.renderActions.renderConvert(this,t,e)},t.prototype.compile=function(t){this.state()<i.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(i.STATE.COMPILED))},t.prototype.typeset=function(t){this.state()<i.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(i.STATE.TYPESET))},t.prototype.updateDocument=function(t){},t.prototype.removeFromDocument=function(t){void 0===t&&(t=!1)},t.prototype.setMetrics=function(t,e,i,o,s){this.metrics={em:t,ex:e,containerWidth:i,lineWidth:o,scale:s}},t.prototype.state=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=!1),null!=t&&(t<i.STATE.INSERTED&&this._state>=i.STATE.INSERTED&&this.removeFromDocument(e),t<i.STATE.TYPESET&&this._state>=i.STATE.TYPESET&&(this.outputData={}),t<i.STATE.COMPILED&&this._state>=i.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},t.prototype.reset=function(t){void 0===t&&(t=!1),this.state(i.STATE.UNPROCESSED,t)},t}();i.AbstractMathItem=n,i.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},i.newState=function(t,e){if(t in i.STATE)throw Error("State "+t+" already exists");i.STATE[t]=e}}, 749: function _(t,e,r,a,i){var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],a=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&a>=t.length&&(t=void 0),{value:t&&t[a++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};a();var l,u=t(750),s=o(t(753));!function(t){t.cleanStretchy=function(t){var e,r,a=t.data;try{for(var i=n(a.getList("fixStretchy")),o=i.next();!o.done;o=i.next()){var l=o.value;if(s.default.getProperty(l,"fixStretchy")){var u=s.default.getForm(l);u&&u[3]&&u[3].stretchy&&s.default.setAttribute(l,"stretchy",!1);var c=l.parent;if(!(s.default.getTexClass(l)||u&&u[2])){var f=a.nodeFactory.create("node","TeXAtom",[l]);c.replaceChild(f,l),f.inheritAttributesFrom(l)}s.default.removeProperties(l,"fixStretchy")}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},t.cleanAttributes=function(t){t.data.root.walkTree((function(t,e){var r,a,i=t.attributes;if(i){var o=new Set((i.get("mjx-keep-attrs")||"").split(/ /));delete i.getAllAttributes()["mjx-keep-attrs"];try{for(var l=n(i.getExplicitNames()),u=l.next();!u.done;u=l.next()){var s=u.value;o.has(s)||i.attributes[s]!==t.attributes.getInherited(s)||delete i.attributes[s]}}catch(t){r={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}}}),{})},t.combineRelations=function(t){var a,i,o,l,c=[];try{for(var f=n(t.data.getList("mo")),d=f.next();!d.done;d=f.next()){var p=d.value;if(!p.getProperty("relationsCombined")&&p.parent&&(!p.parent||s.default.isType(p.parent,"mrow"))&&s.default.getTexClass(p)===u.TEXCLASS.REL){for(var y=p.parent,v=void 0,h=y.childNodes,m=h.indexOf(p)+1,b=s.default.getProperty(p,"variantForm");m<h.length&&(v=h[m])&&s.default.isType(v,"mo")&&s.default.getTexClass(v)===u.TEXCLASS.REL;){if(b!==s.default.getProperty(v,"variantForm")||!r(p,v)){null==p.attributes.getExplicit("rspace")&&s.default.setAttribute(p,"rspace","0pt"),null==v.attributes.getExplicit("lspace")&&s.default.setAttribute(v,"lspace","0pt");break}s.default.appendChildren(p,s.default.getChildren(v)),e(["stretchy","rspace"],p,v);try{for(var g=(o=void 0,n(v.getPropertyNames())),x=g.next();!x.done;x=g.next()){var E=x.value;p.setProperty(E,v.getProperty(E))}}catch(t){o={error:t}}finally{try{x&&!x.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}h.splice(m,1),c.push(v),v.parent=null,v.setProperty("relationsCombined",!0)}p.attributes.setInherited("form",p.getForms()[0])}}}catch(t){a={error:t}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(a)throw a.error}}t.data.removeFromList("mo",c)};var e=function(t,e,r){var a=e.attributes,i=r.attributes;t.forEach((function(t){var e=i.getExplicit(t);null!=e&&a.set(t,e)}))},r=function(t,e){var r,a,i=function(t,e){return t.getExplicitNames().filter((function(r){return r!==e&&("stretchy"!==r||t.getExplicit("stretchy"))}))},o=t.attributes,l=e.attributes,u=i(o,"lspace"),s=i(l,"rspace");if(u.length!==s.length)return!1;try{for(var c=n(u),f=c.next();!f.done;f=c.next()){var d=f.value;if(o.getExplicit(d)!==l.getExplicit(d))return!1}}catch(t){r={error:t}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}return!0},a=function(t,e,r){var a,i,o=[];try{for(var l=n(t.getList("m"+e+r)),u=l.next();!u.done;u=l.next()){var c=u.value,f=c.childNodes;if(!f[c[e]]||!f[c[r]]){var d=c.parent,p=f[c[e]]?t.nodeFactory.create("node","m"+e,[f[c.base],f[c[e]]]):t.nodeFactory.create("node","m"+r,[f[c.base],f[c[r]]]);s.default.copyAttributes(c,p),d?d.replaceChild(p,c):t.root=p,o.push(c)}}}catch(t){a={error:t}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}t.removeFromList("m"+e+r,o)};t.cleanSubSup=function(t){var e=t.data;e.error||(a(e,"sub","sup"),a(e,"under","over"))};var i=function(t,e,r){var a,i,o=[];try{for(var l=n(t.getList(e)),u=l.next();!u.done;u=l.next()){var c=u.value;if(!c.attributes.get("displaystyle")){var f=c.childNodes[c.base],d=f.coreMO();if(f.getProperty("movablelimits")&&!d.attributes.getExplicit("movablelimits")){var p=t.nodeFactory.create("node",r,c.childNodes);s.default.copyAttributes(c,p),c.parent?c.parent.replaceChild(p,c):t.root=p,o.push(c)}}}}catch(t){a={error:t}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}t.removeFromList(e,o)};t.moveLimits=function(t){var e=t.data;i(e,"munderover","msubsup"),i(e,"munder","msub"),i(e,"mover","msup")},t.setInherited=function(t){t.data.root.setInheritedAttributes({},t.math.display,0,!1)}}(l||(l={})),r.default=l}, 750: function _(t,e,r,n,i){var o,s=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__assign||function(){return l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)},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.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};n();var c=t(751),p=t(752);r.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},r.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var h=["","thinmathspace","mediummathspace","thickmathspace"],f=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];r.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var d=function(t){function e(e,r,n){void 0===r&&(r={}),void 0===n&&(n=[]);var i=t.call(this,e)||this;return i.prevClass=null,i.prevLevel=null,i.texclass=null,i.arity<0&&(i.childNodes=[e.create("inferredMrow")],i.childNodes[0].parent=i),i.setChildren(n),i.attributes=new c.Attributes(e.getNodeClass(i.kind).defaults,e.getNodeClass("math").defaults),i.attributes.setList(r),i}return s(e,t),e.prototype.copy=function(t){var e,r,n,i;void 0===t&&(t=!1);var o=this.factory.create(this.kind);if(o.properties=l({},this.properties),this.attributes){var s=this.attributes.getAllAttributes();try{for(var u=a(Object.keys(s)),c=u.next();!c.done;c=u.next()){var p=c.value;("id"!==p||t)&&o.attributes.set(p,s[p])}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var h=this.childNodes;1===h.length&&h[0].isInferred&&(h=h[0].childNodes);try{for(var f=a(h),d=f.next();!d.done;d=f.next()){var y=d.value;y?o.appendChild(y.copy()):o.childNodes.push(null)}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}return o},Object.defineProperty(e.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Parent",{get:function(){for(var t=this.parent;t&&t.notParent;)t=t.Parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):t.prototype.setChildren.call(this,e)},e.prototype.appendChild=function(e){var r,n,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach((function(e){return t.prototype.appendChild.call(i,e)})),e;var o=e;(e=this.factory.create("mrow")).setChildren(o.childNodes),e.attributes=o.attributes;try{for(var s=a(o.getPropertyNames()),l=s.next();!l.done;l=s.next()){var u=l.value;e.setProperty(u,o.getProperty(u))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}return t.prototype.appendChild.call(this,e)},e.prototype.replaceChild=function(e,r){return this.arity<0?(this.childNodes[0].replaceChild(e,r),e):t.prototype.replaceChild.call(this,e,r)},e.prototype.core=function(){return this},e.prototype.coreMO=function(){return this},e.prototype.coreIndex=function(){return 0},e.prototype.childPosition=function(){for(var t,e,r=this,n=r.parent;n&&n.notParent;)r=n,n=n.parent;if(n){var i=0;try{for(var o=a(n.childNodes),s=o.next();!s.done;s=o.next()){if(s.value===r)return i;i++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}return null},e.prototype.setTeXclass=function(t){return this.getPrevClass(t),null!=this.texClass?this:t},e.prototype.updateTeXclass=function(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)},e.prototype.getPrevClass=function(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))},e.prototype.texSpacing=function(){var t=null!=this.prevClass?this.prevClass:r.TEXCLASS.NONE,e=this.texClass||r.TEXCLASS.ORD;if(t===r.TEXCLASS.NONE||e===r.TEXCLASS.NONE)return"";t===r.TEXCLASS.VCENTER&&(t=r.TEXCLASS.ORD),e===r.TEXCLASS.VCENTER&&(e=r.TEXCLASS.ORD);var n=f[t][e];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&n>=0?"":h[Math.abs(n)]},e.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},e.prototype.setInheritedAttributes=function(t,r,n,i){var o,s;void 0===t&&(t={}),void 0===r&&(r=!1),void 0===n&&(n=0),void 0===i&&(i=!1);var l=this.attributes.getAllDefaults();try{for(var c=a(Object.keys(t)),p=c.next();!p.done;p=c.next()){var h=p.value;if(l.hasOwnProperty(h)||e.alwaysInherit.hasOwnProperty(h)){var f=u(t[h],2),d=f[0],y=f[1];((e.noInherit[d]||{})[this.kind]||{})[h]||this.attributes.setInherited(h,y)}}}catch(t){o={error:t}}finally{try{p&&!p.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",r),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",n),i&&this.setProperty("texprimestyle",i);var b=this.arity;if(b>=0&&b!==1/0&&(1===b&&0===this.childNodes.length||1!==b&&this.childNodes.length!==b))if(b<this.childNodes.length)this.childNodes=this.childNodes.slice(0,b);else for(;this.childNodes.length<b;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(t,r,n,i)},e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o;try{for(var s=a(this.childNodes),l=s.next();!l.done;l=s.next()){l.value.setInheritedAttributes(t,e,r,n)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},e.prototype.addInheritedAttributes=function(t,e){var r,n,i=l({},t);try{for(var o=a(Object.keys(e)),s=o.next();!s.done;s=o.next()){var u=s.value;"displaystyle"!==u&&"scriptlevel"!==u&&"style"!==u&&(i[u]=[this.kind,e[u]])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.inheritAttributesFrom=function(t){var e=t.attributes,r=e.get("displaystyle"),n=e.get("scriptlevel"),i=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},o=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(i,r,n,o)},e.prototype.verifyTree=function(t){if(void 0===t&&(t=null),null!==t){this.verifyAttributes(t);var e=this.arity;t.checkArity&&e>=0&&e!==1/0&&(1===e&&0===this.childNodes.length||1!==e&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t)}},e.prototype.verifyAttributes=function(t){var e,r;if(t.checkAttributes){var n=this.attributes,i=[];try{for(var o=a(n.getExplicitNames()),s=o.next();!s.done;s=o.next()){var l=s.value;"data-"===l.substr(0,5)||void 0!==n.getDefault(l)||l.match(/^(?:class|style|id|(?:xlink:)?href)$/)||i.push(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}i.length&&this.mError("Unknown attributes for "+this.kind+" node: "+i.join(", "),t)}},e.prototype.verifyChildren=function(t){var e,r;try{for(var n=a(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.verifyTree(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},e.prototype.mError=function(t,e,r){if(void 0===r&&(r=!1),this.parent&&this.parent.isKind("merror"))return null;var n=this.factory.create("merror");if(n.attributes.set("data-mjx-message",t),e.fullErrors||r){var i=this.factory.create("mtext"),o=this.factory.create("text");o.setText(e.fullErrors?t:this.kind),i.appendChild(o),n.appendChild(i),this.parent.replaceChild(n,this)}else this.parent.replaceChild(n,this),n.appendChild(this);return n},e.defaults={mathbackground:c.INHERIT,mathcolor:c.INHERIT,mathsize:c.INHERIT,dir:c.INHERIT},e.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},e.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},e.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},e}(p.AbstractNode);r.AbstractMmlNode=d;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var t,e,r="";try{for(var n=a(this.childNodes),i=n.next();!i.done;i=n.next()){var o=i.value;o instanceof m&&(r+=o.getText())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o;try{for(var s=a(this.childNodes),l=s.next();!l.done;l=s.next()){var u=l.value;u instanceof d&&u.setInheritedAttributes(t,e,r,n)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},e.prototype.walkTree=function(t,e){var r,n;t(this,e);try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;s instanceof d&&s.walkTree(t,e)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},e.defaults=l(l({},d.defaults),{mathvariant:"normal",mathsize:c.INHERIT}),e}(d);r.AbstractMmlTokenNode=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.childNodes[0]},e.prototype.coreMO=function(){return this.childNodes[0].coreMO()},e.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},e.defaults=d.defaults,e}(d);r.AbstractMmlLayoutNode=b;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.childNodes[0]},e.prototype.coreMO=function(){return this.childNodes[0].coreMO()},e.prototype.setTeXclass=function(t){var e,n;this.getPrevClass(t),this.texClass=r.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind("mi")?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var o=a(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var l=s.value;l&&l.setTeXclass(null)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return t},e.defaults=d.defaults,e}(d);r.AbstractMmlBaseNode=v;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texClass",{get:function(){return r.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevClass",{get:function(){return r.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),e.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(e.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this},e.prototype.coreMO=function(){return this},e.prototype.coreIndex=function(){return 0},e.prototype.childPosition=function(){return 0},e.prototype.setTeXclass=function(t){return t},e.prototype.texSpacing=function(){return""},e.prototype.setInheritedAttributes=function(t,e,r,n){},e.prototype.inheritAttributesFrom=function(t){},e.prototype.verifyTree=function(t){},e.prototype.mError=function(t,e,r){return void 0===r&&(r=!1),null},e}(p.AbstractEmptyNode);r.AbstractMmlEmptyNode=g;var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.text="",e}return s(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.setText=function(t){return this.text=t,this},e.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},e.prototype.toString=function(){return this.text},e}(g);r.TextNode=m;var N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.xml=null,e.adaptor=null,e}return s(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),e.prototype.getXML=function(){return this.xml},e.prototype.setXML=function(t,e){return void 0===e&&(e=null),this.xml=t,this.adaptor=e,this},e.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},e.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},e.prototype.toString=function(){return"XML data"},e}(g);r.XMLNode=N}, 751: function _(t,e,r,i,n){var o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};i(),r.INHERIT="_inherit_";var s=function(){function t(t,e){this.global=e,this.defaults=Object.create(e),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}return t.prototype.set=function(t,e){this.attributes[t]=e},t.prototype.setList=function(t){Object.assign(this.attributes,t)},t.prototype.get=function(t){var e=this.attributes[t];return e===r.INHERIT&&(e=this.global[t]),e},t.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},t.prototype.getList=function(){for(var t,e,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n={};try{for(var s=o(r),u=s.next();!u.done;u=s.next()){var a=u.value;n[a]=this.get(a)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return n},t.prototype.setInherited=function(t,e){this.inherited[t]=e},t.prototype.getInherited=function(t){return this.inherited[t]},t.prototype.getDefault=function(t){return this.defaults[t]},t.prototype.isSet=function(t){return this.attributes.hasOwnProperty(t)||this.inherited.hasOwnProperty(t)},t.prototype.hasDefault=function(t){return t in this.defaults},t.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},t.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},t.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},t.prototype.getGlobalNames=function(){return Object.keys(this.global)},t.prototype.getAllAttributes=function(){return this.attributes},t.prototype.getAllInherited=function(){return this.inherited},t.prototype.getAllDefaults=function(){return this.defaults},t.prototype.getAllGlobals=function(){return this.global},t}();r.Attributes=s}, 752: function _(t,r,e,n,o){var i,l=this&&this.__extends||(i=function(t,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},i(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}i(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),p=this&&this.__assign||function(){return p=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},p.apply(this,arguments)},u=this&&this.__values||function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.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(r?"Object is not iterable.":"Symbol.iterator is not defined.")};n();var c=function(){function t(t,r,e){var n,o;void 0===r&&(r={}),void 0===e&&(e=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var i=u(Object.keys(r)),l=i.next();!l.done;l=i.next()){var p=l.value;this.setProperty(p,r[p])}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}e.length&&this.setChildren(e)}return Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(t,r){this.properties[t]=r},t.prototype.getProperty=function(t){return this.properties[t]},t.prototype.getPropertyNames=function(){return Object.keys(this.properties)},t.prototype.getAllProperties=function(){return this.properties},t.prototype.removeProperty=function(){for(var t,r,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{for(var o=u(e),i=o.next();!i.done;i=o.next()){var l=i.value;delete this.properties[l]}}catch(r){t={error:r}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},t.prototype.isKind=function(t){return this.factory.nodeIsKind(this,t)},t.prototype.setChildren=function(t){var r,e;this.childNodes=[];try{for(var n=u(t),o=n.next();!o.done;o=n.next()){var i=o.value;this.appendChild(i)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(r)throw r.error}}},t.prototype.appendChild=function(t){return this.childNodes.push(t),t.parent=this,t},t.prototype.replaceChild=function(t,r){var e=this.childIndex(r);return null!==e&&(this.childNodes[e]=t,t.parent=this,r.parent=null),t},t.prototype.removeChild=function(t){var r=this.childIndex(t);return null!==r&&(this.childNodes.splice(r,1),t.parent=null),t},t.prototype.childIndex=function(t){var r=this.childNodes.indexOf(t);return-1===r?null:r},t.prototype.copy=function(){var t,r,e=this.factory.create(this.kind);e.properties=p({},this.properties);try{for(var n=u(this.childNodes||[]),o=n.next();!o.done;o=n.next()){var i=o.value;i&&e.appendChild(i.copy())}}catch(r){t={error:r}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e},t.prototype.findNodes=function(t){var r=[];return this.walkTree((function(e){e.isKind(t)&&r.push(e)})),r},t.prototype.walkTree=function(t,r){var e,n;t(this,r);try{for(var o=u(this.childNodes),i=o.next();!i.done;i=o.next()){var l=i.value;l&&l.walkTree(t,r)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},t}();e.AbstractNode=c;var s=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return l(r,t),r.prototype.setChildren=function(t){},r.prototype.appendChild=function(t){return t},r.prototype.replaceChild=function(t,r){return r},r.prototype.childIndex=function(t){return null},r.prototype.walkTree=function(t,r){return t(this,r),r},r.prototype.toString=function(){return this.kind},r}(c);e.AbstractEmptyNode=s}, 753: function _(t,e,r,n,o){var i=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.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{tr