@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.
Files changed (27) hide show
  1. package/dist/browser/{Radio-bjP4w9pO.js → Radio-DS22zl1y.js} +55 -55
  2. package/dist/browser/{Radio-bjP4w9pO.js.map → Radio-DS22zl1y.js.map} +1 -1
  3. package/dist/browser/author/index.js +2 -2
  4. package/dist/browser/controller/index.js +1 -1
  5. package/dist/browser/delivery/index.js +3 -3
  6. package/dist/browser/editor-runtime/{Radio-_l84KQJn.js → Radio-CMqZPx3h.js} +55 -55
  7. package/dist/browser/editor-runtime/{Radio-_l84KQJn.js.map → Radio-CMqZPx3h.js.map} +1 -1
  8. package/dist/browser/editor-runtime/author/index.js +2 -2
  9. package/dist/browser/editor-runtime/controller/index.js +1 -1
  10. package/dist/browser/editor-runtime/delivery/index.js +3 -3
  11. package/dist/browser/editor-runtime/{main-DdY4k_Fp.js → main-Cg61UvOA.js} +2 -2
  12. package/dist/browser/editor-runtime/{main-DdY4k_Fp.js.map → main-Cg61UvOA.js.map} +1 -1
  13. package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-EKmN5wnt.js → mathjax-DqXi3q4c-DnkUutjP.js} +4 -4
  14. package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-EKmN5wnt.js.map → mathjax-DqXi3q4c-DnkUutjP.js.map} +1 -1
  15. package/dist/browser/editor-runtime/print/index.js +3 -3
  16. package/dist/browser/{main-B9Gf7jsp.js → main-OV2y7QCe.js} +2 -2
  17. package/dist/browser/{main-B9Gf7jsp.js.map → main-OV2y7QCe.js.map} +1 -1
  18. package/dist/browser/{mathjax-CptWnMbQ-wl1nKFR1.js → mathjax-DqXi3q4c-B13HrHzz.js} +4 -4
  19. package/dist/browser/{mathjax-CptWnMbQ-wl1nKFR1.js.map → mathjax-DqXi3q4c-B13HrHzz.js.map} +1 -1
  20. package/dist/browser/print/index.js +3 -3
  21. package/dist/index.iife.js +1 -1
  22. package/dist/schemas/configuration.schema.json +1 -1
  23. package/dist/schemas/model.schema.json +1 -1
  24. package/dist/schemas/session.schema.json +1 -1
  25. package/module/print.js +31 -31
  26. package/module/print.js.map +1 -1
  27. package/package.json +14 -14
@@ -1,5 +1,5 @@
1
- import { H as e, K as t, M as n, U as r, tn as i } from "../Radio-bjP4w9pO.js";
2
- import { t as a } from "../main-B9Gf7jsp.js";
1
+ import { H as e, K as t, M as n, U as r, tn as i } from "../Radio-DS22zl1y.js";
2
+ import { t as a } from "../main-OV2y7QCe.js";
3
3
  import { a as o, p as s } from "../dist-DL6MQNxd.js";
4
4
  import c from "react";
5
5
  import { createRoot as l } from "react-dom/client";
@@ -44,7 +44,7 @@ var u = (0, (/* @__PURE__ */ i(t(), 1)).default)("pie-element:multiple-choice:pr
44
44
  }
45
45
  }, p = Object.freeze({
46
46
  name: "@pie-element/multiple-choice",
47
- version: "14.0.6-next.20261018193205"
47
+ version: "14.0.6"
48
48
  });
49
49
  //#endregion
50
50
  export { f as default, p as piePackage };
@@ -82,7 +82,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
82
82
  color: ${Qm} !important;
83
83
  background-color: ${nh} !important;
84
84
  }
