culinary.kemonine.info/themes/hugo-theme-relearn/static/js/mathjax/input/tex/extensions/mathtools.js

1 line
30 KiB
JavaScript
Raw Normal View History

2022-12-03 15:27:03 +00:00
!function(){"use strict";var t,e,a,r,o,n,l={205:function(t,e,a){var r,o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,a=e&&t[e],r=0;if(a)return a.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsConfiguration=e.fixPrescripts=e.PAIREDDELIMS=void 0;var n=a(251),l=a(871),i=a(748),s=a(74);a(926);var u=a(262),m=a(298),d=a(144);function c(t){var e,a,r,n,l,s,u=t.data;try{for(var m=o(u.getList("mmultiscripts")),d=m.next();!d.done;d=m.next()){var c=d.value;if(c.getProperty("fixPrescript")){var h=i.default.getChildren(c),p=0;try{for(var f=(r=void 0,o([1,2])),M=f.next();!M.done;M=f.next()){h[y=M.value]||(i.default.setChild(c,y,u.nodeFactory.create("node","none")),p++)}}catch(t){r={error:t}}finally{try{M&&!M.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var x=(l=void 0,o([4,5])),g=x.next();!g.done;g=x.next()){var y=g.value;i.default.isType(h[y],"mrow")&&0===i.default.getChildren(h[y]).length&&i.default.setChild(c,y,u.nodeFactory.create("node","none"))}}catch(t){l={error:t}}finally{try{g&&!g.done&&(s=x.return)&&s.call(x)}finally{if(l)throw l.error}}2===p&&h.splice(1,2)}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(a=m.return)&&a.call(m)}finally{if(e)throw e.error}}}e.PAIREDDELIMS="mathtools-paired-delims",e.fixPrescripts=c,e.MathtoolsConfiguration=n.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(r={},r[d.MultlinedItem.prototype.kind]=d.MultlinedItem,r),init:function(t){new l.CommandMap(e.PAIREDDELIMS,{},{}),t.append(n.Configuration.local({handler:{macro:[e.PAIREDDELIMS]},priority:-5}))},config:function(t,e){var a,r,n=e.parseOptions,l=n.options.mathtools.pairedDelimiters;try{for(var i=o(Object.keys(l)),s=i.next();!s.done;s=i.next()){var d=s.value;u.MathtoolsUtil.addPairedDelims(n,d,l[d])}}catch(t){a={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}m.MathtoolsTagFormat(t,e)},postprocessors:[[c,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:s.expandable({}),tagforms:s.expandable({})}}})},144:function(t,e,a){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])})(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 a(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)});Object.defineProperty(e,"__esModule",{value:!0}),e.MultlinedItem=void 0;var n=a(927),l=a(748),i=a(108),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"multlined"},enumerable:!1,configurable:!0}),e.prototype.EndTable=function(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){var e=this.factory.configuration.options.mathtools,a=e.multlinegap,r=e["firstline-afterskip"]||a,o=e["lastline-preskip"]||a,n=l.default.getChildren(this.table[0])[0];l.default.getAttribute(n,"columnalign")!==i.TexConstant.Align.RIGHT&&n.appendChild(this.create("node","mspace",[],{width:r}));var s=l.default.getChildren(this.table[this.table.length-1])[0];if(l.default.getAttribute(s,"columnalign")!==i.TexConstant.Align.L