@pie-element/graphing-solution-set 7.0.6-next.20261018193205 → 7.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.
@@ -1,5 +1,5 @@
1
1
  import { E as e, f as t, g as n, i as r, t as i, v as a, x as o } from "../browser-D_x3mPO2.js";
2
- import { $ as s, A as c, B as l, D as u, E as d, F as f, H as p, I as m, J as h, K as g, L as _, M as v, O as y, Q as b, R as x, U as S, V as C, W as w, X as T, Y as E, Z as D, _ as O, a as k, b as A, c as j, d as M, et as N, f as ee, g as te, h as ne, i as re, it as ie, k as ae, l as oe, m as se, n as ce, nt as le, o as ue, p as de, q as fe, r as pe, rt as me, s as he, t as ge, tt as P, u as F, v as I, x as _e, z as L } from "../alert-dialog-BxXnixdj.js";
2
+ import { $ as s, A as c, B as l, D as u, E as d, F as f, H as p, I as m, J as h, K as g, L as _, M as v, O as y, Q as b, R as x, U as S, V as C, W as w, X as T, Y as E, Z as D, _ as O, a as k, b as A, c as j, d as M, et as N, f as ee, g as te, h as ne, i as re, it as ie, k as ae, l as oe, m as se, n as ce, nt as le, o as ue, p as de, q as fe, r as pe, rt as me, s as he, t as ge, tt as P, u as F, v as I, x as _e, z as L } from "../alert-dialog-B1c779HK.js";
3
3
  import * as R from "react";
4
4
  import z, { Component as ve, createElement as ye, useId as be } from "react";
5
5
  import { createRoot as xe } from "react-dom/client";
@@ -3828,7 +3828,7 @@ var Rr = [
3828
3828
  }
3829
3829
  }, Bi = Object.freeze({
3830
3830
  name: "@pie-element/graphing-solution-set",
3831
- version: "7.0.6-next.20261018193205"
3831
+ version: "7.0.6"
3832
3832
  });
3833
3833
  //#endregion
3834
3834
  export { zi as default, Bi as piePackage };
@@ -190,7 +190,7 @@ var M = (e, t) => new Promise((n) => {
190
190
  return !o && (!n.selectedTool === "solutionSet" || !s) && (a.correctAnswer = "Please select a solution set for the graphing solution set item."), r(a) || (i.correctAnswerErrors = a), i;
191
191
  }, P = Object.freeze({
192
192
  name: "@pie-element/graphing-solution-set",
193
- version: "7.0.6-next.20261018193205"
193
+ version: "7.0.6"
194
194
  });
195
195
  //#endregion
196
196
  export { E as compareMarks, M as createCorrectResponseSession, D as getAnswerCorrected, O as getBestAnswer, A as model, k as normalize, j as outcome, P as piePackage, N as validate };
@@ -1,5 +1,5 @@
1
1
  import { E as e } from "../browser-D_x3mPO2.js";
2
- import { C as t, G as n, J as r, K as i, N as a, P as o, S as s, T as c, it as l, j as u, n as d, rt as f, t as ee, w as p, x as m, y as te } from "../alert-dialog-BxXnixdj.js";
2
+ import { C as t, G as n, J as r, K as i, N as a, P as o, S as s, T as c, it as l, j as u, n as d, rt as f, t as ee, w as p, x as m, y as te } from "../alert-dialog-B1c779HK.js";
3
3
  import h, { useRef as g } from "react";
4
4
  import { createRoot as _ } from "react-dom/client";
5
5
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
@@ -844,7 +844,7 @@ var Y = m, X = Y.default, Z = X && typeof X == "object" ? X : Y, ve = J(u, "UiLa
844
844
  }
845
845
  }, Te = Object.freeze({
846
846
  name: "@pie-element/graphing-solution-set",
847
- version: "7.0.6-next.20261018193205"
847
+ version: "7.0.6"
848
848
  });
849
849
  //#endregion
850
850
  export { Ce as Component, we as default, Te as piePackage };
@@ -172,7 +172,7 @@ var gt;
172
172
  function _t() {
173
173
  return gt;
174
174
  }