85
- `;function ih(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=Zm,t.textContent=rh,e.head.appendChild(t)}var ah=/[⁡-⁤]/g,oh={"+":`positive`,"-":`negative`,"−":`negative`,"±":`plus or minus`,"∓":`minus or plus`},sh={"(":`open parenthesis`,"[":`open bracket`,"{":`open brace`,"⟨":`open angle bracket`,"⌊":`open floor`,"⌈":`open ceiling`},ch={")":`close parenthesis`,"]":`close bracket`,"}":`close brace`,"⟩":`close angle bracket`,"⌋":`close floor`,"⌉":`close ceiling`},lh={"!":`factorial`,"%":`percent`,"°":`degrees`,"′":`prime`,"″":`double prime`},uh={"+":`plus`,"-":`minus`,"−":`minus`,"±":`plus or minus`,"∓":`minus or plus`,"×":`times`,"⋅":`times`,"·":`times`,"*":`times`,"÷":`divided by`,"/":`divided by`,"=":`equals`,"≠":`does not equal`,"<":`is less than`,">":`is greater than`,"≤":`is less than or equal to`,"≥":`is greater than or equal to`,"≈":`is approximately equal to`,"≡":`is equivalent to`,"∝":`is proportional to`,"∈":`is an element of`,"∉":`is not an element of`,"⊂":`is a subset of`,"⊆":`is a subset of or equal to`,"∪":`union`,"∩":`intersection`,"→":`right arrow`,"←":`left arrow`,"⇒":`implies`,"⇔":`if and only if`,"∑":`sum`,"∏":`product`,"∫":`integral`,"∞":`infinity`,"∠":`angle`,"⊥":`is perpendicular to`,"∥":`is parallel to`,"∴":`therefore`,",":`comma`,";":`semicolon`,":":`colon`,"|":`vertical bar`,"‖":`double vertical bar`,...sh,...ch,...lh},dh=new Set([`|`,`‖`]),fh=new Set([`∑`,`∏`,`∫`,`∪`,`∩`]),ph={α:`alpha`,β:`beta`,γ:`gamma`,δ:`delta`,ε:`epsilon`,θ:`theta`,λ:`lambda`,μ:`mu`,π:`pi`,ρ:`rho`,σ:`sigma`,τ:`tau`,φ:`phi`,ω:`omega`,Δ:`capital delta`,Σ:`capital sigma`,Ω:`capital omega`,"∞":`infinity`,sin:`sine`,cos:`cosine`,tan:`tangent`,sec:`secant`,csc:`cosecant`,cot:`cotangent`,ln:`natural log`,lim:`limit`},mh={"¯":`bar`,"‾":`bar`,"―":`bar`,"^":`hat`,ˆ:`hat`,"~":`tilde`,"˜":`tilde`,"→":`vector`,"⃗":`vector`,"˙":`dot`},hh=e=>(e.textContent??``).replace(ah,``).replace(/\s+/g,` `).trim(),gh=e=>e.replace(/\s+/g,` `).trim(),_h=e=>[...e.children];function vh(e){return!e||[`mn`,`mi`,`mtext`,`mo`].includes(e.localName)?!0:[`mrow`,`mstyle`].includes(e.localName)&&e.children.length===1?vh(e.children[0]):!1}function yh(e){let t=e?hh(e):``;return/^\d{1,3}$/.test(t)?Number(t):void 0}function bh(e){return`${e}${e%100>=11&&e%100<=13?`th`:{1:`st`,2:`nd`,3:`rd`}[e%10]??`th`}`}function xh(e){return ph[e]??e}function Sh(e){return uh[e]??e}function Ch(e){let t=[],n=!1;for(let r of e){if(r.localName!==`mo`){t.push(Mh(r)),n=!0;continue}let e=hh(r);e&&(!n&&oh[e]?t.push(oh[e]):e in lh?t.push(lh[e]):(t.push(Sh(e)),n=e in ch||dh.has(e)&&n))}return t.filter(Boolean).join(` `)}function wh(e){let[t,...n]=e,r=n[n.length-1],i=e=>e?.localName===`mo`&&[`|`,`‖`].includes(hh(e)),a=n.slice(0,-1);if(a.length&&i(t)&&i(r)&&hh(t)===hh(r)&&!a.some(i)){let e=gh(Ch(a));return hh(t)===`|`?`absolute value of ${e} end absolute value`:`norm of ${e} end norm`}return Ch(e)}function Th(e,t){let n=e?Mh(e):``,r=t?Mh(t):``;return vh(e)&&vh(t)?`${n} over ${r}`:`the fraction with numerator ${n} and denominator ${r}`}function Eh(e,t,n){return n?`${t} of ${e}`:`${t} of ${e} end root`}function Dh(e,t){let n=t?hh(t):``;if(t&&vh(t)){if(n===`2`)return`${e} squared`;if(n===`3`)return`${e} cubed`;if(n in lh)return`${e} ${lh[n]}`}let r=t?Mh(t):``;return vh(t)?`${e} to the power of ${r}`:`${e} to the power of ${r} end power`}function Oh(e,t){let n=t?Mh(t):``;return vh(t)?`${e} sub ${n}`:`${e} sub ${n} end sub`}function kh(e,t,n){let r=hh(e);if(r===`lim`)return`limit as ${t?Mh(t):``} of`;if(!fh.has(r))return;let i=t?`from ${Mh(t)}`:``,a=n?`to ${Mh(n)}`:``;return`${Sh(r)} ${i} ${a} of`}function Ah(e){let t=_h(e).filter(e=>[`mtr`,`mlabeledtr`].includes(e.localName)),n=t.map(e=>_h(e).filter(e=>e.localName===`mtd`)),r=Math.max(0,...n.map(e=>e.length)),i=n.map((e,t)=>`row ${t+1}: ${e.map(e=>gh(Ch(_h(e)))).join(`, `)}`);return`table with ${t.length} ${t.length===1?`row`:`rows`} and ${r} ${r===1?`column`:`columns`}. ${i.join(`. `)}`}function jh(e){let t=e.getAttribute(`open`)??`(`,n=e.getAttribute(`close`)??`)`,r=(e.getAttribute(`separators`)??`,`).replace(/\s+/g,``).split(``),i=_h(e).map((e,t,n)=>t<n.length-1?`${Mh(e)} ${Sh(r[Math.min(t,r.length-1)]??`,`)}`:Mh(e));return[Sh(t),...i,Sh(n)].filter(Boolean).join(` `)}function Mh(e){let t=_h(e);switch(e.localName){case`mi`:return xh(hh(e));case`mn`:case`mtext`:case`ms`:return hh(e);case`mo`:return Sh(hh(e));case`mspace`:case`mphantom`:case`annotation`:case`annotation-xml`:return``;case`semantics`:return t[0]?Mh(t[0]):``;case`mfrac`:return Th(t[0],t[1]);case`msqrt`:return Eh(gh(Ch(t)),`square root`,t.length===1&&vh(t[0]));case`mroot`:{let e=yh(t[1]),n=e===2?`square root`:e===3?`cube root`:e?`${bh(e)} root`:`root with index ${t[1]?Mh(t[1]):``}`;return Eh(t[0]?Mh(t[0]):``,n,vh(t[0]))}case`msup`:return Dh(t[0]?Mh(t[0]):``,t[1]);case`msub`:return Oh(t[0]?Mh(t[0]):``,t[1]);case`msubsup`:return(t[0]?kh(t[0],t[1],t[2]):void 0)||Dh(Oh(t[0]?Mh(t[0]):``,t[1]),t[2]);case`munder`:case`mover`:case`munderover`:{let[n,r,i]=t,a=e.localName===`mover`?void 0:r,o=e.localName===`munder`?void 0:e.localName===`mover`?r:i,s=n?kh(n,a,o):void 0;if(s)return s;let c=n?Mh(n):``,l=e.localName===`mover`&&r?mh[hh(r)]:void 0;return l?l===`vector`?`vector ${c}`:`${c} ${l}`:[c,a?`with ${Mh(a)} below`:``,o?`with ${Mh(o)} above`:``].filter(Boolean).join(` `)}case`mfenced`:return jh(e);case`mtable`:return Ah(e);case`mrow`:case`math`:return wh(t);default:return t.length?Ch(t):hh(e)}}function Nh(e){return gh(Mh(e))}var Ph=[`a[href]`,`button`,`label`,`summary`,...[`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`switch`,`tab`,`treeitem`].map(e=>`[role="${e}"]`)].join(`, `);function Fh(e){if(e.hasAttribute(`aria-label`)||!e.closest(Ph))return;let t=e.querySelector(`math`),n=t?Nh(t):``;n&&e.setAttribute(`aria-label`,n)}function Ih(e){for(let t of e.querySelectorAll(`mjx-container`))Fh(t)}var Lh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function Rh(){let e=globalThis;e[Lh]||(e[Lh]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${jp}`))}function zh(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),Rh()}function Bh(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>zh(e),{once:!0}),a})}`${Pp}`;var Vh={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1],perpendicular:`\\perp`,divide:`\\div`},Hh=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Uh=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Wh=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Gh=/\\embed\{newLine\}\[\]/g,Kh=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],qh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Jh=`MJX-CHTML-styles`,Yh=`PIE-MJX-SVG-styles`,Xh=`PIE-MathJax-Menu-Settings`,Zh={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},Qh=200,$h=201,eg=202;function tg(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];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`)}function ng(e){for(let[t,n]of Kh)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function rg(e){return ng(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var ig=`mathjax_ignore`,ag=`mathjax_process`;function og(e,t){let n=e.closest(`.${ig}, .${ag}`);return n!==null&&t.contains(n)&&!n.classList.contains(ag)}function sg(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||og(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${rg(n)}\\)`.replace(Gh,`\\newline `),t.dataset.mathHandled=`true`)}}function cg(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function lg(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Wh:Uh).test(e.textContent??``)}function ug(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Hp(e,{}.url),c=Rp(),l={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=em();return dg(t)&&fg(t),e}}},startup:{typeset:!1,ready:()=>{let e=em(),r=e?.startup,i=dg(e);i&&(fg(e),pg(e,s.speechLocales),Up(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(mg(r?.document),hg(r?.document),r?.document?.addStyles?.(Zh),Bh(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Vh}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:c}},a11y:{inTabOrder:c}}};r&&l.tex&&(console.warn(Hh),l.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],l.tex.processEscapes=!0),a||(l.chtml={fontURL:``});let u=Wp(s.speechLocales);u&&l.options&&(l.options.sre={locale:u}),nm(l,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function dg(e){return!!e?.version?.startsWith(`4.`)}function fg(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=im);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=Yh)}function pg(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=Xh;try{let e=localStorage.getItem(Xh);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(Xh,JSON.stringify(i)):localStorage.removeItem(Xh)}catch{}}}function mg(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(tg(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,$h,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&tg(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Jh&&(r.id=im),vg()}function hg(e){let t=e=>{e.typesetRoot&&Fh(e.typesetRoot)};e?.addRenderAction?.(`pie-name-math`,eg,e=>{for(let n of e.math??[])t(n);return!1},e=>(t(e),!1))}function gg(e){return e instanceof HTMLStyleElement&&am.includes(e.id)}function _g(e){Qp(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function vg(){let e=document.head,t=[...e.children].find(gg);if(t){_g(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(gg);if(e){_g(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function yg(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=Qh&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function bg(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=em()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function xg(e){let t=em();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():bg(t):ug(e)}function Sg(e){return xg(e).then(()=>{let e=em();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Cg(e){let t=rm,n=t[qh];return n||(n=Sg(e),t[qh]=n),n}function wg(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=om();r&&Qp(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),sg(n),um(n),cg(n),Xm(n);let i=Cg(e);if(!lg(n,t)){i.catch(()=>{});return}await i;let a=em();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){ih(),yg(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}tg(n),Ih(n)}}}var Tg=`@pie-lib/math-rendering`,Eg=`@pie-lib/math-rendering@2`,Dg=`pie-print`,Og=50,kg=1e4,Ag=null;function jg(){return!!window[Eg]?.opts?.useSingleDollar}function Mg(){return Ag||=wg({useSingleDollar:jg()}),Ag}function Ng(){if(typeof window>`u`)return null;let e=window[Tg];return typeof e?.renderMath==`function`&&e.renderMath!==Lg?e:null}function Pg(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===Dg)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function Fg(){let e=window.renderMath;return typeof e==`function`?e:null}async function Ig(e){let t=Pg(e);if(!t)return null;let n=Fg();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+kg;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,Og));let e=Fg();if(e)return e}return null}var Lg=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ng(),i=r||t?null:await Ig(n);return r?(await r.renderMath?.(n),Ih(n)):i&&i!==Lg?(await i(n),Ih(n)):await Mg()(n),t?n.innerHTML:void 0};function Rg(e){return e?e.trim().replace(/_/g,`-`).split(/[.@]/)[0].toLowerCase():``}function zg(e){return e?e.trim().replace(/_/g,`-`):``}function Bg(e){let t=Rg(e);if(!t)return[];let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--){let t=n.slice(0,e);t.length>1&&t[t.length-1].length===1||r.push(t.join(`-`))}return r}function Vg(e,t){for(let n of Bg(e)){let e=t.find(e=>Rg(e)===n);if(e!=null)return e}}var Hg=`en-US`,Ug=new Set([`ar`,`ckb`,`dv`,`fa`,`he`,`iw`,`ks`,`ku`,`nqo`,`ps`,`sd`,`syr`,`ug`,`ur`,`yi`]),Wg=new Set([`zero`,`one`,`two`,`few`,`many`,`other`]);function Gg(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length>0&&t.every(e=>Wg.has(e))}function Kg(e){try{let t=new Intl.Locale(e).textInfo;if(t?.direction===`rtl`||t?.direction===`ltr`)return t.direction}catch{}let t=Rg(e).split(`-`)[0]??``;return Ug.has(t)?`rtl`:`ltr`}var qg=class e{static{this.pluralRules=new Map}constructor(e){this.listeners=new Set,this.config={...e},this.fallbackLocale=zg(e.fallbackLocale)||`en-US`,this.catalogs=new Map([[Hg,e.source]]),this.customMessages={...e.customMessages??{}},this.loading=new Map,this.locale=this.resolveLocaleTag(e.locale)??`en-US`}getLocale(){return this.locale}async setLocale(e){let t=this.resolveLocaleTag(e);if(!t){this.locale=zg(e)||`en-US`,this.notify();return}await this.ensureLoaded(t),this.locale=t,this.notify()}t(e,t){let n=this.lookup(e);return n===void 0?(this.config.onMissingKey?.(e,this.locale),e):Zg(n,t,this.locale)}plural(e,t){let n=this.lookupNode(e);return n===void 0||!Gg(n)?this.t(e,t):Zg(n[this.selectPluralCategory(t.count)]??n.other,t,this.locale)}getDirection(){return Kg(this.locale)}getAvailableLocales(){return[...new Set([...this.catalogs.keys(),...this.config.availableLocales??[],...Object.keys(this.customMessages)])]}isLocaleLoaded(e){let t=this.resolveLocaleTag(e);return t!==void 0&&this.catalogs.has(t)}needsLoad(e){let t=this.resolveLocaleTag(e);return t!==void 0&&!this.catalogs.has(t)&&this.config.availableLocales?.includes(t)===!0}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}hasKey(e){return this.lookup(e)!==void 0}addCustomMessages(e,t){let n=zg(e);this.customMessages[n]=Qg(this.customMessages[n]??{},t),this.notify()}withLocale(t){let n=this.resolveLocaleTag(t)??zg(t);if(n===this.locale)return this;let r=new e({...this.config,locale:n});return r.locale=n||`en-US`,r.catalogs=this.catalogs,r.customMessages=this.customMessages,r.loading=this.loading,r}formatNumber(e,t){try{return new Intl.NumberFormat(this.locale,t).format(e)}catch{return new Intl.NumberFormat(Hg,t).format(e)}}formatDate(e,t){try{return new Intl.DateTimeFormat(this.locale,t).format(e)}catch{return new Intl.DateTimeFormat(Hg,t).format(e)}}async ensureLoaded(e){if(this.catalogs.has(e)||!this.config.availableLocales?.includes(e))return;let t=this.loading.get(e);if(t){await t;return}let n=this.loadCatalog(e);this.loading.set(e,n);try{await n}finally{this.loading.delete(e)}}resolveLocaleTag(e){if(!e)return;let t=this.getAvailableLocales(),n=Vg(e,t);if(n)return n;let r=Rg(e).split(`-`)[0];if(r)return t.find(e=>Rg(e).split(`-`)[0]===r)}async loadCatalog(e){let t=this.config.loadCatalog;if(t)try{this.catalogs.set(e,await t(e))}catch(t){throw Error(`Failed to load i18n catalog for locale: ${e}`,{cause:t})}}lookupNode(e){let t=[this.customMessages[this.locale],this.catalogs.get(this.locale),this.customMessages[this.fallbackLocale],this.catalogs.get(this.fallbackLocale)];for(let n of t){let t=Jg(n,e);if(t!==void 0)return t}}lookup(e){let t=this.lookupNode(e);if(typeof t==`string`)return t;if(t!==void 0&&Gg(t))return t.other}selectPluralCategory(t){let n=e.pluralRules.get(this.locale);if(!n){try{n=new Intl.PluralRules(this.locale)}catch{return t===1?`one`:`other`}e.pluralRules.set(this.locale,n)}return n.select(t)}notify(){for(let e of this.listeners)e()}};function Jg(e,t){if(!e)return;let n=e;for(let e of t.split(`.`))if(typeof n!=`object`||!n||(n=n[e],n===void 0))return;return n}var Yg=new Map;function Xg(e,t){let n=Yg.get(t);if(!n){try{n=new Intl.NumberFormat(t)}catch{n=new Intl.NumberFormat(Hg)}Yg.set(t,n)}return n.format(e)}function Zg(e,t,n){return t?e.replace(/\{(\w+)\}/g,(e,r)=>{let i=t[r];return i==null?e:n!==void 0&&typeof i==`number`&&Number.isFinite(i)?Xg(i,n):String(i)}):e}function Qg(e,t){let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];r&&typeof r==`object`&&t&&typeof t==`object`?n[e]=Qg(t,r):n[e]=r}return n}var $g=Symbol.for(`pie-element.i18n.registry`);function e_(){let e=globalThis;return e[$g]||(e[$g]={sets:new Set,messages:new Map}),e[$g]}function t_(e){let t=e.loaders??{},n=e_(),r=new qg({source:e.source,availableLocales:[Hg,...Object.keys(t)],loadCatalog:async e=>(await t[e]()).default});for(let{locale:t,messages:i}of n.messages.get(e.packageName)??[])r.addCustomMessages(t,i);let i=new Map,a=new Map,o=new Set,s=e=>{let t=e||`en-US`,n=i.get(t);return n||(n=r.withLocale(t),i.set(t,n)),n},c={packageName:e.packageName,locales:[Hg,...Object.keys(t)],forLocale:(e,t)=>(t&&e&&c.needsLoad(e)&&c.load(e).then(t),s(e)),needsLoad:e=>!o.has(e)&&r.needsLoad(e),load:t=>{if(!c.needsLoad(t))return Promise.resolve();let n=a.get(t);return n||(n=s(t).setLocale(t).catch(n=>{o.add(t),console.warn(`[${e.packageName}]`,n)}).finally(()=>a.delete(t)),a.set(t,n)),n},addCustomMessages:(e,t)=>{r.addCustomMessages(e,t),i.clear()}};return n.sets.add(c),c}function n_(e){if(!e)return!0;for(let t of e_().sets)if(t.needsLoad(e))return!1;return!0}async function r_(e){e&&await Promise.all([...e_().sets].map(t=>t.load(e)))}function i_(e){let t=zg(e).split(/[.@]/)[0];if(/^[a-z]{2,3}(-|$)/i.test(t))try{return Intl.getCanonicalLocales(t)[0]}catch{return}}function a_(e){let t=i_(e);return t?{lang:t,dir:Kg(t)}:void 0}function o_(e,t){let n=a_(t);n?(e.setAttribute(`lang`,n.lang),e.setAttribute(`dir`,n.dir)):(e.removeAttribute(`lang`),e.removeAttribute(`dir`))}var s_=t_({packageName:`@pie-lib/render-ui`,source:{playAudio:`Play audio`,show:`Show`,hide:`Hide`},loaders:{}}),c_=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,l_=e=>_.useState(()=>c_(e))[0],u_=q(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:Ef(),cursor:`pointer`}),d_=q(`span`)({borderBottom:`1px dotted currentColor`}),f_=q(kp)(({theme:e})=>({paddingTop:e.spacing(2)})),p_=class extends _.Component{static propTypes={className:m.string,children:m.object,labels:m.shape({visible:m.string,hidden:m.string}),language:m.string};static defaultProps={labels:{}};state={expanded:!1};panelId=c_(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};relabel=()=>this.forceUpdate();componentDidMount(){Lg(this.root)}componentDidUpdate(){Lg(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=s_.forLocale(r,this.relabel),o=i?e.visible||a.t(`hide`):e.hidden||a.t(`show`);return(0,v.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,v.jsx)(`div`,{children:(0,v.jsx)(u_,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,v.jsx)(d_,{children:o})})}),(0,v.jsx)(`div`,{id:this.panelId,children:(0,v.jsx)(f_,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}};function m_(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var h_=class e{static create(){return new e}static use(){let t=ns(e.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=__(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function g_(){return h_.use()}function __(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function v_(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=_.useState(!1),f=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),_.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,v.jsx)(`span`,{className:f,style:p,children:(0,v.jsx)(`span`,{className:m})})}var y_=Wr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),b_=550,x_=Bt`
85
+ `;function ih(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=Zm,t.textContent=rh,e.head.appendChild(t)}var ah=/[⁡-⁤]/g,oh={"+":`positive`,"-":`negative`,"−":`negative`,"±":`plus or minus`,"∓":`minus or plus`},sh={"(":`open parenthesis`,"[":`open bracket`,"{":`open brace`,"⟨":`open angle bracket`,"⌊":`open floor`,"⌈":`open ceiling`},ch={")":`close parenthesis`,"]":`close bracket`,"}":`close brace`,"⟩":`close angle bracket`,"⌋":`close floor`,"⌉":`close ceiling`},lh={"!":`factorial`,"%":`percent`,"°":`degrees`,"′":`prime`,"″":`double prime`},uh={"+":`plus`,"-":`minus`,"−":`minus`,"±":`plus or minus`,"∓":`minus or plus`,"×":`times`,"⋅":`times`,"·":`times`,"*":`times`,"÷":`divided by`,"/":`divided by`,"=":`equals`,"≠":`does not equal`,"<":`is less than`,">":`is greater than`,"≤":`is less than or equal to`,"≥":`is greater than or equal to`,"≈":`is approximately equal to`,"≡":`is equivalent to`,"∝":`is proportional to`,"∈":`is an element of`,"∉":`is not an element of`,"⊂":`is a subset of`,"⊆":`is a subset of or equal to`,"∪":`union`,"∩":`intersection`,"→":`right arrow`,"←":`left arrow`,"⇒":`implies`,"⇔":`if and only if`,"∑":`sum`,"∏":`product`,"∫":`integral`,"∞":`infinity`,"∠":`angle`,"⊥":`is perpendicular to`,"∥":`is parallel to`,"∴":`therefore`,",":`comma`,";":`semicolon`,":":`colon`,"|":`vertical bar`,"‖":`double vertical bar`,...sh,...ch,...lh},dh=new Set([`|`,`‖`]),fh=new Set([`∑`,`∏`,`∫`,`∪`,`∩`]),ph={α:`alpha`,β:`beta`,γ:`gamma`,δ:`delta`,ε:`epsilon`,θ:`theta`,λ:`lambda`,μ:`mu`,π:`pi`,ρ:`rho`,σ:`sigma`,τ:`tau`,φ:`phi`,ω:`omega`,Δ:`capital delta`,Σ:`capital sigma`,Ω:`capital omega`,"∞":`infinity`,sin:`sine`,cos:`cosine`,tan:`tangent`,sec:`secant`,csc:`cosecant`,cot:`cotangent`,ln:`natural log`,lim:`limit`},mh={"¯":`bar`,"‾":`bar`,"―":`bar`,"^":`hat`,ˆ:`hat`,"~":`tilde`,"˜":`tilde`,"→":`vector`,"⃗":`vector`,"˙":`dot`},hh=e=>(e.textContent??``).replace(ah,``).replace(/\s+/g,` `).trim(),gh=e=>e.replace(/\s+/g,` `).trim(),_h=e=>[...e.children];function vh(e){return!e||[`mn`,`mi`,`mtext`,`mo`].includes(e.localName)?!0:[`mrow`,`mstyle`].includes(e.localName)&&e.children.length===1?vh(e.children[0]):!1}function yh(e){let t=e?hh(e):``;return/^\d{1,3}$/.test(t)?Number(t):void 0}function bh(e){return`${e}${e%100>=11&&e%100<=13?`th`:{1:`st`,2:`nd`,3:`rd`}[e%10]??`th`}`}function xh(e){return ph[e]??e}function Sh(e){return uh[e]??e}function Ch(e){let t=[],n=!1;for(let r of e){if(r.localName!==`mo`){t.push(Mh(r)),n=!0;continue}let e=hh(r);e&&(!n&&oh[e]?t.push(oh[e]):e in lh?t.push(lh[e]):(t.push(Sh(e)),n=e in ch||dh.has(e)&&n))}return t.filter(Boolean).join(` `)}function wh(e){let[t,...n]=e,r=n[n.length-1],i=e=>e?.localName===`mo`&&[`|`,`‖`].includes(hh(e)),a=n.slice(0,-1);if(a.length&&i(t)&&i(r)&&hh(t)===hh(r)&&!a.some(i)){let e=gh(Ch(a));return hh(t)===`|`?`absolute value of ${e} end absolute value`:`norm of ${e} end norm`}return Ch(e)}function Th(e,t){let n=e?Mh(e):``,r=t?Mh(t):``;return vh(e)&&vh(t)?`${n} over ${r}`:`the fraction with numerator ${n} and denominator ${r}`}function Eh(e,t,n){return n?`${t} of ${e}`:`${t} of ${e} end root`}function Dh(e,t){let n=t?hh(t):``;if(t&&vh(t)){if(n===`2`)return`${e} squared`;if(n===`3`)return`${e} cubed`;if(n in lh)return`${e} ${lh[n]}`}let r=t?Mh(t):``;return vh(t)?`${e} to the power of ${r}`:`${e} to the power of ${r} end power`}function Oh(e,t){let n=t?Mh(t):``;return vh(t)?`${e} sub ${n}`:`${e} sub ${n} end sub`}function kh(e,t,n){let r=hh(e);if(r===`lim`)return`limit as ${t?Mh(t):``} of`;if(!fh.has(r))return;let i=t?`from ${Mh(t)}`:``,a=n?`to ${Mh(n)}`:``;return`${Sh(r)} ${i} ${a} of`}function Ah(e){let t=_h(e).filter(e=>[`mtr`,`mlabeledtr`].includes(e.localName)),n=t.map(e=>_h(e).filter(e=>e.localName===`mtd`)),r=Math.max(0,...n.map(e=>e.length)),i=n.map((e,t)=>`row ${t+1}: ${e.map(e=>gh(Ch(_h(e)))).join(`, `)}`);return`table with ${t.length} ${t.length===1?`row`:`rows`} and ${r} ${r===1?`column`:`columns`}. ${i.join(`. `)}`}function jh(e){let t=e.getAttribute(`open`)??`(`,n=e.getAttribute(`close`)??`)`,r=(e.getAttribute(`separators`)??`,`).replace(/\s+/g,``).split(``),i=_h(e).map((e,t,n)=>t<n.length-1?`${Mh(e)} ${Sh(r[Math.min(t,r.length-1)]??`,`)}`:Mh(e));return[Sh(t),...i,Sh(n)].filter(Boolean).join(` `)}function Mh(e){let t=_h(e);switch(e.localName){case`mi`:return xh(hh(e));case`mn`:case`mtext`:case`ms`:return hh(e);case`mo`:return Sh(hh(e));case`mspace`:case`mphantom`:case`annotation`:case`annotation-xml`:return``;case`semantics`:return t[0]?Mh(t[0]):``;case`mfrac`:return Th(t[0],t[1]);case`msqrt`:return Eh(gh(Ch(t)),`square root`,t.length===1&&vh(t[0]));case`mroot`:{let e=yh(t[1]),n=e===2?`square root`:e===3?`cube root`:e?`${bh(e)} root`:`root with index ${t[1]?Mh(t[1]):``}`;return Eh(t[0]?Mh(t[0]):``,n,vh(t[0]))}case`msup`:return Dh(t[0]?Mh(t[0]):``,t[1]);case`msub`:return Oh(t[0]?Mh(t[0]):``,t[1]);case`msubsup`:return(t[0]?kh(t[0],t[1],t[2]):void 0)||Dh(Oh(t[0]?Mh(t[0]):``,t[1]),t[2]);case`munder`:case`mover`:case`munderover`:{let[n,r,i]=t,a=e.localName===`mover`?void 0:r,o=e.localName===`munder`?void 0:e.localName===`mover`?r:i,s=n?kh(n,a,o):void 0;if(s)return s;let c=n?Mh(n):``,l=e.localName===`mover`&&r?mh[hh(r)]:void 0;return l?l===`vector`?`vector ${c}`:`${c} ${l}`:[c,a?`with ${Mh(a)} below`:``,o?`with ${Mh(o)} above`:``].filter(Boolean).join(` `)}case`mfenced`:return jh(e);case`mtable`:return Ah(e);case`mrow`:case`math`:return wh(t);default:return t.length?Ch(t):hh(e)}}function Nh(e){return gh(Mh(e))}var Ph=[`a[href]`,`button`,`label`,`summary`,...[`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`switch`,`tab`,`treeitem`].map(e=>`[role="${e}"]`)].join(`, `);function Fh(e){if(e.hasAttribute(`aria-label`)||!e.closest(Ph))return;let t=e.querySelector(`math`),n=t?Nh(t):``;n&&e.setAttribute(`aria-label`,n)}function Ih(e){for(let t of e.querySelectorAll(`mjx-container`))Fh(t)}var Lh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function Rh(){let e=globalThis;e[Lh]||(e[Lh]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${jp}`))}function zh(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),Rh()}function Bh(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>zh(e),{once:!0}),a})}`${Pp}`;var Vh={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1],perpendicular:`\\perp`,divide:`\\div`},Hh=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Uh=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Wh=/\\embed\{newLine\}\[\]/g,Gh=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]];function Kh(e){for(let[t,n]of Gh)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function qh(e){return`\\(${Kh(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}\\)`.replace(Wh,`\\newline `)}var Jh=`mathjax_ignore`,Yh=`mathjax_process`,Xh=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Zh=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Qh=`MJX-CHTML-styles`,$h=`PIE-MJX-SVG-styles`,eg=`PIE-MathJax-Menu-Settings`,tg={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},ng=200,rg=201,ig=202;function ag(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];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`)}function og(e,t){let n=e.closest(`.${Jh}, .${Yh}`);return n!==null&&t.contains(n)&&!n.classList.contains(`mathjax_process`)}function sg(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||og(t,e))continue;let n=t.textContent;n&&(t.textContent=qh(n),t.dataset.mathHandled=`true`)}}function cg(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function lg(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Uh:Hh).test(e.textContent??``)}function ug(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Hp(e,{}.url),c=Rp(),l={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=em();return dg(t)&&fg(t),e}}},startup:{typeset:!1,ready:()=>{let e=em(),r=e?.startup,i=dg(e);i&&(fg(e),pg(e,s.speechLocales),Up(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(mg(r?.document),hg(r?.document),r?.document?.addStyles?.(tg),Bh(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...Vh}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:c}},a11y:{inTabOrder:c}}};r&&l.tex&&(console.warn(Xh),l.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],l.tex.processEscapes=!0),a||(l.chtml={fontURL:``});let u=Wp(s.speechLocales);u&&l.options&&(l.options.sre={locale:u}),nm(l,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function dg(e){return!!e?.version?.startsWith(`4.`)}function fg(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=im);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=$h)}function pg(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=eg;try{let e=localStorage.getItem(eg);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(eg,JSON.stringify(i)):localStorage.removeItem(eg)}catch{}}}function mg(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(ag(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,rg,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&ag(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Qh&&(r.id=im),vg()}function hg(e){let t=e=>{e.typesetRoot&&Fh(e.typesetRoot)};e?.addRenderAction?.(`pie-name-math`,ig,e=>{for(let n of e.math??[])t(n);return!1},e=>(t(e),!1))}function gg(e){return e instanceof HTMLStyleElement&&am.includes(e.id)}function _g(e){Qp(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function vg(){let e=document.head,t=[...e.children].find(gg);if(t){_g(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(gg);if(e){_g(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function yg(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=ng&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function bg(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=em()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function xg(e){let t=em();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():bg(t):ug(e)}function Sg(e){return xg(e).then(()=>{let e=em();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Cg(e){let t=rm,n=t[Zh];return n||(n=Sg(e),t[Zh]=n),n}function wg(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=om();r&&Qp(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),sg(n),um(n),cg(n),Xm(n);let i=Cg(e);if(!lg(n,t)){i.catch(()=>{});return}await i;let a=em();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){ih(),yg(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}ag(n),Ih(n)}}}var Tg=`@pie-lib/math-rendering`,Eg=`@pie-lib/math-rendering@2`,Dg=`pie-print`,Og=50,kg=1e4,Ag=null;function jg(){return!!window[Eg]?.opts?.useSingleDollar}function Mg(){return Ag||=wg({useSingleDollar:jg()}),Ag}function Ng(){if(typeof window>`u`)return null;let e=window[Tg];return typeof e?.renderMath==`function`&&e.renderMath!==Lg?e:null}function Pg(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===Dg)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function Fg(){let e=window.renderMath;return typeof e==`function`?e:null}async function Ig(e){let t=Pg(e);if(!t)return null;let n=Fg();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+kg;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,Og));let e=Fg();if(e)return e}return null}var Lg=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ng(),i=r||t?null:await Ig(n);return r?(await r.renderMath?.(n),Ih(n)):i&&i!==Lg?(await i(n),Ih(n)):await Mg()(n),t?n.innerHTML:void 0};function Rg(e){return e?e.trim().replace(/_/g,`-`).split(/[.@]/)[0].toLowerCase():``}function zg(e){return e?e.trim().replace(/_/g,`-`):``}function Bg(e){let t=Rg(e);if(!t)return[];let n=t.split(`-`),r=[];for(let e=n.length;e>0;e--){let t=n.slice(0,e);t.length>1&&t[t.length-1].length===1||r.push(t.join(`-`))}return r}function Vg(e,t){for(let n of Bg(e)){let e=t.find(e=>Rg(e)===n);if(e!=null)return e}}var Hg=`en-US`,Ug=new Set([`ar`,`ckb`,`dv`,`fa`,`he`,`iw`,`ks`,`ku`,`nqo`,`ps`,`sd`,`syr`,`ug`,`ur`,`yi`]),Wg=new Set([`zero`,`one`,`two`,`few`,`many`,`other`]);function Gg(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length>0&&t.every(e=>Wg.has(e))}function Kg(e){try{let t=new Intl.Locale(e).textInfo;if(t?.direction===`rtl`||t?.direction===`ltr`)return t.direction}catch{}let t=Rg(e).split(`-`)[0]??``;return Ug.has(t)?`rtl`:`ltr`}var qg=class e{static{this.pluralRules=new Map}constructor(e){this.listeners=new Set,this.config={...e},this.fallbackLocale=zg(e.fallbackLocale)||`en-US`,this.catalogs=new Map([[Hg,e.source]]),this.customMessages={...e.customMessages??{}},this.loading=new Map,this.locale=this.resolveLocaleTag(e.locale)??`en-US`}getLocale(){return this.locale}async setLocale(e){let t=this.resolveLocaleTag(e);if(!t){this.locale=zg(e)||`en-US`,this.notify();return}await this.ensureLoaded(t),this.locale=t,this.notify()}t(e,t){let n=this.lookup(e);return n===void 0?(this.config.onMissingKey?.(e,this.locale),e):Zg(n,t,this.locale)}plural(e,t){let n=this.lookupNode(e);return n===void 0||!Gg(n)?this.t(e,t):Zg(n[this.selectPluralCategory(t.count)]??n.other,t,this.locale)}getDirection(){return Kg(this.locale)}getAvailableLocales(){return[...new Set([...this.catalogs.keys(),...this.config.availableLocales??[],...Object.keys(this.customMessages)])]}isLocaleLoaded(e){let t=this.resolveLocaleTag(e);return t!==void 0&&this.catalogs.has(t)}needsLoad(e){let t=this.resolveLocaleTag(e);return t!==void 0&&!this.catalogs.has(t)&&this.config.availableLocales?.includes(t)===!0}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}hasKey(e){return this.lookup(e)!==void 0}addCustomMessages(e,t){let n=zg(e);this.customMessages[n]=Qg(this.customMessages[n]??{},t),this.notify()}withLocale(t){let n=this.resolveLocaleTag(t)??zg(t);if(n===this.locale)return this;let r=new e({...this.config,locale:n});return r.locale=n||`en-US`,r.catalogs=this.catalogs,r.customMessages=this.customMessages,r.loading=this.loading,r}formatNumber(e,t){try{return new Intl.NumberFormat(this.locale,t).format(e)}catch{return new Intl.NumberFormat(Hg,t).format(e)}}formatDate(e,t){try{return new Intl.DateTimeFormat(this.locale,t).format(e)}catch{return new Intl.DateTimeFormat(Hg,t).format(e)}}async ensureLoaded(e){if(this.catalogs.has(e)||!this.config.availableLocales?.includes(e))return;let t=this.loading.get(e);if(t){await t;return}let n=this.loadCatalog(e);this.loading.set(e,n);try{await n}finally{this.loading.delete(e)}}resolveLocaleTag(e){if(!e)return;let t=this.getAvailableLocales(),n=Vg(e,t);if(n)return n;let r=Rg(e).split(`-`)[0];if(r)return t.find(e=>Rg(e).split(`-`)[0]===r)}async loadCatalog(e){let t=this.config.loadCatalog;if(t)try{this.catalogs.set(e,await t(e))}catch(t){throw Error(`Failed to load i18n catalog for locale: ${e}`,{cause:t})}}lookupNode(e){let t=[this.customMessages[this.locale],this.catalogs.get(this.locale),this.customMessages[this.fallbackLocale],this.catalogs.get(this.fallbackLocale)];for(let n of t){let t=Jg(n,e);if(t!==void 0)return t}}lookup(e){let t=this.lookupNode(e);if(typeof t==`string`)return t;if(t!==void 0&&Gg(t))return t.other}selectPluralCategory(t){let n=e.pluralRules.get(this.locale);if(!n){try{n=new Intl.PluralRules(this.locale)}catch{return t===1?`one`:`other`}e.pluralRules.set(this.locale,n)}return n.select(t)}notify(){for(let e of this.listeners)e()}};function Jg(e,t){if(!e)return;let n=e;for(let e of t.split(`.`))if(typeof n!=`object`||!n||(n=n[e],n===void 0))return;return n}var Yg=new Map;function Xg(e,t){let n=Yg.get(t);if(!n){try{n=new Intl.NumberFormat(t)}catch{n=new Intl.NumberFormat(Hg)}Yg.set(t,n)}return n.format(e)}function Zg(e,t,n){return t?e.replace(/\{(\w+)\}/g,(e,r)=>{let i=t[r];return i==null?e:n!==void 0&&typeof i==`number`&&Number.isFinite(i)?Xg(i,n):String(i)}):e}function Qg(e,t){let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];r&&typeof r==`object`&&t&&typeof t==`object`?n[e]=Qg(t,r):n[e]=r}return n}var $g=Symbol.for(`pie-element.i18n.registry`);function e_(){let e=globalThis;return e[$g]||(e[$g]={sets:new Set,messages:new Map}),e[$g]}function t_(e){let t=e.loaders??{},n=e_(),r=new qg({source:e.source,availableLocales:[Hg,...Object.keys(t)],loadCatalog:async e=>(await t[e]()).default});for(let{locale:t,messages:i}of n.messages.get(e.packageName)??[])r.addCustomMessages(t,i);let i=new Map,a=new Map,o=new Set,s=e=>{let t=e||`en-US`,n=i.get(t);return n||(n=r.withLocale(t),i.set(t,n)),n},c={packageName:e.packageName,locales:[Hg,...Object.keys(t)],forLocale:(e,t)=>(t&&e&&c.needsLoad(e)&&c.load(e).then(t),s(e)),needsLoad:e=>!o.has(e)&&r.needsLoad(e),load:t=>{if(!c.needsLoad(t))return Promise.resolve();let n=a.get(t);return n||(n=s(t).setLocale(t).catch(n=>{o.add(t),console.warn(`[${e.packageName}]`,n)}).finally(()=>a.delete(t)),a.set(t,n)),n},addCustomMessages:(e,t)=>{r.addCustomMessages(e,t),i.clear()}};return n.sets.add(c),c}function n_(e){if(!e)return!0;for(let t of e_().sets)if(t.needsLoad(e))return!1;return!0}async function r_(e){e&&await Promise.all([...e_().sets].map(t=>t.load(e)))}function i_(e){let t=zg(e).split(/[.@]/)[0];if(/^[a-z]{2,3}(-|$)/i.test(t))try{return Intl.getCanonicalLocales(t)[0]}catch{return}}function a_(e){let t=i_(e);return t?{lang:t,dir:Kg(t)}:void 0}function o_(e,t){let n=a_(t);n?(e.setAttribute(`lang`,n.lang),e.setAttribute(`dir`,n.dir)):(e.removeAttribute(`lang`),e.removeAttribute(`dir`))}var s_=t_({packageName:`@pie-lib/render-ui`,source:{playAudio:`Play audio`,show:`Show`,hide:`Hide`},loaders:{}}),c_=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,l_=e=>_.useState(()=>c_(e))[0],u_=q(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:Ef(),cursor:`pointer`}),d_=q(`span`)({borderBottom:`1px dotted currentColor`}),f_=q(kp)(({theme:e})=>({paddingTop:e.spacing(2)})),p_=class extends _.Component{static propTypes={className:m.string,children:m.object,labels:m.shape({visible:m.string,hidden:m.string}),language:m.string};static defaultProps={labels:{}};state={expanded:!1};panelId=c_(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};relabel=()=>this.forceUpdate();componentDidMount(){Lg(this.root)}componentDidUpdate(){Lg(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=s_.forLocale(r,this.relabel),o=i?e.visible||a.t(`hide`):e.hidden||a.t(`show`);return(0,v.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,v.jsx)(`div`,{children:(0,v.jsx)(u_,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,v.jsx)(d_,{children:o})})}),(0,v.jsx)(`div`,{id:this.panelId,children:(0,v.jsx)(f_,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}};function m_(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var h_=class e{static create(){return new e}static use(){let t=ns(e.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=__(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function g_(){return h_.use()}function __(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function v_(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=_.useState(!1),f=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),_.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,v.jsx)(`span`,{className:f,style:p,children:(0,v.jsx)(`span`,{className:m})})}var y_=Wr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),b_=550,x_=Bt`
86
86
  0% {
87
87
  transform: scale(0);
88
88
  opacity: 0.1;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6-next.20261018193205/dist/schemas/configuration.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6/dist/schemas/configuration.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "answerChoiceCount": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6-next.20261018193205/dist/schemas/model.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6/dist/schemas/model.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "id": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6-next.20261018193205/dist/schemas/session.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@pie-element/multiple-choice@14.0.6/dist/schemas/session.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "id": {
package/module/print.js CHANGED
@@ -15196,36 +15196,36 @@ var yv = {
15196
15196
  abs: ["\\left|#1\\right|", 1],
15197
15197
  perpendicular: "\\perp",
15198
15198
  divide: "\\div"
15199
- }, bv = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", xv = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Sv = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Cv = /\\embed\{newLine\}\[\]/g, wv = [
15199
+ }, bv = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, xv = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, Sv = /\\embed\{newLine\}\[\]/g, Cv = [
15200
15200
  ["$$", "$$"],
15201
15201
  ["$", "$"],
15202
15202
  ["\\[", "\\]"],
15203
15203
  ["\\(", "\\)"]
15204
- ], Tv = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Ev = "MJX-CHTML-styles", Dv = "PIE-MJX-SVG-styles", Ov = "PIE-MathJax-Menu-Settings", kv = { "mjx-container[overflow=\"linebreak\"][display]": {
15204
+ ];
15205
+ function wv(e) {
15206
+ for (let [t, n] of Cv) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
15207
+ return e;
15208
+ }
15209
+ function Tv(e) {
15210
+ return `\\(${wv(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(Sv, "\\newline ");
15211
+ }
15212
+ var Ev = "mathjax_ignore", Dv = "mathjax_process", Ov = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", kv = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Av = "MJX-CHTML-styles", jv = "PIE-MJX-SVG-styles", Mv = "PIE-MathJax-Menu-Settings", Nv = { "mjx-container[overflow=\"linebreak\"][display]": {
15205
15213
  overflow: "auto clip",
15206
15214
  "min-width": "initial !important"
15207
- } }, Av = 200, jv = 201, Mv = 202;
15208
- function Nv(e) {
15215
+ } }, Pv = 200, Fv = 201, Iv = 202;
15216
+ function Lv(e) {
15209
15217
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
15210
15218
  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");
15211
15219
  }
15212
- function Pv(e) {
15213
- for (let [t, n] of wv) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
15214
- return e;
15215
- }
15216
- function Fv(e) {
15217
- return Pv(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
15218
- }
15219
- var Iv = "mathjax_ignore", Lv = "mathjax_process";
15220
15220
  function Rv(e, t) {
15221
- let n = e.closest(`.${Iv}, .${Lv}`);
15222
- return n !== null && t.contains(n) && !n.classList.contains(Lv);
15221
+ let n = e.closest(`.${Ev}, .${Dv}`);
15222
+ return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
15223
15223
  }
15224
15224
  function zv(e) {
15225
15225
  for (let t of e.querySelectorAll("[data-latex]")) {
15226
15226
  if (t.dataset.mathHandled || t.closest("mjx-container") || Rv(t, e)) continue;
15227
15227
  let n = t.textContent;
15228
- n && (t.textContent = `\\(${Fv(n)}\\)`.replace(Cv, "\\newline "), t.dataset.mathHandled = "true");
15228
+ n && (t.textContent = Tv(n), t.dataset.mathHandled = "true");
15229
15229
  }
15230
15230
  }
15231
15231
  function Bv(e) {
@@ -15233,7 +15233,7 @@ function Bv(e) {
15233
15233
  }
15234
15234
  function Vv(e, t) {
15235
15235
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
15236
- return (t ? Sv : xv).test(e.textContent ?? "");
15236
+ return (t ? xv : bv).test(e.textContent ?? "");
15237
15237
  }
15238
15238
  function Hv(e) {
15239
15239
  return new Promise((t, n) => {
@@ -15250,7 +15250,7 @@ function Hv(e) {
15250
15250
  typeset: !1,
15251
15251
  ready: () => {
15252
15252
  let e = Mg(), r = e?.startup, i = Uv(e);
15253
- i && (Wv(e), Gv(e, s.speechLocales), Sg(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Kv(r?.document), qv(r?.document), r?.document?.addStyles?.(kv), vv(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
15253
+ i && (Wv(e), Gv(e, s.speechLocales), Sg(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Kv(r?.document), qv(r?.document), r?.document?.addStyles?.(Nv), vv(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
15254
15254
  }
15255
15255
  },
15256
15256
  tex: { macros: { ...yv } },
@@ -15265,7 +15265,7 @@ function Hv(e) {
15265
15265
  a11y: { inTabOrder: c }
15266
15266
  }
15267
15267
  };
15268
- r && l.tex && (console.warn(bv), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
15268
+ r && l.tex && (console.warn(Ov), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
15269
15269
  let u = Cg(s.speechLocales);
15270
15270
  u && l.options && (l.options.sre = { locale: u }), Pg(l, {
15271
15271
  ...s,
@@ -15282,18 +15282,18 @@ function Wv(e) {
15282
15282
  let t = e?._?.output, n = t?.chtml_ts?.CHTML;
15283
15283
  n && (n.STYLESHEETID = Ig);
15284
15284
  let r = t?.svg_ts?.SVG;
15285
- r && (r.STYLESHEETID = Dv);
15285
+ r && (r.STYLESHEETID = jv);
15286
15286
  }
15287
15287
  function Gv(e, t) {
15288
15288
  let n = e?._?.ui?.menu?.Menu?.Menu;
15289
15289
  if (n) {
15290
- n.MENU_STORAGE = Ov;
15290
+ n.MENU_STORAGE = Mv;
15291
15291
  try {
15292
- let e = localStorage.getItem(Ov);
15292
+ let e = localStorage.getItem(Mv);
15293
15293
  if (!e) return;
15294
15294
  let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
15295
15295
  if (n === void 0 && a) return;
15296
- a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(Ov, JSON.stringify(i)) : localStorage.removeItem(Ov);
15296
+ a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(Mv, JSON.stringify(i)) : localStorage.removeItem(Mv);
15297
15297
  } catch {}
15298
15298
  }
15299
15299
  }
@@ -15301,23 +15301,23 @@ function Kv(e) {
15301
15301
  if (!e) return;
15302
15302
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
15303
15303
  let n = e.typesetRoot;
15304
- !n || t.has(n) || (Nv(n), t.add(n));
15304
+ !n || t.has(n) || (Lv(n), t.add(n));
15305
15305
  };
15306
- e.addRenderAction?.("pie-strip-latex", jv, (e) => {
15306
+ e.addRenderAction?.("pie-strip-latex", Fv, (e) => {
15307
15307
  for (let t of e.math ?? []) n(t);
15308
15308
  return !1;
15309
15309
  }, (e) => {
15310
15310
  let t = e.typesetRoot;
15311
- return t && Nv(t), !1;
15311
+ return t && Lv(t), !1;
15312
15312
  });
15313
15313
  let r = e.outputJax?.chtmlStyles;
15314
- r?.id === Ev && (r.id = Ig), Xv();
15314
+ r?.id === Av && (r.id = Ig), Xv();
15315
15315
  }
15316
15316
  function qv(e) {
15317
15317
  let t = (e) => {
15318
15318
  e.typesetRoot && pv(e.typesetRoot);
15319
15319
  };
15320
- e?.addRenderAction?.("pie-name-math", Mv, (e) => {
15320
+ e?.addRenderAction?.("pie-name-math", Iv, (e) => {
15321
15321
  for (let n of e.math ?? []) t(n);
15322
15322
  return !1;
15323
15323
  }, (e) => (t(e), !1));
@@ -15348,7 +15348,7 @@ function Xv() {
15348
15348
  function Zv(e) {
15349
15349
  let t = e?.math;
15350
15350
  if (!t?.remove) return;
15351
- let n = [...t].filter((e) => (e.state?.() ?? 0) >= Av && e.typesetRoot?.isConnected === !1);
15351
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= Pv && e.typesetRoot?.isConnected === !1);
15352
15352
  if (n.length !== 0) {
15353
15353
  for (let e of [...n].reverse()) e.clear?.();
15354
15354
  t.remove(...n);
@@ -15376,8 +15376,8 @@ function ey(e) {
15376
15376
  });
15377
15377
  }
15378
15378
  function ty(e) {
15379
- let t = Fg, n = t[Tv];
15380
- return n || (n = ey(e), t[Tv] = n), n;
15379
+ let t = Fg, n = t[kv];
15380
+ return n || (n = ey(e), t[kv] = n), n;
15381
15381
  }
15382
15382
  function ny(e = {}) {
15383
15383
  let t = e.useSingleDollar ?? !1;
@@ -15399,7 +15399,7 @@ function ny(e = {}) {
15399
15399
  } catch (e) {
15400
15400
  throw a.typesetClear?.([n]), e;
15401
15401
  }
15402
- Nv(n), mv(n);
15402
+ Lv(n), mv(n);
15403
15403
  }
15404
15404
  };
15405
15405
  }