Files
v1.pivoine.art/assets/bower_components/MathJax/es5/input/tex/extensions/action.js
2025-10-25 12:39:30 +02:00

138 lines
4.2 KiB
JavaScript

!(function (t) {
var e = {};
function a(o) {
if (e[o]) return e[o].exports;
var n = (e[o] = { i: o, l: !1, exports: {} });
return t[o].call(n.exports, n, n.exports, a), (n.l = !0), n.exports;
}
(a.m = t),
(a.c = e),
(a.d = function (t, e, o) {
a.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o });
}),
(a.r = function (t) {
"undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
Object.defineProperty(t, "__esModule", { value: !0 });
}),
(a.t = function (t, e) {
if ((1 & e && (t = a(t)), 8 & e)) return t;
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
var o = Object.create(null);
if (
(a.r(o),
Object.defineProperty(o, "default", { enumerable: !0, value: t }),
2 & e && "string" != typeof t)
)
for (var n in t)
a.d(
o,
n,
function (e) {
return t[e];
}.bind(null, n),
);
return o;
}),
(a.n = function (t) {
var e =
t && t.__esModule
? function () {
return t.default;
}
: function () {
return t;
};
return a.d(e, "a", e), e;
}),
(a.o = function (t, e) {
return Object.prototype.hasOwnProperty.call(t, e);
}),
(a.p = ""),
a((a.s = 6));
})([
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.isObject = MathJax._.components.global.isObject),
(e.combineConfig = MathJax._.components.global.combineConfig),
(e.combineDefaults = MathJax._.components.global.combineDefaults),
(e.combineWithMathJax = MathJax._.components.global.combineWithMathJax),
(e.MathJax = MathJax._.components.global.MathJax);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.ActionConfiguration = e.ActionMethods = void 0);
var o = a(2),
n = a(3),
i = a(4),
r = a(5);
(e.ActionMethods = {}),
(e.ActionMethods.Macro = r.default.Macro),
(e.ActionMethods.Toggle = function (t, e) {
for (var a, o = []; "\\endtoggle" !== (a = t.GetArgument(e)); )
o.push(new n.default(a, t.stack.env, t.configuration).mml());
t.Push(t.create("node", "maction", o, { actiontype: "toggle" }));
}),
(e.ActionMethods.Mathtip = function (t, e) {
var a = t.ParseArg(e),
o = t.ParseArg(e);
t.Push(t.create("node", "maction", [a, o], { actiontype: "tooltip" }));
}),
new i.CommandMap(
"action-macros",
{
toggle: "Toggle",
mathtip: "Mathtip",
texttip: ["Macro", "\\mathtip{#1}{\\text{#2}}", 2],
},
e.ActionMethods,
),
(e.ActionConfiguration = o.Configuration.create("action", {
handler: { macro: ["action-macros"] },
}));
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
(e.ConfigurationHandler =
MathJax._.input.tex.Configuration.ConfigurationHandler),
(e.ParserConfiguration =
MathJax._.input.tex.Configuration.ParserConfiguration);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = MathJax._.input.tex.TexParser.default);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = MathJax._.input.tex.base.BaseMethods.default);
},
function (t, e, a) {
"use strict";
a.r(e);
var o = a(0),
n = a(1);
Object(o.combineWithMathJax)({
_: { input: { tex: { action: { ActionConfiguration: n } } } },
});
},
]);