@pie-element/math-templated 8.0.2 → 8.0.3-next.20261007075859

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.
@@ -147,56 +147,56 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
147
147
  M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,F.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});ig.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var ag=L(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),og=({open:e,size:t})=>(0,F.jsx)(ag,{size:t,children:e?(0,F.jsx)(rg,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,F.jsx)(ig,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});og.propTypes={open:O.bool,size:O.string},og.defaultProps={open:!1};var sg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,F.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,F.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});sg.propTypes={fill:O.string.isRequired};var cg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,F.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});cg.propTypes={fill:O.string.isRequired};var lg=$h(sg,cg);lg.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},lg.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var ug=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,F.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});ug.propTypes={fill:O.string.isRequired};var dg=({fill:e})=>(0,F.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});dg.propTypes={fill:O.string.isRequired};var fg=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
148
  C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});fg.propTypes={fill:O.string.isRequired};var pg=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(ug,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),feedback:{check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),square:{check:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(ug,{fill:t})]}),emoji:(0,F.jsxs)(qh,{children:[(0,F.jsx)(dg,{fill:n}),(0,F.jsx)(fg,{fill:t})]}),open:{check:(0,F.jsx)(qh,{children:(0,F.jsx)(ug,{fill:n})}),emoji:(0,F.jsx)(qh,{children:(0,F.jsx)(fg,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};pg.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},pg.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var mg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});mg.propTypes={fill:O.string.isRequired};var hg=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});hg.propTypes={fill:O.string.isRequired};var gg=$h(mg,hg);gg.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},gg.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function _g(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function vg(e){let t=Tl(e);return t.body===e?Vm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function yg(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function bg(e){return parseFloat(Vm(e).getComputedStyle(e).paddingRight)||0}function xg(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Sg(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!xg(e);t&&n&&yg(e,i)})}function Cg(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function wg(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(vg(r)){let e=_g(Vm(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${bg(r)+e}px`;let t=Tl(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${bg(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Tl(r).body;else{let t=r.parentElement,n=Vm(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Tg(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Eg=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yg(e.modalRef,!1);let r=Tg(t);Sg(t,e.mount,e.modalRef,r,!0);let i=Cg(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Cg(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=wg(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Cg(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&yg(e.modalRef,t),Sg(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&yg(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dg(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Og=Dg;function kg(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ag=kg,jg=`data-mui-focusable`;function Mg(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${jg}]`):null}var Ng=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Pg(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function Fg(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Ig(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Fg(e))}function Lg(e){let t=[],n=[];return Array.from(e.querySelectorAll(Ng)).forEach((e,r)=>{let i=Pg(e);i===-1||!Ig(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Rg(){return!0}function zg(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Lg,isEnabled:o=Rg,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=yl(Ic(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ag(Tl(m.current)),t=Mg(m.current)??m.current;return Og(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;let e=Tl(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ag(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ag(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Og(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Ag(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var Bg={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Vg={opacity:0,visibility:`hidden`},Hg=P.forwardRef(function(e,t){let n=bc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=P.useRef(null),y=bl(v,Ic(o),t),b=gl(v,d),x=gl(v,(e,t)=>{hl(e);let r=vl({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=gl(v,u),C=gl(v,m),w=gl(v,e=>{let t=vl({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=gl(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(tl,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=_l(e,c,Bg,Vg,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function Ug(e){return za(`MuiBackdrop`,e)}Ba(`MuiBackdrop`,[`root`,`invisible`]);var Wg=e=>{let{classes:t,invisible:n}=e;return cs({root:[`root`,n&&`invisible`]},Ug,t)},Gg=L(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Kg=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Wg(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Wd(`root`,{elementType:Gg,externalForwardedProps:_,className:La(g.root,i),ownerState:h}),[b,x]=Wd(`transition`,{elementType:Hg,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function qg(e){return typeof e==`function`?e():e}function Jg(e){return e?e.props.hasOwnProperty(`in`):!1}var Yg=()=>{},Xg=new Eg;function Zg(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=yl(p,u),[h,g]=P.useState(!l),_=Jg(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Tl(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Xg.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=zd(()=>{let e=qg(t)||y().body;Xg.add(b(),e),p.current&&x()}),C=()=>Xg.isTopModal(b()),w=zd(e=>{f.current=e,e&&(l&&C()?x():p.current&&yg(p.current,v))}),T=P.useCallback(()=>{Xg.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Sd(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:jm(()=>{g(!1),a&&a()},s?.props.onEnter??Yg),onExited:jm(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Yg)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Qg(e){return za(`MuiModal`,e)}Ba(`MuiModal`,[`root`,`hidden`,`backdrop`]);var $g=e=>{let{open:t,exited:n,classes:r}=e;return cs({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Qg,r)},e_=L(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Lc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),t_=L(Kg,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),n_=P.forwardRef(function(e,t){let n=Rc({name:`MuiModal`,props:e}),{BackdropComponent:r=t_,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Zg({...ee,rootRef:t}),ae={...ee,exited:re},oe=$g(ae),se={};if(c.props.tabIndex===void 0&&(se.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();se.onEnter=e,se.onExited=t}let M={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=Wd(`root`,{ref:t,elementType:e_,externalForwardedProps:{...M,...O,component:u},getSlotProps:te,ownerState:ae,className:La(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=Wd(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:La(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,F.jsx)(kd,{ref:ne,container:l,disablePortal:g,children:(0,F.jsxs)(ce,{...le,children:[!y&&r?(0,F.jsx)(ue,{...de}):null,(0,F.jsx)(zg,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:P.cloneElement(c,se)})]})})});function r_(e){return za(`MuiPaper`,e)}Ba(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var i_=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return cs({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},r_,i)},a_=L(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Lc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),o_=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiPaper`}),r=bc(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=i_(u);return(0,F.jsx)(a_,{as:a,ownerState:u,className:La(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${fo(`#fff`,tc(o))}, ${fo(`#fff`,tc(o))})`}},...l.style}})});function s_(e){return za(`MuiPopover`,e)}Ba(`MuiPopover`,[`root`,`paper`]);function c_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function l_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function u_(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function d_(e){return typeof e==`function`?e():e}var f_=e=>{let{classes:t}=e;return cs({root:[`root`],paper:[`paper`]},s_,t)},p_=L(n_,{name:`MuiPopover`,slot:`Root`})({}),m_=L(o_,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),h_=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=f_(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=d_(i),t=(e&&e.nodeType===1?e:Bm(C.current).body).getBoundingClientRect();return{top:t.top+c_(t,a.vertical),left:t.left+l_(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:c_(e,_.vertical),horizontal:l_(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:u_(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Hm(d_(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:u_(n)}},[i,s,E,D,f]),[ee,te]=P.useState(p),k=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};P.useEffect(()=>{p&&k()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),P.useEffect(()=>{if(!p)return;let e=Rm(()=>{k()}),t=Hm(d_(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=Wd(`transition`,{elementType:wl,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Bm(d_(i)).body:void 0),[se,{slots:M,slotProps:ce,...le}]=Wd(`root`,{ref:t,elementType:p_,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Gm(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:La(T.root,l)}),[ue,de]=Wd(`paper`,{ref:C,className:T.paper,elementType:m_,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(se,{...le,...!bd(se)&&{slots:M,slotProps:ce,disableScrollLock:x},children:(0,F.jsx)(ie,{...ae,timeout:j,children:(0,F.jsx)(ue,{...de,children:c})})})});function g_(e,t){this.v=e,this.k=t}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v_(e){if(Array.isArray(e))return e}function y_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function b_(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
149
149
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x_(e,t){return v_(e)||y_(e,t)||S_(e,t)||b_()}function S_(e,t){if(e){if(typeof e==`string`)return __(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?__(e,t):void 0}}function C_(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof g_;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}C_.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},C_.prototype.next=function(e){return this._invoke(`next`,e)},C_.prototype.throw=function(e){return this._invoke(`throw`,e)},C_.prototype.return=function(e){return this._invoke(`return`,e)};var w_=Object.entries,T_=Object.setPrototypeOf,E_=Object.isFrozen,D_=Object.getPrototypeOf,O_=Object.getOwnPropertyDescriptor,k_=Object.freeze,A_=Object.seal,j_=Object.create,M_=typeof Reflect<`u`&&Reflect,N_=M_.apply,P_=M_.construct;k_||=function(e){return e},A_||=function(e){return e},N_||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},P_||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var F_=tv(Array.prototype.forEach);Array.prototype.indexOf;var I_=tv(Array.prototype.lastIndexOf),L_=tv(Array.prototype.pop),R_=tv(Array.prototype.push);Array.prototype.slice;var z_=tv(Array.prototype.splice),B_=Array.isArray,V_=tv(String.prototype.toLowerCase),H_=tv(String.prototype.toString),U_=tv(String.prototype.match),W_=tv(String.prototype.replace),G_=tv(String.prototype.indexOf),K_=tv(String.prototype.trim),q_=tv(Number.prototype.toString),J_=tv(Boolean.prototype.toString),Y_=typeof BigInt>`u`?null:tv(BigInt.prototype.toString),X_=typeof Symbol>`u`?null:tv(Symbol.prototype.toString),Z_=tv(Object.prototype.hasOwnProperty),Q_=tv(Object.prototype.toString),$_=tv(RegExp.prototype.test),ev=nv(TypeError);function tv(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return N_(e,t,r)}}function nv(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return P_(e,n)}}function rv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V_;if(T_&&T_(e,null),!B_(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(E_(t)||(t[r]=e),i=e)}e[i]=!0}return e}function iv(e){for(let t=0;t<e.length;t++)Z_(e,t)||(e[t]=null);return e}function av(e){let t=j_(null);for(let r of w_(e)){var n=x_(r,2);let i=n[0],a=n[1];Z_(e,i)&&(B_(a)?t[i]=iv(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=av(a):t[i]=a)}return t}function ov(e){switch(typeof e){case`string`:return e;case`number`:return q_(e);case`boolean`:return J_(e);case`bigint`:return Y_?Y_(e):`0`;case`symbol`:return X_?X_(e):`Symbol()`;case`undefined`:return Q_(e);case`function`:case`object`:{if(e===null)return Q_(e);let t=e,n=sv(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Q_(e)}return Q_(e)}default:return Q_(e)}}function sv(e,t){for(;e!==null;){let n=O_(e,t);if(n){if(n.get)return tv(n.get);if(typeof n.value==`function`)return tv(n.value)}e=D_(e)}function n(){return null}return n}function cv(e){try{return $_(e,``),!0}catch{return!1}}var lv=k_(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),uv=k_(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),dv=k_([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),fv=k_([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),pv=k_(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),mv=k_([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),hv=k_([`#text`]),gv=k_(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),_v=k_(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),vv=k_(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),yv=k_([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),bv=A_(/{{[\w\W]*|^[\w\W]*}}/g),xv=A_(/<%[\w\W]*|^[\w\W]*%>/g),Sv=A_(/\${[\w\W]*/g),Cv=A_(/^data-[\-\w.\u00B7-\uFFFF]+$/),wv=A_(/^aria-[\-\w]+$/),Tv=A_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ev=A_(/^(?:\w+script|data):/i),Dv=A_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ov=A_(/^html$/i),kv=A_(/^[a-z][.\w]*(-[.\w]+)+$/i),Av=A_(/<[/\w!]/g),jv=A_(/<[/\w]/g),Mv=A_(/<\/no(script|embed|frames)/i),Nv=A_(/\/>/i),Pv={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Fv=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Iv=k_(rv({},Fv)),Lv=function(){let e={};return F_(Fv,t=>{e[t]=A_(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),k_(e)}(),Rv=function(){return typeof window>`u`?null:window},zv=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Bv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Vv=function(e,t,n,r){return Z_(e,t)&&B_(e[t])?rv(r.base?av(r.base):{},e[t],r.transform):n},Hv=function(e,t,n){let r=Z_(e,t)?e[t]:void 0;return r&&typeof r==`object`?av(r):n()};function Uv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rv(),t=e=>Uv(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Pv.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=sv(d,`cloneNode`),p=sv(d,`remove`),m=sv(d,`removeAttributeNode`),h=sv(d,`nextSibling`),g=sv(d,`childNodes`),_=sv(d,`parentNode`),v=sv(d,`shadowRoot`),y=sv(d,`attributes`),b=o&&o.prototype?sv(o.prototype,`nodeType`):null,x=o&&o.prototype?sv(o.prototype,`nodeName`):null,S=o&&o.prototype?sv(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,ee=0,te=function(){if(ee>0)throw ev(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},k=function(e){te(),ee++;try{return T.createHTML(e)}finally{ee--}},A=function(e){te(),ee++;try{return T.createScriptURL(e)}finally{ee--}},ne=function(){return O||=(D=zv(u,i),!0),D},j=n,re=j.implementation,ie=j.createNodeIterator,ae=j.createDocumentFragment,oe=j.getElementsByTagName,se=r.importNode,M=Bv();t.isSupported=typeof w_==`function`&&typeof _==`function`&&re&&re.createHTMLDocument!==void 0;let ce=bv,le=xv,ue=Sv,de=Cv,fe=wv,pe=Ev,me=Dv,he=kv,ge=Tv,_e=null,ve=rv({},[...lv,...uv,...dv,...pv,...hv]),N=null,ye=rv({},[...gv,..._v,...vv,...yv]),be=Object.seal(j_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(j_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!0,Ae=!1,je=!1,Me=null,Ne=null,Pe=!1,Fe=!1,Ie=!1,Le=!1,Re=!0,ze=!1,Be=`user-content-`,Ve=!0,He=!1,Ue={},We=null,Ge=rv({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ke=null,qe=rv({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Je=null,Ye=rv({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Xe=`http://www.w3.org/1998/Math/MathML`,Ze=`http://www.w3.org/2000/svg`,Qe=`http://www.w3.org/1999/xhtml`,$e=Qe,et=!1,tt=null,nt=rv({},[Xe,Ze,Qe],H_),rt=k_([`mi`,`mo`,`mn`,`ms`,`mtext`]),it=rv({},rt),at=k_([`annotation-xml`]),ot=rv({},at),st=rv({},[`title`,`style`,`font`,`a`,`script`]),ct=null,lt=[`application/xhtml+xml`,`text/html`],ut=null,dt=null,ft=n.createElement(`form`),pt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dt&&dt===e)return;(!e||typeof e!=`object`)&&(e={}),e=av(e),ct=lt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ut=ct===`application/xhtml+xml`?H_:V_,_e=Vv(e,`ALLOWED_TAGS`,ve,{transform:ut}),N=Vv(e,`ALLOWED_ATTR`,ye,{transform:ut}),tt=Vv(e,`ALLOWED_NAMESPACES`,nt,{transform:H_}),Je=Vv(e,`ADD_URI_SAFE_ATTR`,Ye,{transform:ut,base:Ye}),Ke=Vv(e,`ADD_DATA_URI_TAGS`,qe,{transform:ut,base:qe}),We=Vv(e,`FORBID_CONTENTS`,Ge,{transform:ut}),xe=Vv(e,`FORBID_TAGS`,av({}),{transform:ut}),Se=Vv(e,`FORBID_ATTR`,av({}),{transform:ut}),Ue=Z_(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?av(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=e.SAFE_FOR_TEMPLATES||!1,ke=e.SAFE_FOR_XML!==!1,Ae=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Re=e.SANITIZE_DOM!==!1,ze=e.SANITIZE_NAMED_PROPS||!1,Ve=e.KEEP_CONTENT!==!1,He=e.IN_PLACE||!1,ge=cv(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Tv,$e=typeof e.NAMESPACE==`string`?e.NAMESPACE:Qe,it=Hv(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>rv({},rt)),ot=Hv(e,`HTML_INTEGRATION_POINTS`,()=>rv({},at));let t=Hv(e,`CUSTOM_ELEMENT_HANDLING`,()=>j_(null));if(be=j_(null),Z_(t,`tagNameCheck`)&&pt(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),Z_(t,`attributeNameCheck`)&&pt(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),Z_(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),A_(be),Oe&&(Te=!1),Ie&&(Fe=!0),Ue&&(_e=rv({},hv),N=j_(null),Ue.html===!0&&(rv(_e,lv),rv(N,gv)),Ue.svg===!0&&(rv(_e,uv),rv(N,_v),rv(N,yv)),Ue.svgFilters===!0&&(rv(_e,dv),rv(N,_v),rv(N,yv)),Ue.mathMl===!0&&(rv(_e,pv),rv(N,vv),rv(N,yv))),Ce.tagCheck=null,Ce.attributeCheck=null,Z_(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:B_(e.ADD_TAGS)&&(_e===ve&&(_e=av(_e)),rv(_e,e.ADD_TAGS,ut))),Z_(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:B_(e.ADD_ATTR)&&(N===ye&&(N=av(N)),rv(N,e.ADD_ATTR,ut))),Z_(e,`ADD_FORBID_CONTENTS`)&&B_(e.ADD_FORBID_CONTENTS)&&(We===Ge&&(We=av(We)),rv(We,e.ADD_FORBID_CONTENTS,ut)),Ve&&(_e[`#text`]=!0),Ae&&rv(_e,[`html`,`head`,`body`]),_e.table&&(rv(_e,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ev(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ev(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=k(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=ne()),T&&typeof E==`string`&&(E=k(``)));k_&&k_(e),dt=e},ht=rv({},[...uv,...dv,...fv]),gt=rv({},[...pv,...mv]),_t=function(e,t,n){return t.namespaceURI===Qe?e===`svg`:t.namespaceURI===Xe?e===`svg`&&(n===`annotation-xml`||it[n]):!!ht[e]},vt=function(e,t,n){return t.namespaceURI===Qe?e===`math`:t.namespaceURI===Ze?e===`math`&&ot[n]:!!gt[e]},yt=function(e,t,n){return t.namespaceURI===Ze&&!ot[n]||t.namespaceURI===Xe&&!it[n]?!1:!gt[e]&&(st[e]||!ht[e])},bt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:$e,tagName:`template`});let n=V_(e.tagName),r=V_(t.tagName);return tt[e.namespaceURI]?e.namespaceURI===Ze?_t(n,t,r):e.namespaceURI===Xe?vt(n,t,r):e.namespaceURI===Qe?yt(n,t,r):!!(ct===`application/xhtml+xml`&&tt[e.namespaceURI]):!1},xt=function(e){R_(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw ev(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},St=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Ct=function(e){Et(e);let t=g(e);if(t){let e=[];F_(t,t=>{R_(e,t)}),F_(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&St(e,r,i)}},wt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}R_(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Fe||Ie)try{xt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Tt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||N[ut(i)]||St(e,r,i)}},Et=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===Pv.element&&Tt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Dt=function(e,t){return ke?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Ot=function(e){if(!ke)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===Pv.processingInstruction||n===Pv.comment&&$_(jv,e.data)){try{p(e)}catch{}continue}if(n===Pv.element){let t=e,n=ut(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Dt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},kt=function(e){let t=null,r=null;if(Pe)e=`<remove></remove>`+e;else{let t=U_(e,/^[\r\n\t ]+/);r=t&&t[0]}ct===`application/xhtml+xml`&&$e===Qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?k(e):e;if($e===Qe)try{t=new l().parseFromString(i,ct)}catch{}if(!t||!t.documentElement){t=re.createDocument($e,`template`,null);try{t.documentElement.innerHTML=et?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),$e===Qe?oe.call(t,Ae?`html`:`body`)[0]:Ae?t.documentElement:a},At=function(e){let t=S?S(e):e.ownerDocument;return ie.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},jt=function(e){return e=W_(e,ce,` `),e=W_(e,le,` `),e=W_(e,ue,` `),e},Mt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ie.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=jt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&F_(i,e=>{Pt(e.content)&&Mt(e.content)})},Nt=function(e){let t=x?x(e):null;return typeof t!=`string`||ut(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Pt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Pv.documentFragment}catch{return!1}},Ft=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function It(e,n,r){e.length!==0&&F_(e,e=>{e.call(t,n,r,dt)})}let Lt=function(e,t){return!!(ke&&e.hasChildNodes()&&!Ft(e.firstElementChild)&&$_(Av,e.textContent)&&$_(Av,e.innerHTML)||ke&&e.namespaceURI===Qe&&Iv[t]&&(Ft(e.firstElementChild)||typeof e.textContent==`string`&&$_(Lv[t],e.textContent))||e.nodeType===Pv.processingInstruction||ke&&e.nodeType===Pv.comment&&$_(jv,e.data))},Rt=function(e,t){if(e instanceof RegExp)return $_(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},zt=function(e,t,n){if(!xe[t]&&Gt(t)&&Rt(be.tagNameCheck,t))return!1;if(Ve&&!We[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return xt(e),!0},Bt=function(e,t,n,r){return e.length===0?t:t===n||t===r?av(t):t},Vt=function(e,t){return e===t||_(e)!==null?!1:(He&&Et(e),!0)},Ht=function(e,n){if(It(M.beforeSanitizeElements,e,null),Vt(e,n))return!0;if(Nt(e))return xt(e),!0;let r=ut(w(e));if(_e=Bt(M.uponSanitizeElement,_e,ve,Me),It(M.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Vt(e,n))return!0;if(Lt(e,r))return xt(e),!0;if(xe[r]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(r))&&!_e[r]){let t=zt(e,r,n);return t===!1&&(It(M.afterSanitizeElements,e,null),Vt(e,n))?!0:t}if(C(e)===Pv.element&&!bt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&$_(Mv,e.innerHTML))return xt(e),!0;if(Oe&&e.nodeType===Pv.text){let n=jt(e.textContent);e.textContent!==n&&(R_(t.removed,{element:e.cloneNode()}),e.textContent=n)}return It(M.afterSanitizeElements,e,null),Vt(e,n)},Ut=function(e,t,r){if(Se[t]||Dt(t,e)||Re&&(t===`id`||t===`name`)&&(r in n||r in ft))return!1;let i=N[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);return Te&&$_(de,t)||we&&$_(fe,t)?!0:i?Je[t]||$_(ge,W_(r,me,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&G_(r,`data:`)===0&&Ke[e]||Ee&&!$_(pe,W_(r,me,``))?!0:!r:Gt(e)&&Rt(be.tagNameCheck,e)&&Rt(be.attributeNameCheck,t,e)||t===`is`&&be.allowCustomizedBuiltInElements&&Rt(be.tagNameCheck,r)},Wt=rv({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Gt=function(e){return!Wt[V_(e)]&&$_(he,e)},Kt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return k(r);case`TrustedScriptURL`:return A(r)}return r},qt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),Nt(e)?(xt(e),!1):!0}catch{return wt(t,e),!1}},Jt=function(e,n){if(It(M.beforeSanitizeAttributes,e,null),Vt(e,n))return;let r=e.attributes;if(!r||Nt(e))return;N=Bt(M.uponSanitizeAttribute,N,ye,Ne);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0},a=r.length,o=ut(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=ut(s),d=l,f=s===`value`?d:K_(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,It(M.uponSanitizeAttribute,e,i),f=i.attrValue,ze&&(u===`id`||u===`name`)&&G_(f,Be)!==0&&(wt(s,e,n),f=Be+f,p=!0),ke&&$_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){wt(s,e,n);continue}if(u===`attributename`&&U_(f,`href`)){wt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){wt(s,e,n);continue}if(!De&&$_(Nv,f)){wt(s,e,n);continue}if(Oe&&(f=jt(f)),!Ut(o,u,f)){wt(s,e,n);continue}f=Kt(o,u,c,f),f!==d&&qt(e,s,c,f)&&p&&L_(t.removed)}}It(M.afterSanitizeAttributes,e,null),Vt(e,n)},Yt=function(e){let t=null,n=At(e);for(It(M.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(It(M.uponSanitizeShadowNode,t,null),Ht(t,e),Jt(t,e),Pt(t.content)&&Yt(t.content),C(t)===Pv.element){let e=v(t);Pt(e)&&(Xt(e),Yt(e))}It(M.afterSanitizeShadowDOM,e,null)},Xt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Yt(e.shadow);continue}let n=e.node,r=C(n)===Pv.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&ut(e)===`template`){let e=n.content;Pt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Pt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(et=!e,et&&(e=`<!-->`),typeof e!=`string`&&!Ft(e)&&(e=ov(e),typeof e!=`string`))throw ev(`dirty is not a string, aborting`);if(!t.isSupported)return e;je?(_e=Me,N=Ne):mt(n),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(_e=av(_e)),M.uponSanitizeAttribute.length>0&&(N=av(N)),t.removed=[];let c=He&&typeof e!=`string`&&Ft(e);if(c){Ot(e);let t=w(e);if(typeof t==`string`){let n=ut(t);if(!_e[n]||xe[n])throw Ct(e),ev(`root node is forbidden and cannot be sanitized in-place`)}if(Nt(e))throw Ct(e),ev(`root node is clobbered and cannot be sanitized in-place`);try{Xt(e)}catch(t){throw Ct(e),t}}else if(Ft(e))i=kt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Pv.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Xt(i);else{if(!Fe&&!Oe&&!Ae&&e.indexOf(`<`)===-1)return T&&Le?k(e):e;if(i=kt(e),!i)return Fe?null:Le?E:``}i&&Pe&&xt(i.firstChild);let l=c?e:i;try{let e=At(l);for(;o=e.nextNode();)Ht(o,l),Jt(o,l),Pt(o.content)&&Yt(o.content)}catch(n){throw c&&(Ct(e),F_(t.removed,e=>{e.element&&Et(e.element)})),n}if(c){let n=!1;if(F_(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Et(t.element))}),n)throw ev(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Oe&&Mt(e),e}if(Fe){if(Oe&&Mt(i),Ie)for(s=ae.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(N.shadowroot||N.shadowrootmode)&&(s=se.call(r,s,!0)),s}let u=Ae?i.outerHTML:i.innerHTML;return Ae&&_e[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$_(Ov,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
150
- `+u),Oe&&(u=jt(u)),T&&Le?k(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mt(e),je=!0,Me=_e,Ne=N},t.clearConfig=function(){dt=null,je=!1,Me=null,Ne=null,T=D,E=``},t.isValidAttribute=function(e,t,n){dt||mt({});let r=ut(e),i=ut(t);return Ut(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Z_(M,e)&&R_(M[e],t)},t.removeHook=function(e,t){if(Z_(M,e)){if(t!==void 0){let n=I_(M[e],t);return n===-1?void 0:z_(M[e],n,1)[0]}return L_(M[e])}},t.removeHooks=function(e){Z_(M,e)&&(M[e]=[])},t.removeAllHooks=function(){M=Bv()},t}var Wv=Uv(),Gv=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],Kv=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],qv=new Set([`iframe`,`object`,`semantics`,`annotation`,`none`]),Jv=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,Yv={ADD_TAGS:e=>qv.has(e)||Jv.test(e),ADD_ATTR:[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`],FORBID_TAGS:Gv,FORBID_ATTR:Kv,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},Xv=1e6,Zv=new Map,Qv=0;function $v(e){if(e==null||e===``||!Wv.isSupported)return``;let t=typeof e==`string`?e:String(e),n=Zv.get(t);if(n!==void 0)return n;let r=String(Wv.sanitize(t,Yv)),i=t.length+r.length;if(i>Xv)return r;for(let[e,t]of Zv){if(Qv+i<=Xv)break;Zv.delete(e),Qv-=e.length+t.length}return Zv.set(t,r),Qv+=i,r}var ey={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},ty={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},ny=s({background:()=>Ey,backgroundDark:()=>Dy,black:()=>By,blueGrey100:()=>Xy,blueGrey300:()=>Zy,blueGrey600:()=>Qy,blueGrey900:()=>$y,border:()=>Ny,borderDark:()=>Fy,borderGray:()=>Iy,borderLight:()=>Py,buttonBorder:()=>ub,buttonFocusOutline:()=>qy,buttonHoverBg:()=>db,correct:()=>cy,correctSecondary:()=>ly,correctTertiary:()=>uy,correctWithIcon:()=>dy,defaults:()=>V,disabled:()=>ay,disabledSecondary:()=>oy,disabledText:()=>sy,dropdownBackground:()=>ky,editorToolbar:()=>lb,fadedPrimary:()=>xy,focusChecked:()=>Uy,focusCheckedBorder:()=>Wy,focusOutline:()=>Jy,focusUnchecked:()=>Gy,focusUncheckedBorder:()=>Ky,incorrect:()=>fy,incorrectSecondary:()=>my,incorrectWithIcon:()=>py,keyBoardFocusIndicator:()=>Yy,keypadButton:()=>nb,keypadButtonHover:()=>ab,keypadButtonOperator:()=>rb,keypadButtonOperatorHover:()=>ob,keypadEmptyPlaceholder:()=>ib,keypadInk:()=>cb,missing:()=>hy,missingWithIcon:()=>gy,primary:()=>_y,primaryDark:()=>yy,primaryLight:()=>vy,primaryText:()=>by,secondary:()=>Sy,secondaryBackground:()=>Oy,secondaryDark:()=>wy,secondaryLight:()=>Cy,secondaryText:()=>Ty,surface:()=>Ay,tableGrid:()=>Ly,tableGridLight:()=>Ry,tableStripe:()=>zy,tertiary:()=>jy,tertiaryLight:()=>My,text:()=>iy,transparent:()=>Hy,v:()=>ry,visualElementsColors:()=>fb,white:()=>Vy}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:_s[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:ps[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ps[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ty[500],PRIMARY_LIGHT:ty[200],PRIMARY_DARK:ty[800],SECONDARY:ey.A400,SECONDARY_LIGHT:ey[200],SECONDARY_DARK:ey[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(V);var ry=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=ry(`pie`),iy=()=>H(`text`,V.TEXT),ay=()=>H(`disabled`,V.DISABLED),oy=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),sy=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),cy=()=>H(`correct`,V.CORRECT),ly=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),uy=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),dy=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),fy=()=>H(`incorrect`,V.INCORRECT),py=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),my=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),hy=()=>H(`missing`,V.MISSING),gy=()=>H(`missing-icon`,V.MISSING_WITH_ICON),_y=()=>H(`primary`,V.PRIMARY),vy=()=>H(`primary-light`,V.PRIMARY_LIGHT),yy=()=>H(`primary-dark`,V.PRIMARY_DARK),by=()=>H(`primary-text`,`text`,V.TEXT),xy=()=>H(`faded-primary`,V.FADED_PRIMARY),Sy=()=>H(`secondary`,V.SECONDARY),Cy=()=>H(`secondary-light`,V.SECONDARY_LIGHT),wy=()=>H(`secondary-dark`,V.SECONDARY_DARK),Ty=()=>H(`secondary-text`,`text`,V.TEXT),Ey=()=>H(`background`,V.BACKGROUND),Dy=()=>H(`background-dark`,V.BACKGROUND_DARK),Oy=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),ky=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),Ay=()=>H(`surface`,V.SURFACE),jy=()=>H(`tertiary`,V.TERTIARY),My=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),Ny=()=>H(`border`,V.BORDER),Py=()=>H(`border-light`,V.BORDER_LIGHT),Fy=()=>H(`border-dark`,V.BORDER_DARK),Iy=()=>H(`border-gray`,V.BORDER_GRAY),Ly=()=>H(`table-grid`,`text`,V.TABLE_GRID),Ry=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),zy=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),By=()=>H(`black`,V.BLACK),Vy=()=>H(`white`,V.WHITE),Hy=()=>V.TRANSPARENT,Uy=()=>H(`focus-checked`,V.FOCUS_CHECKED),Wy=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Gy=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),Ky=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),qy=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),Jy=()=>H(`focus-outline`,`button-focus-outline`,`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Yy=Jy,Xy=()=>H(`blue-grey-100`,V.BLUE_GREY100),Zy=()=>H(`blue-grey-300`,V.BLUE_GREY300),Qy=()=>H(`blue-grey-600`,V.BLUE_GREY600),$y=()=>H(`blue-grey-900`,V.BLUE_GREY900),eb=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},tb=(e,t)=>`color-mix(in srgb, rgb(${eb(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${H(`background`,V.WHITE)})`,nb=()=>H(`keypad-button`,tb(V.KEYPAD_BUTTON,.5)),rb=()=>H(`keypad-button-operator`,tb(V.KEYPAD_BUTTON_OPERATOR,.5)),ib=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),ab=()=>H(`keypad-button-hover`,tb(V.KEYPAD_BUTTON_HOVER,.25)),ob=()=>H(`keypad-button-operator-hover`,tb(V.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),sb=`clamp(0.6, (r + g + b) / 450, 1)`,cb=()=>`rgb(from ${iy()} calc(r * ${sb}) calc(g * ${sb}) calc(b * ${sb}))`,lb=()=>tb(V.EDITOR_TOOLBAR,.125),ub=()=>H(`button-border`,V.BUTTON_BORDER),db=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),fb={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},pb=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),mb=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Dy()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${iy()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ly()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${my()})`}}),hb=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),gb=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(al,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(hb,{ref:this.nodeRef,children:(0,F.jsx)(pb,{children:(0,F.jsx)(mb,{className:e,dangerouslySetInnerHTML:{__html:$v(t)}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(ml,{children:this.renderFeedback()})})}},_b=s({Correct:()=>Cb,Incorrect:()=>wb,NothingSubmitted:()=>Eb,PartiallyCorrect:()=>Tb}),vb=Wh(`pie-libs:render-ui:response-indicators`),yb=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),bb=L(h_)({cursor:`pointer`}),xb=L(`div`)({padding:`0`,borderRadius:`4px`}),Sb=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{vb(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(yb,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(bb,{PaperComponent:xb,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(gb,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},Cb=Sb(ng,`correct`),wb=Sb(lg,`incorrect`),Tb=Sb(gg,`partially-correct`),Eb=Sb(pg,`nothing-submitted`);function Db(e){return za(`MuiCollapse`,e)}Ba(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Ob=e=>{let{orientation:t,classes:n}=e;return cs({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Db,n)},kb=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Lc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Ab=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),jb=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Mb=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ws.standard,TransitionComponent:x=tl,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Ob(C),T=bc(),E=Pc(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=bl(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=gl(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=gl(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=vl({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=gl(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=gl(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),se=gl(A,m),M=gl(A,e=>{let t=j(),{duration:n,easing:r}=vl({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=Wd(`root`,{ref:ne,className:La(w.root,a),elementType:kb,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=Wd(`wrapper`,{ref:D,className:w.wrapper,elementType:Ab,externalForwardedProps:le,ownerState:C}),[me,he]=Wd(`wrapperInner`,{className:w.wrapperInner,elementType:jb,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:se,onExiting:M,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:La(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(me,{...he,ownerState:r,children:i})})})}})});Mb&&(Mb.muiSupportAuto=!0);var Nb=`4.1.3`,Pb=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Fb=`@pie-lib/math-rendering@2`,Ib=[`nemeth`,`euro`],Lb=`mathjax@${Nb}/sre`,Rb=/^[^@]+@[^@]+$/;function zb(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!Rb.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function Bb(){let e=globalThis[Fb]?.opts;return e&&typeof e==`object`?e:{}}function Vb(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function Hb(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=Vb(r);e&&t.set(n,e)}return t.size?t:void 0}function Ub(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function Wb(e,t){let n=Bb(),r=Vb(e.assetRoot??n.assetRoot)??zb(t);return{root:r,speechPath:Vb(e.speechPath??n.speechPath)??(r?`${r}/${Lb}`:void 0),speechLocales:Ub(e.speechLocales??n.speechLocales),urls:Hb(e.assetUrls??n.assetUrls)}}function Gb(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!Ib.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function Kb(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!Ib.includes(e))}var qb=`pie-mathjax-no-asset-root`,Jb={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},Yb=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function Xb(e){let t=globalThis;t[Yb]??=[];let n=t[Yb];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${Jb[e]}. Set window['${Fb}'].opts.assetRoot to an npm root. See ${Pb}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(qb,{detail:{effect:e,message:r,docsUrl:Pb}}))}var Zb=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,Qb=`pie-mathjax-version-conflict`,$b=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function ex(e,t){if(typeof window>`u`)return;let n=globalThis;n[$b]??={logged:!1,conditions:[]};let r=n[$b];if(r.conditions.includes(e))return;r.conditions.push(e);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 ${Zb}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(Qb,{detail:{condition:e,message:i,docsUrl:Zb}}))}function tx(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function nx(){return window.MathJax}function rx(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Nb}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Nb}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function ix(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(rx(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(Xb(`untypeset`),Promise.resolve(!1))}var ax=globalThis,ox=`PIE-MJX-CHTML-styles`,sx=[`MJX-CHTML-styles`,`MJX-SVG-styles`],cx=tx,lx=`http://www.w3.org/1998/Math/MathML`,ux=/^([a-z_][\w.-]*):math$/,dx=/^[a-z][a-z0-9-]*$/;function fx(e){for(let t of e.querySelectorAll(`*`)){let n=ux.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(px(t,`${n}:`))}}function px(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!dx.test(n))return e;let r=e.ownerDocument.createElementNS(lx,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?px(n,t):n)}return r}var mx=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),hx={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},gx={tight:`0em`,medium:`0.1em`,loose:`0.2em`},_x=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,vx=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,yx=/^(\d+(\.\d*)?|\.\d+)$/,bx=new Set([`mn`,`mo`,`mi`,`mtext`]),xx=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function Sx(e,t,n=[],r={}){let i=e.createElementNS(lx,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function Cx(e,t){let n=Sx(e.document,`mo`);return n.textContent=t,n}function wx(e){let t=Sx(e.document,`mn`);return t.textContent=`0`,Sx(e.document,`mphantom`,[t])}function Tx(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Ex(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Dx(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Ox(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function kx(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(Dx(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else bx.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Ox(r.length,n.stackAlign,i??a),position:t}}function Ax(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>mx.has(e))}function jx(e,t){let n=[...e.children].filter(e=>!Dx(e));return n.length<=1?n[0]??null:Sx(t.document,`mrow`,n)}function Mx(e,t,n){let r=Tx(e,`location`)??`n`,i=Ax(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Dx(e)?null:e.localName===`mscarry`?{content:jx(e,n),location:Tx(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?Ax(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Ox(a.length,n.stackAlign),position:t,scale:yx.test(o)?o:`0.6`}}function Nx(e){let t=Tx(e,`mslinethickness`)??`medium`,n=hx[t]??(_x.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${vx.test(r)?r:`currentColor`}`}function Px(e,t,n){let r=Math.max(0,Ex(e,`length`));return{kind:`line`,length:r,anchor:Ox(r,n.stackAlign),position:t,border:Nx(e)}}function Fx(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Ex(e,`position`);switch(e.localName){case`msgroup`:Fx([...e.children],o,Ex(e,`shift`),r,i);break;case`msline`:i.push(Px(e,o,r));break;case`mscarries`:i.push(Mx(e,o,r));break;case`msrow`:case`mrow`:i.push(kx([...e.children],o,r));break;default:i.push(kx([e],o,r))}})}function Ix(e){return-e.anchor-e.position}function Lx(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function Rx(e){return Ix(e)+Lx(e)-1}function zx(e,t,n,r){let i=e=>Sx(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>Sx(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function Bx(e,t,n){let r=Sx(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?Sx(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function Vx(e,t,n,r,i){let a=e&&t.crossout.length?Bx(e,t.crossout,i):e;if(!t.content)return a;let o=Sx(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return zx(a??wx(i),o,n,i)}function Hx(e,t){return e.carries[t-Ix(e)]??null}function Ux(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Hx(s,t),l=n.slice(0,o).some(e=>Hx(e,t));if(!c&&!l)return;let u=c??{content:wx(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=Vx(i,u,d,s.scale,r)}),e.content=i}function Wx(e,t){let n=e.filter(e=>Lx(e)>0),r=Math.min(0,...n.map(Ix)),i=Math.max(r,...n.map(Rx))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+Ix(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+Ix(e)+r].content=t}),u.length&&n.forEach((e,n)=>{Ux(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function Gx(e,{rows:t},n){let r=Sx(n.document,`mtable`,t.map(e=>Sx(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return Sx(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])xx.has(t)||r.setAttribute(t,n);let i=Tx(e,`charspacing`)??`medium`,a=Tx(e,`charalign`);return r.setAttribute(`columnspacing`,gx[i]??(_x.test(i)?i:gx.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function Kx(e){return{document:e.ownerDocument,stackAlign:Tx(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function qx(e){let t=Kx(e),n=[];return Fx([...e.children],0,0,t,n),Gx(e,Wx(n,t),t)}function Jx(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function Yx(e,t){let n=Cx(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[Sx(t.document,`mrow`,[e,Sx(t.document,`mspace`,[],{width:`0.2em`})]),Sx(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function Xx(e){let t=Kx(e),[n,r,...i]=[...e.children],a=n&&!Dx(n)?n:null,o=r&&!Dx(r)?r:null,s=Tx(e,`longdivstyle`)??`lefttop`,c=Nx(e),l=[];Fx(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...kx(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Cx(t,`/`)),p(Cx(t,`\\`),o);break;case`left)(right`:f(a,Cx(t,`)`)),p(Cx(t,`(`),o);break;case`:right=right`:p(Cx(t,`:`),a,Cx(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Fx([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...Yx(a,t));break}let m=Wx(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+Ix(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+Rx(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,Jx(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,Jx(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:Zx(h,g,s,a,o,c,t);break;default:Jx(h,g,_(1),v,`top`,c)}return Gx(e,m,t)}function Zx(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&Sx(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function Qx(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?qx(t):Xx(t))}var $x=`PIE-MJX-explorer-styles`,eS=`var(--pie-text, black)`,tS=`var(--pie-background, #ffffff)`,nS=`var(--pie-border-dark, #66686A)`,rS=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,iS=`color-mix(in srgb, ${rS} 15%, transparent)`,aS=`
150
+ `+u),Oe&&(u=jt(u)),T&&Le?k(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mt(e),je=!0,Me=_e,Ne=N},t.clearConfig=function(){dt=null,je=!1,Me=null,Ne=null,T=D,E=``},t.isValidAttribute=function(e,t,n){dt||mt({});let r=ut(e),i=ut(t);return Ut(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Z_(M,e)&&R_(M[e],t)},t.removeHook=function(e,t){if(Z_(M,e)){if(t!==void 0){let n=I_(M[e],t);return n===-1?void 0:z_(M[e],n,1)[0]}return L_(M[e])}},t.removeHooks=function(e){Z_(M,e)&&(M[e]=[])},t.removeAllHooks=function(){M=Bv()},t}var Wv=Uv(),Gv=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],Kv=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],qv=new Set([`iframe`,`object`,`mstack`,`mlongdiv`,`msgroup`,`msrow`,`msline`,`mscarries`,`mscarry`,`semantics`,`annotation`,`none`]),Jv=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,Yv=[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`,`stackalign`,`charalign`,`charspacing`,`longdivstyle`,`position`,`shift`,`location`,`crossout`,`leftoverhang`,`rightoverhang`,`mslinethickness`,`linebreak`],Xv=/^\s*document\.getElementById\((['"])([^'"]+)\1\)\.play\(\)\s*;?\s*(?:return\s+false\s*;?\s*)?$/,Zv=`data-pie-play-audio`,Qv={ADD_TAGS:e=>qv.has(e)||Jv.test(e),ADD_ATTR:Yv,FORBID_TAGS:Gv,FORBID_ATTR:Kv,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},$v=!1;function ey(e){for(let t of e.composedPath()){if(!(t instanceof Element))continue;let n=t.getAttribute(Zv);if(n===null)continue;e.preventDefault();let r=t.getRootNode().getElementById?.(n)??document.getElementById(n);r instanceof HTMLMediaElement&&r.play()?.catch(()=>void 0);return}}var ty=null;function ny(){return ty||(ty=Wv(window),ty.addHook(`beforeSanitizeAttributes`,e=>{if(e.nodeName!==`A`)return;let t=Xv.exec(e.getAttribute(`onclick`)??``)?.[2];t!==void 0&&(e.removeAttribute(`onclick`),e.setAttribute(Zv,t),$v||=(document.addEventListener(`click`,ey),!0))}),ty)}var ry=1e6,iy=new Map,ay=0;function oy(e){if(e==null||e===``||!Wv.isSupported)return``;let t=typeof e==`string`?e:String(e),n=iy.get(t);if(n!==void 0)return n;let r=String(ny().sanitize(t,Qv)),i=t.length+r.length;if(i>ry)return r;for(let[e,t]of iy){if(ay+i<=ry)break;iy.delete(e),ay-=e.length+t.length}return iy.set(t,r),ay+=i,r}var sy={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},cy={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},ly=s({background:()=>Ny,backgroundDark:()=>Py,black:()=>qy,blueGrey100:()=>rb,blueGrey300:()=>ib,blueGrey600:()=>ab,blueGrey900:()=>ob,border:()=>By,borderDark:()=>Hy,borderGray:()=>Uy,borderLight:()=>Vy,buttonBorder:()=>_b,buttonFocusOutline:()=>eb,buttonHoverBg:()=>vb,correct:()=>hy,correctSecondary:()=>gy,correctTertiary:()=>_y,correctWithIcon:()=>vy,defaults:()=>V,disabled:()=>fy,disabledSecondary:()=>py,disabledText:()=>my,dropdownBackground:()=>Iy,editorToolbar:()=>gb,fadedPrimary:()=>Oy,focusChecked:()=>Xy,focusCheckedBorder:()=>Zy,focusOutline:()=>tb,focusUnchecked:()=>Qy,focusUncheckedBorder:()=>$y,incorrect:()=>yy,incorrectSecondary:()=>xy,incorrectWithIcon:()=>by,keyBoardFocusIndicator:()=>nb,keypadButton:()=>lb,keypadButtonHover:()=>fb,keypadButtonOperator:()=>ub,keypadButtonOperatorHover:()=>pb,keypadEmptyPlaceholder:()=>db,keypadInk:()=>hb,missing:()=>Sy,missingWithIcon:()=>Cy,primary:()=>wy,primaryDark:()=>Ey,primaryLight:()=>Ty,primaryText:()=>Dy,secondary:()=>ky,secondaryBackground:()=>Fy,secondaryDark:()=>jy,secondaryLight:()=>Ay,secondaryText:()=>My,surface:()=>Ly,tableGrid:()=>Wy,tableGridLight:()=>Gy,tableStripe:()=>Ky,tertiary:()=>Ry,tertiaryLight:()=>zy,text:()=>dy,transparent:()=>Yy,v:()=>uy,visualElementsColors:()=>yb,white:()=>Jy}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:_s[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:ps[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ps[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:cy[500],PRIMARY_LIGHT:cy[200],PRIMARY_DARK:cy[800],SECONDARY:sy.A400,SECONDARY_LIGHT:sy[200],SECONDARY_DARK:sy[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(V);var uy=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=uy(`pie`),dy=()=>H(`text`,V.TEXT),fy=()=>H(`disabled`,V.DISABLED),py=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),my=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),hy=()=>H(`correct`,V.CORRECT),gy=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),_y=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),vy=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),yy=()=>H(`incorrect`,V.INCORRECT),by=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),xy=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),Sy=()=>H(`missing`,V.MISSING),Cy=()=>H(`missing-icon`,V.MISSING_WITH_ICON),wy=()=>H(`primary`,V.PRIMARY),Ty=()=>H(`primary-light`,V.PRIMARY_LIGHT),Ey=()=>H(`primary-dark`,V.PRIMARY_DARK),Dy=()=>H(`primary-text`,`text`,V.TEXT),Oy=()=>H(`faded-primary`,V.FADED_PRIMARY),ky=()=>H(`secondary`,V.SECONDARY),Ay=()=>H(`secondary-light`,V.SECONDARY_LIGHT),jy=()=>H(`secondary-dark`,V.SECONDARY_DARK),My=()=>H(`secondary-text`,`text`,V.TEXT),Ny=()=>H(`background`,V.BACKGROUND),Py=()=>H(`background-dark`,V.BACKGROUND_DARK),Fy=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),Iy=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),Ly=()=>H(`surface`,V.SURFACE),Ry=()=>H(`tertiary`,V.TERTIARY),zy=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),By=()=>H(`border`,V.BORDER),Vy=()=>H(`border-light`,V.BORDER_LIGHT),Hy=()=>H(`border-dark`,V.BORDER_DARK),Uy=()=>H(`border-gray`,V.BORDER_GRAY),Wy=()=>H(`table-grid`,`text`,V.TABLE_GRID),Gy=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),Ky=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),qy=()=>H(`black`,V.BLACK),Jy=()=>H(`white`,V.WHITE),Yy=()=>V.TRANSPARENT,Xy=()=>H(`focus-checked`,V.FOCUS_CHECKED),Zy=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Qy=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),$y=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),eb=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),tb=()=>H(`focus-outline`,`button-focus-outline`,`focus-checked-border`,V.FOCUS_CHECKED_BORDER),nb=tb,rb=()=>H(`blue-grey-100`,V.BLUE_GREY100),ib=()=>H(`blue-grey-300`,V.BLUE_GREY300),ab=()=>H(`blue-grey-600`,V.BLUE_GREY600),ob=()=>H(`blue-grey-900`,V.BLUE_GREY900),sb=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},cb=(e,t)=>`color-mix(in srgb, rgb(${sb(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${H(`background`,V.WHITE)})`,lb=()=>H(`keypad-button`,cb(V.KEYPAD_BUTTON,.5)),ub=()=>H(`keypad-button-operator`,cb(V.KEYPAD_BUTTON_OPERATOR,.5)),db=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),fb=()=>H(`keypad-button-hover`,cb(V.KEYPAD_BUTTON_HOVER,.25)),pb=()=>H(`keypad-button-operator-hover`,cb(V.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),mb=`clamp(0.6, (r + g + b) / 450, 1)`,hb=()=>`rgb(from ${dy()} calc(r * ${mb}) calc(g * ${mb}) calc(b * ${mb}))`,gb=()=>cb(V.EDITOR_TOOLBAR,.125),_b=()=>H(`button-border`,V.BUTTON_BORDER),vb=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),yb={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},bb=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),xb=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Py()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${dy()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${gy()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${xy()})`}}),Sb=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Cb=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(al,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Sb,{ref:this.nodeRef,children:(0,F.jsx)(bb,{children:(0,F.jsx)(xb,{className:e,dangerouslySetInnerHTML:{__html:oy(t)}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(ml,{children:this.renderFeedback()})})}},wb=s({Correct:()=>Ab,Incorrect:()=>jb,NothingSubmitted:()=>Nb,PartiallyCorrect:()=>Mb}),Tb=Wh(`pie-libs:render-ui:response-indicators`),Eb=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Db=L(h_)({cursor:`pointer`}),Ob=L(`div`)({padding:`0`,borderRadius:`4px`}),kb=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Tb(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(Eb,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Db,{PaperComponent:Ob,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(Cb,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},Ab=kb(ng,`correct`),jb=kb(lg,`incorrect`),Mb=kb(gg,`partially-correct`),Nb=kb(pg,`nothing-submitted`);function Pb(e){return za(`MuiCollapse`,e)}Ba(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Fb=e=>{let{orientation:t,classes:n}=e;return cs({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Pb,n)},Ib=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(Lc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Lb=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Rb=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),zb=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ws.standard,TransitionComponent:x=tl,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Fb(C),T=bc(),E=Pc(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=bl(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=gl(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=gl(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=vl({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=gl(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=gl(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),se=gl(A,m),M=gl(A,e=>{let t=j(),{duration:n,easing:r}=vl({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=Wd(`root`,{ref:ne,className:La(w.root,a),elementType:Ib,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=Wd(`wrapper`,{ref:D,className:w.wrapper,elementType:Lb,externalForwardedProps:le,ownerState:C}),[me,he]=Wd(`wrapperInner`,{className:w.wrapperInner,elementType:Rb,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:se,onExiting:M,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:La(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(me,{...he,ownerState:r,children:i})})})}})});zb&&(zb.muiSupportAuto=!0);var Bb=`4.1.3`,Vb=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Hb=`@pie-lib/math-rendering@2`,Ub=[`nemeth`,`euro`],Wb=`mathjax@${Bb}/sre`,Gb=/^[^@]+@[^@]+$/;function Kb(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!Gb.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function qb(){let e=globalThis[Hb]?.opts;return e&&typeof e==`object`?e:{}}function Jb(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function Yb(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=Jb(r);e&&t.set(n,e)}return t.size?t:void 0}function Xb(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function Zb(e,t){let n=qb(),r=Jb(e.assetRoot??n.assetRoot)??Kb(t);return{root:r,speechPath:Jb(e.speechPath??n.speechPath)??(r?`${r}/${Wb}`:void 0),speechLocales:Xb(e.speechLocales??n.speechLocales),urls:Yb(e.assetUrls??n.assetUrls)}}function Qb(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!Ub.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function $b(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!Ub.includes(e))}var ex=`pie-mathjax-no-asset-root`,tx={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},nx=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function rx(e){let t=globalThis;t[nx]??=[];let n=t[nx];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${tx[e]}. Set window['${Hb}'].opts.assetRoot to an npm root. See ${Vb}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(ex,{detail:{effect:e,message:r,docsUrl:Vb}}))}var ix=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,ax=`pie-mathjax-version-conflict`,ox=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function sx(e,t){if(typeof window>`u`)return;let n=globalThis;n[ox]??={logged:!1,conditions:[]};let r=n[ox];if(r.conditions.includes(e))return;r.conditions.push(e);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 ${ix}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(ax,{detail:{condition:e,message:i,docsUrl:ix}}))}function cx(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function lx(){return window.MathJax}function ux(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Bb}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Bb}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function dx(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(ux(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(rx(`untypeset`),Promise.resolve(!1))}var fx=globalThis,px=`PIE-MJX-CHTML-styles`,mx=[`MJX-CHTML-styles`,`MJX-SVG-styles`],hx=cx,gx=`http://www.w3.org/1998/Math/MathML`,_x=/^([a-z_][\w.-]*):math$/,vx=/^[a-z][a-z0-9-]*$/;function yx(e){for(let t of e.querySelectorAll(`*`)){let n=_x.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(bx(t,`${n}:`))}}function bx(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!vx.test(n))return e;let r=e.ownerDocument.createElementNS(gx,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?bx(n,t):n)}return r}var xx=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),Sx={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},Cx={tight:`0em`,medium:`0.1em`,loose:`0.2em`},wx=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,Tx=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,Ex=/^(\d+(\.\d*)?|\.\d+)$/,Dx=new Set([`mn`,`mo`,`mi`,`mtext`]),Ox=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function kx(e,t,n=[],r={}){let i=e.createElementNS(gx,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function Ax(e,t){let n=kx(e.document,`mo`);return n.textContent=t,n}function jx(e){let t=kx(e.document,`mn`);return t.textContent=`0`,kx(e.document,`mphantom`,[t])}function Mx(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Nx(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Px(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Fx(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function Ix(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(Px(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else Dx.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Fx(r.length,n.stackAlign,i??a),position:t}}function Lx(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>xx.has(e))}function Rx(e,t){let n=[...e.children].filter(e=>!Px(e));return n.length<=1?n[0]??null:kx(t.document,`mrow`,n)}function zx(e,t,n){let r=Mx(e,`location`)??`n`,i=Lx(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Px(e)?null:e.localName===`mscarry`?{content:Rx(e,n),location:Mx(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?Lx(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Fx(a.length,n.stackAlign),position:t,scale:Ex.test(o)?o:`0.6`}}function Bx(e){let t=Mx(e,`mslinethickness`)??`medium`,n=Sx[t]??(wx.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${Tx.test(r)?r:`currentColor`}`}function Vx(e,t,n){let r=Math.max(0,Nx(e,`length`));return{kind:`line`,length:r,anchor:Fx(r,n.stackAlign),position:t,border:Bx(e)}}function Hx(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Nx(e,`position`);switch(e.localName){case`msgroup`:Hx([...e.children],o,Nx(e,`shift`),r,i);break;case`msline`:i.push(Vx(e,o,r));break;case`mscarries`:i.push(zx(e,o,r));break;case`msrow`:case`mrow`:i.push(Ix([...e.children],o,r));break;default:i.push(Ix([e],o,r))}})}function Ux(e){return-e.anchor-e.position}function Wx(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function Gx(e){return Ux(e)+Wx(e)-1}function Kx(e,t,n,r){let i=e=>kx(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>kx(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function qx(e,t,n){let r=kx(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?kx(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function Jx(e,t,n,r,i){let a=e&&t.crossout.length?qx(e,t.crossout,i):e;if(!t.content)return a;let o=kx(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return Kx(a??jx(i),o,n,i)}function Yx(e,t){return e.carries[t-Ux(e)]??null}function Xx(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Yx(s,t),l=n.slice(0,o).some(e=>Yx(e,t));if(!c&&!l)return;let u=c??{content:jx(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=Jx(i,u,d,s.scale,r)}),e.content=i}function Zx(e,t){let n=e.filter(e=>Wx(e)>0),r=Math.min(0,...n.map(Ux)),i=Math.max(r,...n.map(Gx))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+Ux(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+Ux(e)+r].content=t}),u.length&&n.forEach((e,n)=>{Xx(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function Qx(e,{rows:t},n){let r=kx(n.document,`mtable`,t.map(e=>kx(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return kx(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])Ox.has(t)||r.setAttribute(t,n);let i=Mx(e,`charspacing`)??`medium`,a=Mx(e,`charalign`);return r.setAttribute(`columnspacing`,Cx[i]??(wx.test(i)?i:Cx.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function $x(e){return{document:e.ownerDocument,stackAlign:Mx(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function eS(e){let t=$x(e),n=[];return Hx([...e.children],0,0,t,n),Qx(e,Zx(n,t),t)}function tS(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function nS(e,t){let n=Ax(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[kx(t.document,`mrow`,[e,kx(t.document,`mspace`,[],{width:`0.2em`})]),kx(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function rS(e){let t=$x(e),[n,r,...i]=[...e.children],a=n&&!Px(n)?n:null,o=r&&!Px(r)?r:null,s=Mx(e,`longdivstyle`)??`lefttop`,c=Bx(e),l=[];Hx(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...Ix(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Ax(t,`/`)),p(Ax(t,`\\`),o);break;case`left)(right`:f(a,Ax(t,`)`)),p(Ax(t,`(`),o);break;case`:right=right`:p(Ax(t,`:`),a,Ax(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Hx([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...nS(a,t));break}let m=Zx(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+Ux(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+Gx(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,tS(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,tS(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:iS(h,g,s,a,o,c,t);break;default:tS(h,g,_(1),v,`top`,c)}return Qx(e,m,t)}function iS(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&kx(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function aS(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?eS(t):rS(t))}var oS=`PIE-MJX-explorer-styles`,sS=`var(--pie-text, black)`,cS=`var(--pie-background, #ffffff)`,lS=`var(--pie-border-dark, #66686A)`,uS=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,dS=`color-mix(in srgb, ${uS} 15%, transparent)`,fS=`
151
151
  :root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
152
- color: ${eS} !important;
153
- fill: ${eS} !important;
152
+ color: ${sS} !important;
153
+ fill: ${sS} !important;
154
154
  }
155
155
  :root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
156
- background-color: ${iS} !important;
156
+ background-color: ${dS} !important;
157
157
  }
158
158
  :root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
159
- fill: ${iS} !important;
159
+ fill: ${dS} !important;
160
160
  }
161
161
  :root mjx-container .mjx-selected {
162
- outline: 2px solid ${rS} !important;
162
+ outline: 2px solid ${uS} !important;
163
163
  }
164
164
  :root mjx-container [data-sre-highlight-2] {
165
- color: ${eS} !important;
165
+ color: ${sS} !important;
166
166
  background-color: transparent !important;
167
- fill: ${eS} !important;
168
- outline: 2px dashed ${rS} !important;
167
+ fill: ${sS} !important;
168
+ outline: 2px dashed ${uS} !important;
169
169
  }
170
170
  :root mjx-container rect[data-sre-highlight-2] {
171
171
  fill: transparent !important;
172
- stroke: ${rS} !important;
172
+ stroke: ${uS} !important;
173
173
  stroke-width: 2px !important;
174
174
  vector-effect: non-scaling-stroke;
175
175
  }
176
176
  :root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
177
- color: ${eS} !important;
178
- background-color: ${tS} !important;
179
- border-color: ${nS} !important;
177
+ color: ${sS} !important;
178
+ background-color: ${cS} !important;
179
+ border-color: ${lS} !important;
180
180
  }
181
181
  :root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
182
- color: ${eS} !important;
183
- background-color: ${iS} !important;
182
+ color: ${sS} !important;
183
+ background-color: ${dS} !important;
184
184
  }
185
- `;function oS(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=$x,t.textContent=aS,e.head.appendChild(t)}var sS=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function cS(){let e=globalThis;e[sS]||(e[sS]=!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 ${Pb}`))}function lS(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(),cS()}function uS(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`,()=>lS(e),{once:!0}),a})}`${Lb}`;var dS={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},fS=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,pS=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,mS=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,hS=/\\embed\{newLine\}\[\]/g,gS=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],_S=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),vS=`MJX-CHTML-styles`,yS=`PIE-MJX-SVG-styles`,bS=`PIE-MathJax-Menu-Settings`,xS={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},SS=200,CS=201;function wS(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 TS(e){for(let[t,n]of gS)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function ES(e){return TS(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var DS=`mathjax_ignore`,OS=`mathjax_process`;function kS(e,t){let n=e.closest(`.${DS}, .${OS}`);return n!==null&&t.contains(n)&&!n.classList.contains(OS)}function AS(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||kS(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${ES(n)}\\)`.replace(hS,`\\newline `),t.dataset.mathHandled=`true`)}}function jS(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function MS(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?mS:pS).test(e.textContent??``)}function NS(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Wb(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=nx();return PS(t)&&FS(t),e}}},startup:{typeset:!1,ready:()=>{let e=nx(),r=e?.startup,i=PS(e);i&&(FS(e),IS(e,s.speechLocales),Gb(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(LS(r?.document),r?.document?.addStyles?.(xS),uS(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...dS}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(fS),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=Kb(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),ix(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function PS(e){return!!e?.version?.startsWith(`4.`)}function FS(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=ox);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=yS)}function IS(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=bS;try{let e=localStorage.getItem(bS);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(bS,JSON.stringify(i)):localStorage.removeItem(bS)}catch{}}}function LS(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(wS(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,CS,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&wS(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===vS&&(r.id=ox),BS()}function RS(e){return e instanceof HTMLStyleElement&&sx.includes(e.id)}function zS(e){ex(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function BS(){let e=document.head,t=[...e.children].find(RS);if(t){zS(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(RS);if(e){zS(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function VS(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=SS&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function HS(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=nx()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function US(e){let t=nx();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():HS(t):NS(e)}function WS(e){return US(e).then(()=>{let e=nx();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function GS(e){let t=ax,n=t[_S];return n||(n=WS(e),t[_S]=n),n}function KS(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=cx();r&&ex(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),AS(n),fx(n),jS(n),Qx(n);let i=GS(e);if(!MS(n,t)){i.catch(()=>{});return}await i;let a=nx();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){oS(),VS(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}wS(n)}}}var qS=`@pie-lib/math-rendering`,JS=`@pie-lib/math-rendering@2`,YS=`pie-print`,XS=50,ZS=1e4,QS=null;function $S(){return!!window[JS]?.opts?.useSingleDollar}function eC(){return QS||=KS({useSingleDollar:$S()}),QS}function tC(){if(typeof window>`u`)return null;let e=window[qS];return typeof e?.renderMath==`function`&&e.renderMath!==aC?e:null}function nC(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===YS)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function rC(){let e=window.renderMath;return typeof e==`function`?e:null}async function iC(e){let t=nC(e);if(!t)return null;let n=rC();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+ZS;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,XS));let e=rC();if(e)return e}return null}var aC=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=tC(),i=r||t?null:await iC(n);return r?await r.renderMath?.(n):i&&i!==aC?await i(n):await eC()(n),t?n.innerHTML:void 0},oC={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},sC={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},U=e=>typeof e==`string`,cC=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},lC=e=>e==null?``:``+e,uC=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},dC=/###/g,fC=e=>e&&e.indexOf(`###`)>-1?e.replace(dC,`.`):e,pC=e=>!e||U(e),mC=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(pC(e))return{};let t=fC(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return pC(e)?{}:{obj:e,k:fC(r[i])}},hC=(e,t,n)=>{let{obj:r,k:i}=mC(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=mC(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=mC(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},gC=(e,t,n,r)=>{let{obj:i,k:a}=mC(e,t,Object);i[a]=i[a]||[],i[a].push(n)},_C=(e,t)=>{let{obj:n,k:r}=mC(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},vC=(e,t,n)=>{let r=_C(e,n);return r===void 0?_C(t,n):r},yC=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):yC(e[r],t[r],n):e[r]=t[r]);return e},bC=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),xC={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},SC=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>xC[e]):e,CC=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},wC=[` `,`,`,`?`,`!`,`;`],TC=new CC(20),EC=(e,t,n)=>{t||=``,n||=``;let r=wC.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=TC.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},DC=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},OC=e=>e?.replace(/_/g,`-`),kC={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},AC=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||kC,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},jC=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},MC=class extends jC{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=_C(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:DC(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),hC(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=_C(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?yC(s,n,i):s={...s,...n},hC(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},NC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},PC=Symbol(`i18next/PATH_KEY`);function FC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===PC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function IC(e,t){let{[PC]:n}=e(FC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var LC={},RC=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,zC=class e extends jC{constructor(e,t={}){super(),uC([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=AC.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=RC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!EC(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=IC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?IC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=RC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:RC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=NC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?IC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!LC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(LC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},BC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=AC.create(`languageUtils`)}getScriptPartFromCode(e){if(e=OC(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=OC(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},VC={zero:0,one:1,two:2,few:3,many:4,other:5},HC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},UC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=AC.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=OC(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),HC;if(!e.match(/-|_/))return HC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>VC[e]-VC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},WC=(e,t,n,r=`.`,i=!0)=>{let a=vC(e,t,n);return!a&&i&&U(n)&&(a=DC(e,n,r),a===void 0&&(a=DC(t,n,r))),a},GC=e=>e.replace(/\$/g,`$$$$`),KC=class{constructor(e={}){this.logger=AC.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?SC:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?bC(i):a||`{{`,this.suffix=o?bC(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?bC(d):f||bC(`$t(`),this.nestingSuffix=p?bC(p):m||bC(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=WC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(WC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>GC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?GC(this.escape(e)):GC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=lC(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${bC(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=lC(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},qC=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},JC=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(OC(r),i),t[o]=s),s(n)}},YC=e=>(t,n,r)=>e(OC(n),r)(t),XC=class{constructor(e={}){this.logger=AC.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?JC:YC;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=JC(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=qC(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},ZC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},QC=class extends jC{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=AC.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{gC(n.loaded,[i],a),ZC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},$C=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ew=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),tw=()=>{},nw=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},rw=`__i18next_supportNoticeShown`,iw=()=>!!(typeof globalThis<`u`&&globalThis[rw]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),aw=()=>{typeof globalThis<`u`&&(globalThis[rw]=!0)},ow=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),sw=class e extends jC{constructor(e={},t){if(super(),this.options=ew(e),this.services={},this.logger=AC,this.modules={external:[]},nw(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=$C();this.options={...n,...this.options,...ew(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!ow(this)&&!iw()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),aw());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?AC.init(r(this.modules.logger),this.options):AC.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:XC;let t=new BC(this.options);this.store=new MC(this.options.resources,this.options);let i=this.services;i.logger=AC,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new UC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new KC(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new QC(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new zC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=tw,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=cC(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=tw){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=cC();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=tw,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&NC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=cC();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=IC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=IC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=IC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=cC();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=cC();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new BC($C());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=tw){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new MC(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...$C().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new KC(n)}return a.translator=new zC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();sw.createInstance,sw.dir,sw.init,sw.loadResources,sw.reloadResources,sw.use,sw.changeLanguage,sw.getFixedT,sw.t,sw.exists,sw.setDefaultNamespace,sw.hasLoadedNamespace,sw.loadNamespaces,sw.loadLanguages,sw.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:oC,es:sC}});var cw={translator:{...sw,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return sw.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},lw=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,uw=e=>P.useState(()=>lw(e))[0],{translator:dw}=cw,fw=L(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:jy(),cursor:`pointer`}),pw=L(`span`)({borderBottom:`1px dotted currentColor`}),mw=L(Mb)(({theme:e})=>({paddingTop:e.spacing(2)})),hw=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string}),language:O.string};static defaultProps={labels:{}};state={expanded:!1};panelId=lw(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){aC(this.root)}componentDidUpdate(){aC(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||dw.t(`common:hide`,{lng:r}):e.hidden||dw.t(`common:show`,{lng:r});return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{children:(0,F.jsx)(fw,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,F.jsx)(pw,{children:a})})}),(0,F.jsx)(`div`,{id:this.panelId,children:(0,F.jsx)(mw,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}},gw=Im((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),_w=Im((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),vw=L(`div`)({display:`flex`,flexDirection:`column`}),yw=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),bw=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),xw=L(Ih)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),Sw=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(vw,{children:[(0,F.jsxs)(yw,{children:[(0,F.jsxs)(xw,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(bw,{children:(0,F.jsx)(_w,{})}),`Undo`]}),(0,F.jsxs)(xw,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(bw,{children:(0,F.jsx)(gw,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},Cw=vc({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),ww=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),Tw=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=lw(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(ei,{injectFirst:!0,children:(0,F.jsxs)(Oc,{theme:Cw,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,F.jsx)(ww,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},Ew=L(Tw)({display:`flex`,flexDirection:`column`,position:`relative`}),Dw=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(Ew,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},Ow=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:$v(n)}})}};function kw({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Aw=P.createContext(void 0);function jw(){return P.useContext(Aw)}function Mw(e){return za(`MuiFormLabel`,e)}var Nw=Ba(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Pw=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return cs({root:[`root`,`color${z(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Mw,t)},Fw=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Lc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{[`&.${Nw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Iw=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Lc(({theme:e})=>({[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}))),Lw=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=kw({props:n,muiFormControl:jw(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Pw(m);return(0,F.jsxs)(Fw,{as:o,ownerState:m,className:La(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(Iw,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Rw(e){return za(`MuiInputLabel`,e)}Ba(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var zw=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=cs({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${z(r)}`,o],asterisk:[s&&`asterisk`]},Rw,t);return{...t,...c}},Bw=L(Lw,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Nw.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Lc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Vw=P.forwardRef(function(e,t){let n=Rc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=jw(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=kw({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=zw(f);return(0,F.jsx)(Bw,{"data-shrink":u,ref:t,className:La(p.root,s),...c,ownerState:f,classes:p})});function Hw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Uw(e,t=!1){return e&&(Hw(e.value)&&e.value!==``||t&&Hw(e.defaultValue)&&e.defaultValue!==``)}function Ww(e){return e.startAdornment}function Gw(e){return za(`MuiFormControl`,e)}Ba(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Kw=e=>{let{classes:t,margin:n,fullWidth:r}=e;return cs({root:[`root`,n!==`none`&&`margin${z(n)}`,r&&`fullWidth`]},Gw,t)},qw=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Jw=L(P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=Kw(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!zm(t,[`Input`,`Select`]))return;let n=zm(t,[`Select`])?t.props.input:t;n&&Ww(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{zm(t,[`Input`,`Select`])&&(Uw(t.props,!0)||Uw(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(Aw.Provider,{value:O,children:(0,F.jsx)(qw,{as:o,ownerState:_,className:La(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Yw=L(Vw)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Xw=({label:e,className:t,children:n})=>(0,F.jsxs)(Jw,{className:t,children:[(0,F.jsx)(Yw,{shrink:!0,children:e}),n]});Xw.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var{translator:Zw}=cw,Qw=`pie-prompt-audio-player`,$w=`play-audio-button`,eT=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,tT=L(`div`)(({theme:e,tagName:t})=>({[`& .${$w}:focus-visible`]:{outline:`2px solid ${Jy()}`,outlineOffset:`2px`},[eT(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Ly()},[eT(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:zy()},[eT(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:zy()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[eT(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:iy()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${iy()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),nT=/\\embed\{newLine\}\[\]/g,rT=`\\newline `,iT=`preview-prompt`,aT=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string}),language:O.string};static defaultProps={onClick:()=>{}};promptRef=P.createRef();audioId=lw(Qw);playButtonId=lw($w);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=$v(e);let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add(Qw),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,Zw.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=$w,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${$w}`),i=n?.querySelector(`.${Qw}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof aC==`function`&&aC(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${iT}`.trim();return(0,F.jsx)(tT,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(nT,rT)}})}},oT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});oT.propTypes={children:O.node,false:O.bool};var sT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});sT.propTypes={children:O.node,purpose:O.string};var cT;typeof window<`u`&&(cT=new DOMParser);var lT=e=>cT.parseFromString(e,`text/html`).body.textContent,uT=e=>{if(!e)return!1;let t=lT(e);return!!(t&&t.trim())},dT;typeof window<`u`&&(dT=new DOMParser);var fT=e=>{if(!e)return!1;let t=dT.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},pT=`data:image/jpeg;base64,/9j/4AAQSkZ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KAAAAAAAAAAAAEsr3tq+YBO6Tat5gKAAAAAAAAAjVwKAAjdrecCgAAAAAAARrhra30gUAAAARtLVuwFAAAAAAAAAAAAAAAltbgUCJ3SbVvMBQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function mT(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var hT=P.createContext({});function gT(e){return za(`MuiList`,e)}Ba(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var _T=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return cs({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},gT,t)},vT=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yT=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=_T(d);return(0,F.jsx)(hT.Provider,{value:u,children:(0,F.jsxs)(vT,{as:a,className:La(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),bT=_g;function xT(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ST(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function CT(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function wT(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!CT(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var TT=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Um(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${bT(Hm(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Ag(Bm(t));if(n===`ArrowDown`)e.preventDefault(),wT(t,r,c,s,xT);else if(n===`ArrowUp`)e.preventDefault(),wT(t,r,c,s,ST);else if(n===`Home`)e.preventDefault(),wT(t,null,c,s,xT);else if(n===`End`)e.preventDefault(),wT(t,null,c,s,ST);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&CT(r,i);i.previousKeyMatched&&(c||wT(t,r,!1,s,xT,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=bl(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(yT,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function ET(e){return za(`MuiMenu`,e)}Ba(`MuiMenu`,[`root`,`paper`,`list`]);var DT={vertical:`top`,horizontal:`right`},OT={vertical:`top`,horizontal:`left`},kT=e=>{let{classes:t}=e;return cs({root:[`root`],paper:[`paper`],list:[`list`]},ET,t)},AT=L(h_,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),jT=L(m_,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),MT=L(TT,{name:`MuiMenu`,slot:`List`})({outline:0}),NT=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Do(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=kT(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=Ed({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=Wd(`paper`,{className:x.paper,elementType:jT,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=Wd(`list`,{className:La(x.list,s.className),elementType:MT,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(AT,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?DT:OT,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),PT=({slotProps:e,...t})=>(0,F.jsx)(NT,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),FT=s({Collapsible:()=>hw,EnableAudioAutoplayImage:()=>pT,Feedback:()=>gb,HtmlAndMath:()=>Ow,InlineMenu:()=>PT,InputContainer:()=>Xw,PreviewLayout:()=>Dw,PreviewPrompt:()=>aT,Purpose:()=>sT,Readable:()=>oT,UiLayout:()=>Tw,color:()=>ny,createUniqueId:()=>lw,hasMedia:()=>fT,hasText:()=>uT,indicators:()=>_b,transformDataHeadings:()=>mT,useUniqueId:()=>uw,withUndoReset:()=>Sw}),{translator:IT}=cw;function LT(e,t){if(!e)return;let n=IT.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function W(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}W.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},W.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},W.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},W.prototype.attr=function(e,t){return t===VT?this.elements[0]?this.elements[0].getAttribute(e):VT:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},W.prototype.html=function(e){return e===VT?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},W.prototype.append=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},W.prototype.prepend=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},W.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof W)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},W.prototype.appendTo=function(e){var t=e instanceof W?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},W.prototype.prependTo=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},W.prototype.insertBefore=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},W.prototype.insertAfter=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},W.prototype.replaceWith=function(e){var t=[];return e instanceof W?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},W.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},W.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},W.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new W(t)},W.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new W(t)},W.prototype.closest=function(e){return new W(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},W.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new W(e)},W.prototype.filter=function(e){return new W(this.elements.filter(function(t,n){return e(n,t)}))},W.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},W.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},W.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function RT(e){return(e||``).split(`.`)[0]}W.prototype.on=function(e,t){var n=RT(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},W.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=RT(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},W.prototype.off=function(e,t){var n=RT(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},W.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=RT(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},W.prototype.trigger=function(e){var t=new Event(RT(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},W.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},W.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){W.prototype[e]=function(t){return this.on(e,t)}}),W.prototype.next=function(e){return new W(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.prev=function(e){return new W(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.parent=function(){return new W(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},W.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},W.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},W.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},W.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},W.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},W.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},W.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},W.prototype.css=function(e,t){if(t===VT){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):VT}}else this.elements.forEach(function(n){n.style[e]=t});return this},W.prototype.scrollTop=function(e){var t=this.elements[0];return e===VT?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},W.prototype.scrollLeft=function(e){var t=this.elements[0];return e===VT?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},W.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},W.prototype.eq=function(e){return new W([this.elements[e]])},W.prototype.get=function(e){return e===VT?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},W.prototype.add=function(e){var t=this.elements.slice();return e instanceof W?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new W(t)},W.prototype.first=function(){return new W([this.elements[0]])},W.prototype.last=function(){return new W([this.elements[this.elements.length-1]])},W.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof W?e.elements[0]:e;return this.elements.indexOf(n)},W.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},W.prototype.text=function(e){return e===VT?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},W.prototype.val=function(e){var t=this.elements[0];return t?e===VT?t.value===VT?t.textContent:t.value:(this.elements.forEach(function(t){t.value===VT?t.textContent=e:t.value=e}),this):VT};function zT(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(W.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var G=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof W?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof W?e.elements:e.length===VT?[]:Array.from(e);return zT(n)};G.contains=function(e,t){return e!==t&&e.contains(t)};var BT=G,VT,HT=`mathquill-command-id`,UT=`mathquill-block-id`,WT=Math.min,GT=Math.max;function KT(){}var qT=[].slice;function JT(e){var t=e.length-1;return function(){var n=qT.call(arguments,0,t),r=qT.call(arguments,t);return e.apply(this,n.concat([r]))}}var YT=JT(function(e,t){return JT(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function XT(e){return JT(function(t,n){return typeof t!=`function`&&(t=YT(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function K(e){var t=qT.call(arguments,1);return function(){return e.apply(this,t)}}function ZT(e,t){if(!t)throw Error(`prayer failed: `+e)}var q=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),J=-1,Y=1;function QT(e){ZT(`a direction was passed`,e===J||e===Y)}var $T=q(function(e){e.parent=0,e[J]=0,e[Y]=0,e.init=function(e,t,n){this.parent=e,this[J]=t,this[Y]=n},this.copy=function(e){return $T(e.parent,e[J],e[Y])}}),eE=q(function(e){e[J]=0,e[Y]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),eE.byId[this.id]=this,this.ends={},this.ends[J]=0,this.ends[Y]=0},e.dispose=function(){delete eE.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=G(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=G(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&eE.byId[n].jQadd(e),r&&eE.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){QT(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[J],t[Y]),n},e.createLeftOf=function(e){return this.createDir(J,e)},e.selectChildren=function(e,t){return oE(e,t)},e.bubble=XT(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=XT(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[J]===0&&this.ends[Y]===0},e.isStyleBlock=function(){return!1},e.children=function(){return nE(this.ends[J],this.ends[Y])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return nE(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return nE(this,this).adopt(e,t,n),this},e.disown=function(){return nE(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function tE(e,t,n){ZT(`a parent is always present`,e),t&&(t[Y]!==n&&(t[Y]=n),t.parent!==e&&(t.parent=e)),n&&(n[J]!==t&&(n[J]=t),n.parent!==e&&(n.parent=e)),ZT(`leftward is properly set up`,(function(){return t?t[Y]===n&&t.parent===e:e.ends[J]===n})()),ZT(`rightward is properly set up`,(function(){return n?n[J]===t&&n.parent===e:e.ends[Y]===t})())}var nE=q(function(e){e.init=function(e,t,n){if(n===VT&&(n=J),QT(n),ZT(`no half-empty fragments`,!e==!t),this.ends={},e){ZT(`withDir is passed to Fragment`,e instanceof eE),ZT(`oppDir is passed to Fragment`,t instanceof eE),ZT(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=G(),e.withDirAdopt=function(e,t,n,r){return e===J?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){tE(e,t,n);var r=this;r.disowned=!1;var i=r.ends[J];if(!i)return this;var a=r.ends[Y];return t||(e.ends[J]=i),n?n[J]=a:e.ends[Y]=a,r.ends[Y][Y]=n,r.each(function(n){n[J]=t,n.parent=e,t&&(t[Y]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[J];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[Y],r=t.parent;return tE(r,t[J],t),tE(r,n,n[Y]),t[J]?t[J][Y]=n[Y]:r.ends[J]=n[Y],n[Y]?n[Y][J]=t[J]:r.ends[Y]=t[J],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=XT(function(e){var t=this,n=t.ends[J];if(!n)return t;for(;n!==t.ends[Y][Y]&&e(n)!==!1;n=n[Y]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),X={},rE={},iE={},aE=q($T,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=G(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[Y]?this.selection&&this.selection.ends[J][J]===this[J]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[Y].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=G(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return QT(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(J,e)},e.insRightOf=function(e){return this.insDirOf(Y,e)},e.insAtDirEnd=function(e,t){return QT(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(J,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(Y,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=$T.copy(n);var r=n.upDownCache[t.id];if(r)r[Y]?n.insLeftOf(r[Y]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[Y],r=this,i=e[J];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[Y])}),!this[Y])if(this[J])this[Y]=this[J][Y];else for(;!this[Y];)if(this.parent=this.parent[Y],this.parent)this[Y]=this.parent.ends[J];else{this[Y]=e[Y],this.parent=t;break}this[Y]?this.insLeftOf(this[Y]):this.insAtRightEnd(t),e.jQ.remove(),e[J].siblingDeleted&&e[J].siblingDeleted(r.options,Y),e[Y].siblingDeleted&&e[Y].siblingDeleted(r.options,J)},e.startSelection=function(){for(var e=this.anticursor=$T.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[J]===e[J]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=Y;if(n[J]!==r){for(var s=n;s;s=s[Y])if(s[Y]===r[Y]){o=J,i=n,a=r;break}}return o===Y&&(i=r,a=n),i instanceof $T&&(i=i[Y]),a instanceof $T&&(a=a[J]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[J]=this.selection.ends[J][J],this[Y]=this.selection.ends[Y][Y],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[J]=e.ends[J][J],this[Y]=e.ends[Y][Y],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof EE);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==VT)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),oE=q(nE,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),sE=q(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=aE(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===J||t===Y?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),cE={},lE=q(),uE={},dE=q(),fE={};function pE(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
185
+ `;function pS(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=oS,t.textContent=fS,e.head.appendChild(t)}var mS=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function hS(){let e=globalThis;e[mS]||(e[mS]=!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 ${Vb}`))}function gS(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(),hS()}function _S(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`,()=>gS(e),{once:!0}),a})}`${Wb}`;var vS={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},yS=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,bS=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,xS=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,SS=/\\embed\{newLine\}\[\]/g,CS=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],wS=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),TS=`MJX-CHTML-styles`,ES=`PIE-MJX-SVG-styles`,DS=`PIE-MathJax-Menu-Settings`,OS={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},kS=200,AS=201;function jS(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 MS(e){for(let[t,n]of CS)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function NS(e){return MS(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var PS=`mathjax_ignore`,FS=`mathjax_process`;function IS(e,t){let n=e.closest(`.${PS}, .${FS}`);return n!==null&&t.contains(n)&&!n.classList.contains(FS)}function LS(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||IS(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${NS(n)}\\)`.replace(SS,`\\newline `),t.dataset.mathHandled=`true`)}}function RS(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function zS(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?xS:bS).test(e.textContent??``)}function BS(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Zb(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=lx();return VS(t)&&HS(t),e}}},startup:{typeset:!1,ready:()=>{let e=lx(),r=e?.startup,i=VS(e);i&&(HS(e),US(e,s.speechLocales),Qb(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(WS(r?.document),r?.document?.addStyles?.(OS),_S(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...vS}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(yS),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=$b(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),dx(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function VS(e){return!!e?.version?.startsWith(`4.`)}function HS(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=px);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=ES)}function US(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=DS;try{let e=localStorage.getItem(DS);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(DS,JSON.stringify(i)):localStorage.removeItem(DS)}catch{}}}function WS(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(jS(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,AS,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&jS(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===TS&&(r.id=px),qS()}function GS(e){return e instanceof HTMLStyleElement&&mx.includes(e.id)}function KS(e){sx(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function qS(){let e=document.head,t=[...e.children].find(GS);if(t){KS(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(GS);if(e){KS(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function JS(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=kS&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function YS(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=lx()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function XS(e){let t=lx();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():YS(t):BS(e)}function ZS(e){return XS(e).then(()=>{let e=lx();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function QS(e){let t=fx,n=t[wS];return n||(n=ZS(e),t[wS]=n),n}function $S(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=hx();r&&sx(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),LS(n),yx(n),RS(n),aS(n);let i=QS(e);if(!zS(n,t)){i.catch(()=>{});return}await i;let a=lx();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){pS(),JS(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}jS(n)}}}var eC=`@pie-lib/math-rendering`,tC=`@pie-lib/math-rendering@2`,nC=`pie-print`,rC=50,iC=1e4,aC=null;function oC(){return!!window[tC]?.opts?.useSingleDollar}function sC(){return aC||=$S({useSingleDollar:oC()}),aC}function cC(){if(typeof window>`u`)return null;let e=window[eC];return typeof e?.renderMath==`function`&&e.renderMath!==fC?e:null}function lC(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===nC)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function uC(){let e=window.renderMath;return typeof e==`function`?e:null}async function dC(e){let t=lC(e);if(!t)return null;let n=uC();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+iC;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,rC));let e=uC();if(e)return e}return null}var fC=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=cC(),i=r||t?null:await dC(n);return r?await r.renderMath?.(n):i&&i!==fC?await i(n):await sC()(n),t?n.innerHTML:void 0},pC={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},mC={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},U=e=>typeof e==`string`,hC=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},gC=e=>e==null?``:``+e,_C=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},vC=/###/g,yC=e=>e&&e.indexOf(`###`)>-1?e.replace(vC,`.`):e,bC=e=>!e||U(e),xC=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(bC(e))return{};let t=yC(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return bC(e)?{}:{obj:e,k:yC(r[i])}},SC=(e,t,n)=>{let{obj:r,k:i}=xC(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=xC(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=xC(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},CC=(e,t,n,r)=>{let{obj:i,k:a}=xC(e,t,Object);i[a]=i[a]||[],i[a].push(n)},wC=(e,t)=>{let{obj:n,k:r}=xC(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},TC=(e,t,n)=>{let r=wC(e,n);return r===void 0?wC(t,n):r},EC=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):EC(e[r],t[r],n):e[r]=t[r]);return e},DC=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),OC={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},kC=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>OC[e]):e,AC=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},jC=[` `,`,`,`?`,`!`,`;`],MC=new AC(20),NC=(e,t,n)=>{t||=``,n||=``;let r=jC.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=MC.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},PC=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},FC=e=>e?.replace(/_/g,`-`),IC={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},LC=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||IC,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},RC=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},zC=class extends RC{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=wC(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:PC(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),SC(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=wC(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?EC(s,n,i):s={...s,...n},SC(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},BC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},VC=Symbol(`i18next/PATH_KEY`);function HC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===VC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function UC(e,t){let{[VC]:n}=e(HC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var WC={},GC=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,KC=class e extends RC{constructor(e,t={}){super(),_C([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=LC.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=GC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!NC(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=UC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?UC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=GC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:GC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=BC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?UC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!WC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(WC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},qC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=LC.create(`languageUtils`)}getScriptPartFromCode(e){if(e=FC(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=FC(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},JC={zero:0,one:1,two:2,few:3,many:4,other:5},YC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},XC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=LC.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=FC(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),YC;if(!e.match(/-|_/))return YC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>JC[e]-JC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},ZC=(e,t,n,r=`.`,i=!0)=>{let a=TC(e,t,n);return!a&&i&&U(n)&&(a=PC(e,n,r),a===void 0&&(a=PC(t,n,r))),a},QC=e=>e.replace(/\$/g,`$$$$`),$C=class{constructor(e={}){this.logger=LC.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?kC:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?DC(i):a||`{{`,this.suffix=o?DC(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?DC(d):f||DC(`$t(`),this.nestingSuffix=p?DC(p):m||DC(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=ZC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(ZC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>QC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?QC(this.escape(e)):QC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=gC(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${DC(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=gC(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},ew=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},tw=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(FC(r),i),t[o]=s),s(n)}},nw=e=>(t,n,r)=>e(FC(n),r)(t),rw=class{constructor(e={}){this.logger=LC.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?tw:nw;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tw(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ew(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},iw=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},aw=class extends RC{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=LC.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{CC(n.loaded,[i],a),iw(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},ow=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),sw=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),cw=()=>{},lw=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},uw=`__i18next_supportNoticeShown`,dw=()=>!!(typeof globalThis<`u`&&globalThis[uw]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),fw=()=>{typeof globalThis<`u`&&(globalThis[uw]=!0)},pw=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),mw=class e extends RC{constructor(e={},t){if(super(),this.options=sw(e),this.services={},this.logger=LC,this.modules={external:[]},lw(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=ow();this.options={...n,...this.options,...sw(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!pw(this)&&!dw()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),fw());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?LC.init(r(this.modules.logger),this.options):LC.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:rw;let t=new qC(this.options);this.store=new zC(this.options.resources,this.options);let i=this.services;i.logger=LC,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new XC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new $C(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new aw(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new KC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=cw,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=hC(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=cw){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=hC();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=cw,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&BC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=hC();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=UC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=UC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=UC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return U(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=hC();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=hC();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new qC(ow());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=cw){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new zC(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...ow().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new $C(n)}return a.translator=new KC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();mw.createInstance,mw.dir,mw.init,mw.loadResources,mw.reloadResources,mw.use,mw.changeLanguage,mw.getFixedT,mw.t,mw.exists,mw.setDefaultNamespace,mw.hasLoadedNamespace,mw.loadNamespaces,mw.loadLanguages,mw.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:pC,es:mC}});var hw={translator:{...mw,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return mw.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},gw=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,_w=e=>P.useState(()=>gw(e))[0],{translator:vw}=hw,yw=L(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:Ry(),cursor:`pointer`}),bw=L(`span`)({borderBottom:`1px dotted currentColor`}),xw=L(zb)(({theme:e})=>({paddingTop:e.spacing(2)})),Sw=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string}),language:O.string};static defaultProps={labels:{}};state={expanded:!1};panelId=gw(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){fC(this.root)}componentDidUpdate(){fC(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||vw.t(`common:hide`,{lng:r}):e.hidden||vw.t(`common:show`,{lng:r});return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{children:(0,F.jsx)(yw,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,F.jsx)(bw,{children:a})})}),(0,F.jsx)(`div`,{id:this.panelId,children:(0,F.jsx)(xw,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}},Cw=Im((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),ww=Im((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),Tw=L(`div`)({display:`flex`,flexDirection:`column`}),Ew=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),Dw=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),Ow=L(Ih)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),kw=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(Tw,{children:[(0,F.jsxs)(Ew,{children:[(0,F.jsxs)(Ow,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(Dw,{children:(0,F.jsx)(ww,{})}),`Undo`]}),(0,F.jsxs)(Ow,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(Dw,{children:(0,F.jsx)(Cw,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},Aw=vc({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),jw=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),Mw=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=gw(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(ei,{injectFirst:!0,children:(0,F.jsxs)(Oc,{theme:Aw,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,F.jsx)(jw,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},Nw=L(Mw)({display:`flex`,flexDirection:`column`,position:`relative`}),Pw=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(Nw,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},Fw=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:oy(n)}})}};function Iw({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Lw=P.createContext(void 0);function Rw(){return P.useContext(Lw)}function zw(e){return za(`MuiFormLabel`,e)}var Bw=Ba(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Vw=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return cs({root:[`root`,`color${z(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},zw,t)},Hw=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Lc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{[`&.${Bw.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Bw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Bw.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Uw=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Lc(({theme:e})=>({[`&.${Bw.error}`]:{color:(e.vars||e).palette.error.main}}))),Ww=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=Iw({props:n,muiFormControl:Rw(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Vw(m);return(0,F.jsxs)(Hw,{as:o,ownerState:m,className:La(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(Uw,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Gw(e){return za(`MuiInputLabel`,e)}Ba(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var Kw=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=cs({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${z(r)}`,o],asterisk:[s&&`asterisk`]},Gw,t);return{...t,...c}},qw=L(Ww,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Bw.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Lc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Jw=P.forwardRef(function(e,t){let n=Rc({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=Rw(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=Iw({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Kw(f);return(0,F.jsx)(qw,{"data-shrink":u,ref:t,className:La(p.root,s),...c,ownerState:f,classes:p})});function Yw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xw(e,t=!1){return e&&(Yw(e.value)&&e.value!==``||t&&Yw(e.defaultValue)&&e.defaultValue!==``)}function Zw(e){return e.startAdornment}function Qw(e){return za(`MuiFormControl`,e)}Ba(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var $w=e=>{let{classes:t,margin:n,fullWidth:r}=e;return cs({root:[`root`,n!==`none`&&`margin${z(n)}`,r&&`fullWidth`]},Qw,t)},eT=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),tT=L(P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=$w(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!zm(t,[`Input`,`Select`]))return;let n=zm(t,[`Select`])?t.props.input:t;n&&Zw(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{zm(t,[`Input`,`Select`])&&(Xw(t.props,!0)||Xw(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(Lw.Provider,{value:O,children:(0,F.jsx)(eT,{as:o,ownerState:_,className:La(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),nT=L(Jw)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),rT=({label:e,className:t,children:n})=>(0,F.jsxs)(tT,{className:t,children:[(0,F.jsx)(nT,{shrink:!0,children:e}),n]});rT.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var{translator:iT}=hw,aT=`pie-prompt-audio-player`,oT=`play-audio-button`,sT=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,cT=L(`div`)(({theme:e,tagName:t})=>({[`& .${oT}:focus-visible`]:{outline:`2px solid ${tb()}`,outlineOffset:`2px`},[sT(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Wy()},[sT(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:Ky()},[sT(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:Ky()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[sT(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:dy()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${dy()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),lT=/\\embed\{newLine\}\[\]/g,uT=`\\newline `,dT=`preview-prompt`,fT=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string}),language:O.string};static defaultProps={onClick:()=>{}};promptRef=P.createRef();audioId=gw(aT);playButtonId=gw(oT);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=oy(e);let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add(aT),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,iT.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=oT,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${oT}`),i=n?.querySelector(`.${aT}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof fC==`function`&&fC(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${dT}`.trim();return(0,F.jsx)(cT,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(lT,uT)}})}},pT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});pT.propTypes={children:O.node,false:O.bool};var mT=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});mT.propTypes={children:O.node,purpose:O.string};var hT;typeof window<`u`&&(hT=new DOMParser);var gT=e=>hT.parseFromString(e,`text/html`).body.textContent,_T=e=>{if(!e)return!1;let t=gT(e);return!!(t&&t.trim())},vT;typeof window<`u`&&(vT=new DOMParser);var yT=e=>{if(!e)return!1;let t=vT.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},bT=`data:image/jpeg;base64,/9j/4AAQSkZJR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AAAAAAAAAAAEsr3tq+YBO6Tat5gKAAAAAAAAAjVwKAAjdrecCgAAAAAAARrhra30gUAAAARtLVuwFAAAAAAAAAAAAAAAltbgUCJ3SbVvMBQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function xT(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var ST=P.createContext({});function CT(e){return za(`MuiList`,e)}Ba(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var wT=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return cs({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},CT,t)},TT=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ET=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=wT(d);return(0,F.jsx)(ST.Provider,{value:u,children:(0,F.jsxs)(TT,{as:a,className:La(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),DT=_g;function OT(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kT(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function AT(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function jT(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!AT(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var MT=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Um(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${DT(Hm(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Ag(Bm(t));if(n===`ArrowDown`)e.preventDefault(),jT(t,r,c,s,OT);else if(n===`ArrowUp`)e.preventDefault(),jT(t,r,c,s,kT);else if(n===`Home`)e.preventDefault(),jT(t,null,c,s,OT);else if(n===`End`)e.preventDefault(),jT(t,null,c,s,kT);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&AT(r,i);i.previousKeyMatched&&(c||jT(t,r,!1,s,OT,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=bl(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(ET,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function NT(e){return za(`MuiMenu`,e)}Ba(`MuiMenu`,[`root`,`paper`,`list`]);var PT={vertical:`top`,horizontal:`right`},FT={vertical:`top`,horizontal:`left`},IT=e=>{let{classes:t}=e;return cs({root:[`root`],paper:[`paper`],list:[`list`]},NT,t)},LT=L(h_,{shouldForwardProp:e=>Sc(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),RT=L(m_,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),zT=L(MT,{name:`MuiMenu`,slot:`List`})({outline:0}),BT=P.forwardRef(function(e,t){let n=Rc({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Do(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=IT(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=Ed({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=Wd(`paper`,{className:x.paper,elementType:RT,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=Wd(`list`,{className:La(x.list,s.className),elementType:zT,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(LT,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?PT:FT,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),VT=({slotProps:e,...t})=>(0,F.jsx)(BT,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),HT=s({Collapsible:()=>Sw,EnableAudioAutoplayImage:()=>bT,Feedback:()=>Cb,HtmlAndMath:()=>Fw,InlineMenu:()=>VT,InputContainer:()=>rT,PreviewLayout:()=>Pw,PreviewPrompt:()=>fT,Purpose:()=>mT,Readable:()=>pT,UiLayout:()=>Mw,color:()=>ly,createUniqueId:()=>gw,hasMedia:()=>yT,hasText:()=>_T,indicators:()=>wb,transformDataHeadings:()=>xT,useUniqueId:()=>_w,withUndoReset:()=>kw}),{translator:UT}=hw;function WT(e,t){if(!e)return;let n=UT.t(`mathInput.enterAnswer`,{lng:t});for(let t of e.querySelectorAll(`.mq-editable-field > .mq-textarea > textarea`))t.setAttribute(`aria-label`,n)}function W(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}W.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},W.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},W.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},W.prototype.attr=function(e,t){return t===JT?this.elements[0]?this.elements[0].getAttribute(e):JT:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},W.prototype.html=function(e){return e===JT?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},W.prototype.append=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},W.prototype.prepend=function(e){var t=e instanceof W?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},W.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof W)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},W.prototype.appendTo=function(e){var t=e instanceof W?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},W.prototype.prependTo=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},W.prototype.insertBefore=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},W.prototype.insertAfter=function(e){var t=e instanceof W?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},W.prototype.replaceWith=function(e){var t=[];return e instanceof W?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},W.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},W.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},W.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new W(t)},W.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new W(t)},W.prototype.closest=function(e){return new W(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},W.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new W(e)},W.prototype.filter=function(e){return new W(this.elements.filter(function(t,n){return e(n,t)}))},W.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},W.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},W.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function GT(e){return(e||``).split(`.`)[0]}W.prototype.on=function(e,t){var n=GT(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},W.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=GT(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},W.prototype.off=function(e,t){var n=GT(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},W.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=GT(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},W.prototype.trigger=function(e){var t=new Event(GT(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},W.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},W.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){W.prototype[e]=function(t){return this.on(e,t)}}),W.prototype.next=function(e){return new W(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.prev=function(e){return new W(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},W.prototype.parent=function(){return new W(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},W.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},W.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},W.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},W.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},W.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},W.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},W.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},W.prototype.css=function(e,t){if(t===JT){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):JT}}else this.elements.forEach(function(n){n.style[e]=t});return this},W.prototype.scrollTop=function(e){var t=this.elements[0];return e===JT?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},W.prototype.scrollLeft=function(e){var t=this.elements[0];return e===JT?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},W.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},W.prototype.eq=function(e){return new W([this.elements[e]])},W.prototype.get=function(e){return e===JT?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},W.prototype.add=function(e){var t=this.elements.slice();return e instanceof W?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new W(t)},W.prototype.first=function(){return new W([this.elements[0]])},W.prototype.last=function(){return new W([this.elements[this.elements.length-1]])},W.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof W?e.elements[0]:e;return this.elements.indexOf(n)},W.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},W.prototype.text=function(e){return e===JT?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},W.prototype.val=function(e){var t=this.elements[0];return t?e===JT?t.value===JT?t.textContent:t.value:(this.elements.forEach(function(t){t.value===JT?t.textContent=e:t.value=e}),this):JT};function KT(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(W.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var G=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof W?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof W?e.elements:e.length===JT?[]:Array.from(e);return KT(n)};G.contains=function(e,t){return e!==t&&e.contains(t)};var qT=G,JT,YT=`mathquill-command-id`,XT=`mathquill-block-id`,ZT=Math.min,QT=Math.max;function $T(){}var eE=[].slice;function tE(e){var t=e.length-1;return function(){var n=eE.call(arguments,0,t),r=eE.call(arguments,t);return e.apply(this,n.concat([r]))}}var nE=tE(function(e,t){return tE(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function rE(e){return tE(function(t,n){return typeof t!=`function`&&(t=nE(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function K(e){var t=eE.call(arguments,1);return function(){return e.apply(this,t)}}function iE(e,t){if(!t)throw Error(`prayer failed: `+e)}var q=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),J=-1,Y=1;function aE(e){iE(`a direction was passed`,e===J||e===Y)}var oE=q(function(e){e.parent=0,e[J]=0,e[Y]=0,e.init=function(e,t,n){this.parent=e,this[J]=t,this[Y]=n},this.copy=function(e){return oE(e.parent,e[J],e[Y])}}),sE=q(function(e){e[J]=0,e[Y]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),sE.byId[this.id]=this,this.ends={},this.ends[J]=0,this.ends[Y]=0},e.dispose=function(){delete sE.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=G(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=G(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&sE.byId[n].jQadd(e),r&&sE.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){aE(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[J],t[Y]),n},e.createLeftOf=function(e){return this.createDir(J,e)},e.selectChildren=function(e,t){return pE(e,t)},e.bubble=rE(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=rE(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[J]===0&&this.ends[Y]===0},e.isStyleBlock=function(){return!1},e.children=function(){return lE(this.ends[J],this.ends[Y])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return lE(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return lE(this,this).adopt(e,t,n),this},e.disown=function(){return lE(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function cE(e,t,n){iE(`a parent is always present`,e),t&&(t[Y]!==n&&(t[Y]=n),t.parent!==e&&(t.parent=e)),n&&(n[J]!==t&&(n[J]=t),n.parent!==e&&(n.parent=e)),iE(`leftward is properly set up`,(function(){return t?t[Y]===n&&t.parent===e:e.ends[J]===n})()),iE(`rightward is properly set up`,(function(){return n?n[J]===t&&n.parent===e:e.ends[Y]===t})())}var lE=q(function(e){e.init=function(e,t,n){if(n===JT&&(n=J),aE(n),iE(`no half-empty fragments`,!e==!t),this.ends={},e){iE(`withDir is passed to Fragment`,e instanceof sE),iE(`oppDir is passed to Fragment`,t instanceof sE),iE(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=G(),e.withDirAdopt=function(e,t,n,r){return e===J?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){cE(e,t,n);var r=this;r.disowned=!1;var i=r.ends[J];if(!i)return this;var a=r.ends[Y];return t||(e.ends[J]=i),n?n[J]=a:e.ends[Y]=a,r.ends[Y][Y]=n,r.each(function(n){n[J]=t,n.parent=e,t&&(t[Y]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[J];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[Y],r=t.parent;return cE(r,t[J],t),cE(r,n,n[Y]),t[J]?t[J][Y]=n[Y]:r.ends[J]=n[Y],n[Y]?n[Y][J]=t[J]:r.ends[Y]=t[J],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=rE(function(e){var t=this,n=t.ends[J];if(!n)return t;for(;n!==t.ends[Y][Y]&&e(n)!==!1;n=n[Y]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),X={},uE={},dE={},fE=q(oE,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=G(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[Y]?this.selection&&this.selection.ends[J][J]===this[J]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[Y].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=G(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return aE(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(J,e)},e.insRightOf=function(e){return this.insDirOf(Y,e)},e.insAtDirEnd=function(e,t){return aE(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(J,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(Y,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=oE.copy(n);var r=n.upDownCache[t.id];if(r)r[Y]?n.insLeftOf(r[Y]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[Y],r=this,i=e[J];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[Y])}),!this[Y])if(this[J])this[Y]=this[J][Y];else for(;!this[Y];)if(this.parent=this.parent[Y],this.parent)this[Y]=this.parent.ends[J];else{this[Y]=e[Y],this.parent=t;break}this[Y]?this.insLeftOf(this[Y]):this.insAtRightEnd(t),e.jQ.remove(),e[J].siblingDeleted&&e[J].siblingDeleted(r.options,Y),e[Y].siblingDeleted&&e[Y].siblingDeleted(r.options,J)},e.startSelection=function(){for(var e=this.anticursor=oE.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[J]===e[J]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=Y;if(n[J]!==r){for(var s=n;s;s=s[Y])if(s[Y]===r[Y]){o=J,i=n,a=r;break}}return o===Y&&(i=r,a=n),i instanceof oE&&(i=i[Y]),a instanceof oE&&(a=a[J]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[J]=this.selection.ends[J][J],this[Y]=this.selection.ends[Y][Y],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[J]=e.ends[J][J],this[Y]=e.ends[Y][Y],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof NE);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==JT)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),pE=q(lE,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),mE=q(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=fE(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===J||t===Y?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),hE={},gE=q(),_E={},vE=q(),yE={};function bE(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
186
186
 
187
187
  MathQuill = MathQuill.getInterface(1);
188
188
  // now MathQuill.MathField() works like it used to
189
189
 
190
190
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
191
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function mE(e){return pE(),CD(e)}mE.prototype=dE.p,mE.VERSION=`v1.2.1-beta.1`,mE.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return pE=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
191
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function xE(e){return bE(),AD(e)}xE.prototype=vE.p,xE.VERSION=`v1.2.1-beta.1`,xE.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return bE=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
192
192
 
193
193
  MathQuill = MathQuill.getInterface(1);
194
194
  // now MathQuill.MathField() works like it used to
195
195
 
196
196
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
197
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},pE(),mE},mE.getInterface=_E;var hE=_E.MIN=1,gE=_E.MAX=3;function _E(e){if(!(hE<=e&&e<=gE))throw`Only interface versions between `+hE+` and `+gE+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=G(e).children(`.mq-root-block`).attr(UT),r=t&&eE.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=J,t.R=Y,t.saneKeyboardEvents=bE;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=uE[r];e[r]=a?a(i):i}}t.config=function(e){return r(lE.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;fE[e]=t};var i=n.AbstractMathQuill=q(dE,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=G(`<span class="mq-root-block"/>`).attr(UT,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=q(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[J]=e.ends[Y]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=X[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[J];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(J)},e.moveToRightEnd=function(){return this.moveToDirEnd(Y)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:KT});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-G(window).scrollLeft(),i=t-G(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(G(a),e,t),xD().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return BT.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(G(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,cE)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=sE(a.RootBlock(),G(n),lE());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,cE[a]);return t}mE.noConflict=function(){return window.MathQuill=vE,mE};var vE=window.MathQuill;window.MathQuill=mE;function yE(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Z=q(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){ZT(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return ZT(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){ZT(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),bE=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=BT(e),o=BT(n.container||a),s=KT,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=KT,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=KT,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();sE.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),sE.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),G(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),G(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),sE.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),eE.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(J);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(Y,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(J,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[Y];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[Y]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[J];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[J]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[J])for(;r[J];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[Y])for(;r[Y];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(Y);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[J];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){ZT(`overridden or never called on this node`)}}),sE.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){QT(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},uE.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){QT(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(J)},e.moveRight=function(){return this.moveDir(Y)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[Y][r]?n.insAtLeftEnd(n[Y][r]):n[J][r]?n.insAtRightEnd(n[J][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof eE&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){QT(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){QT(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===J?nE(t.parent.ends[J],t[J]).remove():nE(t[Y],t.parent.ends[Y]).remove(),t.insAtDirEnd(e,t.parent),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(J)},e.deleteForward=function(){return this.deleteDir(Y)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;QT(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(J)},e.selectRight=function(){return this.selectDir(Y)}});var xE=/[\\]{2,}/gm,SE=(function(){function e(e){var t=EE();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||EE(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[Y],0);return t}var n=Z.string,r=Z.regex,i=Z.letter,a=Z.any,o=Z.optWhitespace,s=Z.succeed,c=Z.fail,l=i.map(function(e){return FE(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return iE[e]&&iE[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=X[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();sE.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return SE.parse(e).postOrder(`finalizeTree`,lE.p).join(`latex`).trim()},uE.maxDepth=function(e){return typeof e==`number`?e:VT},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Z.all,r=Z.eof,i=SE.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[J],t[Y]),i.jQize().insertBefore(t.jQ),t[J]=i.ends[Y],i.finalizeInsert(t.options,t),i.ends[Y][Y].siblingCreated&&i.ends[Y][Y].siblingCreated(t.options,J),i.ends[J][J].siblingCreated&&i.ends[J][J].siblingCreated(t.options,Y),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(xE,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Z.all,a=Z.eof,o=SE.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Z.regex,i=Z.string,a=Z.eof,o=Z.all,s=i(`$`).then(SE).skip(i(`$`).or(a)).map(function(e){var t=jE(n);t.createBlocks();var r=t.ends[J];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Q),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[Y],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),sE.open(function(e){lE.p.ignoreNextMousedown=KT,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=G(t.target).closest(`.mq-root-block`),r=eE.byId[n.attr(UT)||e.attr(UT)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=KT;function s(e){i.anticursor||i.startSelection(),r.seek(G(e.target),e.pageX,e.pageY).cursor.select(),e.target&&G(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),G(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(G(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),G(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),sE.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(UT)||e.attr(HT);if(!i){var a=e.parent();i=a.attr(UT)||a.attr(HT)}}var o=i&&eE.byId[i]?eE.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),sE.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[J]===e[Y])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),sE.open(function(e){lE.p.substituteTextarea=function(){return G(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=G(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=G(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;YE(e.container[0]),e.textareaSelectionTimeout===VT&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=VT;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(BT(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},lE.p.substituteKeyboardEvents=bE,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
198
- `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var CE=q(eE,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[Y].siblingCreated&&n[Y].siblingCreated(e,J),n[J].siblingCreated&&n[J].siblingCreated(e,Y),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==VT){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof EE);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),wE=q(CE,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=SE.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[Y],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[J],0,0),r.jQ.appendTo(n.ends[J].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=EE()).adopt(e,e.ends[Y],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[J],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return oE(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[J]=e.jQ.offset().left,t[Y]=t[J]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[J])return t.insLeftOf(r);if(e>i[Y])return t.insRightOf(r);var a=i[J];r.eachChild(function(o){var s=n(o);if(e<s[J])return e-a<s[J]-e?o[J]?t.insAtRightEnd(o[J]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[Y])o[Y]?a=s[Y]:i[Y]-e<e-s[Y]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);ZT(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){ZT(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],ZT(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),TE=q(wE,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Z.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=KT,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=KT,e.isEmpty=function(){return!0}}),Q=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=q(TE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),EE=q(CE,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[J]===this.ends[Y]&&this.ends[J]!==0?this.ends[J].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?J:Y,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[Y];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[J].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[J];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?FE(e):/^\d$/.test(e)?NE(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?X[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?X[`×`](e):(n=rE[e]||X[e])?n(e):Q(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});lE.p.mouseEvents=!0,cE.StaticMath=function(e){return q(e.AbstractMathQuill,function(t,n){this.RootBlock=EE,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var DE=q(EE,yE);cE.MathField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=DE,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=KT),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var OE=q(eE,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof nE?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[J]&&this.ends[J].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[Y].siblingCreated&&n[Y].siblingCreated(e.options,J),n[J].siblingCreated&&n[J].siblingCreated(e.options,Y),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Z.string,n=Z.regex;return Z.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?nE():(kE(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=wE.prototype.selectTowards,e.deleteTowards=wE.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[J]?(e[J].appendText(n),this.bubble(`reflow`)):kE(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Q(`\\$`,`$`).createLeftOf(e);else if(!e[Y])e.insRightOf(this);else if(!e[J])e.insLeftOf(this);else{var r=OE(),i=this.ends[J];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?J:Y,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[J]&&t[J].text.length;else if(t.anticursor.parent===this){var l=t[J]&&t[J].text.length;if(this.anticursorPosition===l)t.anticursor=$T.copy(t);else{if(this.anticursorPosition<l){var u=t[J].splitRight(this.anticursorPosition);t[J]=u}else var u=t[Y].splitRight(this.anticursorPosition-l);t.anticursor=$T(this,u[J],u)}}},e.blur=function(e){EE.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[J]===this?e[J]=this[J]:e[Y]===this&&(e[Y]=this[Y])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},ZT(`only node in TextBlock span is Text node`,t.nodeType===3);var n=kE(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=EE.prototype.focus}),kE=q(eE,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=G(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){QT(t),t===Y?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=kE(this.text.slice(e)).adopt(this.parent,this,this[Y]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===J?0:-1+t.length)}e.moveTowards=function(e,t){QT(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):kE(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===Y?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){QT(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=kE(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=kE(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});X.text=X.textnormal=X.textrm=X.textup=X.textmd=OE;function AE(e,t,n){return q(OE,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}X.em=X.italic=X.italics=X.emph=X.textit=X.textsl=AE(`\\textit`,`i`,`class="mq-text-mode"`),X.strong=X.bold=X.textbf=AE(`\\textbf`,`b`,`class="mq-text-mode"`),X.sf=X.textsf=AE(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),X.tt=X.texttt=AE(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),X.textsc=AE(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),X.uppercase=AE(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),X.lowercase=AE(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var jE=q(wE,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].cursor=this.cursor,this.ends[J].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Q(`\\$`,`$`).createLeftOf(e.show())):e[Y]?e[J]?EE.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):EE.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[J].latex()+`$`}}),ME=q(DE,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)jE(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Q(t,n).createLeftOf(e)}}});cE.TextField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=ME,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},rE[`\\`]=q(wE,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[J].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[J].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Q(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[J].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return G(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[J].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[Y]?e.insLeftOf(this[Y]):e.insAtRightEnd(this.parent);var t=this.ends[J].latex();t||=` `;var n=X[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=OE(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),X[`∉`]=X.notin=K($,`\\notin `,`&#8713;`),X[`≅`]=X.cong=K($,`\\cong `,`&#8773;`),X[`≡`]=X.equiv=K($,`\\equiv `,`&#8801;`),X[`⊕`]=X.oplus=K($,`\\oplus `,`&#8853;`),X[`⊗`]=X.otimes=K($,`\\otimes `,`&#8855;`),X[`≠`]=X.ne=X.neq=K($,`\\ne `,`&ne;`),X[`≇`]=X.ncong=K($,`\\ncong `,`&ncong;`),X[`∗`]=X.ast=X.star=X.loast=X.lowast=K($,`\\ast `,`&lowast;`),X.therefor=X.therefore=K($,`\\therefore `,`&there4;`),X.cuz=X.because=K($,`\\because `,`&#8757;`),X.prop=X.propto=K($,`\\propto `,`&prop;`),X[`≈`]=X.asymp=X.approx=K($,`\\approx `,`&asymp;`),X[`≉`]=X.nasymp=X.napprox=K($,`\\napprox `,`&nap;`),X.isin=X.in=K($,`\\in `,`&isin;`),X.ni=X.contains=K($,`\\ni `,`&ni;`),X.notni=X.niton=X.notcontains=X.doesnotcontain=iE[`\\not\\ni`]=K($,`\\not\\ni `,`&#8716;`),X.sub=X.subset=K($,`\\subset `,`&sub;`),X.sup=X.supset=X.superset=K($,`\\supset `,`&sup;`),X.nsub=X.notsub=X.nsubset=X.notsubset=iE[`\\not\\subset`]=K($,`\\not\\subset `,`&#8836;`),X.nsup=X.notsup=X.nsupset=X.notsupset=X.nsuperset=X.notsuperset=iE[`\\not\\supset`]=K($,`\\not\\supset `,`&#8837;`),X.sube=X.subeq=X.subsete=X.subseteq=K($,`\\subseteq `,`&sube;`),X.supe=X.supeq=X.supsete=X.supseteq=X.supersete=X.superseteq=K($,`\\supseteq `,`&supe;`),X.nsube=X.nsubeq=X.notsube=X.notsubeq=X.nsubsete=X.nsubseteq=X.notsubsete=X.notsubseteq=iE[`\\not\\subseteq`]=K($,`\\not\\subseteq `,`&#8840;`),X.nsupe=X.nsupeq=X.notsupe=X.notsupeq=X.nsupsete=X.nsupseteq=X.notsupsete=X.notsupseteq=X.nsupersete=X.nsuperseteq=X.notsupersete=X.notsuperseteq=iE[`\\not\\supseteq`]=K($,`\\not\\supseteq `,`&#8841;`),X.N=X.naturals=X.Naturals=K(Q,`\\mathbb{N}`,`&#8469;`),X.P=X.primes=X.Primes=X.projective=X.Projective=X.probability=X.Probability=K(Q,`\\mathbb{P}`,`&#8473;`),X.Z=X.integers=X.Integers=K(Q,`\\mathbb{Z}`,`&#8484;`),X.Q=X.rationals=X.Rationals=K(Q,`\\mathbb{Q}`,`&#8474;`),X.R=X.reals=X.Reals=K(Q,`\\mathbb{R}`,`&#8477;`),X.C=X.complex=X.Complex=X.complexes=X.Complexes=X.complexplane=X.Complexplane=X.ComplexPlane=K(Q,`\\mathbb{C}`,`&#8450;`),X.H=X.Hamiltonian=X.quaternions=X.Quaternions=K(Q,`\\mathbb{H}`,`&#8461;`),X.quad=X.emsp=K(Q,`\\quad `,` `),X.qquad=K(Q,`\\qquad `,` `),X.diamond=K(Q,`\\diamond `,`&#9671;`),X.bigtriangleup=K(Q,`\\bigtriangleup `,`&#9651;`),X.ominus=K(Q,`\\ominus `,`&#8854;`),X.uplus=K(Q,`\\uplus `,`&#8846;`),X.bigtriangledown=K(Q,`\\bigtriangledown `,`&#9661;`),X.sqcap=K(Q,`\\sqcap `,`&#8851;`),X.triangleleft=K(Q,`\\triangleleft `,`&#8882;`),X.sqcup=K(Q,`\\sqcup `,`&#8852;`),X.triangleright=K(Q,`\\triangleright `,`&#8883;`),X.odot=X.circledot=K(Q,`\\odot `,`&#8857;`),X.bigcirc=K(Q,`\\bigcirc `,`&#9711;`),X.dagger=K(Q,`\\dagger `,`&#0134;`),X.ddagger=K(Q,`\\ddagger `,`&#135;`),X.wr=K(Q,`\\wr `,`&#8768;`),X.amalg=K(Q,`\\amalg `,`&#8720;`),X.models=K(Q,`\\models `,`&#8872;`),X.prec=K(Q,`\\prec `,`&#8826;`),X.succ=K(Q,`\\succ `,`&#8827;`),X.preceq=K(Q,`\\preceq `,`&#8828;`),X.succeq=K(Q,`\\succeq `,`&#8829;`),X.simeq=K(Q,`\\simeq `,`&#8771;`),X.mid=K(Q,`\\mid `,`&#8739;`),X.ll=K(Q,`\\ll `,`&#8810;`),X.gg=K(Q,`\\gg `,`&#8811;`),X.parallel=K(Q,`\\parallel `,`&#8741;`),X.nparallel=K(Q,`\\nparallel `,`&#8742;`),X.bowtie=K(Q,`\\bowtie `,`&#8904;`),X.sqsubset=K(Q,`\\sqsubset `,`&#8847;`),X.sqsupset=K(Q,`\\sqsupset `,`&#8848;`),X.smile=K(Q,`\\smile `,`&#8995;`),X.sqsubseteq=K(Q,`\\sqsubseteq `,`&#8849;`),X.sqsupseteq=K(Q,`\\sqsupseteq `,`&#8850;`),X.doteq=K(Q,`\\doteq `,`&#8784;`),X.frown=K(Q,`\\frown `,`&#8994;`),X.vdash=K(Q,`\\vdash `,`&#8870;`),X.dashv=K(Q,`\\dashv `,`&#8867;`),X.nless=K(Q,`\\nless `,`&#8814;`),X.ngtr=K(Q,`\\ngtr `,`&#8815;`),X.longleftarrow=K(Q,`\\longleftarrow `,`&#8592;`),X.longrightarrow=K(Q,`\\longrightarrow `,`&#8594;`),X.Longleftarrow=K(Q,`\\Longleftarrow `,`&#8656;`),X.Longrightarrow=K(Q,`\\Longrightarrow `,`&#8658;`),X.longleftrightarrow=K(Q,`\\longleftrightarrow `,`&#8596;`),X.updownarrow=K(Q,`\\updownarrow `,`&#8597;`),X.Longleftrightarrow=K(Q,`\\Longleftrightarrow `,`&#8660;`),X.Updownarrow=K(Q,`\\Updownarrow `,`&#8661;`),X.mapsto=K(Q,`\\mapsto `,`&#8614;`),X.nearrow=K(Q,`\\nearrow `,`&#8599;`),X.hookleftarrow=K(Q,`\\hookleftarrow `,`&#8617;`),X.hookrightarrow=K(Q,`\\hookrightarrow `,`&#8618;`),X.searrow=K(Q,`\\searrow `,`&#8600;`),X.leftharpoonup=K(Q,`\\leftharpoonup `,`&#8636;`),X.rightharpoonup=K(Q,`\\rightharpoonup `,`&#8640;`),X.swarrow=K(Q,`\\swarrow `,`&#8601;`),X.leftharpoondown=K(Q,`\\leftharpoondown `,`&#8637;`),X.rightharpoondown=K(Q,`\\rightharpoondown `,`&#8641;`),X.nwarrow=K(Q,`\\nwarrow `,`&#8598;`),X.ldots=K(Q,`\\ldots `,`&#8230;`),X.cdots=K(Q,`\\cdots `,`&#8943;`),X.vdots=K(Q,`\\vdots `,`&#8942;`),X.ddots=K(Q,`\\ddots `,`&#8945;`),X.surd=K(Q,`\\surd `,`&#8730;`),X.triangle=K(Q,`\\triangle `,`&#9651;`),X.ell=K(Q,`\\ell `,`&#8467;`),X.top=K(Q,`\\top `,`&#8868;`),X.flat=K(Q,`\\flat `,`&#9837;`),X.natural=K(Q,`\\natural `,`&#9838;`),X.sharp=K(Q,`\\sharp `,`&#9839;`),X.wp=K(Q,`\\wp `,`&#8472;`),X.bot=K(Q,`\\bot `,`&#8869;`),X.clubsuit=K(Q,`\\clubsuit `,`&#9827;`),X.diamondsuit=K(Q,`\\diamondsuit `,`&#9826;`),X.heartsuit=K(Q,`\\heartsuit `,`&#9825;`),X.spadesuit=K(Q,`\\spadesuit `,`&#9824;`),X.circledot=K(Q,`\\circledot `,`&#8857;`),X.middot=K(Q,`\\middot `,`&middot;`),X.dottedsquare=K(Q,`\\dottedsquare `,`&#11034;`),X.square=K(Q,`\\square `,`&#11036;`),X.rectangle=K(Q,`\\rectangle `,`&#9647;`),X.oint=K(Q,`\\oint `,`&#8750;`),X.bigcap=K(Q,`\\bigcap `,`&#8745;`),X.bigcup=K(Q,`\\bigcup `,`&#8746;`),X.bigsqcup=K(Q,`\\bigsqcup `,`&#8852;`),X.bigvee=K(Q,`\\bigvee `,`&#8744;`),X.bigwedge=K(Q,`\\bigwedge `,`&#8743;`),X.bigodot=K(Q,`\\bigodot `,`&#8857;`),X.bigotimes=K(Q,`\\bigotimes `,`&#8855;`),X.bigoplus=K(Q,`\\bigoplus `,`&#8853;`),X.biguplus=K(Q,`\\biguplus `,`&#8846;`),X.lfloor=K(Q,`\\lfloor `,`&#8970;`),X.rfloor=K(Q,`\\rfloor `,`&#8971;`),X.lceil=K(Q,`\\lceil `,`&#8968;`),X.rceil=K(Q,`\\rceil `,`&#8969;`),X.opencurlybrace=X.lbrace=K(Q,`\\lbrace `,`{`),X.closecurlybrace=X.rbrace=K(Q,`\\rbrace `,`}`),X.lbrack=K(Q,`[`),X.rbrack=K(Q,`]`),X.mug=K(Q,`\\mug `,`µg`),X.mus=K(Q,`\\mus `,`µs`),X.mum=K(Q,`\\mum `,`µm`),X.muL=K(Q,`\\muL `,`µL`),X.slash=K(Q,`/`),X.vert=K(Q,`|`),X.perp=X.perpendicular=K(Q,`\\perp `,`&perp;`),X.nabla=X.del=K(Q,`\\nabla `,`&nabla;`),X.hbar=K(Q,`\\hbar `,`&#8463;`),X.AA=X.Angstrom=X.angstrom=K(Q,`\\text\\AA `,`&#8491;`),X.ring=X.circ=X.circle=K(Q,`\\circ `,`&#8728;`),X.bull=X.bullet=K(Q,`\\bullet `,`&bull;`),X.setminus=X.smallsetminus=K(Q,`\\setminus `,`&#8726;`),X.not=X[`¬`]=X.neg=K(Q,`\\neg `,`&not;`),X[`…`]=X.dots=X.ellip=X.hellip=X.ellipsis=X.hellipsis=K(Q,`\\dots `,`&hellip;`),X.converges=X.darr=X.dnarr=X.dnarrow=X.downarrow=K(Q,`\\downarrow `,`&darr;`),X.dArr=X.dnArr=X.dnArrow=X.Downarrow=K(Q,`\\Downarrow `,`&dArr;`),X.diverges=X.uarr=X.uparrow=K(Q,`\\uparrow `,`&uarr;`),X.uArr=X.Uparrow=K(Q,`\\Uparrow `,`&uArr;`),X.to=K($,`\\to `,`&rarr;`),X.rarr=X.rightarrow=K(Q,`\\rightarrow `,`&rarr;`),X.implies=K($,`\\Rightarrow `,`&rArr;`),X.rArr=X.Rightarrow=K(Q,`\\Rightarrow `,`&rArr;`),X.gets=K($,`\\gets `,`&larr;`),X.larr=X.leftarrow=K(Q,`\\leftarrow `,`&larr;`),X.impliedby=K($,`\\Leftarrow `,`&lArr;`),X.lArr=X.Leftarrow=K(Q,`\\Leftarrow `,`&lArr;`),X.harr=X.lrarr=X.leftrightarrow=K(Q,`\\leftrightarrow `,`&harr;`),X.iff=K($,`\\Leftrightarrow `,`&hArr;`),X.hArr=X.lrArr=X.Leftrightarrow=K(Q,`\\Leftrightarrow `,`&hArr;`),X.Re=X.Real=X.real=K(Q,`\\Re `,`&real;`),X.Im=X.imag=X.image=X.imagin=X.imaginary=X.Imaginary=K(Q,`\\Im `,`&image;`),X.part=X.partial=K(Q,`\\partial `,`&part;`),X.infty=X.infin=X.infinity=K(Q,`\\infty `,`&infin;`),X.pounds=K(Q,`\\pounds `,`&pound;`),X.alef=X.alefsym=X.aleph=X.alephsym=K(Q,`\\aleph `,`&alefsym;`),X.xist=X.xists=X.exist=X.exists=K(Q,`\\exists `,`&exist;`),X.nexists=X.nexist=K(Q,`\\nexists `,`&#8708;`),X.and=X.land=X.wedge=K($,`\\wedge `,`&and;`),X.or=X.lor=X.vee=K($,`\\vee `,`&or;`),X.o=X.O=X.empty=X.emptyset=X.oslash=X.Oslash=X.nothing=X.varnothing=K($,`\\varnothing `,`&empty;`),X.cup=X.union=K($,`\\cup `,`&cup;`),X.cap=X.intersect=X.intersection=K($,`\\cap `,`&cap;`),X.deg=X.degree=K(Q,`\\degree `,`&deg;`),X.ang=X.angle=K(Q,`\\angle `,`&ang;`),X.measuredangle=K(Q,`\\measuredangle `,`m&ang;`);var NE=q(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[J]instanceof PE&&e[J].isItalic!==!1||e[J]instanceof lD&&e[J][J]instanceof PE&&e[J][J].isItalic!==!1)?(X._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),PE=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[J]&&!(this[J]instanceof PE)&&!(this[J]instanceof $)&&this[J].ctrlSeq!==`\\ `&&(e=`*`+e),this[Y]&&!(this[Y]instanceof $)&&!(this[Y]instanceof lD)&&(e+=`*`)),e}});lE.p.autoCommands={_maxLength:0},uE.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(X[a]===zE)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=GT(r,a.length)}return n._maxLength=r,n};var FE=q(PE,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof FE&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[J],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[J]);return nE(a,this).remove(),e[J]=a[J],X[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==J&&this[Y]instanceof FE||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[J];i instanceof FE;i=i[J])r=i.letter+r;for(var a=this[Y];a instanceof FE;a=a[Y])r+=a.letter;nE(i[Y]||this.parent.ends[J],a[J]||this.parent.ends[Y]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[Y]||this.parent.ends[J];o<r.length;o+=1,s=s[Y])for(var c=WT(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[Y]){d.italicize(!1);var f=d}var p=IE.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,RE.hasOwnProperty(l)&&f[J][J][J].jQ.addClass(`mq-last`),n(s[J])||s.jQ.addClass(`mq-first`),!n(f[Y]))if(f[Y]instanceof lD){var m=f[Y];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[Y]instanceof vD))})()}else f.jQ.toggleClass(`mq-last`,!(f[Y]instanceof vD));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof fD}}),IE={},LE=lE.p.autoOperatorNames={_maxLength:9},RE={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)IE[e[t]]=LE[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)IE[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)LE[r[t]]=LE[`arc`+r[t]]=LE[r[t]+`h`]=LE[`ar`+r[t]+`h`]=LE[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)LE[i[t]]=1})(),uE.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=GT(r,a.length)}return n._maxLength=r,n};var zE=q(TE,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)FE(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=EE(),n=0;n<e.length;n+=1)FE(e.charAt(n)).adopt(t,t.ends[Y],0);return Z.succeed(t.children())}});for(var BE in LE)LE.hasOwnProperty(BE)&&(X[BE]=zE);X.operatorname=q(wE,function(e){e.createLeftOf=KT,e.numBlocks=function(){return 1},e.parser=function(){return SE.block.map(function(e){return e.children()})}}),X.f=q(FE,function(e,t){e.init=function(){TE.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),X[` `]=X.space=K(Q,`\\ `,`&nbsp;`),X[`'`]=X.prime=K(Q,`'`,`&prime;`),X[`″`]=X.dprime=K(Q,`″`,`&Prime;`),X[`"`]=X.doublePrime=K(Q,`"`,`&Prime;`),X.backslash=K(Q,`\\backslash `,`\\`),rE[`\\`]||=X.backslash,X.$=K(Q,`\\$`,`$`);var VE=q(TE,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});X[`@`]=VE,X[`&`]=K(VE,`\\&`,`&amp;`),X[`%`]=K(VE,`\\%`,`%`),X.alpha=X.beta=X.gamma=X.delta=X.zeta=X.eta=X.theta=X.iota=X.kappa=X.mu=X.nu=X.xi=X.rho=X.sigma=X.tau=X.chi=X.psi=X.omega=q(PE,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.phi=K(PE,`\\phi `,`&#981;`),X.phiv=X.varphi=K(PE,`\\varphi `,`&phi;`),X.epsilon=K(PE,`\\epsilon `,`&#1013;`),X.epsiv=X.varepsilon=K(PE,`\\varepsilon `,`&epsilon;`),X.piv=X.varpi=K(PE,`\\varpi `,`&piv;`),X.sigmaf=X.sigmav=X.varsigma=K(PE,`\\varsigma `,`&sigmaf;`),X.thetav=X.vartheta=X.thetasym=K(PE,`\\vartheta `,`&thetasym;`),X.upsilon=X.upsi=K(PE,`\\upsilon `,`&upsilon;`),X.gammad=X.Gammad=X.digamma=K(PE,`\\digamma `,`&#989;`),X.kappav=X.varkappa=K(PE,`\\varkappa `,`&#1008;`),X.rhov=X.varrho=K(PE,`\\varrho `,`&#1009;`),X.pi=X.π=K(VE,`\\pi `,`&pi;`),X.lambda=K(VE,`\\lambda `,`&lambda;`),X.Upsilon=X.Upsi=X.upsih=X.Upsih=K(TE,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),X.Gamma=X.Delta=X.Theta=X.Lambda=X.Xi=X.Pi=X.Sigma=X.Phi=X.Psi=X.Omega=q(Q,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.forall=X[`∀`]=K(Q,`\\forall `,`&#8704;`);var HE=q(wE,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=SE.parse(this.latex);t.children().adopt(e.parent,e[J],e[Y]),e[J]=t.ends[Y],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[Y][Y].siblingCreated&&t.ends[Y][Y].siblingCreated(e.options,J),t.ends[J][J].siblingCreated&&t.ends[J][J].siblingCreated(e.options,Y),e.parent.bubble(`reflow`)},e.parser=function(){var e=SE.parse(this.latex).children();return Z.succeed(e)}});X[`¹`]=K(HE,`^1`),X[`²`]=K(HE,`^2`),X[`³`]=K(HE,`^3`),X[`¼`]=K(HE,`\\frac14`),X[`½`]=K(HE,`\\frac12`),X[`¾`]=K(HE,`\\frac34`);var UE=q($,function(e){e.init=Q.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[J]){if(e[J]instanceof $||/^[,;:\(\[]$/.test(e[J].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==Y)return this.jQ[0].className=n(this),this}});X[`+`]=K(UE,`+`,`+`),X[`–`]=X[`-`]=K(UE,`-`,`&minus;`),X[`±`]=X.pm=X.plusmn=X.plusminus=K(UE,`\\pm `,`&plusmn;`),X.mp=X.mnplus=X.minusplus=K(UE,`\\mp `,`&#8723;`),rE[`*`]=X.sdot=X.cdot=K($,`\\cdot `,`&middot;`,`*`);var WE=q($,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===J&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),GE={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},KE={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};X[`<`]=X.lt=K(WE,GE,!0),X[`>`]=X.gt=K(WE,KE,!0),X[`≤`]=X.le=X.leq=K(WE,GE,!1),X[`≥`]=X.ge=X.geq=K(WE,KE,!1);var qE=q($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[J]instanceof WE&&e[J].strict){e[J].swap(!1),e[J].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});X[`=`]=qE,X[`×`]=X.times=K($,`\\times `,`&times;`,`[x]`),X[`÷`]=X.div=X.divide=X.divides=K($,`\\div `,`&divide;`,`[/]`),rE[`~`]=X.sim=K($,`\\sim `,`~`,`~`),rE[`≁`]=X.nsim=K($,`\\nsim `,`≁`,`≁`),X.complement=X[`∁`]=K(Q,`\\complement `,`&#8705;`),X.nexists=X[`∄`]=K(Q,`\\nexists `,`&#8708;`),X.sphericalangle=X[`∢`]=K(Q,`\\sphericalangle `,`&#8738;`),X.iint=X[`∬`]=K(Q,`\\iint `,`&#8748;`),X.iiint=X[`∭`]=K(Q,`\\iiint `,`&#8749;`),X.oiint=X[`∯`]=K(Q,`\\oiint `,`&#8751;`),X.oiiint=X[`∰`]=K(Q,`\\oiiint `,`&#8752;`),X.backsim=X[`∽`]=K(Q,`\\backsim `,`&#8765;`),X.backsimeq=X[`⋍`]=K(Q,`\\backsimeq `,`&#8909;`),X.eqsim=X[`≂`]=K(Q,`\\eqsim `,`&#8770;`),X.ncong=X[`≇`]=K(Q,`\\ncong `,`&#8775;`),X.approxeq=X[`≊`]=K(Q,`\\approxeq `,`&#8778;`),X.bumpeq=X[`≏`]=K(Q,`\\bumpeq `,`&#8783;`),X.Bumpeq=X[`≎`]=K(Q,`\\Bumpeq `,`&#8782;`),X.doteqdot=X[`≑`]=K(Q,`\\doteqdot `,`&#8785;`),X.fallingdotseq=X[`≒`]=K(Q,`\\fallingdotseq `,`&#8786;`),X.risingdotseq=X[`≓`]=K(Q,`\\risingdotseq `,`&#8787;`),X.eqcirc=X[`≖`]=K(Q,`\\eqcirc `,`&#8790;`),X.circeq=X[`≗`]=K(Q,`\\circeq `,`&#8791;`),X.triangleq=X[`≜`]=K(Q,`\\triangleq `,`&#8796;`),X.leqq=X[`≦`]=K(Q,`\\leqq `,`&#8806;`),X.geqq=X[`≧`]=K(Q,`\\geqq `,`&#8807;`),X.lneqq=X[`≨`]=K(Q,`\\lneqq `,`&#8808;`),X.gneqq=X[`≩`]=K(Q,`\\gneqq `,`&#8809;`),X.between=X[`≬`]=K(Q,`\\between `,`&#8812;`),X.nleq=X[`≰`]=K(Q,`\\nleq `,`&#8816;`),X.ngeq=X[`≱`]=K(Q,`\\ngeq `,`&#8817;`),X.lesssim=X[`≲`]=K(Q,`\\lesssim `,`&#8818;`),X.gtrsim=X[`≳`]=K(Q,`\\gtrsim `,`&#8819;`),X.lessgtr=X[`≶`]=K(Q,`\\lessgtr `,`&#8822;`),X.gtrless=X[`≷`]=K(Q,`\\gtrless `,`&#8823;`),X.preccurlyeq=X[`≼`]=K(Q,`\\preccurlyeq `,`&#8828;`),X.succcurlyeq=X[`≽`]=K(Q,`\\succcurlyeq `,`&#8829;`),X.precsim=X[`≾`]=K(Q,`\\precsim `,`&#8830;`),X.succsim=X[`≿`]=K(Q,`\\succsim `,`&#8831;`),X.nprec=X[`⊀`]=K(Q,`\\nprec `,`&#8832;`),X.nsucc=X[`⊁`]=K(Q,`\\nsucc `,`&#8833;`),X.subsetneq=X[`⊊`]=K(Q,`\\subsetneq `,`&#8842;`),X.supsetneq=X[`⊋`]=K(Q,`\\supsetneq `,`&#8843;`),X.vDash=X[`⊨`]=K(Q,`\\vDash `,`&#8872;`),X.Vdash=X[`⊩`]=K(Q,`\\Vdash `,`&#8873;`),X.Vvdash=X[`⊪`]=K(Q,`\\Vvdash `,`&#8874;`),X.VDash=X[`⊫`]=K(Q,`\\VDash `,`&#8875;`),X.nvdash=X[`⊬`]=K(Q,`\\nvdash `,`&#8876;`),X.nvDash=X[`⊭`]=K(Q,`\\nvDash `,`&#8877;`),X.nVdash=X[`⊮`]=K(Q,`\\nVdash `,`&#8878;`),X.nVDash=X[`⊯`]=K(Q,`\\nVDash `,`&#8879;`),X.vartriangleleft=X[`⊲`]=K(Q,`\\vartriangleleft `,`&#8882;`),X.vartriangleright=X[`⊳`]=K(Q,`\\vartriangleright `,`&#8883;`),X.trianglelefteq=X[`⊴`]=K(Q,`\\trianglelefteq `,`&#8884;`),X.trianglerighteq=X[`⊵`]=K(Q,`\\trianglerighteq `,`&#8885;`),X.multimap=X[`⊸`]=K(Q,`\\multimap `,`&#8888;`),X.Subset=X[`⋐`]=K(Q,`\\Subset `,`&#8912;`),X.Supset=X[`⋑`]=K(Q,`\\Supset `,`&#8913;`),X.Cap=X[`⋒`]=K(Q,`\\Cap `,`&#8914;`),X.Cup=X[`⋓`]=K(Q,`\\Cup `,`&#8915;`),X.pitchfork=X[`⋔`]=K(Q,`\\pitchfork `,`&#8916;`),X.lessdot=X[`⋖`]=K(Q,`\\lessdot `,`&#8918;`),X.gtrdot=X[`⋗`]=K(Q,`\\gtrdot `,`&#8919;`),X.lll=X[`⋘`]=K(Q,`\\lll `,`&#8920;`),X.ggg=X[`⋙`]=K(Q,`\\ggg `,`&#8921;`),X.lesseqgtr=X[`⋚`]=K(Q,`\\lesseqgtr `,`&#8922;`),X.gtreqless=X[`⋛`]=K(Q,`\\gtreqless `,`&#8923;`),X.curlyeqprec=X[`⋞`]=K(Q,`\\curlyeqprec `,`&#8926;`),X.curlyeqsucc=X[`⋟`]=K(Q,`\\curlyeqsucc `,`&#8927;`),X.nsim=X[`≁`]=K(Q,`\\nsim `,`&#8769;`),X.lnsim=X[`⋦`]=K(Q,`\\lnsim `,`&#8934;`),X.gnsim=X[`⋧`]=K(Q,`\\gnsim `,`&#8935;`),X.precnsim=X[`⋨`]=K(Q,`\\precnsim `,`&#8936;`),X.succnsim=X[`⋩`]=K(Q,`\\succnsim `,`&#8937;`),X.ntriangleleft=X[`⋪`]=K(Q,`\\ntriangleleft `,`&#8938;`),X.ntriangleright=X[`⋫`]=K(Q,`\\ntriangleright `,`&#8939;`),X.ntrianglelefteq=X[`⋬`]=K(Q,`\\ntrianglelefteq `,`&#8940;`),X.ntrianglerighteq=X[`⋭`]=K(Q,`\\ntrianglerighteq `,`&#8941;`),X.blacksquare=X[`∎`]=K(Q,`\\blacksquare `,`&#8718;`),X.colon=X[`∶`]=K(Q,`\\colon `,`&#8758;`),X.llcorner=X[`∟`]=K(Q,`\\llcorner `,`&#8735;`),X.dotplus=X[`∔`]=K($,`\\dotplus `,`&#8724;`),X.nmid=X[`∤`]=K($,`
199
- mid `,`&#8740;`),X.intercal=X[`⊺`]=K($,`\\intercal `,`&#8890;`),X.veebar=X[`⊻`]=K($,`\\veebar `,`&#8891;`),X.barwedge=X[`⊼`]=K($,`\\barwedge `,`&#8892;`),X.ltimes=X[`⋉`]=K($,`\\ltimes `,`&#8905;`),X.rtimes=X[`⋊`]=K($,`\\rtimes `,`&#8906;`),X.leftthreetimes=X[`⋋`]=K($,`\\leftthreetimes `,`&#8907;`),X.rightthreetimes=X[`⋌`]=K($,`\\rightthreetimes `,`&#8908;`),X.curlyvee=X[`⋎`]=K($,`\\curlyvee `,`&#8910;`),X.curlywedge=X[`⋏`]=K($,`\\curlywedge `,`&#8911;`),X.circledcirc=X[`⊚`]=K($,`\\circledcirc `,`&#8858;`),X.circledast=X[`⊛`]=K($,`\\circledast `,`&#8859;`),X.circleddash=X[`⊝`]=K($,`\\circleddash `,`&#8861;`),X.boxplus=X[`⊞`]=K($,`\\boxplus `,`&#8862;`),X.boxminus=X[`⊟`]=K($,`\\boxminus `,`&#8863;`),X.boxtimes=X[`⊠`]=K($,`\\boxtimes `,`&#8864;`),X.boxdot=X[`⊡`]=K($,`\\boxdot `,`&#8865;`),X[`∂`]=X.partial,X[`∃`]=X.exists,X[`∅`]=X.varnothing,X[`∆`]=X.triangle,X[`∇`]=X.nabla,X[`∈`]=X.in,X[`∊`]=X.in,X[`∋`]=X.ni,X[`∌`]=X.notni,X[`∍`]=X.ni,X[`∐`]=X.amalg,X[`−`]=X[`-`],X[`∓`]=X.mp,X[`∖`]=X.setminus,X[`∘`]=X.circ,X[`∙`]=X.bullet,X[`∝`]=X.propto,X[`∞`]=X.infty,X[`∠`]=X.angle,X[`∡`]=X.measuredangle,X[`∣`]=X.divides,X[`∥`]=X.parallel,X[`∦`]=X.nparallel,X[`∧`]=X.wedge,X[`∨`]=X.vee,X[`∩`]=X.cap,X[`∪`]=X.cup,X[`∮`]=X.oint,X[`∴`]=X.therefore,X[`∵`]=X.because,X[`∼`]=X.sim,X[`≀`]=X.wr,X[`≃`]=X.simeq,X[`≍`]=X.asymp,X[`≐`]=X.doteq,X[`≪`]=X.ll,X[`≫`]=X.gg,X[`≺`]=X.prec,X[`≻`]=X.succ,X[`⊂`]=X.subset,X[`⊃`]=X.supset,X[`⊆`]=X.subseteq,X[`⊇`]=X.supseteq,X[`⊈`]=X.nsubseteq,X[`⊉`]=X.nsupseteq,X[`⊏`]=X.sqsubset,X[`⊐`]=X.sqsupset,X[`⊓`]=X.sqcap,X[`⊔`]=X.sqcup,X[`⊖`]=X.ominus,X[`⊘`]=X.oslash,X[`⊙`]=X.odot,X[`⊢`]=X.vdash,X[`⊣`]=X.dashv,X[`⊤`]=X.top,X[`⊥`]=X.bot,X[`⊧`]=X.models,X[`⋀`]=X.wedge,X[`⋁`]=X.vee,X[`⋂`]=X.cap,X[`⋃`]=X.cup,X[`⋄`]=X.diamond,X[`⋅`]=X.cdot,X[`⋆`]=X.star,X[`⋈`]=X.bowtie,X[`⋮`]=X.vdots,X[`⋯`]=X.cdots,X[`⋱`]=X.ddots;var JE,YE=KT,XE=document.createElement(`div`).style,ZE={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},QE;for(var $E in ZE)if($E in XE){QE=$E;break}QE?JE=function(e,t,n){e.css(QE,`scale(`+t+`,`+n+`)`)}:`filter`in XE?(YE=function(e){e.className=e.className},JE=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);G(window).load(function(){clearTimeout(a),i()})}):JE=function(e,t,n){e.css(`fontSize`,n+`em`)};var eD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),tD=q(wE,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return SE.optBlock.then(function(t){return SE.block.map(function(n){var r=nD.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),nD=q(tD,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,wE.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),rD=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return q(wE,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},iD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),aD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),oD=q(wE,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),sD=q(wE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),cD=function(e,t){return q(TE,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};X.mathrm=K(eD,`\\mathrm`,`span`,`class="mq-roman mq-font"`),X.mathit=K(eD,`\\mathit`,`i`,`class="mq-font"`),X.mathbf=K(eD,`\\mathbf`,`b`,`class="mq-font"`),X.mathsf=K(eD,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),X.mathtt=K(eD,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),X.underline=K(eD,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),X.overline=X.bar=K(rD(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),X.longdiv=K(iD,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),X.overrightarrow=K(rD(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),X.overleftarrow=K(rD(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),X.xleftarrow=K(tD,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),X.xrightarrow=K(tD,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),X.overleftrightarrow=K(eD,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),X.overarc=K(eD,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),X.dot=q(wE,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),X.addmatrixrow=K(aD,`\\addmatrixrow`,`span`,`+`),X.addmatrixcol=K(sD,`\\addmatrixcol`,`span`,`+`),X.ngtr=X[`≯`]=K(cD(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),X.nless=X[`≮`]=K(cD(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),X.dot=K(oD,`\\dot`),X.parallelogram=K(cD(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),X.textcolor=q(wE,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Z.optWhitespace,r=Z.string,i=Z.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),X.class=q(wE,function(e,t){e.parser=function(){var e=this,n=Z.string,r=Z.regex;return Z.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var lD=q(wE,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[J]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=J;t;t=t===J&&Y)if(this[t]instanceof lD){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=$T(i,0,i.ends[J]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=$T(i,o.ends[Y],i.ends[J]);t===J?o.adopt(i,i.ends[Y],0):o.adopt(i,0,i.ends[J])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[J]===this&&(t===Y&&a?a[J]?e.insRightOf(a[J]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},lE.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[J].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof TE?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[J]&&!e[Y]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),EE.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof TE?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(J,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=G(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(UT,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=G(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(UT,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=uD,delete e[n].deleteOutOf,t===`sub`&&G(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function uD(e){var t=this.parent,n=e;do{if(n[Y])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}X.subscript=X._=q(lD,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[J],this.sub.upOutOf=uD,t.finalizeTree.call(this)}}),X.superscript=X.supscript=X[`^`]=q(lD,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[Y],this.sup.downOutOf=uD,t.finalizeTree.call(this)}});var dD=q(wE,function(e,t){e.parser=function(){for(var e=Z.string,t=Z.optWhitespace,n=Z.succeed,r=SE.block,i=this,a=i.blocks=[EE(),EE()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[Y],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[Y],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[J],this.upInto=this.ends[Y],this.ends[J].upOutOf=this.ends[Y],this.ends[Y].downOutOf=this.ends[J]}}),fD=q(dD,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;TE.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())+`^`+e(this.ends[Y].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(FE(`n`).createLeftOf(e),qE().createLeftOf(e))}});X[`∑`]=X.sum=X.summation=K(fD,`\\sum `,`&sum;`),X[`∏`]=X.prod=X.product=K(fD,`\\prod `,`&prod;`),X.coprod=X.coproduct=K(fD,`\\coprod `,`&#8720;`),X[`∫`]=X.int=X.integral=q(fD,function(e,t){e.init=function(){TE.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=wE.p.createLeftOf}),X.lim=X.limit=q(dD,function(e,t){e.init=function(){TE.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())}});var pD=X.over=rE[`/`]=q(X.frac=X.dfrac=X.cfrac=X.fraction=q(wE,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[Y].upOutOf=this.ends[J],this.downInto=this.ends[J].downOutOf=this.ends[Y]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[J];n&&!(n instanceof $||n instanceof(X.text||KT)||n instanceof fD||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[J];n instanceof fD&&n[Y]instanceof lD&&(n=n[Y],n[Y]instanceof lD&&n[Y].ctrlSeq!=n.ctrlSeq&&(n=n[Y])),n!==e[J]&&!e.isTooDeep(1)&&(this.replaces(nE(n[Y]||e.parent.ends[J],e[J])),e[J]=n)}t.createLeftOf.call(this,e)}});X.underset=q(wE,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),X.overset=q(wE,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[Y].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[Y]}});var mD=X.sqrt=X[`√`]=q(wE,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return SE.optBlock.then(function(e){return SE.block.map(function(t){var n=hD();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[Y].jQ.parent();JE(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});X.hat=q(wE,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var hD=X.nthroot=q(mD,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`}}),gD=q(wE,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});X.vec=K(gD,`\\vec`,`&rarr;`,[`vec(`,`)`]),X.tilde=K(gD,`\\tilde`,`~`,[`tilde(`,`)`]),X.lrncuberoot=q(mD,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[J].latex()+`}`}}),X.abs=q(wE,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),X.lrnplaceholder=q(wE,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[J].latex()}}),X.lrnexponent=q(wE,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[Y].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[J].latex()+`^`+e}}),X.lrnsquaredexponent=q(wE,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[J].latex()+`^2`}}),X.lrnsubscript=q(wE,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[J].latex()+`_`+this.ends[Y].latex()}});function _D(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));JE(this.delimjQs,WT(1+.2*(e-1),1.2),1.2*e)}}var vD=q(q(wE,_D),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,VT,[n,r]),this.side=e,this.sides={},this.sides[J]={ch:n,ctrlSeq:i},this.sides[Y]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===Y?` mq-ghost`:``)+`">`+this.sides[J].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===J?` mq-ghost`:``)+`">`+this.sides[Y].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[J].ctrlSeq+this.ends[J].latex()+`\\right`+this.sides[Y].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof vD&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||yD[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[J].ch]===n.sides[Y].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===J?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[J].ch===`|`)var r=this.matchBrack(n,Y,e[Y])||this.matchBrack(n,J,e[J])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&nE(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(nE(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===J?e.insAtLeftEnd(r.ends[J]):e.insRightOf(r)},e.placeCursor=KT,e.unwrap=function(){this.ends[J].children().disown().adopt(this.parent,this,this[Y]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[J].ends[this.side])){this.closeOpposing(this.ends[J].ends[this.side]);var c=this.ends[J].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:yD[this.sides[this.side].ch],ctrlSeq:yD[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===J?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[J].ends[e];nE(i,a,-e).disown().withDirAdopt(-e,this.ends[J],c,0).jQ.insAtDirEnd(e,this.ends[J].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[J])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[J].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===J)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),yD={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function bD(e,t){var t=t||e,n=yD[e],r=yD[t];rE[e]=K(vD,J,e,n,t,r),rE[n]=K(vD,Y,e,n,t,r)}bD(`(`),bD(`[`),bD(`{`,`\\{`),X.langle=K(vD,J,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),X.rangle=K(vD,Y,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),rE[`|`]=K(vD,J,`|`,`|`,`|`,`|`),X.lVert=K(vD,J,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.rVert=K(vD,Y,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.left=q(wE,function(e){e.parser=function(){var e=Z.regex,t=Z.string;Z.succeed;var n=Z.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),SE.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=vD(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),X.right=q(wE,function(e){e.parser=function(){return Z.fail(`unmatched \\right`)}}),X.choose=q(X.binom=X.binomial=q(q(wE,_D),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=pD.prototype.createLeftOf}),X.editable=X.MathQuillMathField=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Z.string,r=Z.regex,i=Z.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=sE(this.ends[J],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),yE(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[J].controller))},e.latex=function(){return this.ends[J].latex()},e.text=function(){return this.ends[J].text()}});var xD=X.embed=q(TE,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Z.string,n=Z.regex,r=Z.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(fE[i](t))})})}});X.MathQuillResponseContainer=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[J].text()}}),X.MathQuillResponseContainerIcon=q(wE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[J].text()}});var SD=X.matrix=q(wE,function(e,t){var n=q(EE,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[Y],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&JE(n,WT(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Z.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);SE.parse(u[e]||` `).children().adopt(f,f.ends[Y],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[Y],0);return Z.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=eE.byId[e.first().attr(UT)],n=eE.byId[e.last().attr(UT)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=eE.byId[G(this).attr(UT)],a=e.eq(t+1),o=G(this).closest(`tr`).next(`tr`),s=G(this).closest(`tr`).index(),c=G(this).index(),l;if(a.length){var u=eE.byId[a.attr(UT)];n[Y]=u,u[J]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=eE.byId[l.attr(UT)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[J]=t,this.ends[Y]=n,t&&t[J]&&delete t[J],n&&n[Y]&&delete n[Y],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return G(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return eE.byId[G(this).attr(UT)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=eE.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(UT)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=G(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=G(`<td class="mq-empty">`).attr(UT,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=G(`<td class="mq-empty">`).attr(UT,a.id),a.jQ.insertAfter(G(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});X.pmatrix=q(SD,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),X.bmatrix=q(SD,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),X.Bmatrix=q(SD,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),X.vmatrix=q(SD,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),X.Vmatrix=q(SD,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var CD=_E(3);for(var wD in CD)(function(e,t){typeof t==`function`?(mE[e]=function(){return pE(),t.apply(this,arguments)},mE[e].prototype=t.prototype):mE[e]=t})(wD,CD[wD]);var TD=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},ED;typeof window<`u`&&(ED=mE.getInterface(3),ED&&ED.registerEmbed&&TD(ED));function DD(e,t){!ED||!ED.registerEmbed||ED.registerEmbed(e,t)}function OD(e,t,n){if(!(!ED||!e))return t!=null&&(e.textContent=t),ED.StaticMath(e,n)}var kD=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,AD={"&.mq-editable-field .mq-cursor, & .mq-editable-field .mq-cursor":{borderLeftColor:`currentColor`},"&.mq-editable-field:not(.mq-focused), & .mq-editable-field:not(.mq-focused)":{borderColor:Fy()},[[`.mq-overline .mq-overline-inner`,`.mq-overarrow`,`.mq-overarrow .mq-overarrow-inner`,`.mq-overleftrightarrow .mq-overleftrightarrow-inner`,`.mq-overarc`,`.mq-longdiv .mq-longdiv-inner`].map(kD).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(kD).join(`, `)]:{borderBottomColor:`currentColor`},[kD(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[kD(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},jD={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},MD={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},ND={"& *":{...jD,...MD,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},PD=Wh(`pie-lib:math-input:mq:static`),FD=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,ID=/ /g;function LD(e=``){return e.replace(ID,``)}function RD(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var zD=L(`span`)(AD),BD=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func,language:O.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),_m(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),_m()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(RD(e)>RD(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!ED)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=ED.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}LT(this.inputRef?.current,this.props.language)};blur=()=>{PD(`blur mathfield`),this.mathField.blur()};focus=()=>{PD(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=LD(this.mathField.parseLatex(e.latex)),n=(e.latex.match(FD)||[]).length,r=t!==LD(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return PD(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(zD,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},VD=e=>(Lt(5-e.length,()=>e.push([])),Rt.apply(null,e)),HD=Wh(`pie-lib:math-inline:keypad`),UD=ry(`pie`),WD=[iy(),cb()],GD={"& .MuiTouchRipple-root":{color:`rgb(from ${iy()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},KD={"&.Mui-focusVisible":{outline:`2px solid ${Jy()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${UD(`background`,V.WHITE)}`}},qD=L(BD)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:WD,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${ib()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid currentColor`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid currentColor`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid currentColor !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});qD.propTypes={latex:O.string.isRequired};var JD=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},YD=L(`div`)(()=>({...ND,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),XD=L(Ih)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:WD,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},...GD,...KD,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),ZD=L(Ih)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},...GD,...KD})),QD=L(Hh)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?rb():nb(),"&:hover":{backgroundColor:e===`operators`?ob():ab()},borderRadius:0,"& .icon":{height:`30px`}})),$D=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Am,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{HD(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>jt([...VD(e),...VD(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...JD(r)};return(0,F.jsx)(YD,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(ZD,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(qD,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(XD,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(QD,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},eO=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},tO=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(eO(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=gm(a);return(0,F.jsx)($D,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:pf(mm(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},nO=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),rO=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),iO=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),aO=o(((e,t)=>{var n=iO(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),oO=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),sO=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=oO();t.exports=function(e){return e?e.replace(r,n):``}})),cO=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),lO=o(((e,t)=>{var n=cO();t.exports=function(e){return n(e).toLowerCase()}})),uO=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),dO=o(((e,t)=>{var n=sO(),r=lO(),i=uO(),a=iO(),o=aO(),s=nO(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),fO=o(((e,t)=>{t.exports=dO()()})),pO=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),mO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),hO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),gO=o(((e,t)=>{aO();var n=fO(),r=lO(),i=sO(),a=pO(),o=mO(),s=hO(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:rO()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),_O=o(((e,t)=>{var n=gO(),r=pO();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),vO=o(((e,t)=>{t.exports={prefixProperties:nO(),cssUnitless:rO(),object:gO(),string:_O()}}))(),yO=Wh(`@pie-lib:mask-markup:serialization`),bO=[`span`],xO=[`em`,`strong`,`u`],SO=3,CO=8,wO=1,TO=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},EO=e=>bO.includes(e)?`inline`:xO.includes(e)?`mark`:`block`,DO=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},OO=e=>(0,vO.object)(e,{camelize:!0,addUnits:!1}),kO=(e,t)=>OO(DO(e.getAttribute(t))),AO=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},jO=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=kO(e,n);break;case`class`:t.className=AO(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},MO=[`border`,`class`,`style`],NO={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},PO=(e,t=[])=>{if(e.nodeType===CO)return null;if(e.nodeType===SO){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===wO){let n=e.tagName.toLowerCase(),r=NO[n];if(r)return yO(`[deserialize] mark: `,r),{_flatten:!0,nodes:FO(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=TO(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=MO.reduce(jO(e),{...i}),o=EO(n),s=FO(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},FO=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=PO(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},IO=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=FO(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},LO=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),RO=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),zO=[`tbody`,`tr`],BO=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&zO.includes(r)))return t},VO=e=>{let t=e.leaves.find(e=>Mt(e,`marks`,[]).length);return t?t.marks:null},HO=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:$v(`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`)}})),o;if(r){let a=r(e,t,n);if(a){let t=e.data?.dataset?.component===`blank`&&i?.type!==`td`;t&&o.push((0,F.jsx)(RO,{},`spacer-${s}-before`)),o.push(a),t&&o.push((0,F.jsx)(RO,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=BO(i,n);return r?e+r:e},``),n=VO(e);if(n?.length>0){let e=n.map(e=>Object.keys(NO).find(t=>NO[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=HO(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(LO,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},UO=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),WO=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof aC==`function`&&aC(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=HO(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(UO,{ref:a,children:i})}},GO=/\{\{(\d+)\}\}/g,KO=(e,t)=>e?{markup:e.replace(GO,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},qO=(e,t)=>{let{markup:n}=KO(e,t);return IO($v(n)).document},JO=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.textContent=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||qO(n,e);return(0,F.jsx)(WO,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),YO=`height ease-in 300ms, opacity ease-in 300ms`,XO=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:YO,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:YO,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),ZO=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(al,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(XO,{ref:i,className:r,children:n})})};ZO.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};function QO(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function $O(e,t){return!e||QO(e)?e:QO(e.default)?e.default:t&&QO(e[t])?e[t]:t&&QO(e[t]?.default)?e[t].default:e}var ek=$O(oT,`Readable`)||$O(rk.Readable,`Readable`),tk=FT,nk=tk.default,rk=nk&&typeof nk==`object`?nk:tk,{translator:ik}=cw,ak={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},ok=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),sk=L(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${qy()}`,outlineOffset:`-2px`}})),ck=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${iy()})`,fontWeight:`normal`,...ak})),lk=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),uk=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),dk=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:ik.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:ik.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:ik.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:ik.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(ok,{className:e,children:(0,F.jsx)(ZO,{show:this.state.show,children:(0,F.jsxs)(sk,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(uk,{children:[(0,F.jsx)(al,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(lk,{ref:this.openIconRef,children:(0,F.jsx)(og,{open:t},`correct-open`)})}),(0,F.jsx)(al,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(lk,{ref:this.closedIconRef,children:(0,F.jsx)(og,{open:t},`correct-closed`)})})]}),(0,F.jsx)(ek,{false:!0,children:(0,F.jsx)(ck,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function fk(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function pk(e,t){return!e||fk(e)?e:fk(e.default)?e.default:t&&fk(e[t])?e[t]:t&&fk(e[t]?.default)?e[t].default:e}var mk=pk(Tw,`UiLayout`)||pk(bk.UiLayout,`UiLayout`),hk=pk(aT,`PreviewPrompt`)||pk(bk.PreviewPrompt,`PreviewPrompt`),gk=pk(oT,`Readable`)||pk(bk.Readable,`Readable`),_k=pk(hw,`Collapsible`)||pk(bk.Collapsible,`Collapsible`),vk=FT,yk=vk.default,bk=yk&&typeof yk==`object`?yk:vk,{translator:xk}=cw,Sk=L(mk)({color:iy(),backgroundColor:Ey(),display:`inline-block`}),Ck=L(`div`)({width:`100%`,position:`relative`,backgroundColor:Ey(),color:iy()}),wk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Tk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Ek=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),Dk=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${fy()} !important`},...n&&{borderColor:`${cy()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),Ok=L(BD)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:iy()}}}),kk=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),Ak=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),jk=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),Mk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Nk=L(dk)(({theme:e})=>({color:iy(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
197
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},bE(),xE},xE.getInterface=wE;var SE=wE.MIN=1,CE=wE.MAX=3;function wE(e){if(!(SE<=e&&e<=CE))throw`Only interface versions between `+SE+` and `+CE+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=G(e).children(`.mq-root-block`).attr(XT),r=t&&sE.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=J,t.R=Y,t.saneKeyboardEvents=DE;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=_E[r];e[r]=a?a(i):i}}t.config=function(e){return r(gE.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;yE[e]=t};var i=n.AbstractMathQuill=q(vE,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=G(`<span class="mq-root-block"/>`).attr(XT,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=q(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[J]=e.ends[Y]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=X[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[J];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(J)},e.moveToRightEnd=function(){return this.moveToDirEnd(Y)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:$T});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-G(window).scrollLeft(),i=t-G(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(G(a),e,t),OD().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return qT.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(G(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,hE)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=mE(a.RootBlock(),G(n),gE());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,hE[a]);return t}xE.noConflict=function(){return window.MathQuill=TE,xE};var TE=window.MathQuill;window.MathQuill=xE;function EE(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Z=q(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){iE(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return iE(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){iE(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),DE=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=qT(e),o=qT(n.container||a),s=$T,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=$T,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=$T,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();mE.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),mE.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),G(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),G(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),mE.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),sE.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(J);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(Y,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(J,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[Y];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[Y]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[J];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[J]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[J])for(;r[J];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[Y])for(;r[Y];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(Y);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[J];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){iE(`overridden or never called on this node`)}}),mE.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){aE(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},_E.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){aE(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(J)},e.moveRight=function(){return this.moveDir(Y)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[Y][r]?n.insAtLeftEnd(n[Y][r]):n[J][r]?n.insAtRightEnd(n[J][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof sE&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){aE(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){aE(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===J?lE(t.parent.ends[J],t[J]).remove():lE(t[Y],t.parent.ends[Y]).remove(),t.insAtDirEnd(e,t.parent),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,Y),t[Y].siblingDeleted&&t[Y].siblingDeleted(t.options,J),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(J)},e.deleteForward=function(){return this.deleteDir(Y)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;aE(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(J)},e.selectRight=function(){return this.selectDir(Y)}});var OE=/[\\]{2,}/gm,kE=(function(){function e(e){var t=NE();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||NE(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[Y],0);return t}var n=Z.string,r=Z.regex,i=Z.letter,a=Z.any,o=Z.optWhitespace,s=Z.succeed,c=Z.fail,l=i.map(function(e){return HE(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Q(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return dE[e]&&dE[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=X[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();mE.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return kE.parse(e).postOrder(`finalizeTree`,gE.p).join(`latex`).trim()},_E.maxDepth=function(e){return typeof e==`number`?e:JT},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Z.all,r=Z.eof,i=kE.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[J],t[Y]),i.jQize().insertBefore(t.jQ),t[J]=i.ends[Y],i.finalizeInsert(t.options,t),i.ends[Y][Y].siblingCreated&&i.ends[Y][Y].siblingCreated(t.options,J),i.ends[J][J].siblingCreated&&i.ends[J][J].siblingCreated(t.options,Y),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(OE,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Z.all,a=Z.eof,o=kE.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[J]=t.ends[Y]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Z.regex,i=Z.string,a=Z.eof,o=Z.all,s=i(`$`).then(kE).skip(i(`$`).or(a)).map(function(e){var t=RE(n);t.createBlocks();var r=t.ends[J];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Q),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[Y],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),mE.open(function(e){gE.p.ignoreNextMousedown=$T,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=G(t.target).closest(`.mq-root-block`),r=sE.byId[n.attr(XT)||e.attr(XT)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=$T;function s(e){i.anticursor||i.startSelection(),r.seek(G(e.target),e.pageX,e.pageY).cursor.select(),e.target&&G(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),G(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(G(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),G(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),mE.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(XT)||e.attr(YT);if(!i){var a=e.parent();i=a.attr(XT)||a.attr(YT)}}var o=i&&sE.byId[i]?sE.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),mE.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[J]===e[Y])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),mE.open(function(e){gE.p.substituteTextarea=function(){return G(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=G(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=G(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;nD(e.container[0]),e.textareaSelectionTimeout===JT&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=JT;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(qT(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},gE.p.substituteKeyboardEvents=DE,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
198
+ `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var AE=q(sE,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[Y].siblingCreated&&n[Y].siblingCreated(e,J),n[J].siblingCreated&&n[J].siblingCreated(e,Y),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==JT){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof NE);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),jE=q(AE,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=kE.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[Y],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[J],0,0),r.jQ.appendTo(n.ends[J].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=NE()).adopt(e,e.ends[Y],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[J],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return pE(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[J]=e.jQ.offset().left,t[Y]=t[J]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[J])return t.insLeftOf(r);if(e>i[Y])return t.insRightOf(r);var a=i[J];r.eachChild(function(o){var s=n(o);if(e<s[J])return e-a<s[J]-e?o[J]?t.insAtRightEnd(o[J]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[Y])o[Y]?a=s[Y]:i[Y]-e<e-s[Y]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);iE(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){iE(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],iE(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),ME=q(jE,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Z.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=$T,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=$T,e.isEmpty=function(){return!0}}),Q=q(ME,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),$=q(ME,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),NE=q(AE,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[J]===this.ends[Y]&&this.ends[J]!==0?this.ends[J].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?J:Y,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[Y];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[J].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[J];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?HE(e):/^\d$/.test(e)?BE(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?X[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?X[`×`](e):(n=uE[e]||X[e])?n(e):Q(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});gE.p.mouseEvents=!0,hE.StaticMath=function(e){return q(e.AbstractMathQuill,function(t,n){this.RootBlock=NE,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var PE=q(NE,EE);hE.MathField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=PE,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=$T),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var FE=q(sE,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof lE?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[J]&&this.ends[J].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[Y].siblingCreated&&n[Y].siblingCreated(e.options,J),n[J].siblingCreated&&n[J].siblingCreated(e.options,Y),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Z.string,n=Z.regex;return Z.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?lE():(IE(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=jE.prototype.selectTowards,e.deleteTowards=jE.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[J]?(e[J].appendText(n),this.bubble(`reflow`)):IE(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Q(`\\$`,`$`).createLeftOf(e);else if(!e[Y])e.insRightOf(this);else if(!e[J])e.insLeftOf(this);else{var r=FE(),i=this.ends[J];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?J:Y,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[J]&&t[J].text.length;else if(t.anticursor.parent===this){var l=t[J]&&t[J].text.length;if(this.anticursorPosition===l)t.anticursor=oE.copy(t);else{if(this.anticursorPosition<l){var u=t[J].splitRight(this.anticursorPosition);t[J]=u}else var u=t[Y].splitRight(this.anticursorPosition-l);t.anticursor=oE(this,u[J],u)}}},e.blur=function(e){NE.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[J]===this?e[J]=this[J]:e[Y]===this&&(e[Y]=this[Y])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},iE(`only node in TextBlock span is Text node`,t.nodeType===3);var n=IE(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=NE.prototype.focus}),IE=q(sE,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=G(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){aE(t),t===Y?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=IE(this.text.slice(e)).adopt(this.parent,this,this[Y]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===J?0:-1+t.length)}e.moveTowards=function(e,t){aE(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):IE(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===Y?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){aE(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=IE(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=IE(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});X.text=X.textnormal=X.textrm=X.textup=X.textmd=FE;function LE(e,t,n){return q(FE,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}X.em=X.italic=X.italics=X.emph=X.textit=X.textsl=LE(`\\textit`,`i`,`class="mq-text-mode"`),X.strong=X.bold=X.textbf=LE(`\\textbf`,`b`,`class="mq-text-mode"`),X.sf=X.textsf=LE(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),X.tt=X.texttt=LE(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),X.textsc=LE(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),X.uppercase=LE(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),X.lowercase=LE(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var RE=q(jE,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].cursor=this.cursor,this.ends[J].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Q(`\\$`,`$`).createLeftOf(e.show())):e[Y]?e[J]?NE.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):NE.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[J].latex()+`$`}}),zE=q(PE,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)RE(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Q(t,n).createLeftOf(e)}}});hE.TextField=function(e){return q(e.EditableField,function(e,t){this.RootBlock=zE,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},uE[`\\`]=q(jE,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[J].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[J].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[J].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Q(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[J].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return G(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[J].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[Y]?e.insLeftOf(this[Y]):e.insAtRightEnd(this.parent);var t=this.ends[J].latex();t||=` `;var n=X[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=FE(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),X[`∉`]=X.notin=K($,`\\notin `,`&#8713;`),X[`≅`]=X.cong=K($,`\\cong `,`&#8773;`),X[`≡`]=X.equiv=K($,`\\equiv `,`&#8801;`),X[`⊕`]=X.oplus=K($,`\\oplus `,`&#8853;`),X[`⊗`]=X.otimes=K($,`\\otimes `,`&#8855;`),X[`≠`]=X.ne=X.neq=K($,`\\ne `,`&ne;`),X[`≇`]=X.ncong=K($,`\\ncong `,`&ncong;`),X[`∗`]=X.ast=X.star=X.loast=X.lowast=K($,`\\ast `,`&lowast;`),X.therefor=X.therefore=K($,`\\therefore `,`&there4;`),X.cuz=X.because=K($,`\\because `,`&#8757;`),X.prop=X.propto=K($,`\\propto `,`&prop;`),X[`≈`]=X.asymp=X.approx=K($,`\\approx `,`&asymp;`),X[`≉`]=X.nasymp=X.napprox=K($,`\\napprox `,`&nap;`),X.isin=X.in=K($,`\\in `,`&isin;`),X.ni=X.contains=K($,`\\ni `,`&ni;`),X.notni=X.niton=X.notcontains=X.doesnotcontain=dE[`\\not\\ni`]=K($,`\\not\\ni `,`&#8716;`),X.sub=X.subset=K($,`\\subset `,`&sub;`),X.sup=X.supset=X.superset=K($,`\\supset `,`&sup;`),X.nsub=X.notsub=X.nsubset=X.notsubset=dE[`\\not\\subset`]=K($,`\\not\\subset `,`&#8836;`),X.nsup=X.notsup=X.nsupset=X.notsupset=X.nsuperset=X.notsuperset=dE[`\\not\\supset`]=K($,`\\not\\supset `,`&#8837;`),X.sube=X.subeq=X.subsete=X.subseteq=K($,`\\subseteq `,`&sube;`),X.supe=X.supeq=X.supsete=X.supseteq=X.supersete=X.superseteq=K($,`\\supseteq `,`&supe;`),X.nsube=X.nsubeq=X.notsube=X.notsubeq=X.nsubsete=X.nsubseteq=X.notsubsete=X.notsubseteq=dE[`\\not\\subseteq`]=K($,`\\not\\subseteq `,`&#8840;`),X.nsupe=X.nsupeq=X.notsupe=X.notsupeq=X.nsupsete=X.nsupseteq=X.notsupsete=X.notsupseteq=X.nsupersete=X.nsuperseteq=X.notsupersete=X.notsuperseteq=dE[`\\not\\supseteq`]=K($,`\\not\\supseteq `,`&#8841;`),X.N=X.naturals=X.Naturals=K(Q,`\\mathbb{N}`,`&#8469;`),X.P=X.primes=X.Primes=X.projective=X.Projective=X.probability=X.Probability=K(Q,`\\mathbb{P}`,`&#8473;`),X.Z=X.integers=X.Integers=K(Q,`\\mathbb{Z}`,`&#8484;`),X.Q=X.rationals=X.Rationals=K(Q,`\\mathbb{Q}`,`&#8474;`),X.R=X.reals=X.Reals=K(Q,`\\mathbb{R}`,`&#8477;`),X.C=X.complex=X.Complex=X.complexes=X.Complexes=X.complexplane=X.Complexplane=X.ComplexPlane=K(Q,`\\mathbb{C}`,`&#8450;`),X.H=X.Hamiltonian=X.quaternions=X.Quaternions=K(Q,`\\mathbb{H}`,`&#8461;`),X.quad=X.emsp=K(Q,`\\quad `,` `),X.qquad=K(Q,`\\qquad `,` `),X.diamond=K(Q,`\\diamond `,`&#9671;`),X.bigtriangleup=K(Q,`\\bigtriangleup `,`&#9651;`),X.ominus=K(Q,`\\ominus `,`&#8854;`),X.uplus=K(Q,`\\uplus `,`&#8846;`),X.bigtriangledown=K(Q,`\\bigtriangledown `,`&#9661;`),X.sqcap=K(Q,`\\sqcap `,`&#8851;`),X.triangleleft=K(Q,`\\triangleleft `,`&#8882;`),X.sqcup=K(Q,`\\sqcup `,`&#8852;`),X.triangleright=K(Q,`\\triangleright `,`&#8883;`),X.odot=X.circledot=K(Q,`\\odot `,`&#8857;`),X.bigcirc=K(Q,`\\bigcirc `,`&#9711;`),X.dagger=K(Q,`\\dagger `,`&#0134;`),X.ddagger=K(Q,`\\ddagger `,`&#135;`),X.wr=K(Q,`\\wr `,`&#8768;`),X.amalg=K(Q,`\\amalg `,`&#8720;`),X.models=K(Q,`\\models `,`&#8872;`),X.prec=K(Q,`\\prec `,`&#8826;`),X.succ=K(Q,`\\succ `,`&#8827;`),X.preceq=K(Q,`\\preceq `,`&#8828;`),X.succeq=K(Q,`\\succeq `,`&#8829;`),X.simeq=K(Q,`\\simeq `,`&#8771;`),X.mid=K(Q,`\\mid `,`&#8739;`),X.ll=K(Q,`\\ll `,`&#8810;`),X.gg=K(Q,`\\gg `,`&#8811;`),X.parallel=K(Q,`\\parallel `,`&#8741;`),X.nparallel=K(Q,`\\nparallel `,`&#8742;`),X.bowtie=K(Q,`\\bowtie `,`&#8904;`),X.sqsubset=K(Q,`\\sqsubset `,`&#8847;`),X.sqsupset=K(Q,`\\sqsupset `,`&#8848;`),X.smile=K(Q,`\\smile `,`&#8995;`),X.sqsubseteq=K(Q,`\\sqsubseteq `,`&#8849;`),X.sqsupseteq=K(Q,`\\sqsupseteq `,`&#8850;`),X.doteq=K(Q,`\\doteq `,`&#8784;`),X.frown=K(Q,`\\frown `,`&#8994;`),X.vdash=K(Q,`\\vdash `,`&#8870;`),X.dashv=K(Q,`\\dashv `,`&#8867;`),X.nless=K(Q,`\\nless `,`&#8814;`),X.ngtr=K(Q,`\\ngtr `,`&#8815;`),X.longleftarrow=K(Q,`\\longleftarrow `,`&#8592;`),X.longrightarrow=K(Q,`\\longrightarrow `,`&#8594;`),X.Longleftarrow=K(Q,`\\Longleftarrow `,`&#8656;`),X.Longrightarrow=K(Q,`\\Longrightarrow `,`&#8658;`),X.longleftrightarrow=K(Q,`\\longleftrightarrow `,`&#8596;`),X.updownarrow=K(Q,`\\updownarrow `,`&#8597;`),X.Longleftrightarrow=K(Q,`\\Longleftrightarrow `,`&#8660;`),X.Updownarrow=K(Q,`\\Updownarrow `,`&#8661;`),X.mapsto=K(Q,`\\mapsto `,`&#8614;`),X.nearrow=K(Q,`\\nearrow `,`&#8599;`),X.hookleftarrow=K(Q,`\\hookleftarrow `,`&#8617;`),X.hookrightarrow=K(Q,`\\hookrightarrow `,`&#8618;`),X.searrow=K(Q,`\\searrow `,`&#8600;`),X.leftharpoonup=K(Q,`\\leftharpoonup `,`&#8636;`),X.rightharpoonup=K(Q,`\\rightharpoonup `,`&#8640;`),X.swarrow=K(Q,`\\swarrow `,`&#8601;`),X.leftharpoondown=K(Q,`\\leftharpoondown `,`&#8637;`),X.rightharpoondown=K(Q,`\\rightharpoondown `,`&#8641;`),X.nwarrow=K(Q,`\\nwarrow `,`&#8598;`),X.ldots=K(Q,`\\ldots `,`&#8230;`),X.cdots=K(Q,`\\cdots `,`&#8943;`),X.vdots=K(Q,`\\vdots `,`&#8942;`),X.ddots=K(Q,`\\ddots `,`&#8945;`),X.surd=K(Q,`\\surd `,`&#8730;`),X.triangle=K(Q,`\\triangle `,`&#9651;`),X.ell=K(Q,`\\ell `,`&#8467;`),X.top=K(Q,`\\top `,`&#8868;`),X.flat=K(Q,`\\flat `,`&#9837;`),X.natural=K(Q,`\\natural `,`&#9838;`),X.sharp=K(Q,`\\sharp `,`&#9839;`),X.wp=K(Q,`\\wp `,`&#8472;`),X.bot=K(Q,`\\bot `,`&#8869;`),X.clubsuit=K(Q,`\\clubsuit `,`&#9827;`),X.diamondsuit=K(Q,`\\diamondsuit `,`&#9826;`),X.heartsuit=K(Q,`\\heartsuit `,`&#9825;`),X.spadesuit=K(Q,`\\spadesuit `,`&#9824;`),X.circledot=K(Q,`\\circledot `,`&#8857;`),X.middot=K(Q,`\\middot `,`&middot;`),X.dottedsquare=K(Q,`\\dottedsquare `,`&#11034;`),X.square=K(Q,`\\square `,`&#11036;`),X.rectangle=K(Q,`\\rectangle `,`&#9647;`),X.oint=K(Q,`\\oint `,`&#8750;`),X.bigcap=K(Q,`\\bigcap `,`&#8745;`),X.bigcup=K(Q,`\\bigcup `,`&#8746;`),X.bigsqcup=K(Q,`\\bigsqcup `,`&#8852;`),X.bigvee=K(Q,`\\bigvee `,`&#8744;`),X.bigwedge=K(Q,`\\bigwedge `,`&#8743;`),X.bigodot=K(Q,`\\bigodot `,`&#8857;`),X.bigotimes=K(Q,`\\bigotimes `,`&#8855;`),X.bigoplus=K(Q,`\\bigoplus `,`&#8853;`),X.biguplus=K(Q,`\\biguplus `,`&#8846;`),X.lfloor=K(Q,`\\lfloor `,`&#8970;`),X.rfloor=K(Q,`\\rfloor `,`&#8971;`),X.lceil=K(Q,`\\lceil `,`&#8968;`),X.rceil=K(Q,`\\rceil `,`&#8969;`),X.opencurlybrace=X.lbrace=K(Q,`\\lbrace `,`{`),X.closecurlybrace=X.rbrace=K(Q,`\\rbrace `,`}`),X.lbrack=K(Q,`[`),X.rbrack=K(Q,`]`),X.mug=K(Q,`\\mug `,`µg`),X.mus=K(Q,`\\mus `,`µs`),X.mum=K(Q,`\\mum `,`µm`),X.muL=K(Q,`\\muL `,`µL`),X.slash=K(Q,`/`),X.vert=K(Q,`|`),X.perp=X.perpendicular=K(Q,`\\perp `,`&perp;`),X.nabla=X.del=K(Q,`\\nabla `,`&nabla;`),X.hbar=K(Q,`\\hbar `,`&#8463;`),X.AA=X.Angstrom=X.angstrom=K(Q,`\\text\\AA `,`&#8491;`),X.ring=X.circ=X.circle=K(Q,`\\circ `,`&#8728;`),X.bull=X.bullet=K(Q,`\\bullet `,`&bull;`),X.setminus=X.smallsetminus=K(Q,`\\setminus `,`&#8726;`),X.not=X[`¬`]=X.neg=K(Q,`\\neg `,`&not;`),X[`…`]=X.dots=X.ellip=X.hellip=X.ellipsis=X.hellipsis=K(Q,`\\dots `,`&hellip;`),X.converges=X.darr=X.dnarr=X.dnarrow=X.downarrow=K(Q,`\\downarrow `,`&darr;`),X.dArr=X.dnArr=X.dnArrow=X.Downarrow=K(Q,`\\Downarrow `,`&dArr;`),X.diverges=X.uarr=X.uparrow=K(Q,`\\uparrow `,`&uarr;`),X.uArr=X.Uparrow=K(Q,`\\Uparrow `,`&uArr;`),X.to=K($,`\\to `,`&rarr;`),X.rarr=X.rightarrow=K(Q,`\\rightarrow `,`&rarr;`),X.implies=K($,`\\Rightarrow `,`&rArr;`),X.rArr=X.Rightarrow=K(Q,`\\Rightarrow `,`&rArr;`),X.gets=K($,`\\gets `,`&larr;`),X.larr=X.leftarrow=K(Q,`\\leftarrow `,`&larr;`),X.impliedby=K($,`\\Leftarrow `,`&lArr;`),X.lArr=X.Leftarrow=K(Q,`\\Leftarrow `,`&lArr;`),X.harr=X.lrarr=X.leftrightarrow=K(Q,`\\leftrightarrow `,`&harr;`),X.iff=K($,`\\Leftrightarrow `,`&hArr;`),X.hArr=X.lrArr=X.Leftrightarrow=K(Q,`\\Leftrightarrow `,`&hArr;`),X.Re=X.Real=X.real=K(Q,`\\Re `,`&real;`),X.Im=X.imag=X.image=X.imagin=X.imaginary=X.Imaginary=K(Q,`\\Im `,`&image;`),X.part=X.partial=K(Q,`\\partial `,`&part;`),X.infty=X.infin=X.infinity=K(Q,`\\infty `,`&infin;`),X.pounds=K(Q,`\\pounds `,`&pound;`),X.alef=X.alefsym=X.aleph=X.alephsym=K(Q,`\\aleph `,`&alefsym;`),X.xist=X.xists=X.exist=X.exists=K(Q,`\\exists `,`&exist;`),X.nexists=X.nexist=K(Q,`\\nexists `,`&#8708;`),X.and=X.land=X.wedge=K($,`\\wedge `,`&and;`),X.or=X.lor=X.vee=K($,`\\vee `,`&or;`),X.o=X.O=X.empty=X.emptyset=X.oslash=X.Oslash=X.nothing=X.varnothing=K($,`\\varnothing `,`&empty;`),X.cup=X.union=K($,`\\cup `,`&cup;`),X.cap=X.intersect=X.intersection=K($,`\\cap `,`&cap;`),X.deg=X.degree=K(Q,`\\degree `,`&deg;`),X.ang=X.angle=K(Q,`\\angle `,`&ang;`),X.measuredangle=K(Q,`\\measuredangle `,`m&ang;`);var BE=q(Q,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[J]instanceof VE&&e[J].isItalic!==!1||e[J]instanceof gD&&e[J][J]instanceof VE&&e[J][J].isItalic!==!1)?(X._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),VE=q(ME,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[J]&&!(this[J]instanceof VE)&&!(this[J]instanceof $)&&this[J].ctrlSeq!==`\\ `&&(e=`*`+e),this[Y]&&!(this[Y]instanceof $)&&!(this[Y]instanceof gD)&&(e+=`*`)),e}});gE.p.autoCommands={_maxLength:0},_E.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(X[a]===KE)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=QT(r,a.length)}return n._maxLength=r,n};var HE=q(VE,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof HE&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[J],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[J]);return lE(a,this).remove(),e[J]=a[J],X[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==J&&this[Y]instanceof HE||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[J];i instanceof HE;i=i[J])r=i.letter+r;for(var a=this[Y];a instanceof HE;a=a[Y])r+=a.letter;lE(i[Y]||this.parent.ends[J],a[J]||this.parent.ends[Y]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[Y]||this.parent.ends[J];o<r.length;o+=1,s=s[Y])for(var c=ZT(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[Y]){d.italicize(!1);var f=d}var p=UE.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,GE.hasOwnProperty(l)&&f[J][J][J].jQ.addClass(`mq-last`),n(s[J])||s.jQ.addClass(`mq-first`),!n(f[Y]))if(f[Y]instanceof gD){var m=f[Y];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[Y]instanceof TD))})()}else f.jQ.toggleClass(`mq-last`,!(f[Y]instanceof TD));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof $||e instanceof yD}}),UE={},WE=gE.p.autoOperatorNames={_maxLength:9},GE={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)UE[e[t]]=WE[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)UE[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)WE[r[t]]=WE[`arc`+r[t]]=WE[r[t]+`h`]=WE[`ar`+r[t]+`h`]=WE[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)WE[i[t]]=1})(),_E.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=QT(r,a.length)}return n._maxLength=r,n};var KE=q(ME,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)HE(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=NE(),n=0;n<e.length;n+=1)HE(e.charAt(n)).adopt(t,t.ends[Y],0);return Z.succeed(t.children())}});for(var qE in WE)WE.hasOwnProperty(qE)&&(X[qE]=KE);X.operatorname=q(jE,function(e){e.createLeftOf=$T,e.numBlocks=function(){return 1},e.parser=function(){return kE.block.map(function(e){return e.children()})}}),X.f=q(HE,function(e,t){e.init=function(){ME.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),X[` `]=X.space=K(Q,`\\ `,`&nbsp;`),X[`'`]=X.prime=K(Q,`'`,`&prime;`),X[`″`]=X.dprime=K(Q,`″`,`&Prime;`),X[`"`]=X.doublePrime=K(Q,`"`,`&Prime;`),X.backslash=K(Q,`\\backslash `,`\\`),uE[`\\`]||=X.backslash,X.$=K(Q,`\\$`,`$`);var JE=q(ME,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});X[`@`]=JE,X[`&`]=K(JE,`\\&`,`&amp;`),X[`%`]=K(JE,`\\%`,`%`),X.alpha=X.beta=X.gamma=X.delta=X.zeta=X.eta=X.theta=X.iota=X.kappa=X.mu=X.nu=X.xi=X.rho=X.sigma=X.tau=X.chi=X.psi=X.omega=q(VE,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.phi=K(VE,`\\phi `,`&#981;`),X.phiv=X.varphi=K(VE,`\\varphi `,`&phi;`),X.epsilon=K(VE,`\\epsilon `,`&#1013;`),X.epsiv=X.varepsilon=K(VE,`\\varepsilon `,`&epsilon;`),X.piv=X.varpi=K(VE,`\\varpi `,`&piv;`),X.sigmaf=X.sigmav=X.varsigma=K(VE,`\\varsigma `,`&sigmaf;`),X.thetav=X.vartheta=X.thetasym=K(VE,`\\vartheta `,`&thetasym;`),X.upsilon=X.upsi=K(VE,`\\upsilon `,`&upsilon;`),X.gammad=X.Gammad=X.digamma=K(VE,`\\digamma `,`&#989;`),X.kappav=X.varkappa=K(VE,`\\varkappa `,`&#1008;`),X.rhov=X.varrho=K(VE,`\\varrho `,`&#1009;`),X.pi=X.π=K(JE,`\\pi `,`&pi;`),X.lambda=K(JE,`\\lambda `,`&lambda;`),X.Upsilon=X.Upsi=X.upsih=X.Upsih=K(ME,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),X.Gamma=X.Delta=X.Theta=X.Lambda=X.Xi=X.Pi=X.Sigma=X.Phi=X.Psi=X.Omega=q(Q,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),X.forall=X[`∀`]=K(Q,`\\forall `,`&#8704;`);var YE=q(jE,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=kE.parse(this.latex);t.children().adopt(e.parent,e[J],e[Y]),e[J]=t.ends[Y],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[Y][Y].siblingCreated&&t.ends[Y][Y].siblingCreated(e.options,J),t.ends[J][J].siblingCreated&&t.ends[J][J].siblingCreated(e.options,Y),e.parent.bubble(`reflow`)},e.parser=function(){var e=kE.parse(this.latex).children();return Z.succeed(e)}});X[`¹`]=K(YE,`^1`),X[`²`]=K(YE,`^2`),X[`³`]=K(YE,`^3`),X[`¼`]=K(YE,`\\frac14`),X[`½`]=K(YE,`\\frac12`),X[`¾`]=K(YE,`\\frac34`);var XE=q($,function(e){e.init=Q.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[J]){if(e[J]instanceof $||/^[,;:\(\[]$/.test(e[J].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==Y)return this.jQ[0].className=n(this),this}});X[`+`]=K(XE,`+`,`+`),X[`–`]=X[`-`]=K(XE,`-`,`&minus;`),X[`±`]=X.pm=X.plusmn=X.plusminus=K(XE,`\\pm `,`&plusmn;`),X.mp=X.mnplus=X.minusplus=K(XE,`\\mp `,`&#8723;`),uE[`*`]=X.sdot=X.cdot=K($,`\\cdot `,`&middot;`,`*`);var ZE=q($,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===J&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),QE={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},$E={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};X[`<`]=X.lt=K(ZE,QE,!0),X[`>`]=X.gt=K(ZE,$E,!0),X[`≤`]=X.le=X.leq=K(ZE,QE,!1),X[`≥`]=X.ge=X.geq=K(ZE,$E,!1);var eD=q($,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[J]instanceof ZE&&e[J].strict){e[J].swap(!1),e[J].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});X[`=`]=eD,X[`×`]=X.times=K($,`\\times `,`&times;`,`[x]`),X[`÷`]=X.div=X.divide=X.divides=K($,`\\div `,`&divide;`,`[/]`),uE[`~`]=X.sim=K($,`\\sim `,`~`,`~`),uE[`≁`]=X.nsim=K($,`\\nsim `,`≁`,`≁`),X.complement=X[`∁`]=K(Q,`\\complement `,`&#8705;`),X.nexists=X[`∄`]=K(Q,`\\nexists `,`&#8708;`),X.sphericalangle=X[`∢`]=K(Q,`\\sphericalangle `,`&#8738;`),X.iint=X[`∬`]=K(Q,`\\iint `,`&#8748;`),X.iiint=X[`∭`]=K(Q,`\\iiint `,`&#8749;`),X.oiint=X[`∯`]=K(Q,`\\oiint `,`&#8751;`),X.oiiint=X[`∰`]=K(Q,`\\oiiint `,`&#8752;`),X.backsim=X[`∽`]=K(Q,`\\backsim `,`&#8765;`),X.backsimeq=X[`⋍`]=K(Q,`\\backsimeq `,`&#8909;`),X.eqsim=X[`≂`]=K(Q,`\\eqsim `,`&#8770;`),X.ncong=X[`≇`]=K(Q,`\\ncong `,`&#8775;`),X.approxeq=X[`≊`]=K(Q,`\\approxeq `,`&#8778;`),X.bumpeq=X[`≏`]=K(Q,`\\bumpeq `,`&#8783;`),X.Bumpeq=X[`≎`]=K(Q,`\\Bumpeq `,`&#8782;`),X.doteqdot=X[`≑`]=K(Q,`\\doteqdot `,`&#8785;`),X.fallingdotseq=X[`≒`]=K(Q,`\\fallingdotseq `,`&#8786;`),X.risingdotseq=X[`≓`]=K(Q,`\\risingdotseq `,`&#8787;`),X.eqcirc=X[`≖`]=K(Q,`\\eqcirc `,`&#8790;`),X.circeq=X[`≗`]=K(Q,`\\circeq `,`&#8791;`),X.triangleq=X[`≜`]=K(Q,`\\triangleq `,`&#8796;`),X.leqq=X[`≦`]=K(Q,`\\leqq `,`&#8806;`),X.geqq=X[`≧`]=K(Q,`\\geqq `,`&#8807;`),X.lneqq=X[`≨`]=K(Q,`\\lneqq `,`&#8808;`),X.gneqq=X[`≩`]=K(Q,`\\gneqq `,`&#8809;`),X.between=X[`≬`]=K(Q,`\\between `,`&#8812;`),X.nleq=X[`≰`]=K(Q,`\\nleq `,`&#8816;`),X.ngeq=X[`≱`]=K(Q,`\\ngeq `,`&#8817;`),X.lesssim=X[`≲`]=K(Q,`\\lesssim `,`&#8818;`),X.gtrsim=X[`≳`]=K(Q,`\\gtrsim `,`&#8819;`),X.lessgtr=X[`≶`]=K(Q,`\\lessgtr `,`&#8822;`),X.gtrless=X[`≷`]=K(Q,`\\gtrless `,`&#8823;`),X.preccurlyeq=X[`≼`]=K(Q,`\\preccurlyeq `,`&#8828;`),X.succcurlyeq=X[`≽`]=K(Q,`\\succcurlyeq `,`&#8829;`),X.precsim=X[`≾`]=K(Q,`\\precsim `,`&#8830;`),X.succsim=X[`≿`]=K(Q,`\\succsim `,`&#8831;`),X.nprec=X[`⊀`]=K(Q,`\\nprec `,`&#8832;`),X.nsucc=X[`⊁`]=K(Q,`\\nsucc `,`&#8833;`),X.subsetneq=X[`⊊`]=K(Q,`\\subsetneq `,`&#8842;`),X.supsetneq=X[`⊋`]=K(Q,`\\supsetneq `,`&#8843;`),X.vDash=X[`⊨`]=K(Q,`\\vDash `,`&#8872;`),X.Vdash=X[`⊩`]=K(Q,`\\Vdash `,`&#8873;`),X.Vvdash=X[`⊪`]=K(Q,`\\Vvdash `,`&#8874;`),X.VDash=X[`⊫`]=K(Q,`\\VDash `,`&#8875;`),X.nvdash=X[`⊬`]=K(Q,`\\nvdash `,`&#8876;`),X.nvDash=X[`⊭`]=K(Q,`\\nvDash `,`&#8877;`),X.nVdash=X[`⊮`]=K(Q,`\\nVdash `,`&#8878;`),X.nVDash=X[`⊯`]=K(Q,`\\nVDash `,`&#8879;`),X.vartriangleleft=X[`⊲`]=K(Q,`\\vartriangleleft `,`&#8882;`),X.vartriangleright=X[`⊳`]=K(Q,`\\vartriangleright `,`&#8883;`),X.trianglelefteq=X[`⊴`]=K(Q,`\\trianglelefteq `,`&#8884;`),X.trianglerighteq=X[`⊵`]=K(Q,`\\trianglerighteq `,`&#8885;`),X.multimap=X[`⊸`]=K(Q,`\\multimap `,`&#8888;`),X.Subset=X[`⋐`]=K(Q,`\\Subset `,`&#8912;`),X.Supset=X[`⋑`]=K(Q,`\\Supset `,`&#8913;`),X.Cap=X[`⋒`]=K(Q,`\\Cap `,`&#8914;`),X.Cup=X[`⋓`]=K(Q,`\\Cup `,`&#8915;`),X.pitchfork=X[`⋔`]=K(Q,`\\pitchfork `,`&#8916;`),X.lessdot=X[`⋖`]=K(Q,`\\lessdot `,`&#8918;`),X.gtrdot=X[`⋗`]=K(Q,`\\gtrdot `,`&#8919;`),X.lll=X[`⋘`]=K(Q,`\\lll `,`&#8920;`),X.ggg=X[`⋙`]=K(Q,`\\ggg `,`&#8921;`),X.lesseqgtr=X[`⋚`]=K(Q,`\\lesseqgtr `,`&#8922;`),X.gtreqless=X[`⋛`]=K(Q,`\\gtreqless `,`&#8923;`),X.curlyeqprec=X[`⋞`]=K(Q,`\\curlyeqprec `,`&#8926;`),X.curlyeqsucc=X[`⋟`]=K(Q,`\\curlyeqsucc `,`&#8927;`),X.nsim=X[`≁`]=K(Q,`\\nsim `,`&#8769;`),X.lnsim=X[`⋦`]=K(Q,`\\lnsim `,`&#8934;`),X.gnsim=X[`⋧`]=K(Q,`\\gnsim `,`&#8935;`),X.precnsim=X[`⋨`]=K(Q,`\\precnsim `,`&#8936;`),X.succnsim=X[`⋩`]=K(Q,`\\succnsim `,`&#8937;`),X.ntriangleleft=X[`⋪`]=K(Q,`\\ntriangleleft `,`&#8938;`),X.ntriangleright=X[`⋫`]=K(Q,`\\ntriangleright `,`&#8939;`),X.ntrianglelefteq=X[`⋬`]=K(Q,`\\ntrianglelefteq `,`&#8940;`),X.ntrianglerighteq=X[`⋭`]=K(Q,`\\ntrianglerighteq `,`&#8941;`),X.blacksquare=X[`∎`]=K(Q,`\\blacksquare `,`&#8718;`),X.colon=X[`∶`]=K(Q,`\\colon `,`&#8758;`),X.llcorner=X[`∟`]=K(Q,`\\llcorner `,`&#8735;`),X.dotplus=X[`∔`]=K($,`\\dotplus `,`&#8724;`),X.nmid=X[`∤`]=K($,`
199
+ mid `,`&#8740;`),X.intercal=X[`⊺`]=K($,`\\intercal `,`&#8890;`),X.veebar=X[`⊻`]=K($,`\\veebar `,`&#8891;`),X.barwedge=X[`⊼`]=K($,`\\barwedge `,`&#8892;`),X.ltimes=X[`⋉`]=K($,`\\ltimes `,`&#8905;`),X.rtimes=X[`⋊`]=K($,`\\rtimes `,`&#8906;`),X.leftthreetimes=X[`⋋`]=K($,`\\leftthreetimes `,`&#8907;`),X.rightthreetimes=X[`⋌`]=K($,`\\rightthreetimes `,`&#8908;`),X.curlyvee=X[`⋎`]=K($,`\\curlyvee `,`&#8910;`),X.curlywedge=X[`⋏`]=K($,`\\curlywedge `,`&#8911;`),X.circledcirc=X[`⊚`]=K($,`\\circledcirc `,`&#8858;`),X.circledast=X[`⊛`]=K($,`\\circledast `,`&#8859;`),X.circleddash=X[`⊝`]=K($,`\\circleddash `,`&#8861;`),X.boxplus=X[`⊞`]=K($,`\\boxplus `,`&#8862;`),X.boxminus=X[`⊟`]=K($,`\\boxminus `,`&#8863;`),X.boxtimes=X[`⊠`]=K($,`\\boxtimes `,`&#8864;`),X.boxdot=X[`⊡`]=K($,`\\boxdot `,`&#8865;`),X[`∂`]=X.partial,X[`∃`]=X.exists,X[`∅`]=X.varnothing,X[`∆`]=X.triangle,X[`∇`]=X.nabla,X[`∈`]=X.in,X[`∊`]=X.in,X[`∋`]=X.ni,X[`∌`]=X.notni,X[`∍`]=X.ni,X[`∐`]=X.amalg,X[`−`]=X[`-`],X[`∓`]=X.mp,X[`∖`]=X.setminus,X[`∘`]=X.circ,X[`∙`]=X.bullet,X[`∝`]=X.propto,X[`∞`]=X.infty,X[`∠`]=X.angle,X[`∡`]=X.measuredangle,X[`∣`]=X.divides,X[`∥`]=X.parallel,X[`∦`]=X.nparallel,X[`∧`]=X.wedge,X[`∨`]=X.vee,X[`∩`]=X.cap,X[`∪`]=X.cup,X[`∮`]=X.oint,X[`∴`]=X.therefore,X[`∵`]=X.because,X[`∼`]=X.sim,X[`≀`]=X.wr,X[`≃`]=X.simeq,X[`≍`]=X.asymp,X[`≐`]=X.doteq,X[`≪`]=X.ll,X[`≫`]=X.gg,X[`≺`]=X.prec,X[`≻`]=X.succ,X[`⊂`]=X.subset,X[`⊃`]=X.supset,X[`⊆`]=X.subseteq,X[`⊇`]=X.supseteq,X[`⊈`]=X.nsubseteq,X[`⊉`]=X.nsupseteq,X[`⊏`]=X.sqsubset,X[`⊐`]=X.sqsupset,X[`⊓`]=X.sqcap,X[`⊔`]=X.sqcup,X[`⊖`]=X.ominus,X[`⊘`]=X.oslash,X[`⊙`]=X.odot,X[`⊢`]=X.vdash,X[`⊣`]=X.dashv,X[`⊤`]=X.top,X[`⊥`]=X.bot,X[`⊧`]=X.models,X[`⋀`]=X.wedge,X[`⋁`]=X.vee,X[`⋂`]=X.cap,X[`⋃`]=X.cup,X[`⋄`]=X.diamond,X[`⋅`]=X.cdot,X[`⋆`]=X.star,X[`⋈`]=X.bowtie,X[`⋮`]=X.vdots,X[`⋯`]=X.cdots,X[`⋱`]=X.ddots;var tD,nD=$T,rD=document.createElement(`div`).style,iD={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},aD;for(var oD in iD)if(oD in rD){aD=oD;break}aD?tD=function(e,t,n){e.css(aD,`scale(`+t+`,`+n+`)`)}:`filter`in rD?(nD=function(e){e.className=e.className},tD=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);G(window).load(function(){clearTimeout(a),i()})}):tD=function(e,t,n){e.css(`fontSize`,n+`em`)};var sD=q(jE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),cD=q(jE,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return kE.optBlock.then(function(t){return kE.block.map(function(n){var r=lD.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),lD=q(cD,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,jE.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),uD=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return q(jE,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},dD=q(jE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),fD=q(jE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),pD=q(jE,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),mD=q(jE,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),hD=function(e,t){return q(ME,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};X.mathrm=K(sD,`\\mathrm`,`span`,`class="mq-roman mq-font"`),X.mathit=K(sD,`\\mathit`,`i`,`class="mq-font"`),X.mathbf=K(sD,`\\mathbf`,`b`,`class="mq-font"`),X.mathsf=K(sD,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),X.mathtt=K(sD,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),X.underline=K(sD,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),X.overline=X.bar=K(uD(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),X.longdiv=K(dD,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),X.overrightarrow=K(uD(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),X.overleftarrow=K(uD(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),X.xleftarrow=K(cD,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),X.xrightarrow=K(cD,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),X.overleftrightarrow=K(sD,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),X.overarc=K(sD,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),X.dot=q(jE,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),X.addmatrixrow=K(fD,`\\addmatrixrow`,`span`,`+`),X.addmatrixcol=K(mD,`\\addmatrixcol`,`span`,`+`),X.ngtr=X[`≯`]=K(hD(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),X.nless=X[`≮`]=K(hD(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),X.dot=K(pD,`\\dot`),X.parallelogram=K(hD(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),X.textcolor=q(jE,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Z.optWhitespace,r=Z.string,i=Z.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),X.class=q(jE,function(e,t){e.parser=function(){var e=this,n=Z.string,r=Z.regex;return Z.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var gD=q(jE,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[J]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=J;t;t=t===J&&Y)if(this[t]instanceof gD){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=oE(i,0,i.ends[J]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=oE(i,o.ends[Y],i.ends[J]);t===J?o.adopt(i,i.ends[Y],0):o.adopt(i,0,i.ends[J])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[J]===this&&(t===Y&&a?a[J]?e.insRightOf(a[J]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},gE.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[J].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof ME?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[J]&&!e[Y]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),NE.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof ME?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(J,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=G(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(XT,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=G(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(XT,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=_D,delete e[n].deleteOutOf,t===`sub`&&G(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function _D(e){var t=this.parent,n=e;do{if(n[Y])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}X.subscript=X._=q(gD,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[J],this.sub.upOutOf=_D,t.finalizeTree.call(this)}}),X.superscript=X.supscript=X[`^`]=q(gD,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[Y],this.sup.downOutOf=_D,t.finalizeTree.call(this)}});var vD=q(jE,function(e,t){e.parser=function(){for(var e=Z.string,t=Z.optWhitespace,n=Z.succeed,r=kE.block,i=this,a=i.blocks=[NE(),NE()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[Y],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[Y],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[J],this.upInto=this.ends[Y],this.ends[J].upOutOf=this.ends[Y],this.ends[Y].downOutOf=this.ends[J]}}),yD=q(vD,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;ME.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())+`^`+e(this.ends[Y].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(HE(`n`).createLeftOf(e),eD().createLeftOf(e))}});X[`∑`]=X.sum=X.summation=K(yD,`\\sum `,`&sum;`),X[`∏`]=X.prod=X.product=K(yD,`\\prod `,`&prod;`),X.coprod=X.coproduct=K(yD,`\\coprod `,`&#8720;`),X[`∫`]=X.int=X.integral=q(yD,function(e,t){e.init=function(){ME.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=jE.p.createLeftOf}),X.lim=X.limit=q(vD,function(e,t){e.init=function(){ME.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[J].latex())}});var bD=X.over=uE[`/`]=q(X.frac=X.dfrac=X.cfrac=X.fraction=q(jE,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[Y].upOutOf=this.ends[J],this.downInto=this.ends[J].downOutOf=this.ends[Y]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[J];n&&!(n instanceof $||n instanceof(X.text||$T)||n instanceof yD||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[J];n instanceof yD&&n[Y]instanceof gD&&(n=n[Y],n[Y]instanceof gD&&n[Y].ctrlSeq!=n.ctrlSeq&&(n=n[Y])),n!==e[J]&&!e.isTooDeep(1)&&(this.replaces(lE(n[Y]||e.parent.ends[J],e[J])),e[J]=n)}t.createLeftOf.call(this,e)}});X.underset=q(jE,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[Y],this.upInto=this.ends[Y].downOutOf=this.ends[J]}}),X.overset=q(jE,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[Y].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[Y]}});var xD=X.sqrt=X[`√`]=q(jE,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return kE.optBlock.then(function(e){return kE.block.map(function(t){var n=SD();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[Y].jQ.parent();tD(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});X.hat=q(jE,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var SD=X.nthroot=q(xD,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[J].latex()+`]{`+this.ends[Y].latex()+`}`}}),CD=q(jE,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});X.vec=K(CD,`\\vec`,`&rarr;`,[`vec(`,`)`]),X.tilde=K(CD,`\\tilde`,`~`,[`tilde(`,`)`]),X.lrncuberoot=q(xD,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[J].latex()+`}`}}),X.abs=q(jE,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),X.lrnplaceholder=q(jE,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[J].latex()}}),X.lrnexponent=q(jE,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[Y].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[J].latex()+`^`+e}}),X.lrnsquaredexponent=q(jE,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[J].latex()+`^2`}}),X.lrnsubscript=q(jE,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[J].latex()+`_`+this.ends[Y].latex()}});function wD(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));tD(this.delimjQs,ZT(1+.2*(e-1),1.2),1.2*e)}}var TD=q(q(jE,wD),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,JT,[n,r]),this.side=e,this.sides={},this.sides[J]={ch:n,ctrlSeq:i},this.sides[Y]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===Y?` mq-ghost`:``)+`">`+this.sides[J].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===J?` mq-ghost`:``)+`">`+this.sides[Y].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[J].ctrlSeq+this.ends[J].latex()+`\\right`+this.sides[Y].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof TD&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||ED[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[J].ch]===n.sides[Y].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===J?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[J].ch===`|`)var r=this.matchBrack(n,Y,e[Y])||this.matchBrack(n,J,e[J])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&lE(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(lE(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===J?e.insAtLeftEnd(r.ends[J]):e.insRightOf(r)},e.placeCursor=$T,e.unwrap=function(){this.ends[J].children().disown().adopt(this.parent,this,this[Y]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[J].ends[this.side])){this.closeOpposing(this.ends[J].ends[this.side]);var c=this.ends[J].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:ED[this.sides[this.side].ch],ctrlSeq:ED[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===J?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[J].ends[e];lE(i,a,-e).disown().withDirAdopt(-e,this.ends[J],c,0).jQ.insAtDirEnd(e,this.ends[J].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[J])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[J].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===J)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),ED={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function DD(e,t){var t=t||e,n=ED[e],r=ED[t];uE[e]=K(TD,J,e,n,t,r),uE[n]=K(TD,Y,e,n,t,r)}DD(`(`),DD(`[`),DD(`{`,`\\{`),X.langle=K(TD,J,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),X.rangle=K(TD,Y,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),uE[`|`]=K(TD,J,`|`,`|`,`|`,`|`),X.lVert=K(TD,J,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.rVert=K(TD,Y,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),X.left=q(jE,function(e){e.parser=function(){var e=Z.regex,t=Z.string;Z.succeed;var n=Z.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),kE.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=TD(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),X.right=q(jE,function(e){e.parser=function(){return Z.fail(`unmatched \\right`)}}),X.choose=q(X.binom=X.binomial=q(q(jE,wD),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=bD.prototype.createLeftOf}),X.editable=X.MathQuillMathField=q(jE,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Z.string,r=Z.regex,i=Z.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=mE(this.ends[J],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),EE(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[J].controller))},e.latex=function(){return this.ends[J].latex()},e.text=function(){return this.ends[J].text()}});var OD=X.embed=q(ME,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Z.string,n=Z.regex,r=Z.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(yE[i](t))})})}});X.MathQuillResponseContainer=q(jE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[J].text()}}),X.MathQuillResponseContainerIcon=q(jE,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[J].text()}});var kD=X.matrix=q(jE,function(e,t){var n=q(NE,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[Y],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&tD(n,ZT(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Z.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);kE.parse(u[e]||` `).children().adopt(f,f.ends[Y],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[Y],0);return Z.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=sE.byId[e.first().attr(XT)],n=sE.byId[e.last().attr(XT)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=sE.byId[G(this).attr(XT)],a=e.eq(t+1),o=G(this).closest(`tr`).next(`tr`),s=G(this).closest(`tr`).index(),c=G(this).index(),l;if(a.length){var u=sE.byId[a.attr(XT)];n[Y]=u,u[J]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=sE.byId[l.attr(XT)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[J]=t,this.ends[Y]=n,t&&t[J]&&delete t[J],n&&n[Y]&&delete n[Y],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return G(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return sE.byId[G(this).attr(XT)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=sE.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(XT)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=G(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=G(`<td class="mq-empty">`).attr(XT,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=G(`<td class="mq-empty">`).attr(XT,a.id),a.jQ.insertAfter(G(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});X.pmatrix=q(kD,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),X.bmatrix=q(kD,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),X.Bmatrix=q(kD,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),X.vmatrix=q(kD,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),X.Vmatrix=q(kD,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var AD=wE(3);for(var jD in AD)(function(e,t){typeof t==`function`?(xE[e]=function(){return bE(),t.apply(this,arguments)},xE[e].prototype=t.prototype):xE[e]=t})(jD,AD[jD]);var MD=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},ND;typeof window<`u`&&(ND=xE.getInterface(3),ND&&ND.registerEmbed&&MD(ND));function PD(e,t){!ND||!ND.registerEmbed||ND.registerEmbed(e,t)}function FD(e,t,n){if(!(!ND||!e))return t!=null&&(e.textContent=t),ND.StaticMath(e,n)}var ID=e=>`&.mq-math-mode ${e}, & .mq-math-mode ${e}`,LD={"&.mq-editable-field .mq-cursor, & .mq-editable-field .mq-cursor":{borderLeftColor:`currentColor`},"&.mq-editable-field:not(.mq-focused), & .mq-editable-field:not(.mq-focused)":{borderColor:Hy()},[[`.mq-overline .mq-overline-inner`,`.mq-overarrow`,`.mq-overarrow .mq-overarrow-inner`,`.mq-overleftrightarrow .mq-overleftrightarrow-inner`,`.mq-overarc`,`.mq-longdiv .mq-longdiv-inner`].map(ID).join(`, `)]:{borderTopColor:`currentColor`},[[`.mq-underline`,`.mq-xarrow .mq-xarrow-over`].map(ID).join(`, `)]:{borderBottomColor:`currentColor`},[ID(`.mq-abs`)]:{borderLeftColor:`currentColor`,borderRightColor:`currentColor`},[ID(`.mq-matrix td.mq-empty`)]:{borderColor:`currentColor`}},RD={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},zD={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},BD={"& *":{...RD,...zD,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},VD=Wh(`pie-lib:math-input:mq:static`),HD=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,UD=/ /g;function WD(e=``){return e.replace(UD,``)}function GD(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var KD=L(`span`)(LD),qD=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func,language:O.string};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),_m(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),_m()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(GD(e)>GD(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!ND)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=ND.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}WT(this.inputRef?.current,this.props.language)};blur=()=>{VD(`blur mathfield`),this.mathField.blur()};focus=()=>{VD(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=WD(this.mathField.parseLatex(e.latex)),n=(e.latex.match(HD)||[]).length,r=t!==WD(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return VD(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(KD,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},JD=e=>(Lt(5-e.length,()=>e.push([])),Rt.apply(null,e)),YD=Wh(`pie-lib:math-inline:keypad`),XD=uy(`pie`),ZD=[dy(),hb()],QD={"& .MuiTouchRipple-root":{color:`rgb(from ${dy()} min(r, 255 - r) min(g, 255 - g) min(b, 255 - b))`}},$D={"&.Mui-focusVisible":{outline:`2px solid ${tb()}`,outlineOffset:`-2px`,boxShadow:`inset 0 0 0 4px ${XD(`background`,V.WHITE)}`}},eO=L(qD)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:ZD,"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${db()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid currentColor`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid currentColor`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid currentColor !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});eO.propTypes={latex:O.string.isRequired};var tO=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},nO=L(`div`)(()=>({...BD,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),rO=L(Ih)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:ZD,backgroundColor:e===`operators`?ub():lb(),"&:hover":{backgroundColor:e===`operators`?pb():fb()},...QD,...$D,borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),iO=L(Ih)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?ub():lb(),"&:hover":{backgroundColor:e===`operators`?pb():fb()},...QD,...$D})),aO=L(Hh)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?ub():lb(),"&:hover":{backgroundColor:e===`operators`?pb():fb()},borderRadius:0,"& .icon":{height:`30px`}})),oO=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Am,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{YD(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>jt([...JD(e),...JD(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...tO(r)};return(0,F.jsx)(nO,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(iO,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(eO,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(rO,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(aO,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},sO=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},cO=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(sO(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=gm(a);return(0,F.jsx)(oO,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:pf(mm(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},lO=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),uO=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),dO=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),fO=o(((e,t)=>{var n=dO(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),pO=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),mO=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=pO();t.exports=function(e){return e?e.replace(r,n):``}})),hO=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),gO=o(((e,t)=>{var n=hO();t.exports=function(e){return n(e).toLowerCase()}})),_O=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),vO=o(((e,t)=>{var n=mO(),r=gO(),i=_O(),a=dO(),o=fO(),s=lO(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),yO=o(((e,t)=>{t.exports=vO()()})),bO=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),xO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),SO=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),CO=o(((e,t)=>{fO();var n=yO(),r=gO(),i=mO(),a=bO(),o=xO(),s=SO(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:uO()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),wO=o(((e,t)=>{var n=CO(),r=bO();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),TO=o(((e,t)=>{t.exports={prefixProperties:lO(),cssUnitless:uO(),object:CO(),string:wO()}}))(),EO=Wh(`@pie-lib:mask-markup:serialization`),DO=[`span`],OO=[`em`,`strong`,`u`],kO=3,AO=8,jO=1,MO=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},NO=e=>DO.includes(e)?`inline`:OO.includes(e)?`mark`:`block`,PO=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},FO=e=>(0,TO.object)(e,{camelize:!0,addUnits:!1}),IO=(e,t)=>FO(PO(e.getAttribute(t))),LO=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},RO=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=IO(e,n);break;case`class`:t.className=LO(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},zO=[`border`,`class`,`style`],BO={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},VO=(e,t=[])=>{if(e.nodeType===AO)return null;if(e.nodeType===kO){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===jO){let n=e.tagName.toLowerCase(),r=BO[n];if(r)return EO(`[deserialize] mark: `,r),{_flatten:!0,nodes:HO(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=MO(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=zO.reduce(RO(e),{...i}),o=NO(n),s=HO(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},HO=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=VO(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},UO=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=HO(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},WO=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),GO=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),KO=[`tbody`,`tr`],qO=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&KO.includes(r)))return t},JO=e=>{let t=e.leaves.find(e=>Mt(e,`marks`,[]).length);return t?t.marks:null},YO=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:oy(`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`)}})),o;if(r){let a=r(e,t,n);if(a){let t=e.data?.dataset?.component===`blank`&&i?.type!==`td`;t&&o.push((0,F.jsx)(GO,{},`spacer-${s}-before`)),o.push(a),t&&o.push((0,F.jsx)(GO,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=qO(i,n);return r?e+r:e},``),n=JO(e);if(n?.length>0){let e=n.map(e=>Object.keys(BO).find(t=>BO[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=YO(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(WO,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},XO=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),ZO=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof fC==`function`&&fC(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=YO(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(XO,{ref:a,children:i})}},QO=/\{\{(\d+)\}\}/g,$O=(e,t)=>e?{markup:e.replace(QO,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},ek=(e,t)=>{let{markup:n}=$O(e,t);return UO(oy(n)).document},tk=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.textContent=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||ek(n,e);return(0,F.jsx)(ZO,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),nk=`height ease-in 300ms, opacity ease-in 300ms`,rk=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:nk,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:nk,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),ik=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(al,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(rk,{ref:i,className:r,children:n})})};ik.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};function ak(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function ok(e,t){return!e||ak(e)?e:ak(e.default)?e.default:t&&ak(e[t])?e[t]:t&&ak(e[t]?.default)?e[t].default:e}var sk=ok(pT,`Readable`)||ok(uk.Readable,`Readable`),ck=HT,lk=ck.default,uk=lk&&typeof lk==`object`?lk:ck,{translator:dk}=hw,fk={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},pk=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),mk=L(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${eb()}`,outlineOffset:`-2px`}})),hk=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${dy()})`,fontWeight:`normal`,...fk})),gk=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),_k=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),vk=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:dk.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:dk.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:dk.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:dk.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(pk,{className:e,children:(0,F.jsx)(ik,{show:this.state.show,children:(0,F.jsxs)(mk,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(_k,{children:[(0,F.jsx)(al,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(gk,{ref:this.openIconRef,children:(0,F.jsx)(og,{open:t},`correct-open`)})}),(0,F.jsx)(al,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(gk,{ref:this.closedIconRef,children:(0,F.jsx)(og,{open:t},`correct-closed`)})})]}),(0,F.jsx)(sk,{false:!0,children:(0,F.jsx)(hk,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function yk(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function bk(e,t){return!e||yk(e)?e:yk(e.default)?e.default:t&&yk(e[t])?e[t]:t&&yk(e[t]?.default)?e[t].default:e}var xk=bk(Mw,`UiLayout`)||bk(Dk.UiLayout,`UiLayout`),Sk=bk(fT,`PreviewPrompt`)||bk(Dk.PreviewPrompt,`PreviewPrompt`),Ck=bk(pT,`Readable`)||bk(Dk.Readable,`Readable`),wk=bk(Sw,`Collapsible`)||bk(Dk.Collapsible,`Collapsible`),Tk=HT,Ek=Tk.default,Dk=Ek&&typeof Ek==`object`?Ek:Tk,{translator:Ok}=hw,kk=L(xk)({color:dy(),backgroundColor:Ny(),display:`inline-block`}),Ak=L(`div`)({width:`100%`,position:`relative`,backgroundColor:Ny(),color:dy()}),jk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Mk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Nk=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),Pk=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${yy()} !important`},...n&&{borderColor:`${hy()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),Fk=L(qD)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:dy()}}}),Ik=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),Lk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),Rk=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),zk=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),Bk=L(vk)(({theme:e})=>({color:dy(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
200
200
  .block-container {
201
201
  margin: 8px !important;
202
202
  display: inline-flex;
@@ -214,8 +214,8 @@ mid `,`&#8740;`),X.intercal=X[`⊺`]=K($,`\\intercal `,`&#8890;`),X.veebar=X[`
214
214
  border-right: 2px solid #bdbdbd !important;
215
215
  }
216
216
  .block-math {
217
- color: ${iy()};
218
- background-color: ${Ey()};
217
+ color: ${dy()};
218
+ background-color: ${Ny()};
219
219
  padding: 4px !important;
220
220
  display: flex;
221
221
  align-items: center;
@@ -226,14 +226,14 @@ mid `,`&#8740;`),X.intercal=X[`⊺`]=K($,`\\intercal `,`&#8890;`),X.veebar=X[`
226
226
  display: none;
227
227
  }
228
228
  .correct {
229
- border-color: ${cy()} !important;
229
+ border-color: ${hy()} !important;
230
230
  }
231
231
  .incorrect {
232
- border-color: ${fy()} !important;
232
+ border-color: ${yy()} !important;
233
233
  }
234
- `,document.head.appendChild(t)}}var Pk=!1,Fk=/(\{\{\d+\}\})/gm,Ik=6,Lk=8,Rk=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function zk(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function Bk(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function Vk(e){return e.split(Fk).filter(e=>e)}function Hk(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):Vk(i).reduce((e,n)=>{if(n.match(Fk)){let i=Wk.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var Uk={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+Lk,d=l+n-r-Lk;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},Wk=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(Fk,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(Pk||=(DD(`answerBlock`,e=>({htmlString:`<div class="block-container">
234
+ `,document.head.appendChild(t)}}var Vk=!1,Hk=/(\{\{\d+\}\})/gm,Uk=6,Wk=8,Gk=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function Kk(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function qk(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function Jk(e){return e.split(Hk).filter(e=>e)}function Yk(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):Jk(i).reduce((e,n)=>{if(n.match(Hk)){let i=Zk.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var Xk={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+Wk,d=l+n-r-Wk;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},Zk=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(Hk,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(Vk||=(PD(`answerBlock`,e=>({htmlString:`<div class="block-container">
235
235
  <div class="block-response" data-answer-block-index="${e}">R</div>
236
236
  <div class="block-math">
237
237
  <span data-answer-block="${e}"></span>
238
238
  </div>
239
- </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`[data-answer-block="${t}"]`),i=this.root.querySelector(`[data-answer-block-index="${t}"]`);if(n){let a=r[t];OD(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),aC(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(Fk),d=o.match(Fk);if(!Pt(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=Pt(this.props.model,e.model),r=Pt(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>aC(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{_m(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&Rk){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(uT(t)||fT(t)),i=(0,F.jsx)(hk,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(Tk,{children:n?i:(0,F.jsx)(_k,{labels:{hidden:xk.t(`common:showTeacherInstructions`,{lng:e?.language}),visible:xk.t(`common:hideTeacherInstructions`,{lng:e?.language})},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(hk,{prompt:t});return t&&(uT(t)||fT(t))&&(0,F.jsx)(Tk,{children:n?r:(0,F.jsx)(_k,{labels:{hidden:xk.t(`common:showRationale`,{lng:e?.language}),visible:xk.t(`common:hideRationale`,{lng:e?.language})},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m,language:h}=e||{},g=Nt(c),_=zk(u),v=Hk(e,this.state)||``,y=p&&!m;return(0,F.jsx)(Ek,{children:(0,F.jsx)(JO,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(Ok,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:v[e],language:h,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(Dk,{ref:i,$incorrect:!g&&!c&&!n,$correct:!g&&(c||n),$showCorrectness:!g&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(nf,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},Uk]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(kk,{"data-keypad":!0,style:{width:Bk(_,l)},children:(0,F.jsx)(tO,{additionalKeys:_,mode:l||Ik,onClick:this.onClick})},e)||null),children:y?(0,F.jsx)(Ak,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!Nt(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)(Sk,{extraCSSRules:a,ref:e=>{let t=Yc.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(Ck,{children:[r===`gather`&&(0,F.jsx)(jk,{children:xk.t(`mathInline.mathEquationResponseQuestion`,{lng:c})}),(0,F.jsx)(Ck,{children:d&&(0,F.jsx)(Nk,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(wk,{children:(0,F.jsx)(hk,{prompt:n})}),(0,F.jsx)(gk,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(Mk,{className:`note`,dangerouslySetInnerHTML:{__html:$v(u)}}),this.renderRationale()]})})}},Gk=g(),Kk=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(Wk,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Gk.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,Kk),Kk})();
239
+ </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`[data-answer-block="${t}"]`),i=this.root.querySelector(`[data-answer-block-index="${t}"]`);if(n){let a=r[t];FD(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),fC(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(Hk),d=o.match(Hk);if(!Pt(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=Pt(this.props.model,e.model),r=Pt(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>fC(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{_m(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&Gk){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(_T(t)||yT(t)),i=(0,F.jsx)(Sk,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(Mk,{children:n?i:(0,F.jsx)(wk,{labels:{hidden:Ok.t(`common:showTeacherInstructions`,{lng:e?.language}),visible:Ok.t(`common:hideTeacherInstructions`,{lng:e?.language})},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(Sk,{prompt:t});return t&&(_T(t)||yT(t))&&(0,F.jsx)(Mk,{children:n?r:(0,F.jsx)(wk,{labels:{hidden:Ok.t(`common:showRationale`,{lng:e?.language}),visible:Ok.t(`common:hideRationale`,{lng:e?.language})},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m,language:h}=e||{},g=Nt(c),_=Kk(u),v=Yk(e,this.state)||``,y=p&&!m;return(0,F.jsx)(Nk,{children:(0,F.jsx)(tk,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(Fk,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:v[e],language:h,onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(Pk,{ref:i,$incorrect:!g&&!c&&!n,$correct:!g&&(c||n),$showCorrectness:!g&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(nf,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},Xk]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(Ik,{"data-keypad":!0,style:{width:qk(_,l)},children:(0,F.jsx)(cO,{additionalKeys:_,mode:l||Uk,onClick:this.onClick})},e)||null),children:y?(0,F.jsx)(Lk,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!Nt(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)(kk,{extraCSSRules:a,ref:e=>{let t=Yc.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(Ak,{children:[r===`gather`&&(0,F.jsx)(Rk,{children:Ok.t(`mathInline.mathEquationResponseQuestion`,{lng:c})}),(0,F.jsx)(Ak,{children:d&&(0,F.jsx)(Bk,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(jk,{children:(0,F.jsx)(Sk,{prompt:n})}),(0,F.jsx)(Ck,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(zk,{className:`note`,dangerouslySetInnerHTML:{__html:oy(u)}}),this.renderRationale()]})})}},Qk=g(),$k=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(Zk,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Qk.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,$k),$k})();