@pie-element/multiple-choice 14.0.6-next.20261018193205 → 14.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Radio-bjP4w9pO.js → Radio-DS22zl1y.js} +55 -55
- package/dist/browser/{Radio-bjP4w9pO.js.map → Radio-DS22zl1y.js.map} +1 -1
- package/dist/browser/author/index.js +2 -2
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{Radio-_l84KQJn.js → Radio-CMqZPx3h.js} +55 -55
- package/dist/browser/editor-runtime/{Radio-_l84KQJn.js.map → Radio-CMqZPx3h.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{main-DdY4k_Fp.js → main-Cg61UvOA.js} +2 -2
- package/dist/browser/editor-runtime/{main-DdY4k_Fp.js.map → main-Cg61UvOA.js.map} +1 -1
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-EKmN5wnt.js → mathjax-DqXi3q4c-DnkUutjP.js} +4 -4
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-EKmN5wnt.js.map → mathjax-DqXi3q4c-DnkUutjP.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +3 -3
- package/dist/browser/{main-B9Gf7jsp.js → main-OV2y7QCe.js} +2 -2
- package/dist/browser/{main-B9Gf7jsp.js.map → main-OV2y7QCe.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-wl1nKFR1.js → mathjax-DqXi3q4c-B13HrHzz.js} +4 -4
- package/dist/browser/{mathjax-CptWnMbQ-wl1nKFR1.js.map → mathjax-DqXi3q4c-B13HrHzz.js.map} +1 -1
- package/dist/browser/print/index.js +3 -3
- package/dist/index.iife.js +1 -1
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/module/print.js +31 -31
- package/module/print.js.map +1 -1
- package/package.json +14 -14
|
@@ -8211,7 +8211,7 @@ var Im;
|
|
|
8211
8211
|
function Lm() {
|
|
8212
8212
|
return Im;
|
|
8213
8213
|
}
|
|
8214
|
-
var Rm = import("./mathjax-
|
|
8214
|
+
var Rm = import("./mathjax-DqXi3q4c-B13HrHzz.js");
|
|
8215
8215
|
Rm.catch(() => {});
|
|
8216
8216
|
async function zm(e, t) {
|
|
8217
8217
|
let { createMathJax: n } = await Rm;
|
|
@@ -8910,25 +8910,7 @@ function bg(e) {
|
|
|
8910
8910
|
function xg(e) {
|
|
8911
8911
|
for (let t of e.querySelectorAll("mjx-container")) bg(t);
|
|
8912
8912
|
}
|
|
8913
|
-
var Sg =
|
|
8914
|
-
function Tg(e, t) {
|
|
8915
|
-
if (typeof window > "u") return;
|
|
8916
|
-
let n = globalThis;
|
|
8917
|
-
n[wg] ??= {
|
|
8918
|
-
logged: !1,
|
|
8919
|
-
conditions: []
|
|
8920
|
-
};
|
|
8921
|
-
let r = n[wg];
|
|
8922
|
-
if (r.conditions.includes(e)) return;
|
|
8923
|
-
r.conditions.push(e);
|
|
8924
|
-
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Sg}`;
|
|
8925
|
-
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Cg, { detail: {
|
|
8926
|
-
condition: e,
|
|
8927
|
-
message: i,
|
|
8928
|
-
docsUrl: Sg
|
|
8929
|
-
} }));
|
|
8930
|
-
}
|
|
8931
|
-
var Eg = {
|
|
8913
|
+
var Sg = {
|
|
8932
8914
|
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
8933
8915
|
overarc: "\\overparen",
|
|
8934
8916
|
napprox: "\\not\\approx",
|
|
@@ -8936,36 +8918,54 @@ var Eg = {
|
|
|
8936
8918
|
abs: ["\\left|#1\\right|", 1],
|
|
8937
8919
|
perpendicular: "\\perp",
|
|
8938
8920
|
divide: "\\div"
|
|
8939
|
-
},
|
|
8921
|
+
}, Cg = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, wg = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Tg = /\\embed\{newLine\}\[\]/g, Eg = [
|
|
8940
8922
|
["$$", "$$"],
|
|
8941
8923
|
["$", "$"],
|
|
8942
8924
|
["\\[", "\\]"],
|
|
8943
8925
|
["\\(", "\\)"]
|
|
8944
|
-
]
|
|
8926
|
+
];
|
|
8927
|
+
function Dg(e) {
|
|
8928
|
+
for (let [t, n] of Eg) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
8929
|
+
return e;
|
|
8930
|
+
}
|
|
8931
|
+
function Og(e) {
|
|
8932
|
+
return `\\(${Dg(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(Tg, "\\newline ");
|
|
8933
|
+
}
|
|
8934
|
+
var kg = "mathjax_ignore", Ag = "mathjax_process", jg = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Mg = "pie-mathjax-version-conflict", Ng = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
|
|
8935
|
+
function Pg(e, t) {
|
|
8936
|
+
if (typeof window > "u") return;
|
|
8937
|
+
let n = globalThis;
|
|
8938
|
+
n[Ng] ??= {
|
|
8939
|
+
logged: !1,
|
|
8940
|
+
conditions: []
|
|
8941
|
+
};
|
|
8942
|
+
let r = n[Ng];
|
|
8943
|
+
if (r.conditions.includes(e)) return;
|
|
8944
|
+
r.conditions.push(e);
|
|
8945
|
+
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${jg}`;
|
|
8946
|
+
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Mg, { detail: {
|
|
8947
|
+
condition: e,
|
|
8948
|
+
message: i,
|
|
8949
|
+
docsUrl: jg
|
|
8950
|
+
} }));
|
|
8951
|
+
}
|
|
8952
|
+
var Fg = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Ig = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Lg = "MJX-CHTML-styles", Rg = "PIE-MJX-SVG-styles", zg = "PIE-MathJax-Menu-Settings", Bg = { "mjx-container[overflow=\"linebreak\"][display]": {
|
|
8945
8953
|
overflow: "auto clip",
|
|
8946
8954
|
"min-width": "initial !important"
|
|
8947
|
-
} },
|
|
8948
|
-
function
|
|
8955
|
+
} }, Vg = 200, Hg = 201, Ug = 202;
|
|
8956
|
+
function Wg(e) {
|
|
8949
8957
|
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
8950
8958
|
for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
|
|
8951
8959
|
}
|
|
8952
|
-
function Vg(e) {
|
|
8953
|
-
for (let [t, n] of jg) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
8954
|
-
return e;
|
|
8955
|
-
}
|
|
8956
|
-
function Hg(e) {
|
|
8957
|
-
return Vg(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
8958
|
-
}
|
|
8959
|
-
var Ug = "mathjax_ignore", Wg = "mathjax_process";
|
|
8960
8960
|
function Gg(e, t) {
|
|
8961
|
-
let n = e.closest(`.${
|
|
8962
|
-
return n !== null && t.contains(n) && !n.classList.contains(
|
|
8961
|
+
let n = e.closest(`.${kg}, .${Ag}`);
|
|
8962
|
+
return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
|
|
8963
8963
|
}
|
|
8964
8964
|
function Kg(e) {
|
|
8965
8965
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
8966
8966
|
if (t.dataset.mathHandled || t.closest("mjx-container") || Gg(t, e)) continue;
|
|
8967
8967
|
let n = t.textContent;
|
|
8968
|
-
n && (t.textContent =
|
|
8968
|
+
n && (t.textContent = Og(n), t.dataset.mathHandled = "true");
|
|
8969
8969
|
}
|
|
8970
8970
|
}
|
|
8971
8971
|
function qg(e) {
|
|
@@ -8973,7 +8973,7 @@ function qg(e) {
|
|
|
8973
8973
|
}
|
|
8974
8974
|
function Jg(e, t) {
|
|
8975
8975
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
8976
|
-
return (t ?
|
|
8976
|
+
return (t ? wg : Cg).test(e.textContent ?? "");
|
|
8977
8977
|
}
|
|
8978
8978
|
function Yg(e) {
|
|
8979
8979
|
return new Promise((t, n) => {
|
|
@@ -8990,10 +8990,10 @@ function Yg(e) {
|
|
|
8990
8990
|
typeset: !1,
|
|
8991
8991
|
ready: () => {
|
|
8992
8992
|
let e = Lm(), r = e?.startup, i = Xg(e);
|
|
8993
|
-
i && (Zg(e), Qg(e, s.speechLocales), wm(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && ($g(r?.document), e_(r?.document), r?.document?.addStyles?.(
|
|
8993
|
+
i && (Zg(e), Qg(e, s.speechLocales), wm(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && ($g(r?.document), e_(r?.document), r?.document?.addStyles?.(Bg), Mm(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
|
|
8994
8994
|
}
|
|
8995
8995
|
},
|
|
8996
|
-
tex: { macros: { ...
|
|
8996
|
+
tex: { macros: { ...Sg } },
|
|
8997
8997
|
output: { displayOverflow: "linebreak" },
|
|
8998
8998
|
options: {
|
|
8999
8999
|
enableMenu: i,
|
|
@@ -9005,7 +9005,7 @@ function Yg(e) {
|
|
|
9005
9005
|
a11y: { inTabOrder: c }
|
|
9006
9006
|
}
|
|
9007
9007
|
};
|
|
9008
|
-
r && l.tex && (console.warn(
|
|
9008
|
+
r && l.tex && (console.warn(Fg), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
|
|
9009
9009
|
let u = Tm(s.speechLocales);
|
|
9010
9010
|
u && l.options && (l.options.sre = { locale: u }), zm(l, {
|
|
9011
9011
|
...s,
|
|
@@ -9022,18 +9022,18 @@ function Zg(e) {
|
|
|
9022
9022
|
let t = e?._?.output, n = t?.chtml_ts?.CHTML;
|
|
9023
9023
|
n && (n.STYLESHEETID = Wm);
|
|
9024
9024
|
let r = t?.svg_ts?.SVG;
|
|
9025
|
-
r && (r.STYLESHEETID =
|
|
9025
|
+
r && (r.STYLESHEETID = Rg);
|
|
9026
9026
|
}
|
|
9027
9027
|
function Qg(e, t) {
|
|
9028
9028
|
let n = e?._?.ui?.menu?.Menu?.Menu;
|
|
9029
9029
|
if (n) {
|
|
9030
|
-
n.MENU_STORAGE =
|
|
9030
|
+
n.MENU_STORAGE = zg;
|
|
9031
9031
|
try {
|
|
9032
|
-
let e = localStorage.getItem(
|
|
9032
|
+
let e = localStorage.getItem(zg);
|
|
9033
9033
|
if (!e) return;
|
|
9034
9034
|
let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
|
|
9035
9035
|
if (n === void 0 && a) return;
|
|
9036
|
-
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(
|
|
9036
|
+
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(zg, JSON.stringify(i)) : localStorage.removeItem(zg);
|
|
9037
9037
|
} catch {}
|
|
9038
9038
|
}
|
|
9039
9039
|
}
|
|
@@ -9041,23 +9041,23 @@ function $g(e) {
|
|
|
9041
9041
|
if (!e) return;
|
|
9042
9042
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
9043
9043
|
let n = e.typesetRoot;
|
|
9044
|
-
!n || t.has(n) || (
|
|
9044
|
+
!n || t.has(n) || (Wg(n), t.add(n));
|
|
9045
9045
|
};
|
|
9046
|
-
e.addRenderAction?.("pie-strip-latex",
|
|
9046
|
+
e.addRenderAction?.("pie-strip-latex", Hg, (e) => {
|
|
9047
9047
|
for (let t of e.math ?? []) n(t);
|
|
9048
9048
|
return !1;
|
|
9049
9049
|
}, (e) => {
|
|
9050
9050
|
let t = e.typesetRoot;
|
|
9051
|
-
return t &&
|
|
9051
|
+
return t && Wg(t), !1;
|
|
9052
9052
|
});
|
|
9053
9053
|
let r = e.outputJax?.chtmlStyles;
|
|
9054
|
-
r?.id ===
|
|
9054
|
+
r?.id === Lg && (r.id = Wm), r_();
|
|
9055
9055
|
}
|
|
9056
9056
|
function e_(e) {
|
|
9057
9057
|
let t = (e) => {
|
|
9058
9058
|
e.typesetRoot && bg(e.typesetRoot);
|
|
9059
9059
|
};
|
|
9060
|
-
e?.addRenderAction?.("pie-name-math",
|
|
9060
|
+
e?.addRenderAction?.("pie-name-math", Ug, (e) => {
|
|
9061
9061
|
for (let n of e.math ?? []) t(n);
|
|
9062
9062
|
return !1;
|
|
9063
9063
|
}, (e) => (t(e), !1));
|
|
@@ -9066,7 +9066,7 @@ function t_(e) {
|
|
|
9066
9066
|
return e instanceof HTMLStyleElement && Gm.includes(e.id);
|
|
9067
9067
|
}
|
|
9068
9068
|
function n_(e) {
|
|
9069
|
-
|
|
9069
|
+
Pg("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
9070
9070
|
}
|
|
9071
9071
|
function r_() {
|
|
9072
9072
|
let e = document.head, t = [...e.children].find(t_);
|
|
@@ -9088,7 +9088,7 @@ function r_() {
|
|
|
9088
9088
|
function i_(e) {
|
|
9089
9089
|
let t = e?.math;
|
|
9090
9090
|
if (!t?.remove) return;
|
|
9091
|
-
let n = [...t].filter((e) => (e.state?.() ?? 0) >=
|
|
9091
|
+
let n = [...t].filter((e) => (e.state?.() ?? 0) >= Vg && e.typesetRoot?.isConnected === !1);
|
|
9092
9092
|
if (n.length !== 0) {
|
|
9093
9093
|
for (let e of [...n].reverse()) e.clear?.();
|
|
9094
9094
|
t.remove(...n);
|
|
@@ -9116,8 +9116,8 @@ function s_(e) {
|
|
|
9116
9116
|
});
|
|
9117
9117
|
}
|
|
9118
9118
|
function c_(e) {
|
|
9119
|
-
let t = Bm, n = t[
|
|
9120
|
-
return n || (n = s_(e), t[
|
|
9119
|
+
let t = Bm, n = t[Ig];
|
|
9120
|
+
return n || (n = s_(e), t[Ig] = n), n;
|
|
9121
9121
|
}
|
|
9122
9122
|
function l_(e = {}) {
|
|
9123
9123
|
let t = e.useSingleDollar ?? !1;
|
|
@@ -9138,7 +9138,7 @@ function l_(e = {}) {
|
|
|
9138
9138
|
} catch (e) {
|
|
9139
9139
|
throw i.typesetClear?.([n]), e;
|
|
9140
9140
|
}
|
|
9141
|
-
|
|
9141
|
+
Wg(n), xg(n);
|
|
9142
9142
|
}
|
|
9143
9143
|
};
|
|
9144
9144
|
}
|
|
@@ -9189,7 +9189,7 @@ var S_ = async (e) => {
|
|
|
9189
9189
|
let n = v_()?.wrapMath?.(e, t);
|
|
9190
9190
|
if (n != null) return n;
|
|
9191
9191
|
let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
|
|
9192
|
-
return `${r}${
|
|
9192
|
+
return `${r}${Dg(e)}${i}`;
|
|
9193
9193
|
}, w_ = (e) => {
|
|
9194
9194
|
let t = e.trim();
|
|
9195
9195
|
return t.startsWith("\\[") && t.endsWith("\\]") ? {
|
|
@@ -12260,4 +12260,4 @@ var Mb = /*#__PURE__*/ l(wb, { checked: !0 }), Nb = /*#__PURE__*/ l(wb, {}), Pb
|
|
|
12260
12260
|
//#endregion
|
|
12261
12261
|
export { $f as $, y as $t, k_ as A, gc as At, cm as B, qa as Bt, Pv as C, bd as Ct, cv as D, Du as Dt, bv as E, qu as Et, Fm as F, Ns as Ft, Ap as G, Mr as Gt, Zp as H, la as Ht, Pm as I, Ms as It, ap as J, or as Jt, vp as K, xr as Kt, Om as L, As as Lt, S_ as M, Vs as Mt, C_ as N, X as Nt, X_ as O, Eu as Ot, w_ as P, Ps as Pt, ep as Q, E as Qt, lm as R, ko as Rt, Fv as S, xd as St, Sv as T, gd as Tt, Qp as U, ca as Ut, tm as V, Ca as Vt, Xp as W, G as Wt, np as X, ne as Xt, ip as Y, dt as Yt, tp as Z, te as Zt, ny as _, Ed as _t, Xy as a, Ef as at, Kv as b, Cd as bt, By as c, gf as ct, xy as d, Ud as dt, C as en, $ as et, by as f, zd as ft, uy as g, Md as gt, dy as h, jd as ht, nb as i, Af as it, O_ as j, sc as jt, K_ as k, Su as kt, zy as l, af as lt, vy as m, Nd as mt, vb as n, Hf as nt, Uy as o, Cf as ot, yy as p, Rd as pt, sp as q, ar as qt, sb as r, jf as rt, Vy as s, _f as st, Pb as t, S as tn, Kf as tt, Ty as u, rf as ut, $v as v, Td as vt, Mv as w, vd as wt, Iv as x, Sd as xt, Jv as y, wd as yt, Sm as z, to as zt };
|
|
12262
12262
|
|
|
12263
|
-
//# sourceMappingURL=Radio-
|
|
12263
|
+
//# sourceMappingURL=Radio-DS22zl1y.js.map
|