175
- var vt = import("./mathjax-CptWnMbQ-dkZMHJg3.js");
175
+ var vt = import("./mathjax-DqXi3q4c-D1xlfO-P.js");
176
176
  vt.catch(() => {});
177
177
  async function yt(e, t) {
178
178
  let { createMathJax: n } = await vt;
@@ -871,25 +871,7 @@ function tr(e) {
871
871
  function nr(e) {
872
872
  for (let t of e.querySelectorAll("mjx-container")) tr(t);
873
873
  }
874
- var rr = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", ir = "pie-mathjax-version-conflict", ar = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
875
- function or(e, t) {
876
- if (typeof window > "u") return;
877
- let n = globalThis;
878
- n[ar] ??= {
879
- logged: !1,
880
- conditions: []
881
- };
882
- let r = n[ar];
883
- if (r.conditions.includes(e)) return;
884
- r.conditions.push(e);
885
- 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 ${rr}`;
886
- r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(ir, { detail: {
887
- condition: e,
888
- message: i,
889
- docsUrl: rr
890
- } }));
891
- }
892
- var sr = {
874
+ var rr = {
893
875
  parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
894
876
  overarc: "\\overparen",
895
877
  napprox: "\\not\\approx",
@@ -897,36 +879,54 @@ var sr = {
897
879
  abs: ["\\left|#1\\right|", 1],
898
880
  perpendicular: "\\perp",
899
881
  divide: "\\div"
900
- }, cr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", lr = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, ur = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, dr = /\\embed\{newLine\}\[\]/g, fr = [
882
+ }, ir = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, ar = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, or = /\\embed\{newLine\}\[\]/g, sr = [
901
883
  ["$$", "$$"],
902
884
  ["$", "$"],
903
885
  ["\\[", "\\]"],
904
886
  ["\\(", "\\)"]
905
- ], pr = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), mr = "MJX-CHTML-styles", hr = "PIE-MJX-SVG-styles", gr = "PIE-MathJax-Menu-Settings", _r = { "mjx-container[overflow=\"linebreak\"][display]": {
887
+ ];
888
+ function cr(e) {
889
+ for (let [t, n] of sr) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
890
+ return e;
891
+ }
892
+ function lr(e) {
893
+ return `\\(${cr(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(or, "\\newline ");
894
+ }
895
+ var ur = "mathjax_ignore", dr = "mathjax_process", fr = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", pr = "pie-mathjax-version-conflict", mr = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
896
+ function hr(e, t) {
897
+ if (typeof window > "u") return;
898
+ let n = globalThis;
899
+ n[mr] ??= {
900
+ logged: !1,
901
+ conditions: []
902
+ };
903
+ let r = n[mr];
904
+ if (r.conditions.includes(e)) return;
905
+ r.conditions.push(e);
906
+ 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 ${fr}`;
907
+ r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(pr, { detail: {
908
+ condition: e,
909
+ message: i,
910
+ docsUrl: fr
911
+ } }));
912
+ }
913
+ var gr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", _r = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), vr = "MJX-CHTML-styles", yr = "PIE-MJX-SVG-styles", br = "PIE-MathJax-Menu-Settings", xr = { "mjx-container[overflow=\"linebreak\"][display]": {
906
914
  overflow: "auto clip",
907
915
  "min-width": "initial !important"
908
- } }, vr = 200, yr = 201, br = 202;
909
- function xr(e) {
916
+ } }, Sr = 200, Cr = 201, wr = 202;
917
+ function Tr(e) {
910
918
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
911
919
  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");
912
920
  }
913
- function Sr(e) {
914
- for (let [t, n] of fr) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
915
- return e;
916
- }
917
- function Cr(e) {
918
- return Sr(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
919
- }
920
- var wr = "mathjax_ignore", Tr = "mathjax_process";
921
921
  function Er(e, t) {
922
- let n = e.closest(`.${wr}, .${Tr}`);
923
- return n !== null && t.contains(n) && !n.classList.contains(Tr);
922
+ let n = e.closest(`.${ur}, .${dr}`);
923
+ return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
924
924
  }
925
925
  function Dr(e) {
926
926
  for (let t of e.querySelectorAll("[data-latex]")) {
927
927
  if (t.dataset.mathHandled || t.closest("mjx-container") || Er(t, e)) continue;
928
928
  let n = t.textContent;
929
- n && (t.textContent = `\\(${Cr(n)}\\)`.replace(dr, "\\newline "), t.dataset.mathHandled = "true");
929
+ n && (t.textContent = lr(n), t.dataset.mathHandled = "true");
930
930
  }
931
931
  }
932
932
  function Or(e) {
@@ -934,7 +934,7 @@ function Or(e) {
934
934
  }
935
935
  function kr(e, t) {
936
936
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
937
- return (t ? ur : lr).test(e.textContent ?? "");
937
+ return (t ? ar : ir).test(e.textContent ?? "");
938
938
  }
939
939
  function Ar(e) {
940
940
  return new Promise((t, n) => {
@@ -951,10 +951,10 @@ function Ar(e) {
951
951
  typeset: !1,
952
952
  ready: () => {
953
953
  let e = _t(), r = e?.startup, i = jr(e);
954
- i && (Mr(e), Nr(e, s.speechLocales), it(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Pr(r?.document), Fr(r?.document), r?.document?.addStyles?.(_r), ft(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
954
+ i && (Mr(e), Nr(e, s.speechLocales), it(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Pr(r?.document), Fr(r?.document), r?.document?.addStyles?.(xr), ft(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
955
955
  }
956
956
  },
957
- tex: { macros: { ...sr } },
957
+ tex: { macros: { ...rr } },
958
958
  output: { displayOverflow: "linebreak" },
959
959
  options: {
960
960
  enableMenu: i,
@@ -966,7 +966,7 @@ function Ar(e) {
966
966
  a11y: { inTabOrder: c }
967
967
  }
968
968
  };
969
- r && l.tex && (console.warn(cr), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
969
+ r && l.tex && (console.warn(gr), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
970
970
  let u = at(s.speechLocales);
971
971
  u && l.options && (l.options.sre = { locale: u }), yt(l, {
972
972
  ...s,
@@ -983,18 +983,18 @@ function Mr(e) {
983
983
  let t = e?._?.output, n = t?.chtml_ts?.CHTML;
984
984
  n && (n.STYLESHEETID = wt);
985
985
  let r = t?.svg_ts?.SVG;
986
- r && (r.STYLESHEETID = hr);
986
+ r && (r.STYLESHEETID = yr);
987
987
  }
988
988
  function Nr(e, t) {
989
989
  let n = e?._?.ui?.menu?.Menu?.Menu;
990
990
  if (n) {
991
- n.MENU_STORAGE = gr;
991
+ n.MENU_STORAGE = br;
992
992
  try {
993
- let e = localStorage.getItem(gr);
993
+ let e = localStorage.getItem(br);
994
994
  if (!e) return;
995
995
  let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
996
996
  if (n === void 0 && a) return;
997
- a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(gr, JSON.stringify(i)) : localStorage.removeItem(gr);
997
+ a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(br, JSON.stringify(i)) : localStorage.removeItem(br);
998
998
  } catch {}
999
999
  }
1000
1000
  }
@@ -1002,23 +1002,23 @@ function Pr(e) {
1002
1002
  if (!e) return;
1003
1003
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
1004
1004
  let n = e.typesetRoot;
1005
- !n || t.has(n) || (xr(n), t.add(n));
1005
+ !n || t.has(n) || (Tr(n), t.add(n));
1006
1006
  };
1007
- e.addRenderAction?.("pie-strip-latex", yr, (e) => {
1007
+ e.addRenderAction?.("pie-strip-latex", Cr, (e) => {
1008
1008
  for (let t of e.math ?? []) n(t);
1009
1009
  return !1;
1010
1010
  }, (e) => {
1011
1011
  let t = e.typesetRoot;
1012
- return t && xr(t), !1;
1012
+ return t && Tr(t), !1;
1013
1013
  });
1014
1014
  let r = e.outputJax?.chtmlStyles;
1015
- r?.id === mr && (r.id = wt), Rr();
1015
+ r?.id === vr && (r.id = wt), Rr();
1016
1016
  }
1017
1017
  function Fr(e) {
1018
1018
  let t = (e) => {
1019
1019
  e.typesetRoot && tr(e.typesetRoot);
1020
1020
  };
1021
- e?.addRenderAction?.("pie-name-math", br, (e) => {
1021
+ e?.addRenderAction?.("pie-name-math", wr, (e) => {
1022
1022
  for (let n of e.math ?? []) t(n);
1023
1023
  return !1;
1024
1024
  }, (e) => (t(e), !1));
@@ -1027,7 +1027,7 @@ function Ir(e) {
1027
1027
  return e instanceof HTMLStyleElement && Tt.includes(e.id);
1028
1028
  }
1029
1029
  function Lr(e) {
1030
- or("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
1030
+ hr("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
1031
1031
  }
1032
1032
  function Rr() {
1033
1033
  let e = document.head, t = [...e.children].find(Ir);
@@ -1049,7 +1049,7 @@ function Rr() {
1049
1049
  function zr(e) {
1050
1050
  let t = e?.math;
1051
1051
  if (!t?.remove) return;
1052
- let n = [...t].filter((e) => (e.state?.() ?? 0) >= vr && e.typesetRoot?.isConnected === !1);
1052
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= Sr && e.typesetRoot?.isConnected === !1);
1053
1053
  if (n.length !== 0) {
1054
1054
  for (let e of [...n].reverse()) e.clear?.();
1055
1055
  t.remove(...n);
@@ -1077,8 +1077,8 @@ function Hr(e) {
1077
1077
  });
1078
1078
  }
1079
1079
  function Ur(e) {
1080
- let t = bt, n = t[pr];
1081
- return n || (n = Hr(e), t[pr] = n), n;
1080
+ let t = bt, n = t[_r];
1081
+ return n || (n = Hr(e), t[_r] = n), n;
1082
1082
  }
1083
1083
  function Wr(e = {}) {
1084
1084
  let t = e.useSingleDollar ?? !1;
@@ -1099,7 +1099,7 @@ function Wr(e = {}) {
1099
1099
  } catch (e) {
1100
1100
  throw i.typesetClear?.([n]), e;
1101
1101
  }
1102
- xr(n), nr(n);
1102
+ Tr(n), nr(n);
1103
1103
  }
1104
1104
  };
1105
1105
  }
@@ -1150,7 +1150,7 @@ var ri = async (e) => {
1150
1150
  let n = $r()?.wrapMath?.(e, t);
1151
1151
  if (n != null) return n;
1152
1152
  let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
1153
- return `${r}${Sr(e)}${i}`;
1153
+ return `${r}${cr(e)}${i}`;
1154
1154
  }, ai = (e) => {
1155
1155
  let t = e.trim();
1156
1156
  return t.startsWith("\\[") && t.endsWith("\\]") ? {
@@ -37598,4 +37598,4 @@ M$.defaultProps = {
37598
37598
  //#endregion
37599
37599
  export { uc as $, Pb as A, G as B, hx as C, Kb as D, nx as E, Zv as F, Fp as G, V_ as H, jv as I, V as J, U as K, Ov as L, Xy as M, Oy as N, Ib as O, _y as P, jl as Q, Ev as R, _x as S, ux as T, u_ as U, q_ as V, Gg as W, Vu as X, Gu as Y, Pl as Z, CP as _, oX as a, ht as at, iC as b, VY as c, Ue as ct, TL as d, lc as et, bL as f, BP as g, KP as h, hX as i, ri as it, Ab as j, Fb as k, LY as l, nt as lt, ZP as m, k$ as n, Co as nt, $Y as o, mt as ot, nI as p, Qu as q, $Z as r, ci as rt, JY as s, ct as st, M$ as t, z as tt, OV as u, ON as v, dx as w, Vx as x, lw as y, Cv as z };
37600
37600
 
37601
- //# sourceMappingURL=alert-dialog-Bt9AQcOF.js.map
37601
+ //# sourceMappingURL=alert-dialog-Cr0KjaTL.js.map