@digabi/exam-engine-core 22.2.0-alpha.8 → 22.2.0-alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-bundle.js +1 -1
- package/package.json +3 -3
package/dist/main-bundle.js
CHANGED
@@ -353,4 +353,4 @@
|
|
353
353
|
grid-column: 1;
|
354
354
|
grid-row: 1;
|
355
355
|
}
|
356
|
-
`},3858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SET_THEORY=t.GEOMETRY=t.ALGEBRA=t.BASIC=void 0,t.BASIC=[{label:"°",latex:"\\degree"},{label:"·",latex:"\\cdot"},{label:"×",latex:"\\times"},{label:"±",latex:"\\pm"},{label:"∞",latex:"\\infty"},{label:"²",latex:"^2"},{label:"³",latex:"^3"},{label:"½",latex:"\\frac{1}{2}"},{label:"⅓",latex:"\\frac{1}{3}"},{label:"π",latex:"\\pi"},{label:"‰"},{label:"α",latex:"\\alpha"},{label:"β",latex:"\\beta"},{label:"Γ",latex:"\\Gamma"},{label:"γ",latex:"\\gamma"},{label:"Δ",latex:"\\Delta"},{label:"δ",latex:"\\delta"},{label:"ε",latex:"\\varepsilon"},{label:"ζ",latex:"\\zeta"},{label:"η",latex:"\\eta"},{label:"θ",latex:"\\theta"},{label:"ϑ",latex:"\\vartheta"},{label:"ι",latex:"\\iota"},{label:"κ",latex:"\\kappa"},{label:"Λ",latex:"\\Lambda"},{label:"λ",latex:"\\lambda"},{label:"µ",latex:"\\mu"},{label:"ν",latex:"\\nu"},{label:"Ξ",latex:"\\Xi"},{label:"ξ",latex:"\\xi"},{label:"∏",latex:"\\Pi"},{label:"ρ",latex:"\\rho"},{label:"∑",latex:"\\Sigma"},{label:"σ",latex:"\\sigma"},{label:"τ",latex:"\\tau"},{label:"Υ",latex:"\\Upsilon"},{label:"υ",latex:"\\upsilon"},{label:"Φ",latex:"\\Phi"},{label:"ϕ",latex:"\\phi"},{label:"χ",latex:"\\chi"},{label:"Ψ",latex:"\\Psi"},{label:"ψ",latex:"\\psi"},{label:"Ω",latex:"\\Omega"},{label:"ω",latex:"\\omega"},{label:"∂",latex:"\\partial"},{label:"φ",latex:"\\varphi"}],t.ALGEBRA=[{label:"≠",latex:"\\neq"},{label:"≈",latex:"\\approx"},{label:"≤",latex:"\\leq"},{label:"≥",latex:"\\geq"},{label:"<"},{label:">"},{label:"∼",latex:"\\sim"},{label:"≡",latex:"\\equiv"},{label:"≢",latex:"\\not\\equiv"},{label:"∘",latex:"\\circ"},{label:"…",latex:"\\ldots"},{label:"∝",latex:"\\propto"}],t.GEOMETRY=[{label:"∢",latex:"\\sphericalangle"},{label:"|",latex:"\\mid"},{label:"‖",latex:"\\parallel"},{label:"⇌",latex:"\\xrightleftharpoons"},{label:"⇅"},{label:"∠",latex:"\\angle"},{label:"↑",latex:"\\uparrow"},{label:"↗",latex:"\\nearrow"},{label:"↘",latex:"\\searrow"},{label:"↓",latex:"\\downarrow"},{label:"↔",latex:"\\leftrightarrow"},{label:"⊥",latex:"\\perp"}],t.SET_THEORY=[{label:"→",latex:"\\rightarrow"},{label:"⇒",latex:"\\Rightarrow"},{label:"⇔",latex:"\\Leftrightarrow"},{label:"∈",latex:"\\in"},{label:"ℤ",latex:"\\mathbb{Z}"},{label:"ℝ",latex:"\\mathbb{R}"},{label:"∃",latex:"\\exists"},{label:"∀",latex:"\\forall"},{label:"ℕ",latex:"\\mathbb{N}"},{label:"ℚ",latex:"\\mathbb{Q}"},{label:"∩",latex:"\\cap"},{label:"∪",latex:"\\cup"},{label:"∖",latex:"\\setminus"},{label:"⊂",latex:"\\subset"},{label:"⊄",latex:"\\notsubset"},{label:"∉",latex:"\\notin"},{label:"∅",latex:"\\empty"},{label:"∧",latex:"\\and"},{label:"∨",latex:"\\or"},{label:"¬",latex:"\\neg"},{label:"∇",latex:"\\nabla"}]},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGlua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AgLTQ2IDAgLTU3IC0yYy0xOCAtNCAtMTggLTE4IC0xOCAtMzh2LTUyN2MwIC0zNCAwIC00OCAxMDUgLTQ4aDQwdi0zMWMtNDEgMyAtMTQ0IDMgLTE5MCAzcy0xNDggMCAtMTg5IC0zdjMxaDQwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}]},2959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useKeyboardEventListener=void 0;const r=n(5442);t.useKeyboardEventListener=(e,t,n,i=!0)=>{(0,r.useEffect)((()=>{const r=r=>{(!t||t&&r.ctrlKey)&&r.key.toLowerCase()===e.toLowerCase()&&(i&&r.preventDefault(),n(r))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}}),[e,n])}},7548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const[t,n]=(0,r.useState)({current:new Map(e)});function i(e){n((t=>(e(t.current),{current:t.current})))}return{raw:t.current,has:t.current.has.bind(t.current),get:t.current.get.bind(t.current),values:t.current.values.bind(t.current),set:(e,t)=>i((n=>n.set(e,t))),delete:e=>i((t=>t.delete(e)))}};const r=n(5442)},2613:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,c.default)(),[n,r]=(0,l.useState)(null),[i,o]=(0,l.useState)(e.latex),a=(0,l.useRef)(null),s=(0,l.useRef)(i),d=(0,l.useCallback)((function(t){if(!t)return;const n=u.MathField(t,{handlers:{edit:function(t){var n,r;if(t.el().contains(document.activeElement)){const t=null===(n=a.current)||void 0===n?void 0:n.latex();t&&(null===(r=e.onChange)||void 0===r||r.call(e,s.current,t),o(t),s.current=t)}},enter:function(){var t;null===(t=e.onEnter)||void 0===t||t.call(e)}}});n.latex(e.latex),r(n),a.current=n}),[]);return(0,l.useEffect)((function(){n&&n.latex()!=e.latex&&(null==n||n.latex(e.latex),t())}),[n,e.latex]),{ref:d,mq:n,isError:""===(null==n?void 0:n.latex())&&""!==e.latex,lastValue:i}};const s=o(n(5968)),l=n(5442),c=a(n(9957)),u=s.getInterface(2)},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n={attributes:!1,characterData:!1,childList:!0,subtree:!1}){(0,r.useEffect)((()=>{if(!e.current)return;const r=new MutationObserver(t);return r.observe(e.current,n),()=>r.disconnect()}),[t,n])};const r=n(5442)},9957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)(0);return()=>t((e=>(e+1)%(Number.MAX_SAFE_INTEGER-1)))};const r=n(5442)},8115:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=r(n(7204)),s=n(2373),l=(0,o.forwardRef)(((e,t)=>{const{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,textAreaProps:f,toolbarRoot:p}=e,[h,g]=(0,o.useState)(p),m=(0,o.useRef)(null);return(0,o.useEffect)((()=>{p?g(p):m.current&&g(m.current)}),[p,m]),(0,i.jsxs)(s.EditorStateProvider,{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,children:[p?null:(0,i.jsx)("div",{ref:m,className:"rich-text-editor-toolbar-root"}),(0,i.jsx)(a.default,Object.assign({},f,{toolbarRoot:h,ref:t}))]})}));t.default=l},6482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)([]),[n,i]=(0,r.useState)(0),o=(0,r.useRef)(e),a=(0,r.useRef)(n),s=e=>{o.current=e,t(e)},l=e=>{a.current=e,i(e)};return{canUndo:0!==n,canRedo:n<e.length-1,write:e=>{if(e===o.current.at(a.current))return;const t=[...o.current.slice(0,a.current+1),e];s(t),l(t.length-1)},clear:()=>{s([""]),l(0)},undo:()=>{const e=a.current-1;if(e<0)return;const t=o.current.at(e);return l(e),t},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),t}}};const r=n(5442)},2373:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,o.useContext)(m);if(!e)throw Error("Tried to use Editor State Context outside a Provider");return e},t.EditorStateProvider=function({children:e,language:t="FI",getPasteSource:n=b,allowedFileTypes:r=["image/png","image/jpeg"],onValueChange:y=(()=>{}),initialValue:x="",baseUrl:w=""}){var T;const[M,A]=(0,o.useState)(!1),[E,C]=(0,o.useState)(!1),[N,S]=(0,o.useState)(!1),[k,j]=(0,o.useState)(!1),[D,O]=(0,o.useState)(null),[L,R]=(0,o.useState)(!1),P=null!==(T=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==T?T:"0",z=(0,s.default)(),U=(0,a.default)(),_=(0,o.useRef)(null),F={FI:d.default,SV:f.default}[t];function B(e,t){const n=(0,p.createPortal)((0,i.jsx)(c.default,Object.assign({onOpen:function(e){U.clear(),O(e),A(!0),C(!0)},onBlur:function(t){var n;O(null),C(!1),U.clear(),Z();const r=null===(n=window.getSelection())||void 0===n?void 0:n.anchorNode;if(t)I(e,t);else if(r){const e=g(r);e&&I(e)}},onChange:function(e){U.write(e)},onEditorRemoved:function(){var t,n;z.delete(e);const r=e;(null===(t=r.previousSibling)||void 0===t?void 0:t.textContent)===h.nbsp&&r.previousSibling.remove(),(null===(n=r.nextSibling)||void 0===n?void 0:n.textContent)===h.nbsp&&r.nextSibling.remove(),r.remove(),U.clear()},errorText:F.editor.render_error},t)),e);z.set(e,n)}function G(){if(!_.current)return;const e=Array.from(_.current.querySelectorAll(`span.${u.MATH_EDITOR_CLASS}`)),t=Array.from(_.current.querySelectorAll('img[src*="/math.svg?"]')),n=[].concat(e.filter((e=>{var t;return!z.has(e)&&(null===(t=e.querySelector("img"))||void 0===t?void 0:t.alt)})).map((e=>[e,e.querySelector("img").alt]))).concat(t.filter((e=>!z.has(e)&&e instanceof HTMLImageElement&&e.alt&&null===e.closest(`span.${u.MATH_EDITOR_CLASS}`))).map((e=>[e,e.alt])));for(const[e,t]of n){const n=(0,u.createMathStub)(v());e.replaceWith(n),B(n,{initialLatex:t})}}function Z(){setTimeout((()=>{var e;const t=null===(e=_.current)||void 0===e?void 0:e.innerHTML;t&&y((0,h.getAnswer)(t))}),0)}return(0,l.default)(_,(function(e){e.flatMap((e=>Array.from(e.removedNodes))).filter((e=>z.has(e))).forEach((e=>{z.delete(e)}))})),(0,o.useEffect)((()=>{!L&&_.current&&(x&&(_.current.innerHTML=x),setTimeout((()=>{G(),R(!0)}),0))}),[L,x,_.current]),(0,i.jsx)(m.Provider,{value:{isToolbarOpen:"0"!==P||M,isMathToolbarOpen:"2"===P||E,showToolbar:()=>A(!0),hideToolbar:()=>A(!1),isToolbarExpanded:N,expandToolbar:()=>S(!0),collapseToolbar:()=>S(!1),isHelpDialogOpen:k,showHelpDialog:()=>j(!0),hideHelpDialog:()=>j(!1),activeMathEditor:D,setActiveMathEditor:O,ref:_,mathEditorPortals:z,spawnMathEditor:B,spawnMathEditorAtCursor:function(){B((0,u.createMathStub)(v(),!0),{initialOpen:!0})},spawnMathEditorInNewLine:function(e){var t,n,r,i;const o=e.closest(`.${u.MATH_EDITOR_CLASS}`),a=(0,u.createMathStub)(v(),!1),s=null==o?void 0:o.nextSibling;s?(null===(t=_.current)||void 0===t||t.insertBefore(a,s),null===(n=_.current)||void 0===n||n.insertBefore(document.createElement("br"),a)):(null===(r=_.current)||void 0===r||r.appendChild(document.createElement("br")),null===(i=_.current)||void 0===i||i.appendChild(a)),B(a,{initialOpen:!0})},initMathEditors:G,canUndo:U.canUndo,canRedo:U.canRedo,undo:U.undo,redo:U.redo,t:F,handlePastedImage:n,allowedFileTypes:r,onAnswerChange:Z,initialValue:x,baseUrl:w},children:e})};const i=n(1085),o=n(5442),a=r(n(6482)),s=r(n(7548)),l=r(n(5702)),c=r(n(3671)),u=n(7469),d=r(n(1414)),f=r(n(42)),p=n(6003),h=n(2127),g=e=>{var t;return(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(u.MATH_EDITOR_CLASS))?e:e.parentElement?g(e.parentElement):null},m=(0,o.createContext)(null);let y=0;const v=()=>{const e=y;return y=e+1,e},b=e=>new Promise((t=>{const n=new FileReader;n.onload=e=>t(n.result),n.readAsDataURL(e)})),I=(e,t="after")=>{const n=window.getSelection(),r=document.createRange();"before"===t?r.setStartBefore(e):r.setStartAfter(e),r.collapse(!0),null==n||n.removeAllRanges(),null==n||n.addRange(r)}},2127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnswer=t.isBr=t.isTextNode=t.isAddMutation=t.isRemoveMutation=t.nbsp=t.eventHandlerWithoutFocusLoss=void 0;const r=n(7772);t.eventHandlerWithoutFocusLoss=e=>t=>(e&&e(),t.preventDefault(),t.stopPropagation(),!1),t.nbsp=" ",t.isRemoveMutation=e=>e.removedNodes.length>0,t.isAddMutation=e=>e.addedNodes.length>0,t.isTextNode=e=>e&&e.nodeType===Node.TEXT_NODE,t.isBr=e=>e&&"BR"===e.nodeName,t.getAnswer=e=>{const t=(0,r.sanitizeForExport)(e),n=(new DOMParser).parseFromString(t,"text/html").body,a=(new DOMParser).parseFromString(t.replaceAll("<br />","\n"),"text/html").body.innerText,s=n.querySelectorAll(":scope > img:not([data-math-svg])"),l=n.querySelectorAll("span.math-editor-wrapper").length;return n.querySelectorAll("span.math-editor-wrapper").forEach((e=>{const t=e.querySelector("img");t&&e.replaceWith(t)})),{answerHtml:0===(null==a?void 0:a.trim().length)&&0===s.length&&l>0?"":i(t),answerText:o(null!=a?a:""),imageCount:s.length}};const i=e=>e.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,""),o=e=>e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")},7469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MATH_EDITOR_CLASS=void 0,t.createMathStub=function(e,n=!1){const i=document.createElement("span");if(i.className=t.MATH_EDITOR_CLASS,i.id=`math-editor-${e}`,i.style.display="contents",i.contentEditable="false",n){const e=window.getSelection();if(!e||0===e.rangeCount)return i;const n=e.getRangeAt(0);n.deleteContents(),n.insertNode(i);const o=i.parentNode;o.className===t.MATH_EDITOR_CLASS&&o.insertAdjacentElement(i.nextSibling?"beforebegin":"afterend",i),i.insertAdjacentText("beforebegin",r.nbsp),i.insertAdjacentText("afterend",r.nbsp),e.removeAllRanges(),n.setStartAfter(i),n.setEndAfter(i),e.addRange(n)}return i};const r=n(2127);t.MATH_EDITOR_CLASS="math-editor-wrapper"},7772:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=a,t.sanitizeForExport=function(e){return[e=>a(e,Object.assign(Object.assign({},o),{transformTags:{span:(e,t)=>"math-editor-wrapper"===t.class?{tagName:"",attribs:{}}:{tagName:e,attribs:t}}})),e=>e.trim(),e=>e.replace(/ /g,"")].reduce(((e,t)=>t(e)),e)};const i=r(n(7521)),o={allowedTags:["img","br","span"],allowedAttributes:{img:["src","alt","data-math-svg"],span:["class"]},allowedSchemes:["data"],allowedClasses:{span:["math-editor-wrapper"]},transformTags:{img:(e,t)=>{var n;return{tagName:e,attribs:(null===(n=t.src)||void 0===n?void 0:n.includes("math.svg"))?Object.assign(Object.assign({},t),{"data-math-svg":"true"}):t}},span:(e,t)=>"math-editor-wrapper"===t.class?{tagName:e,attribs:t}:{tagName:"",attribs:{text:""}}}};function a(e,t){return[e=>function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),e=>(0,i.default)(e,Object.assign(Object.assign({},o),{allowedTags:[...o.allowedTags,"div","p"],allowedSchemes:["data","http","https"]})),e=>function(e){var t;const n=document.createElement("div");n.innerHTML=e;do{let e;for(let r=0;r<n.childNodes.length;r++){const i=n.childNodes[r];if(s(i)){for(void 0!==e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(null!==(t=e.textContent)&&void 0!==t?t:"")&&n.insertBefore(document.createElement("br"),i),i.lastChild&&"BR"!==i.lastChild.nodeName&&i.insertBefore(document.createElement("br"),null);i.childNodes.length&&null!==i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i)}e=i}}while(Array.prototype.some.call(n.childNodes,(e=>s(e))));return n.innerHTML}(e),e=>(0,i.default)(e,Object.assign(Object.assign({},o),t))].reduce(((e,t)=>t(e)),e)}function s(e){return"DIV"===e.nodeName||"P"===e.nodeName}},7521:(e,t,n)=>{const r=n(5482),i=n(2189),{isPlainObject:o}=n(993),a=n(2743),s=n(8287),{parse:l}=n(9274),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=g;const h=/^[^\0\t\n\f\r /<=>]+$/;function g(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let y="",v="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=y.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){k.length&&(k[k.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){k.length&&c.includes(this.tag)&&k[k.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},g.defaults,t)).parser=Object.assign({},m,t.parser);const I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){I(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const x=t.nonTextTags||["script","style","textarea","option"];let w,T;t.allowedAttributes&&(w={},T={},d(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&(T[t]=new RegExp("^("+n.join("|")+")$"))})));const M={},A={},E={};d(t.allowedClasses,(function(e,t){if(w&&(f(w,t)||(w[t]=[]),w[t].push("class")),M[t]=e,Array.isArray(e)){const n=[];M[t]=[],E[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}}));const C={};let N,S,k,j,D,O,L;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=g.simpleTransform(e)),"*"===t?N=n:C[t]=n}));let R=!1;z();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&z(),O)return void L++;const r=new b(e,n);k.push(r);let i=!1;const c=!!r.text;let u;if(f(C,e)&&(u=C[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),N&&(u=N(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),(!I(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(j)||null!=t.nestingLimit&&S>=t.nestingLimit)&&(i=!0,j[S]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==x.indexOf(e)&&(O=!0,L=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;v=y,y=""}y+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||f(w,e)||w["*"])&&d(n,(function(n,i){if(!h.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!w||f(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||f(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&_(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=F(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=F(n);if(r.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=s(n);if(e.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),e=p(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=p(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=M[e],o=M["*"],s=A[e],l=E[e],c=[s,A["*"]].concat(l).filter((function(e){return e}));if(!(u=n,d=t&&o?a(t,o):t||o,g=c,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||g.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let r;return r=t[n.selector]&&t["*"]?a(t[n.selector],t["*"]):t[n.selector]||t["*"],r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(r),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");y+=" "+i,n&&n.length?y+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(y+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?y+=" />":(y+=">",!r.innerText||c||t.textFilter||(y+=U(r.innerText),R=!0)),i&&(y=v+U(y),v="")},ontext:function(e){if(O)return;const n=k[k.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||I(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?y+=t.textFilter(n,r):R||(y+=n)}else y+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(O){if(L--,L)return;O=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);O=!!t.enforceHtmlBoundary&&"html"===e,S--;const i=j[S];if(i){if(delete j[S],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();v=y,y=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?y=y.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!I(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(y=v,v=""):(y+="</"+e+">",i&&(y=v+U(y),v=""),R=!1))}},t.parser);return P.write(e),P.end(),y;function z(){y="",S=0,k=[],j={},D={},O=!1,L=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function _(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const m={decodeEntities:!0};g.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},g.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2146:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},3864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>on,StyleSheetConsumer:()=>St,StyleSheetContext:()=>Nt,StyleSheetManager:()=>Dt,ThemeConsumer:()=>Zt,ThemeContext:()=>Gt,ThemeProvider:()=>qt,__PRIVATE__:()=>an,createGlobalStyle:()=>tn,css:()=>Jt,default:()=>Kt,isStyledComponent:()=>Je,keyframes:()=>nn,styled:()=>Kt,useTheme:()=>Ht,version:()=>de,withTheme:()=>rn});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(5442),a=n.n(o),s=n(2146),l=n.n(s),c="-ms-",u="-moz-",d="-webkit-",f="comm",p="rule",h="decl",g="@import",m="@keyframes",y="@layer",v=Math.abs,b=String.fromCharCode,I=Object.assign;function x(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function C(e){return e.length}function N(e){return e.length}function S(e,t){return t.push(e),e}function k(e,t){return e.filter((function(e){return!w(e,t)}))}var j=1,D=1,O=0,L=0,R=0,P="";function z(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:D,length:a,return:"",siblings:s}}function U(e,t){return I(z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _(e){for(;e.root;)e=U(e.root,{children:[e]});S(e,e.siblings)}function F(){return R=L>0?A(P,--L):0,D--,10===R&&(D=1,j--),R}function B(){return R=L<O?A(P,L++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,L)}function Z(){return L}function H(e,t){return E(P,e,t)}function q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return x(H(L-1,Q(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(R=G())&&R<33;)B();return q(e)>2||q(R)>3?"":" "}function W(e,t){for(;--t&&B()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return H(e,Z()+(t<6&&32==G()&&32==B()))}function Q(e){for(;B();)switch(R){case e:return L;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:B()}return L}function J(e,t){for(;B()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,L-1)+"*"+b(47===e?e:B())}function X(e){for(;!q(G());)B();return H(e,L)}function $(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case y:if(e.children.length)break;case g:case h:return e.return=e.return||e.value;case f:return"";case m:return e.return=e.value+"{"+$(e.children,r)+"}";case p:if(!C(e.value=e.props.join(",")))return""}return C(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return d+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return d+e+u+e+c+e+e;case 5936:switch(A(e,t+11)){case 114:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return d+e+c+e+e;case 6165:return d+e+c+"flex-"+e+e;case 5187:return d+e+T(e,/(\w+).+(:[^]+)/,d+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return d+e+c+"flex-item-"+T(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return d+e+c+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return d+e+c+T(e,"shrink","negative")+e;case 5292:return d+e+c+T(e,"basis","preferred-size")+e;case 6060:return d+"box-"+T(e,"-grow","")+d+e+c+T(e,"grow","positive")+e;case 4554:return d+T(e,/([^-])(transform)/g,"$1"+d+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+E(e,t)+e;break;case 2592:case 3360:return c+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:c+T(e,"-start","")+e+c+"grid-row-span:"+(~M(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":c+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,d+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?ee(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return c+n+":"+r+s+(i?c+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+d)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===A(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return T(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case m:return $([U(e,{value:T(e.value,"@","@"+d)})],r);case p:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_(U(e,{props:[T(t,/:(read-\w+)/,":"+u+"$1")]})),_(U(e,{props:[t]})),I(e,{props:k(n,r)});break;case"::placeholder":_(U(e,{props:[T(t,/:(plac\w+)/,":"+d+"input-$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,":"+u+"$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,c+"input-$1")]})),_(U(e,{props:[t]})),I(e,{props:k(n,r)})}return""}))}}function ne(e){return function(e){return P="",e}(re("",null,null,null,[""],e=function(e){return j=D=1,O=C(P=e),L=0,[]}(e),0,[0],e))}function re(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,I=0,x="",w=i,E=o,N=r,k=x;m;)switch(h=I,I=B()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(V(I),"&","&\f"),"&\f",v(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=V(I);break;case 9:case 10:case 13:case 32:k+=Y(h);break;case 92:k+=W(Z()-1,7);continue;case 47:switch(G()){case 42:case 47:S(oe(J(B(),Z()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=C(k)*y;case 125*g:case 59:case 0:switch(I){case 0:case 125:m=0;case 59+u:-1==y&&(k=T(k,/\f/g,"")),p>0&&C(k)-d&&S(p>32?ae(k+";",r,n,d-1,l):ae(T(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(S(N=ie(k,t,n,c,u,i,s,x,w=[],E=[],d,o),o),123===I)if(0===u)re(k,t,N,N,w,o,d,s,E);else switch(99===f&&110===A(k,3)?100:f){case 100:case 108:case 109:case 115:re(e,N,N,r&&S(ie(e,N,N,0,0,i,s,x,i,w=[],d,E),E),i,E,d,s,r?w:E);break;default:re(k,N,N,N,[""],E,0,s,E)}}c=u=p=0,g=y=1,x=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==I)--g;else if(125==I&&0==g++&&125==F())continue;switch(k+=b(I),I*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*y,y=1;break;case 64:45===G()&&(k+=V(B())),f=G(),u=d=C(x=k+=X(Z())),I++;break;case 45:45===h&&2==C(k)&&(g=0)}}return o}function ie(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=0===i?o:[""],g=N(h),m=0,y=0,b=0;m<r;++m)for(var I=0,w=E(e,f+1,f=v(y=a[m])),M=e;I<g;++I)(M=x(y>0?h[I]+" "+w:T(w,/&\f/g,h[I])))&&(l[b++]=M);return z(e,t,n,0===i?p:s,l,c,u,d)}function oe(e,t,n,r){return z(e,t,n,f,b(R),E(e,2,-2),0,r)}function ae(e,t,n,r,i){return z(e,t,n,h,E(e,0,r),E(e,r+1,-1),r,i)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},le="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",de="6.1.13",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ge={},me=(new Set,Object.freeze([])),ye=Object.freeze({});function ve(e,t,n){return void 0===n&&(n=ye),e.theme!==n.theme&&e.theme||t||n.theme}var be=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ie=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function we(e){return e.replace(Ie,"-").replace(xe,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var Ce,Ne=5381,Se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ke=function(e){return Se(Ne,e)};function je(e){return Ee(ke(e)>>>0)}function De(e){return e.displayName||e.name||"Component"}function Oe(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Pe=Le?Symbol.for("react.forward_ref"):60112,ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Ce={})[Pe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[Re]=_e,Ce);function Be(e){return("type"in(t=e)&&t.type.$$typeof)===Re?_e:"$$typeof"in e?Fe[e.$$typeof]:ze;var t}var Ge=Object.defineProperty,Ze=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,qe=Object.getOwnPropertyDescriptor,Ve=Object.getPrototypeOf,Ye=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ye){var r=Ve(t);r&&r!==Ye&&We(e,r,n)}var i=Ze(t);He&&(i=i.concat(He(t)));for(var o=Be(e),a=Be(t),s=0;s<i.length;++s){var l=i[s];if(!(l in Ue||n&&n[l]||a&&l in a||o&&l in o)){var c=qe(t,l);try{Ge(e,l,c)}catch(e){}}}}return e}function Qe(e){return"function"==typeof e}function Je(e){return"object"==typeof e&&"styledComponentId"in e}function Xe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $e(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ke(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=et(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=et(e[r],t[r]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),it=new Map,ot=new Map,at=1,st=function(e){if(it.has(e))return it.get(e);for(;ot.has(at);)at++;var t=at++;return it.set(e,t),ot.set(t,e),t},lt=function(e,t){at=t+1,it.set(e,t),ot.set(t,e)},ct="style[".concat(le,"][").concat(ue,'="').concat(de,'"]'),ut=new RegExp("^".concat(le,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dt=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ft=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fe),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(ut);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(lt(u,c),dt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},pt=function(e){for(var t=document.querySelectorAll(ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(le)!==ce&&(ft(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ht(){return n.nc}var gt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(le,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(le,ce),r.setAttribute(ue,de);var a=ht();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},mt=function(){function e(e){this.element=gt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),yt=function(){function e(e){this.element=gt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),vt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bt=pe,It={isServer:!pe,useCSSOMInjection:!he},xt=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={});var i=this;this.options=r(r({},It),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&bt&&(bt=!1,pt(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return ot.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(le,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(fe)},o=0;o<n;o++)i(o);return r}(i)}))}return e.registerId=function(e){return st(e)},e.prototype.rehydrate=function(){!this.server&&pe&&pt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new vt(n):t?new mt(n):new yt(n)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(st(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(st(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(st(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}function At(e){var t,n,r,i=void 0===e?ye:e,o=i.options,a=void 0===o?ye:o,s=i.plugins,l=void 0===s?me:s,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wt,n).replace(r,c))})),a.prefix&&u.push(te),u.push(K);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Tt,""),c=ne(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(c=Mt(c,a.namespace));var d,f,p,h=[];return $(c,(d=u.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=N(d),function(e,t,n,r){for(var i="",o=0;o<f;o++)i+=d[o](e,t,n,r)||"";return i})),h};return d.hash=l.length?l.reduce((function(e,t){return t.name||nt(15),Se(e,t.name)}),Ne).toString():"",d}var Et=new xt,Ct=At(),Nt=a().createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Ct}),St=Nt.Consumer,kt=a().createContext(void 0);function jt(){return(0,o.useContext)(Nt)}function Dt(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=jt().styleSheet,s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),c=(0,o.useMemo)((function(){return At({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return a().createElement(Nt.Provider,{value:u},a().createElement(kt.Provider,{value:c},e.children))}var Ot=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ct);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ct),this.name+e.hash},e}(),Lt=function(e){return e>="A"&&e<="Z"};function Rt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Lt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Pt=function(e){return null==e||!1===e||""===e},zt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Qe(a)?r.push("".concat(Rt(o),":"),a,";"):Ke(a)?r.push.apply(r,i(i(["".concat(o," {")],zt(a),!1),["}"],!1)):r.push("".concat(Rt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ut(e,t,n,r){return Pt(e)?[]:Je(e)?[".".concat(e.styledComponentId)]:Qe(e)?!Qe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ut(e(t),t,n,r):e instanceof Ot?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?zt(e):Array.isArray(e)?Array.prototype.concat.apply(me,e.map((function(e){return Ut(e,t,n,r)}))):[e.toString()];var i}function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Qe(n)&&!Je(n))return!1}return!0}var Ft=ke(de),Bt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=Se(Ft,t),this.baseStyle=n,xt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Xe(r,this.staticRulesId);else{var i=$e(Ut(this.rules,e,t,n)),o=Ee(Se(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=Xe(r,o),this.staticRulesId=o}else{for(var s=Se(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=$e(Ut(u,e,t,n));s=Se(s,d+c),l+=d}}if(l){var f=Ee(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Xe(r,f)}}return r},e}(),Gt=a().createContext(void 0),Zt=Gt.Consumer;function Ht(){var e=(0,o.useContext)(Gt);if(!e)throw nt(18);return e}function qt(e){var t=a().useContext(Gt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Qe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?a().createElement(Gt.Provider,{value:n},e.children):null}var Vt={};function Yt(e,t,n){var i=Je(e),s=e,l=!Oe(e),c=t.attrs,u=void 0===c?me:c,d=t.componentId,f=void 0===d?function(e,t){var n="string"!=typeof e?"sc":we(e);Vt[n]=(Vt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Vt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Oe(e)?"styled.".concat(e):"Styled(".concat(De(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,m=i&&s.attrs?s.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var I=new Bt(n,g,i?s.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,f=a().useContext(Gt),p=jt(),h=e.shouldForwardProp||p.shouldForwardProp,g=ve(t,f,l)||ye,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Qe(i=e[a])?i(o):i;for(var l in s)o[l]="className"===l?Xe(o[l],s[l]):"style"===l?r(r({},o[l]),s[l]):s[l]}return t.className&&(o.className=Xe(o.className,t.className)),o}(i,t,g),y=m.as||d,v={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?v.as=m.forwardedAs:h&&!h(b,y)||(v[b]=m[b]));var I=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),x=Xe(c,u);return I&&(x+=" "+I),m.className&&(x+=" "+m.className),v[Oe(y)&&!be.has(y)?"class":"className"]=x,v.ref=n,(0,o.createElement)(y,v)}(w,e,t)}x.displayName=h;var w=a().forwardRef(x);return w.attrs=m,w.componentStyle=I,w.displayName=h,w.shouldForwardProp=y,w.foldedComponentIds=i?Xe(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=g,w.target=i?s.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)et(e,i[r],!0);return e}({},s.defaultProps,e):e}}),tt(w,(function(){return".".concat(w.styledComponentId)})),l&&We(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Wt(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Qt=function(e){return Object.assign(e,{isCss:!0})};function Jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Qe(e)||Ke(e))return Qt(Ut(Wt(me,i([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ut(r):Qt(Ut(Wt(r,t)))}function Xt(e,t,n){if(void 0===n&&(n=ye),!t)throw nt(1,t);var o=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Jt.apply(void 0,i([r],o,!1)))};return o.attrs=function(i){return Xt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Xt(e,t,r(r({},n),i))},o}var $t=function(e){return Xt(Yt,e)},Kt=$t;be.forEach((function(e){Kt[e]=$t(e)}));var en=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),xt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r($e(Ut(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Jt.apply(void 0,i([e],t,!1)),s="sc-global-".concat(je(JSON.stringify(o))),l=new en(o,s),c=function(e){var t=jt(),n=a().useContext(Gt),r=a().useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),a().useLayoutEffect((function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function u(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,ge,n,o);else{var a=r(r({},t),{theme:ve(t,i,c.defaultProps)});l.renderStyles(e,a,n,o)}}return a().memo(c)}function nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$e(Jt.apply(void 0,i([e],t,!1))),o=je(r);return new Ot(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ve(t,a().useContext(Gt),e.defaultProps);return a().createElement(e,r({},t,{theme:i,ref:n}))}));return t.displayName="WithTheme(".concat(De(e),")"),We(t,e)}var on=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ht(),r=$e([n&&'nonce="'.concat(n,'"'),"".concat(le,'="true"'),"".concat(ue,'="').concat(de,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=e.instance.toString();if(!n)return[];var i=((t={})[le]="",t[ue]=de,t.dangerouslySetInnerHTML={__html:n},t),o=ht();return o&&(i.nonce=o),[a().createElement("style",r({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new xt({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return a().createElement(Dt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),an={StyleSheet:xt,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>x,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>I});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},y=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||f(t)<0||!m(e,t))},v=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},I=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):c(e,t.includeContainer,y.bind(null,t)),b(n)},x=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,m.bind(null,t))},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&y(t,e)},T=r.concat("iframe").join(","),M=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,T)&&m(t,e)}},758:function(e,t){!function(e){"use strict";function t(e){return null==e}function n(e){throw new Error("Argument "+e+" is empty.")}function r(e){return"function"==typeof e&&"getType"in e}function i(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions"')}function o(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if(null==e.getType)throw new Error("Argument contains array with invalid element at index "+t+', it should be an action-creator instance from "typesafe-actions"')}function a(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!a(e)}function l(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function c(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if("string"!=typeof e&&"symbol"!=typeof e)throw new Error("Argument contains array with invalid element at index "+t+", it should be of type: string | symbol")}function u(e,r,o,a){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:o,error:a}}function d(e,r){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){var t=null!=r?r.apply(void 0,arguments):void 0;return Object.assign({type:e},t)}),{getType:function(){return e},toString:function(){return e}})}function f(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return d(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==r&&null==i||(e=null!=r?r.apply(void 0,arguments):void 0,t=null!=i?i.apply(void 0,arguments):void 0),Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function p(e){return t(e)&&n(1),r(e)||i(1),e.getType()}function h(e,r){t(e)&&n(1),s(e)&&l(1);var i=null!=r?r(e):function(){return{type:e}};return Object.assign(i,{getType:function(){return e},toString:function(){return e}})}var g={createAction:function(e,t){var n=null==t?function(){return u(e)}:t(u.bind(null,e));return Object.assign(n,{getType:function(){return e},toString:function(){return e}})},createCustomAction:h,createStandardAction:function(e){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){return h(e,(function(e){return function(t,n){return{type:e,payload:t,meta:n}}}))}),{map:function(t){return h(e,(function(e){return function(n,r){return Object.assign(t(n,r),{type:e})}}))}})}};e.action=u,e.createAction=f,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?f(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?f(e)():void(t<3&&function(e){throw new Error("Argument "+e+' is invalid, it should be an action type of "string | symbol" or a tuple of "[string | symbol, Function, Function?]"')}(t))}));return{request:i[0],success:i[1],failure:i[2],cancel:i[3]}}},e.createCustomAction=d,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),o=function(n,o){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):a(e)?e:function(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol')}(t+1)})).forEach((function(e){return l[e]=o})),e(t,Object.assign({},i,{},l))};return Object.assign((function(e,n){if(void 0===e&&(e=t),i.hasOwnProperty(n.type)){var r=i[n.type];if("function"!=typeof r)throw Error('Reducer under "'+n.type+'" key is not a valid reducer');return r(e,n)}return e}),{handlers:Object.assign({},i),handleAction:o,handleType:o})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(o);var a=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?a:a(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var o=function(e){return i.includes(e.type)};return void 0===r?o:o(r)}}(t)},5969:(e,t,n)=>{"use strict";var r=n(5442),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},5919:(e,t,n)=>{"use strict";e.exports=n(5969)},9002:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5442:t=>{"use strict";t.exports=e},6003:e=>{"use strict";e.exports=t},3215:()=>{},8892:()=>{},5324:()=>{},8645:()=>{},588:()=>{},1198:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function i(e,i){if(i){var o=typeof i;"string"===o?function(e,t){for(var n=t.split(r),i=n.length,o=0;o<i;++o)e[n[o]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,i):"number"===o&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new e;t(o,r);var a=[];for(var s in o)o[s]&&a.push(s);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var o={};n=n||[null,r({}),r([]),r(r)];for(var s=2&t&&e;"object"==typeof s&&!~n.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{Attachments:()=>Cd,Exam:()=>ky,GradingAnswer:()=>pb,GradingInstructions:()=>qy,Results:()=>Dv,parseExam:()=>ob});var e=a(5442),t=a.n(e);a(9002),Object.create(null);const n={},r=(...e)=>{c(e[0])&&n[e[0]]||(c(e[0])&&(n[e[0]]=new Date),((...e)=>{console?.warn&&(c(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))})(...e))},i=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},o=(e,t,n)=>{e.loadNamespaces(t,i(e,n))},l=(e,t,n,r)=>{c(n)&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,i(e,r))},c=e=>"string"==typeof e,u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},f=e=>d[e];let p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(u,f)};const h=(0,e.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]??=!0}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),y=(t,n={})=>{const{i18n:i}=n,{i18n:a,defaultNS:s}=(0,e.useContext)(h)||{},u=i||a||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return c(t)?t:"object"==typeof(n=t)&&null!==n&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}u.options.react?.wait&&r("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...p,...u.options.react,...n},{useSuspense:f,keyPrefix:y}=d;let v=t||s||u.options?.defaultNS;v=c(v)?[v]:v||["translation"],u.reportNamespaces.addUsedNamespaces?.(v);const b=(u.isInitialized||u.initializedStoreOnce)&&v.every((e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(r("i18n.languages were undefined or empty",t.languages),!0))(e,u,d))),I=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),[T,M]=(0,e.useState)(x);let A=v.join();n.lng&&(A=`${n.lng}${A}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(A),C=(0,e.useRef)(!0);(0,e.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=d;C.current=!0,b||f||(n.lng?l(u,n.lng,v,(()=>{C.current&&M(w)})):o(u,v,(()=>{C.current&&M(w)}))),b&&E&&E!==A&&C.current&&M(w);const r=()=>{C.current&&M(w)};return e&&u?.on(e,r),t&&u?.store.on(t,r),()=>{C.current=!1,u&&e?.split(" ").forEach((e=>u.off(e,r))),t&&u&&t.split(" ").forEach((e=>u.store.off(e,r)))}}),[u,A]),(0,e.useEffect)((()=>{C.current&&b&&M(x)}),[u,y,b]);const N=[T,u,b];if(N.t=T,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,v,(()=>e())):o(u,v,(()=>e()))}))};function v({i18n:t,defaultNS:n,children:r}){const i=(0,e.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,e.createElement)(h.Provider,{value:i},r)}const b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},I=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[x?a:++r];if(!1===t(i[s],s,i))break}return e};var x;const w=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},T="object"==typeof global&&global&&global.Object===Object&&global;var M="object"==typeof self&&self&&self.Object===Object&&self;const A=T||M||Function("return this")(),E=A.Symbol;var C=Object.prototype,N=C.hasOwnProperty,S=C.toString,k=E?E.toStringTag:void 0;var j=Object.prototype.toString;var D=E?E.toStringTag:void 0;const O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?function(e){var t=N.call(e,k),n=e[k];try{e[k]=void 0;var r=!0}catch(e){}var i=S.call(e);return r&&(t?e[k]=n:delete e[k]),i}(e):function(e){return j.call(e)}(e)},L=function(e){return null!=e&&"object"==typeof e},R=function(e){return L(e)&&"[object Arguments]"==O(e)};var P=Object.prototype,z=P.hasOwnProperty,U=P.propertyIsEnumerable;const _=R(function(){return arguments}())?R:function(e){return L(e)&&z.call(e,"callee")&&!U.call(e,"callee")},F=Array.isArray;var B="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=B&&"object"==typeof module&&module&&!module.nodeType&&module,Z=G&&G.exports===B?A.Buffer:void 0;const H=(Z?Z.isBuffer:void 0)||function(){return!1};var q=/^(?:0|[1-9]\d*)$/;const V=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&q.test(e))&&e>-1&&e%1==0&&e<t},Y=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var W={};W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Arguments]"]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object Boolean]"]=W["[object DataView]"]=W["[object Date]"]=W["[object Error]"]=W["[object Function]"]=W["[object Map]"]=W["[object Number]"]=W["[object Object]"]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object WeakMap]"]=!1;const Q=function(e){return function(t){return e(t)}};var J="object"==typeof exports&&exports&&!exports.nodeType&&exports,X=J&&"object"==typeof module&&module&&!module.nodeType&&module,$=X&&X.exports===J&&T.process;const K=function(){try{return X&&X.require&&X.require("util").types||$&&$.binding&&$.binding("util")}catch(e){}}();var ee=K&&K.isTypedArray;const te=ee?Q(ee):function(e){return L(e)&&Y(e.length)&&!!W[O(e)]};var ne=Object.prototype.hasOwnProperty;const re=function(e,t){var n=F(e),r=!n&&_(e),i=!n&&!r&&H(e),o=!n&&!r&&!i&&te(e),a=n||r||i||o,s=a?w(e.length,String):[],l=s.length;for(var c in e)!t&&!ne.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||V(c,l))||s.push(c);return s};var ie=Object.prototype;const oe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ie)},ae=function(e,t){return function(n){return e(t(n))}},se=ae(Object.keys,Object);var le=Object.prototype.hasOwnProperty;const ce=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ue=function(e){if(!ce(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=function(e){return null!=e&&Y(e.length)&&!ue(e)},fe=function(e){return de(e)?re(e):function(e){if(!oe(e))return se(e);var t=[];for(var n in Object(e))le.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},pe=function(e,t){return e&&I(e,t,fe)},he=function(e,t){return function(n,r){if(null==n)return n;if(!de(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(pe),ge=function(e){return e},me=function(e){return"function"==typeof e?e:ge},ye=function(e,t){return(F(e)?b:he)(e,me(t))},ve=(0,e.createContext)({}),be=" ";function Ie(e,t){const n=null!=t?xe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function xe(e){return"function"==typeof e?t=>t.namespaceURI===Ts&&e(t):Array.isArray(e)?t=>t.namespaceURI===Ts&&e.includes(t.localName):t=>t.namespaceURI===Ts&&t.localName===e}function we(e,t){const n=xe(t);return function e(t){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r];if(n(i))return i;const o=e(i);if(null!=o)return o}}(e)}function Te(e,t,n=!0){const r=xe(t),i=[];return function e(t){for(let o=0,a=t.children.length;o<a;o++){const a=t.children[o];r(a)?(i.push(a),n&&e(a)):e(a)}}(e),i}function Me(e,t){const n=xe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=xe(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function Ee(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function Ce(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ne(e,t){return"true"===Ee(e,t)}function Se(e,t){const n=[];for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r];n.push(t(i,r))}return n}function ke(e){return Te(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer"],!0)}function je(e){const t=Me(e,"question"),n=null==t?void 0:t.querySelectorAll("[question-id]");return n&&(null==n?void 0:n.length)>1}function De(e,t,...n){const r=document.createElement(e);return function(e,t){ye(t,((t,n)=>{"css"===n?e.style.cssText=t:n.startsWith("data-")?e.setAttribute(n,t):e[n]=t}))}(r,t),n.forEach((e=>r.appendChild("string"==typeof e?new Text(e):e))),r}function Oe(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ve),[i,o]=(0,e.useState)(!1),a=`${t}-${n}`;return(0,e.useEffect)((()=>{(null==r?void 0:r.includes(a))&&!i?o(!0):!(null==r?void 0:r.includes(a))&&i&&o(!1)}),[r]),i}function Le(e){var t,n,r;const i=!e.tagName&&Array.from((null===(t=e.parentNode)||void 0===t?void 0:t.childNodes)||[]).indexOf(e),o=Array.from((null===(n=e.parentElement)||void 0===n?void 0:n.children)||[]).indexOf(e);let a=`${e.nodeName}:${o>0?o:i}`,s=e;for(;s.parentElement;){s=s.parentElement;const e=s.getAttribute("display-number"),t=Number(e)?e:Array.from((null===(r=s.parentElement)||void 0===r?void 0:r.children)||[s]).indexOf(s);a=`${s.getAttribute("id")||s.nodeName}:${t} > ${a}`}return a}const Re=A["__core-js_shared__"];var Pe,ze=(Pe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+Pe:"";var Ue=Function.prototype.toString;const _e=function(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Fe=/^\[object .+?Constructor\]$/,Be=Function.prototype,Ge=Object.prototype,Ze=Be.toString,He=Ge.hasOwnProperty,qe=RegExp("^"+Ze.call(He).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ve=function(e){return!(!ce(e)||(t=e,ze&&ze in t))&&(ue(e)?qe:Fe).test(_e(e));var t},Ye=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0},We=function(){try{var e=Ye(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qe=function(e,t,n){"__proto__"==t&&We?We(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Je=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r},Xe=function(e,t,n,r){return he(e,(function(e,i,o){t(r,e,n(e),o)})),r},$e=function(e,t){return e===t||e!=e&&t!=t},Ke=function(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1};var et=Array.prototype.splice;function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},tt.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},tt.prototype.has=function(e){return Ke(this.__data__,e)>-1},tt.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const nt=tt,rt=Ye(A,"Map"),it=Ye(Object,"create");var ot=Object.prototype.hasOwnProperty;var at=Object.prototype.hasOwnProperty;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},st.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},st.prototype.get=function(e){var t=this.__data__;if(it){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0},st.prototype.has=function(e){var t=this.__data__;return it?void 0!==t[e]:at.call(t,e)},st.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=it&&void 0===t?"__lodash_hash_undefined__":t,this};const lt=st,ct=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function ut(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(rt||nt),string:new lt}},ut.prototype.delete=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return ct(this,e).get(e)},ut.prototype.has=function(e){return ct(this,e).has(e)},ut.prototype.set=function(e,t){var n=ct(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const dt=ut;function ft(e){var t=this.__data__=new nt(e);this.size=t.size}ft.prototype.clear=function(){this.__data__=new nt,this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ft.prototype.get=function(e){return this.__data__.get(e)},ft.prototype.has=function(e){return this.__data__.has(e)},ft.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!rt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};const pt=ft;function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ht.prototype.has=function(e){return this.__data__.has(e)};const gt=ht,mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},yt=function(e,t){return e.has(t)},vt=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new gt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!mt(t,(function(e,t){if(!yt(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f},bt=A.Uint8Array,It=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},xt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var wt=E?E.prototype:void 0,Tt=wt?wt.valueOf:void 0;const Mt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},At=function(e,t,n){var r=t(e);return F(e)?r:Mt(r,n(e))},Et=function(){return[]};var Ct=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,St=Nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Nt(e),(function(t){return Ct.call(e,t)})))}:Et;const kt=St,jt=function(e){return At(e,fe,kt)};var Dt=Object.prototype.hasOwnProperty;const Ot=Ye(A,"DataView"),Lt=Ye(A,"Promise"),Rt=Ye(A,"Set"),Pt=Ye(A,"WeakMap");var zt="[object Map]",Ut="[object Promise]",_t="[object Set]",Ft="[object WeakMap]",Bt="[object DataView]",Gt=_e(Ot),Zt=_e(rt),Ht=_e(Lt),qt=_e(Rt),Vt=_e(Pt),Yt=O;(Ot&&Yt(new Ot(new ArrayBuffer(1)))!=Bt||rt&&Yt(new rt)!=zt||Lt&&Yt(Lt.resolve())!=Ut||Rt&&Yt(new Rt)!=_t||Pt&&Yt(new Pt)!=Ft)&&(Yt=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case Gt:return Bt;case Zt:return zt;case Ht:return Ut;case qt:return _t;case Vt:return Ft}return t});const Wt=Yt;var Qt="[object Arguments]",Jt="[object Array]",Xt="[object Object]",$t=Object.prototype.hasOwnProperty;const Kt=function(e,t,n,r,i,o){var a=F(e),s=F(t),l=a?Jt:Wt(e),c=s?Jt:Wt(t),u=(l=l==Qt?Xt:l)==Xt,d=(c=c==Qt?Xt:c)==Xt,f=l==c;if(f&&H(e)){if(!H(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new pt),a||te(e)?vt(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new bt(e),new bt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=It;case"[object Set]":var l=1&r;if(s||(s=xt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=vt(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Tt)return Tt.call(e)==Tt.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&$t.call(e,"__wrapped__"),h=d&&$t.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new pt),i(g,m,n,r,o)}}return!!f&&(o||(o=new pt),function(e,t,n,r,i,o){var a=1&n,s=jt(e),l=s.length;if(l!=jt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Dt.call(t,u)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},en=function e(t,n,r,i,o){return t===n||(null==t||null==n||!L(t)&&!L(n)?t!=t&&n!=n:Kt(t,n,r,i,e,o))},tn=function(e){return e==e&&!ce(e)},nn=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},rn=function(e){var t=function(e){for(var t=fe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,tn(i)]}return t}(e);return 1==t.length&&t[0][2]?nn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new pt;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?en(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},on=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==O(e)};var an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sn=/^\w*$/;const ln=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!on(e))||sn.test(e)||!an.test(e)||null!=t&&e in Object(t)};function cn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(cn.Cache||dt),n}cn.Cache=dt;var un,dn,fn,pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hn=/\\(\\)?/g,gn=(un=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(pn,(function(e,n,r,i){t.push(r?i.replace(hn,"$1"):n||e)})),t},dn=cn(un,(function(e){return 500===fn.size&&fn.clear(),e})),fn=dn.cache,dn);const mn=gn,yn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var vn=E?E.prototype:void 0,bn=vn?vn.toString:void 0;const In=function e(t){if("string"==typeof t)return t;if(F(t))return yn(t,e)+"";if(on(t))return bn?bn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},xn=function(e){return null==e?"":In(e)},wn=function(e,t){return F(e)?e:ln(e,t)?[e]:mn(xn(e))},Tn=function(e){if("string"==typeof e||on(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Mn=function(e,t){for(var n=0,r=(t=wn(t,e)).length;null!=e&&n<r;)e=e[Tn(t[n++])];return n&&n==r?e:void 0},An=function(e,t,n){var r=null==e?void 0:Mn(e,t);return void 0===r?n:r},En=function(e,t){return null!=e&&t in Object(e)},Cn=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=wn(t,e)).length,o=!1;++r<i;){var a=Tn(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Y(i)&&V(a,i)&&(F(e)||_(e))}(e,t,En)},Nn=function(e){return ln(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Tn(e)):function(e){return function(t){return Mn(t,e)}}(e)},Sn=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?F(e)?(t=e[0],n=e[1],ln(t)&&tn(n)?nn(Tn(t),n):function(e){var r=An(e,t);return void 0===r&&r===n?Cn(e,t):en(n,r,3)}):rn(e):Nn(e);var t,n},kn=function(e,t){return function(n,r){var i=F(n)?Je:Xe,o=t?t():{};return i(n,e,Sn(r),o)}};var jn=Object.prototype.hasOwnProperty,Dn=kn((function(e,t,n){jn.call(e,n)?e[n].push(t):Qe(e,n,[t])}));const On=Dn,Ln=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Rn=function(e,t){return e&&e.length?function(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ln(e,r?0:o,r?o+1:i):Ln(e,r?o+1:0,r?i:o)}(e,Sn(t)):[]},Pn=function(e){return e&&e.length?function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}(e,ge):0},zn=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!on(a):n(a,s)))var s=a,l=o}return l},_n=function(e,t){return e<t},Fn=function(e,t){return e&&e.length?Un(e,Sn(t),_n):void 0},Bn=function(e,t){return e>t},Gn=function(e,t){return e&&e.length?Un(e,Sn(t),Bn):void 0};var Zn=E?E.isConcatSpreadable:void 0;const Hn=function(e){return F(e)||_(e)||!!(Zn&&e&&e[Zn])},qn=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=Hn),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Mt(o,l):i||(o[o.length]=l)}return o},Vn=function(e,t){var n=-1,r=de(e)?Array(e.length):[];return he(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},Yn=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=on(e),a=void 0!==t,s=null===t,l=t==t,c=on(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0},Wn=function(e,t,n){t=t.length?yn(t,(function(e){return F(e)?function(t){return Mn(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=yn(t,Q(Sn)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Vn(e,(function(e,n,i){return{criteria:yn(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Yn(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))};var Qn=Math.max;const Jn=function(e,t,n){return t=Qn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Qn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},Xn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var $n=Date.now;const Kn=function(e){var t=0,n=0;return function(){var r=$n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Xn),er=function(e,t,n){if(!ce(n))return!1;var r=typeof t;return!!("number"==r?de(n)&&V(t,n.length):"string"==r&&t in n)&&$e(n[t],e)},tr=function(e,t){return Kn(Jn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&er(e,t[0],t[1])?t=[]:n>2&&er(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,qn(t,1),[])}));var nr=kn((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));const rr=nr;var ir=/\s/;const or=function(e){for(var t=e.length;t--&&ir.test(e.charAt(t)););return t};var ar=/^\s+/;var sr=/^[-+]0x[0-9a-f]+$/i,lr=/^0b[01]+$/i,cr=/^0o[0-7]+$/i,ur=parseInt;const dr=function(e){if("number"==typeof e)return e;if(on(e))return NaN;if(ce(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ce(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,or(n)+1).replace(ar,""):n;var r=lr.test(e);return r||cr.test(e)?ur(e.slice(2),r?2:8):sr.test(e)?NaN:+e},fr=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=dr(n))==n?n:0),void 0!==t&&(t=(t=dr(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(dr(e),t,n)};function pr(e,t){if(function(e){var t;const n=e.cloneContents(),r=Array.from(n.childNodes).some((e=>e instanceof Element&&(e.classList.contains("e-annotation-wrapper")||"IMG"===e.tagName)));return 0===(null===(t=n.textContent)||void 0===t?void 0:t.length)&&!r}(t))return;const n=function(e,t=document){let n=null;const r=[],i=t.createTreeWalker(e,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null);for(;n=i.nextNode();)r.push(n);return r}(e),r=o(t.startContainer,t.startOffset,e),i=o(t.endContainer,t.endOffset,e)-r;if(!(i<=0))return{startIndex:r,length:i};function o(e,t,r){const i=e===r,o=i?e.childNodes[t]:e,a=i?0:t,s=Rn(n,(e=>e!==o));return a+Pn(s.map(gr))}}function hr(e,t,n){return function(e,t,n){const r=br(e,{startIndex:t,length:n,message:""});return zn(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function gr(e){var t;return e.nodeType===Node.TEXT_NODE?null===(t=e.textContent)||void 0===t?void 0:t.length:"IMG"===e.nodeName?1:0}function mr(e,t,n,r){const i=n.style;if(t){i.display="block";const o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s=e.left-o.left,l=e.bottom-o.top+r;i.top=`${String(l)}px`,i.left=`${String(s+a.width<o.width-30?s+20:o.width-a.width-20)}px`}}function yr(){const e=window.getSelection();return null!==e&&function(e){var t,n,r;if("None"===e.type||"Caret"===e.type||0===e.rangeCount)return!1;const i=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).endContainer;return e.rangeCount>0&&null!==(null===(t=i.parentElement)||void 0===t?void 0:t.closest(".e-grading-answer"))&&null!==(null===(n=o.parentElement)||void 0===n?void 0:n.closest(".e-grading-answer"))&&null===(null===(r=i.parentElement)||void 0===r?void 0:r.closest(".remove-annotation-popup"))}(e)&&("Range"===(null==(t=e)?void 0:t.type)||function(e){const t=e.getRangeAt(0);return!!e.rangeCount&&(t.toString().length>0||n(t.startContainer)||n(t.endContainer))}(e));var t;function n(e){return e.classList.contains("answer")}}function vr(e,t,n){const r=br(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=Fn(r.overlapping,(e=>e.startIndex)),n=Gn(r.overlapping,(e=>e.startIndex+e.length)),i={startIndex:e.startIndex,length:n.startIndex+n.length-e.startIndex,message:t.message};r.nonOverlapping.push(i)}else r.nonOverlapping.push(t);return tr(r.nonOverlapping,(t=>{return"line"===t.type||"rect"===t.type?function(e,t){var n;const r=document.createRange();return r.selectNode(e),null===(n=pr(t,r))||void 0===n?void 0:n.startIndex}((n=e,r=t.attachmentIndex,n.querySelectorAll("img").item(r)),e):t.startIndex;var n,r}),(e=>"rect"===e.type?e.y:"line"===e.type?e.y1:void 0),(e=>"rect"===e.type?e.x:"line"===e.type?e.x1:void 0))}function br(e,t){const n=rr(e,(e=>{const n=t.startIndex+t.length,r=e.startIndex+e.length;return t.startIndex>=e.startIndex&&t.startIndex<=r||n>=e.startIndex&&n<=r||t.startIndex<=e.startIndex&&n>=r}));return{overlapping:n[0],nonOverlapping:n[1]}}function Ir(e){return fr(e,0,1)}function xr(e){e.preventDefault(),e.stopPropagation()}function wr(e,t){e.style.display=t?"initial":"none"}function Tr(){return matchMedia("(pointer:fine)").matches}const Mr=e=>{var t;return null===(t=null==e?void 0:e.closest("div[data-annotation-anchor]"))||void 0===t?void 0:t.getAttribute("data-annotation-anchor")},Ar=e=>(null==e?void 0:e.getAttribute("data-annotation-path"))&&"MARK"!==e.tagName;var Er=a(8115),Cr=a.n(Er),Nr=a(3373),Sr=a.n(Nr);const kr=()=>{};let jr={},Dr={},Or=null,Lr={mark:kr,measure:kr};try{"undefined"!=typeof window&&(jr=window),"undefined"!=typeof document&&(Dr=document),"undefined"!=typeof MutationObserver&&(Or=MutationObserver),"undefined"!=typeof performance&&(Lr=performance)}catch(xg){}const{userAgent:Rr=""}=jr.navigator||{},Pr=jr,zr=Dr,Ur=Or,_r=Lr,Fr=(Pr.document,!!zr.documentElement&&!!zr.head&&"function"==typeof zr.addEventListener&&"function"==typeof zr.createElement),Br=~Rr.indexOf("MSIE")||~Rr.indexOf("Trident/");var Gr="classic",Zr="duotone",Hr="sharp",qr="sharp-duotone",Vr=[Gr,Zr,Hr,qr],Yr={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Wr=[1,2,3,4,5,6,7,8,9,10],Qr=Wr.concat([11,12,13,14,15,16,17,18,19,20]),Jr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Xr=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Jr.GROUP,Jr.SWAP_OPACITY,Jr.PRIMARY,Jr.SECONDARY].concat(Wr.map((e=>"".concat(e,"x")))).concat(Qr.map((e=>"w-".concat(e))));const $r="___FONT_AWESOME___",Kr=16,ei="fa",ti="svg-inline--fa",ni="data-fa-i2svg",ri="data-fa-pseudo-element",ii="data-fa-pseudo-element-pending",oi="data-prefix",ai="data-icon",si="fontawesome-i2svg",li="async",ci=["HTML","HEAD","STYLE","SCRIPT"],ui=(()=>{try{return!0}catch(e){return!1}})(),di=[Gr,Hr,qr];function fi(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Gr]})}const pi={...Yr};pi[Gr]={...Yr[Gr],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const hi=fi(pi),gi={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};gi[Gr]={...gi[Gr],kit:"fak","kit-duotone":"fakd"};const mi=fi(gi),yi={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};yi[Gr]={...yi[Gr],fak:"fa-kit"};const vi=fi(yi),bi={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};bi[Gr]={...bi[Gr],"fa-kit":"fak"};const Ii=fi(bi),xi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,wi="fa-layers-text",Ti=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Mi=(fi({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Ai=Jr,Ei=new Set;Object.keys(mi[Gr]).map(Ei.add.bind(Ei)),Object.keys(mi[Hr]).map(Ei.add.bind(Ei)),Object.keys(mi[qr]).map(Ei.add.bind(Ei));const Ci=["kit",...Xr],Ni=Pr.FontAwesomeConfig||{};zr&&"function"==typeof zr.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=zr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Ni[n]=r)}));const Si={styleDefault:"solid",familyDefault:"classic",cssPrefix:ei,replacementClass:ti,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ni.familyPrefix&&(Ni.cssPrefix=Ni.familyPrefix);const ki={...Si,...Ni};ki.autoReplaceSvg||(ki.observeMutations=!1);const ji={};Object.keys(Si).forEach((e=>{Object.defineProperty(ji,e,{enumerable:!0,set:function(t){ki[e]=t,Di.forEach((e=>e(ji)))},get:function(){return ki[e]}})})),Object.defineProperty(ji,"familyPrefix",{enumerable:!0,set:function(e){ki.cssPrefix=e,Di.forEach((e=>e(ji)))},get:function(){return ki.cssPrefix}}),Pr.FontAwesomeConfig=ji;const Di=[],Oi=Kr,Li={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Ri="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Pi(){let e=12,t="";for(;e-- >0;)t+=Ri[62*Math.random()|0];return t}function zi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ui(e){return e.classList?zi(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function _i(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Fi(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Bi(e){return e.size!==Li.size||e.x!==Li.x||e.y!==Li.y||e.rotate!==Li.rotate||e.flipX||e.flipY}var Gi=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Zi(){const e=ei,t=ti,n=ji.cssPrefix,r=ji.replacementClass;let i=Gi;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Hi=!1;function qi(){ji.autoAddCss&&!Hi&&(function(e){if(!e||!Fr)return;const t=zr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=zr.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],i=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=t)}zr.head.insertBefore(t,r)}(Zi()),Hi=!0)}var Vi={mixout:()=>({dom:{css:Zi,insertCss:qi}}),hooks:()=>({beforeDOMElementCreation(){qi()},beforeI2svg(){qi()}})};const Yi=Pr||{};Yi[$r]||(Yi[$r]={}),Yi[$r].styles||(Yi[$r].styles={}),Yi[$r].hooks||(Yi[$r].hooks={}),Yi[$r].shims||(Yi[$r].shims=[]);var Wi=Yi[$r];const Qi=[],Ji=function(){zr.removeEventListener("DOMContentLoaded",Ji),Xi=1,Qi.map((e=>e()))};let Xi=!1;function $i(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?_i(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(_i(e[n]),'" ')),"").trim()}(n),">").concat(r.map($i).join(""),"</").concat(t,">")}function Ki(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Fr&&(Xi=(zr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(zr.readyState),Xi||zr.addEventListener("DOMContentLoaded",Ji));var eo=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function to(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function no(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function ro(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=no(t);"function"!=typeof Wi.hooks.addPack||r?Wi.styles[e]={...Wi.styles[e]||{},...i}:Wi.hooks.addPack(e,no(t)),"fas"===e&&ro("fa",t)}const{styles:io,shims:oo}=Wi,ao={[Gr]:Object.values(vi[Gr]),[Hr]:Object.values(vi[Hr]),[qr]:Object.values(vi[qr])};let so=null,lo={},co={},uo={},fo={},po={};const ho={[Gr]:Object.keys(hi[Gr]),[Hr]:Object.keys(hi[Hr]),[qr]:Object.keys(hi[qr])};const go=()=>{const e=e=>eo(io,((t,n,r)=>(t[r]=eo(n,e,{}),t)),{});lo=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),co=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),po=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in io||ji.autoFetchSvg,n=eo(oo,((e,n)=>{const r=n[0];let i=n[1];const o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});uo=n.names,fo=n.unicodes,so=wo(ji.styleDefault,{family:ji.familyDefault})};var mo;function yo(e,t){return(lo[e]||{})[t]}function vo(e,t){return(po[e]||{})[t]}function bo(e){return uo[e]||{prefix:null,iconName:null}}function Io(){return so}mo=e=>{so=wo(e.styleDefault,{family:ji.familyDefault})},Di.push(mo),go();const xo=()=>({prefix:null,iconName:null,rest:[]});function wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Gr}=t,r=hi[n][e],i=mi[n][e]||mi[n][r],o=e in Wi.styles?e:null;return i||o||null}const To={[Gr]:Object.keys(vi[Gr]),[Hr]:Object.keys(vi[Hr]),[qr]:Object.keys(vi[qr])};function Mo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Gr]:"".concat(ji.cssPrefix,"-").concat(Gr),[Hr]:"".concat(ji.cssPrefix,"-").concat(Hr),[qr]:"".concat(ji.cssPrefix,"-").concat(qr)};let i=null,o=Gr;const a=Vr.filter((e=>e!==Zr));a.forEach((t=>{(e.includes(r[t])||e.some((e=>To[t].includes(e))))&&(o=t)}));const s=e.reduce(((e,t)=>{const s=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~Ci.indexOf(o))?null:i;var o}(ji.cssPrefix,t);if(io[t]?(t=ao[o].includes(t)?Ii[o][t]:t,i=t,e.prefix=t):ho[o].indexOf(t)>-1?(i=t,e.prefix=wo(t,{family:o})):s?e.iconName=s:t===ji.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===i?bo(e.iconName):{},n=vo(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||io.far||!io.fas||ji.autoFetchSvg||(e.prefix="fas")}return e}),xo());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Hr||!io.fass&&!ji.autoFetchSvg||(s.prefix="fass",s.iconName=vo(s.prefix,s.iconName)||s.iconName),s.prefix||o!==qr||!io.fasds&&!ji.autoFetchSvg||(s.prefix="fasds",s.iconName=vo(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=Io()||"fas"),s}let Ao=[],Eo={};const Co={},No=Object.keys(Co);function So(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Eo[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Eo[e]||[]).forEach((e=>{e.apply(null,n)}))}function jo(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Co[e]?Co[e].apply(null,t):void 0}function Do(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Io();if(t)return t=vo(n,t)||t,Ki(Oo.definitions,n,t)||Ki(Wi.styles,n,t)}const Oo=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...r[e]},ro(e,r[e]);const t=vi[Gr][e];t&&ro(t,r[e]),go()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=o)})),e[r][i]=o})),e}},Lo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Fr?(ko("beforeI2svg",e),jo("pseudoElements2svg",e),jo("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===ji.autoReplaceSvg&&(ji.autoReplaceSvg=!0),ji.observeMutations=!0,n=()=>{zo({autoReplaceSvgRoot:t}),ko("watch",e)},Fr&&(Xi?setTimeout(n,0):Qi.push(n))}},Ro={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:vo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=wo(e[0]);return{prefix:n,iconName:vo(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ji.cssPrefix,"-"))>-1||e.match(xi))){const t=Mo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Io(),iconName:vo(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Io();return{prefix:t,iconName:vo(t,e)||e}}}},Po={noAuto:()=>{ji.autoReplaceSvg=!1,ji.observeMutations=!1,ko("noAuto")},config:ji,dom:Lo,parse:Ro,library:Oo,findIconDefinition:Do,toHtml:$i},zo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=zr}=e;(Object.keys(Wi.styles).length>0||ji.autoFetchSvg)&&Fr&&ji.autoReplaceSvg&&Po.dom.i2svg({node:t})};function Uo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>$i(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Fr)return;const t=zr.createElement("div");return t.innerHTML=e.html,t.children}}),e}function _o(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,g=[ji.replacementClass,i?"".concat(ji.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:{...u.attributes,"data-prefix":r,"data-icon":i,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)}};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[ni]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Pi())},children:[s]}),delete m.attributes.title);const v={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...y,...u.styles}},{children:b,attributes:I}=n.found&&t.found?jo("generateAbstractMask",v)||{children:[],attributes:{}}:jo("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=I,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(ji.cssPrefix,"-").concat(n):o},children:r}]}]}(v):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Bi(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=Fi({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(v)}function Fo(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[ni]="");const c={...a.styles};Bi(i)&&(c.transform=function(e){let{transform:t,width:n=Kr,height:r=Kr,startCentered:i=!1}=e,o="";return o+=i&&Br?"translate(".concat(t.x/Oi-n/2,"em, ").concat(t.y/Oi-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Oi,"em), calc(-50% + ").concat(t.y/Oi,"em)) "):"translate(".concat(t.x/Oi,"em, ").concat(t.y/Oi,"em) "),o+="scale(".concat(t.size/Oi*(t.flipX?-1:1),", ").concat(t.size/Oi*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=Fi(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}const{styles:Bo}=Wi;function Go(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const Zo={found:!1,width:512,height:512};function Ho(e,t){let n=t;return"fa"===t&&null!==ji.styleDefault&&(t=Io()),new Promise(((r,i)=>{if("fa"===n){const n=bo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Bo[t]&&Bo[t][e])return r(Go(Bo[t][e]));!function(e,t){ui||ji.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({...Zo,icon:ji.showMissingIcons&&e&&jo("missingIconAbstract")||{}})}))}const qo=()=>{},Vo=ji.measurePerformance&&_r&&_r.mark&&_r.measure?_r:{mark:qo,measure:qo},Yo='FA "6.6.0"',Wo=e=>{Vo.mark("".concat(Yo," ").concat(e," ends")),Vo.measure("".concat(Yo," ").concat(e),"".concat(Yo," ").concat(e," begins"),"".concat(Yo," ").concat(e," ends"))};var Qo={begin:e=>(Vo.mark("".concat(Yo," ").concat(e," begins")),()=>Wo(e)),end:Wo};const Jo=()=>{};function Xo(e){return"string"==typeof(e.getAttribute?e.getAttribute(ni):null)}function $o(e){return zr.createElementNS("http://www.w3.org/2000/svg",e)}function Ko(e){return zr.createElement(e)}function ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?$o:Ko)}=t;if("string"==typeof e)return zr.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(ea(e,{ceFn:n}))})),r}const ta={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ea(e),t)})),null===t.getAttribute(ni)&&ji.keepOriginalSource){let e=zr.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ui(t).indexOf(ji.replacementClass))return ta.replace(e);const r=new RegExp("".concat(ji.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===ji.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>$i(e))).join("\n");t.setAttribute(ni,""),t.innerHTML=i}};function na(e){e()}function ra(e,t){const n="function"==typeof t?t:Jo;if(0===e.length)n();else{let t=na;ji.mutateApproach===li&&(t=Pr.requestAnimationFrame||na),t((()=>{const t=!0===ji.autoReplaceSvg?ta.replace:ta[ji.autoReplaceSvg]||ta.replace,r=Qo.begin("mutate");e.map(t),r(),n()}))}}let ia=!1;function oa(){ia=!0}function aa(){ia=!1}let sa=null;function la(e){if(!Ur)return;if(!ji.observeMutations)return;const{treeCallback:t=Jo,nodeCallback:n=Jo,pseudoElementsCallback:r=Jo,observeMutationsRoot:i=zr}=e;sa=new Ur((e=>{if(ia)return;const i=Io();zi(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Xo(e.addedNodes[0])&&(ji.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&ji.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&Xo(e.target)&&~Mi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(oi):null,n=e.getAttribute?e.getAttribute(ai):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Mo(Ui(e.target));e.target.setAttribute(oi,t||i),n&&e.target.setAttribute(ai,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(ji.replacementClass)&&n(e.target);var o}))})),Fr&&sa.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=Mo(Ui(e));return i.prefix||(i.prefix=Io()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(o=i.prefix,a=e.innerText,(co[o]||{})[a]||yo(i.prefix,to(e.innerText)))),!i.iconName&&ji.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=zi(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ji.autoA11y&&(n?t["aria-labelledby"]="".concat(ji.replacementClass,"-title-").concat(r||Pi()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=So("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Li,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:ua}=Wi;function da(e){const t="nest"===ji.autoReplaceSvg?ca(e,{styleParser:!1}):ca(e);return~t.extra.classes.indexOf(wi)?jo("generateLayersText",e,t):jo("generateSvgReplacementMutation",e,t)}let fa=new Set;function pa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fr)return Promise.resolve();const n=zr.documentElement.classList,r=e=>n.add("".concat(si,"-").concat(e)),i=e=>n.remove("".concat(si,"-").concat(e)),o=ji.autoFetchSvg?fa:di.map((e=>"fa-".concat(e))).concat(Object.keys(ua));o.includes("fa")||o.push("fa");const a=[".".concat(wi,":not([").concat(ni,"])")].concat(o.map((e=>".".concat(e,":not([").concat(ni,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=zi(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=Qo.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=da(t);n&&e.push(n)}catch(e){ui||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{ra(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;da(e).then((e=>{e&&ra([e],t)}))}di.map((e=>{fa.add("fa-".concat(e))})),Object.keys(hi[Gr]).map(fa.add.bind(fa)),Object.keys(hi[Hr]).map(fa.add.bind(fa)),Object.keys(hi[qr]).map(fa.add.bind(fa)),fa=[...fa];const ga=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Li,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return Uo({type:"icon",...e},(()=>(ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),ji.autoA11y&&(a?c["aria-labelledby"]="".concat(ji.replacementClass,"-title-").concat(s||Pi()):(c["aria-hidden"]="true",c.focusable="false")),_o({icons:{main:Go(p),mask:i?Go(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...Li,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var ma={mixout(){return{icon:(e=ga,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Do(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Do(i||{})),e(r,{...n,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=pa,e.nodeCallback=ha,e)}),provides(e){e.i2svg=function(e){const{node:t=zr,callback:n=(()=>{})}=e;return pa(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([Ho(n,o),l.iconName?Ho(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,_o({icons:{main:d,mask:f},prefix:o,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:o}=e;const a=Fi(o);let s;return a.length>0&&(n.style=a),Bi(i)&&(s=jo("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},ya={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Uo({type:"layer"},(()=>{ko("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ji.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},va={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return Uo({type:"counter",content:e},(()=>(ko("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Fi(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ji.cssPrefix,"-layers-counter"),...r]}}))))}})},ba={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Li,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Uo({type:"text",content:e},(()=>(ko("beforeDOMElementCreation",{content:e,params:t}),Fo({content:e,transform:{...Li,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(ji.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let o=null,a=null;if(Br){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return ji.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Fo({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const Ia=new RegExp('"',"ug"),xa=[1105920,1112319],wa={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Ta=Object.keys(wa).reduce(((e,t)=>(e[t.toLowerCase()]=wa[t],e)),{}),Ma=Object.keys(Ta).reduce(((e,t)=>{const n=Ta[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Aa(e,t){const n="".concat(ii).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=zi(e.children).filter((e=>e.getAttribute(ri)===t))[0],a=Pr.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Ti),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Ta[n]||{})[i]||Ma[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Ia,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(0);return i>=55296&&i<=56319&&n>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t),r=n>=xa[0]&&n<=xa[1],i=2===t.length&&t[0]===t[1];return{value:to(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=yo(d,f),m=g;if(h){const e=function(e){const t=fo[e],n=yo("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||p||o&&o.getAttribute(oi)===d&&o.getAttribute(ai)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Li,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ri]=t,Ho(g,d).then((i=>{const o=_o({...a,icons:{main:i,mask:xo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=zr.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>$i(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ea(e){return Promise.all([Aa(e,"::before"),Aa(e,"::after")])}function Ca(e){return!(e.parentNode===document.head||~ci.indexOf(e.tagName.toUpperCase())||e.getAttribute(ri)||e.parentNode&&"svg"===e.parentNode.tagName)}function Na(e){if(Fr)return new Promise(((t,n)=>{const r=zi(e.querySelectorAll("*")).filter(Ca).map(Ea),i=Qo.begin("searchPseudoElements");oa(),Promise.all(r).then((()=>{i(),aa(),t()})).catch((()=>{i(),aa(),n()}))}))}var Sa={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Na,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=zr}=e;ji.searchPseudoElements&&Na(t)}}};let ka=!1;const ja=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var Da={mixout:()=>({parse:{transform:e=>ja(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=ja(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const Oa={x:0,y:0,width:"100%",height:"100%"};function La(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Ra={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Mo(n.split(" ").map((e=>e.trim()))):xo();return r.prefix||(r.prefix=Io()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:o,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...Oa,fill:"white"}},p=l.children?{children:l.children.map(La)}:{},h={tag:"g",attributes:{...d.inner},children:[La({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},g={tag:"g",attributes:{...d.outer},children:[h]},m="mask-".concat(o||Pi()),y="clip-".concat(o||Pi()),v={tag:"mask",attributes:{...Oa,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(I=u,"g"===I.tag?I.children:[I])},v]};var I;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")"),...Oa}}),{children:t,attributes:n}}}},Pa={provides(e){let t=!1;Pr.matchMedia&&(t=Pr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;Ao=e,Eo={},Object.keys(Co).forEach((e=>{-1===No.indexOf(e)&&delete Co[e]})),Ao.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Eo[e]||(Eo[e]=[]),Eo[e].push(t[e])}))}e.provides&&e.provides(Co)}))}([Vi,ma,ya,va,ba,Sa,{mixout:()=>({dom:{unwatch(){oa(),ka=!0}}}),hooks:()=>({bootstrap(){la(So("mutationObserverCallbacks",{}))},noAuto(){sa&&sa.disconnect()},watch(e){const{observeMutationsRoot:t}=e;ka?aa():la(So("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},Da,Ra,Pa,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Po});const za=Po.parse,Ua=Po.icon;var _a=a(9067),Fa=a.n(_a);function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Za(e){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(e)}function Ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qa(e){return function(e){if(Array.isArray(e))return Va(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Va(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ya(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Wa=["style"],Qa=!1;try{Qa=!0}catch(xg){}function Ja(e){return e&&"object"===Za(e)&&e.prefix&&e.iconName&&e.icon?e:za.icon?za.icon(e):null===e?null:e&&"object"===Za(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Xa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ha({},e,t):{}}var $a={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ka=t().forwardRef((function(e,t){var n=Ga(Ga({},$a),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Ja(r),d=Xa("classes",[].concat(qa(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,y=e.size,v=e.rotation,b=e.pull,I=(Ha(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(y),null!=y),Ha(t,"fa-rotate-".concat(v),null!=v&&0!==v),Ha(t,"fa-pull-".concat(b),null!=b),Ha(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map((function(e){return I[e]?e:null})).filter((function(e){return e}))}(n)),qa((a||"").split(" ")))),f=Xa("transform","string"==typeof n.transform?za.transform(n.transform):n.transform),p=Xa("mask",Ja(i)),h=Ua(u,Ga(Ga(Ga(Ga({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Qa&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){$a.hasOwnProperty(e)||(m[e]=n[e])})),es(g[0],m)}));Ka.displayName="FontAwesomeIcon",Ka.propTypes={beat:Fa().bool,border:Fa().bool,beatFade:Fa().bool,bounce:Fa().bool,className:Fa().string,fade:Fa().bool,flash:Fa().bool,mask:Fa().oneOfType([Fa().object,Fa().array,Fa().string]),maskId:Fa().string,fixedWidth:Fa().bool,inverse:Fa().bool,flip:Fa().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Fa().oneOfType([Fa().object,Fa().array,Fa().string]),listItem:Fa().bool,pull:Fa().oneOf(["right","left"]),pulse:Fa().bool,rotation:Fa().oneOf([0,90,180,270]),shake:Fa().bool,size:Fa().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Fa().bool,spinPulse:Fa().bool,spinReverse:Fa().bool,symbol:Fa().oneOfType([Fa().bool,Fa().string]),title:Fa().string,titleId:Fa().string,transform:Fa().oneOfType([Fa().string,Fa().object]),swapOpacity:Fa().bool};var es=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Ya(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ya(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Wa);return o.attrs.style=Ga(Ga({},o.attrs.style),s),t.apply(void 0,[n.tag,Ga(Ga({},o.attrs),l)].concat(qa(i)))}.bind(null,t().createElement);const ts={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},ns={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},rs={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},is={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},os={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},as={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},ss={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"]},ls={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},cs={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},us={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},ds={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},fs={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};function ps(n){const r=t().createRef(),[i,o]=(0,e.useState)(n.initialTextContent||""),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(null);return(0,e.useEffect)((()=>{n.element&&function(e,t){const n=t.current;if(e&&n){const t=n.style,r=null==e?void 0:e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height+r.top+window.scrollY,a=window.innerWidth;t.top=`${String(o)}px`,t.opacity="1";const s=r.left+i.width>a;t.left=s?r.right-i.width+"px":`${r.left}px`}}(n.element,r),o(n.initialTextContent||""),s(n.initialTextContent.length>0)}),[n.element]),n.element?t().createElement("div",{className:"e-popup",style:{position:"absolute",opacity:0},ref:r,"data-testid":"e-popup"},t().createElement(Cr(),{language:"FI",baseUrl:"",initialValue:n.initialTextContent,getPasteSource:()=>Promise.resolve(""),onValueChange:e=>{if(n.onValueChange){const t=n.onValueChange(e.answerHtml);d(t)}o(e.answerHtml),s(e.answerHtml.trim().length>0)},textAreaProps:{className:"comment-content"}})," ",u&&t().createElement("span",{className:"e-popup-error"},u),t().createElement("span",{className:"e-popup-button-area"},t().createElement("span",null,t().createElement("button",{className:"button",onClick:e=>{e.stopPropagation(),n.onValueSave(i)},"data-testid":"e-popup-save",disabled:!a||!!u},"Tallenna"),t().createElement("button",{className:"button text-button","data-testid":"e-popup-cancel",onClick:()=>{n.onCancel()}},"Peru")),n.enableDelete&&t().createElement("button",{className:Sr()("button","e-popup-delete","round",{confirm:l}),"data-testid":"e-popup-delete",onClick:()=>{l?n.onDelete&&n.onDelete():c(!0)}},t().createElement(Ka,{size:"lg",icon:ts,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function hs(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(gs);return t().createElement(ps,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const gs=t().createContext({}),ms=({children:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o})=>{const[a,s]=t().useState(null),[l,c]=t().useState(null),u=e=>{s(e)};if(!i&&!o)return n;const d=(0,e.useMemo)((()=>On((null==r?void 0:r.flatMap((e=>e.annotationParts.map(((t,n,r)=>{const i=n===r.length-1;return{...t,annotationId:e.annotationId,markNumber:i?e.markNumber:void 0,hidden:e.hidden}})))))||[],"annotationAnchor")),[JSON.stringify(r)]);return t().createElement(gs.Provider,{value:{annotations:d,onClickAnnotation:i,onSaveAnnotation:o,newAnnotation:a,setNewAnnotation:s,newAnnotationRef:l,setNewAnnotationRef:c}},t().createElement("span",{onMouseDown:function(e){!!e.target.closest(".e-popup")||(s(null),c(null)),function(e,t){0===e.button&&window.addEventListener("mouseup",(function e(){var n,r;window.removeEventListener("mouseup",e);const i=window.getSelection(),o=null===(n=null==i?void 0:i.anchorNode)||void 0===n?void 0:n.parentElement,a=null===(r=null==i?void 0:i.focusNode)||void 0===r?void 0:r.parentElement;if(i&&o&&a&&i.toString().length>0){const e=(e=>{const t=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),n=null==t?void 0:t.some((e=>"MARK"===e.tagName&&"false"===e.getAttribute("data-hidden"))),r=t.some((e=>e.querySelector('mark[data-hidden="false"]')));return n||r})(i),n=Mr(o);if(n===Mr(a)&&Ar(o)&&Ar(a)&&!e){const e=(e=>{var t,n;const r=e.getRangeAt(0),i=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),o=r.startContainer.parentElement;if(null==i?void 0:i.length){const e=null==i?void 0:i.reduce(((e,t,n,i)=>{var a;const s=t.getAttribute("data-annotation-path"),l=n===i.length-1;if(s){const i={annotationAnchor:s,selectedText:t.textContent||"",startIndex:0===n?r.startOffset:0,length:l?r.endOffset:(null===(a=t.textContent)||void 0===a?void 0:a.length)||0};return[...e,i]}{const i=t.querySelectorAll("[data-annotation-path]");return null==i||i.forEach(((t,a)=>{var s;const c=t.getAttribute("data-annotation-path");if(c){const u=0===n&&0===a,d=a===i.length-1,f=l&&d,p=pr(o,r),h={annotationAnchor:c,selectedText:t.textContent||"",startIndex:u&&(null==p?void 0:p.startIndex)||0,length:f?r.endOffset:(null===(s=t.textContent)||void 0===s?void 0:s.length)||0};e.push(h)}})),e}}),[]);return e}{const i=null===(n=null===(t=null==e?void 0:e.focusNode)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.getAttribute("data-annotation-path"),a=pr(o,r);return[{annotationAnchor:i,selectedText:(null==e?void 0:e.toString())||"",startIndex:(null==a?void 0:a.startIndex)||0,length:(null==a?void 0:a.length)||0}]}})(i);t({annotationParts:e,displayNumber:n,selectedText:e.map((e=>e.selectedText)).join(" ")})}}}))}(e,u)}},t().createElement(hs,null),n))},ys=(0,e.createContext)({}),vs=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!Is(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":Is(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>Is(n)?i(e,n):void 0},r,(null==n?void 0:n.markNumber)&&t().createElement("sup",{className:"e-annotation","data-content":null==n?void 0:n.markNumber}))};function bs(e){return Is(e)?e.annotationId+e.startIndex:e.startIndex}function Is(e){return"annotationId"in e}function xs(e,t,n){return e.substring(t,t+n)}const ws=({node:n})=>{var r,i;const o=(0,e.useContext)(gs),{isInSidebar:a}=(0,e.useContext)(ys),{annotations:s,onClickAnnotation:l,setNewAnnotationRef:c,newAnnotation:u}=o;if(void 0===(null==o?void 0:o.annotations)||0===(null===(r=n.textContent)||void 0===r?void 0:r.trim().length)||void 0!==a)return n.textContent;const d=Le(n),f=(null===(i=null==u?void 0:u.annotationParts)||void 0===i?void 0:i.filter((e=>e.annotationAnchor===d)))||[],p=[...(null==s?void 0:s[d])||[],...f];return t().createElement("span",{className:"e-annotatable",key:d,"data-annotation-path":d,"data-testid":d},p.length>0&&l?function(e,n,r,i){var o;if(0===n.length)return[e];n.sort(((e,t)=>e.startIndex-t.startIndex));const[a,s]=rr(n,(e=>e.hidden)),l=[];a.forEach((e=>{const n=bs(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":Is(e)?e.annotationId:"","data-hidden":"true"}))}));let c=0;const u=e.replace(/^\s+/," "),d=e.length-u.length,f=s.reduce(((e,t)=>{const n=e.some((e=>t.startIndex<e.startIndex+e.length&&e.startIndex<t.startIndex+t.length&&!e.hidden));return e.push({...t,hidden:t.hidden||n}),e}),[]);for(const n of f){const a=xs(e.replace(/\n/g," ").replace(/\s+/g," "),n.startIndex,n.length)===n.selectedText,s=((null===(o=e.split(n.selectedText)[0].match(/\n/g))||void 0===o?void 0:o.length)||0)*d,u=n.startIndex+(a?s:0),f=xs(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=bs(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":Is(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(vs,{key:p,annotation:n,markedText:f,onClickAnnotation:r,setNewAnnotationRef:i})),c=u+n.length}return l.push(e.substring(c)),l}(n.textContent,p,l,c):n.textContent)},Ts="http://ylioppilastutkinto.fi/exam.xsd";function Ms(e){function n(r,i=0){return function(e,t){const n=e.childNodes.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=t(e.childNodes[i],i);return r}(r,((r,o)=>function(r,i,o){switch(r.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===o?function(e){return t().createElement(ws,{node:e,key:Le(e)})}(r):null;case Node.ELEMENT_NODE:return function(r,i,o){switch(r.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,r,i){const o=e.hasChildNodes()?n(e,i):null;if(0===i){const n=e.localName,i=function(e,t){const n={key:As(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,r);return t().createElement(n,{...i},o)}return o}(r,i,o);case Ts:return function(r,i){const o=e[r.localName],a=r.getAttribute("class")||void 0;return o?t().createElement(o,{element:r,className:a,renderChildNodes:n,key:As(r,i)}):null}(r,i);default:throw new Error(`Unrecognized element: ${r.localName}`)}}(r,i,o);default:return null}}(r,o,i)))}return n}function As(e,t){return`${e.localName}-${t}`}const Es={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Cs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Es,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Cs(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Cs(this.logger,e)}}var Ns=new Cs;class Ss{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])}))}}const ks=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},js=e=>null==e?"":""+e,Ds=/###/g,Os=e=>e&&e.indexOf("###")>-1?e.replace(Ds,"."):e,Ls=e=>!e||"string"==typeof e,Rs=(e,t,n)=>{const r="string"!=typeof t?t:t.split(".");let i=0;for(;i<r.length-1;){if(Ls(e))return{};const t=Os(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ls(e)?{}:{obj:e,k:Os(r[i])}},Ps=(e,t,n)=>{const{obj:r,k:i}=Rs(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Rs(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Rs(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},zs=(e,t)=>{const{obj:n,k:r}=Rs(e,t);if(n)return n[r]},Us=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Us(e[r],t[r],n):e[r]=t[r]);return e},_s=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Fs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Bs=e=>"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Fs[e])):e,Gs=[" ",",","?","!",";"],Zs=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const 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}}(20),Hs=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},qs=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Vs extends Ss{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=zs(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!=typeof n?s:Hs(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Ps(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)("string"==typeof 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){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=zs(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Us(s,n,i):s={...s,...n},Ps(this.data,a,s),o.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 void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var Ys={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const Ws={};class Qs extends Ss{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Ns.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Gs.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Zs.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||o,p=u&&u.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&"string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}else if(m&&"string"==typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=Qs.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,o,v?m:d),i){const e=this.resolve(o,{...t,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=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&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}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Ys.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(o=e,!Ws[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Ws[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" 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((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),u&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Js=e=>e.charAt(0).toUpperCase()+e.slice(1);class Xs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ns.create("languageUtils")}getScriptPartFromCode(e){if(!(e=qs(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=qs(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Js(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Js(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Js(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||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;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(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"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let $s=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ks={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const el=["v1","v2","v3"],tl=["v4"],nl={zero:0,one:1,two:2,few:3,many:4,other:5};class rl{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Ns.create("pluralResolver"),this.options.compatibilityJSON&&!tl.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return $s.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Ks[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=qs("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const o=new Intl.PluralRules(n,{type:r});return this.pluralRulesCache[i]=o,o}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>nl[e]-nl[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!el.includes(this.options.compatibilityJSON)}}const il=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=zs(e,n);return void 0!==r?r:zs(t,n)})(e,t,n);return!o&&i&&"string"==typeof n&&(o=Hs(e,n,r),void 0===o&&(o=Hs(t,n,r))),o},ol=e=>e.replace(/\$/g,"$$$$");class al{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Ns.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:Bs,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?_s(i):o||"{{",this.suffix=a?_s(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?_s(d):f||_s("$t("),this.nestingSuffix=p?_s(p):h||_s(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&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,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=il(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(il(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ol(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ol(this.escape(e)):ol(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(u){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=js(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=js(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const sl=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(qs(r),i),t[a]=s),s(n)}};class ll{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Ns.create("formatter"),this.options=e,this.formats={number:sl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:sl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:sl(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:sl(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:sl(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=sl(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e);return o}}class cl extends Ss{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Ns.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&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:i,k:o}=Rs(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const ul=()=>({debug:!1,initImmediate:!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("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const 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}}),dl=e=>("string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),fl=()=>{};class pl extends Ss{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=dl(e),this.services={},this.logger=Ns,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ul();this.options={...r,...this.options,...dl(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Ns.init(i(this.modules.logger),this.options):Ns.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ll);const n=new Xs(this.options);this.store=new Vs(this.options.resources,this.options);const o=this.services;o.logger=Ns,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new rl(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new al(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new cl(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Qs(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=fl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(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((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=ks(),a=()=>{const e=(e,t)=>{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),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e))),this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=ks();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=fl),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ys.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&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++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=ks();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(e)?e.map((e=>`${o.keyPrefix}${c}${e}`)):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(u,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=ks();return this.options.ns?("string"==typeof 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){const n=ks();"string"==typeof e&&(e=[e]);const 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||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Xs(ul());return["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new pl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new pl(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Vs(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Qs(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const hl=pl.createInstance();hl.createInstance=pl.createInstance,hl.createInstance,hl.dir,hl.init,hl.loadResources,hl.reloadResources,hl.use,hl.changeLanguage,hl.getFixedT,hl.t,hl.exists,hl.setDefaultNamespace,hl.hasLoadedNamespace,hl.loadNamespaces,hl.loadLanguages;const gl=function(e){return e&&e.length?e[0]:void 0},ml=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},yl=function(){};var vl=Object.prototype.hasOwnProperty;const bl=function(e,t,n){var r=e[t];vl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},Il=function(e,t,n,r){if(!ce(e))return e;for(var i=-1,o=(t=wn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Tn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=ce(u)?u:V(t[i+1])?[]:{})}bl(s,l,c),s=s[l]}return e},xl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Mn(e,a);n(s,a)&&Il(o,wn(a,e),s)}return o}(e,t,(function(t,n){return Cn(e,n)}))},wl=function(e){return null!=e&&e.length?qn(e,1):[]},Tl=function(e){return Kn(Jn(e,void 0,wl),e+"")},Ml=Tl((function(e,t){return null==e?{}:xl(e,t)})),Al={"exam-total":"Provet sammanlagt","grading-total":"Sammanlagt",material:"Material","attachments-page-title":"Material:","external-material-title":"Material","grading-instructions-page-title":"Beskrivningar av goda svar:",section:"Del {{displayNumber}}:",question:"Uppgift {{displayNumber}}:",grade:"Vitsord",comment:"Kommentar",points:"{{count}} p.",recording:"Inspelningen","audio-errors":{"already-accessed":"Du har redan spelat denna inspelning. Uppdatera sidan","already-playing":"Lyssna först inspelningen till slut.","other-error":"Uppspelning misslyckades, be övervakaren om hjälp."},"audio-test":{instructions:"Provet omfattar uppgifter i hörförståelse.",play:"Testa hörbarheten",volume:"Du kan justera ljudvolymen uppe i högra hörnet av rutan."},"dropdown-answer":{label:"Välj det alternativ som passar bäst.",clear:"Avmarkera alternativet."},grading:{"pregrading-annotations":"Preliminära bedömningens anteckningar (lärare)","censor-annotations":"Censorns anteckningar","pregrading-abbrev":"prel.","inspection-grading-abbrev":"ompr.","round.1":"1.c","round.2":"2.c","round.3":"3.c",annotate:"Markera","non-answer-not-graded":"Lämnats utan bedömning","loading-images":"Vänta, bilder laddas..."},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{examineSectionA:"Du kan nu granska dina svar för del A.",cannotEditLater:"När du har returnerat del A kan du inte längre redigera svaren för del A.",youCanReturn:"Efter att du granskat dina svar kan du gå tillbaka till provet för att fortsätta svara på uppgifterna.",forbidden:{infoText:"Du får tillgång till de blockerade räknarprogrammen efter att du returnerat del A.",buttonText:"Returnera del A"},allowing:{infoText:"Svaren i A-delen låses. Du får tillgång till de blockerade räknarprogrammen om en stund.",cancel:"Avbryt ({{count}} s)"},allowed:{infoText:"Del A returnerad"}},"examine-exam":{examine:"Kontrollera dina svar",instructions:"Efter att du granskat dina svar kan du ännu gå tillbaka och redigera svaren eller avsluta provet."},undo:{loading:"Laddar...",close:"Stäng",restoreAnswer:"Återställ",answerNoText:"ingen text",answerWordCount:"{{count}} ord",answerWordCount_plural:"{{count}} ord",answerCharacterCount:"{{count}} tecken",answerCharacterCount_plural:"{{count}} tecken",answerImageCount:"{{count}} bild",answerImageCount_plural:"{{count}} bilder",minutesSinceAnswer:"{{ minutes }} min sedan",latestVersion:"Den senaste versionen"},examineExam:{returnToExam:"Återvänd till provutförandet",checkYourAnswersTitle:"Kontrollera dina svar",hereAreYourAnswers:"Du ser här dina svar på samma sätt som de som bedömer proven kommer att se dem.",checkYourAnswers:"Kontrollera att du kan se alla de svar som du vill lämna in till bedömning.",removeExcessAnswers:"Om du ser svar som du inte vill lämna in till bedömning bör du gå tillbaka till provet och avlägsna dem.",emptyAnswersAreHighlighted:"Tomma svarsfält har markerats.",thereMayBeOptionalQuestions:"Det kan finnas valbara uppgifter i provet, och därmed innebär ett tomt svarsfält inte alltid att något är fel.",questionHasNoAnswer:"Denna fråga har inte besvarats",endExamTitle:"Avsluta provet",afterInspectingYourAnswers:"När du har kontrollerat dina svar kan du avsluta provet genom att klicka på knappen nedan.",youCanNotReturnToExam:"Efter att du klickat på knappen kan du inte längre gå tillbaka till provet.",thankYouTitle:"Tack!",shutdownComputer:"Stäng nu av datorn.",returnUsbStick:"När datorn har är avstängd, ta bort USB-minnet och ge det till provets övervakare."},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"Svar på för många uppgifter:","max-answers-warning":"Besvara högst {{count}} uppgift.","max-answers-warning_plural":"Besvara högst {{count}} uppgifter.","open-writing-mode":"Öppna skrivvyn","close-writing-mode":"Minska vyn","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","answer-length-with-max-length":"Svarets längd: {{count}} / {{maxLength}} tecken.","max-length-surplus":"Svaret överskrider maximallängden på {{maxLength}} märken med {{percentage}} %.","max-length-info":"Svaret får inte överskrida {{count}} tecken. Om det givna antalet tecken överskrids leder det till poängavdrag.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","end-of-exam":"Uppgifterna i provet slutar här.","answering-instructions":{"exam_*_1_1":"Besvara högst en uppgift i provet.","exam_*_2_2":"Besvara högst två uppgifter i provet.","exam_*_3_3":"Besvara högst tre uppgifter i provet.","exam_*_4_4":"Besvara högst fyra uppgifter i provet.","exam_*_5_5":"Besvara högst fem uppgifter i provet.","exam_*_6_6":"Besvara högst sex uppgifter i provet.","exam_*_7_7":"Besvara högst sju uppgifter i provet.","exam_*_8_8":"Besvara högst åtta uppgifter i provet.","exam_*_9_9":"Besvara högst nio uppgifter i provet.","exam_*_10_10":"Besvara högst tio uppgifter i provet.","exam_*_*_*":"Besvara högst {{answerCount, range}} uppgifter i provet.","question_*_1_1":"Besvara en av punkterna {{questions, range}}.","question_*_2_2":"Besvara två av punkterna {{questions, range}}.","question_*_3_3":"Besvara tre av punkterna {{questions, range}}.","question_*_4_4":"Besvara fyra av punkterna {{questions, range}}.","question_*_5_5":"Besvara fem av punkterna {{questions, range}}.","question_*_6_6":"Besvara sex av punkterna {{questions, range}}.","question_*_7_7":"Besvara sju av punkterna {{questions, range}}.","question_*_8_8":"Besvara åtta av punkterna {{questions, range}}.","question_*_9_9":"Besvara nio av punkterna {{questions, range}}.","question_*_10_10":"Besvara tio av punkterna {{questions, range}}.","question_2_*_1":"Besvara antingen punkt {{questions, first}} eller {{questions, last}}.","question_*_*_*":"Besvara {{answerCount, range}} av punkterna {{questions, range}}.","section_*_1_1":"Besvara en uppgift.","section_*_2_2":"Besvara två uppgifter.","section_*_3_3":"Besvara tre uppgifter.","section_*_4_4":"Besvara fyra uppgifter.","section_*_5_5":"Besvara fem uppgifter.","section_*_6_6":"Besvara sex uppgifter.","section_*_7_7":"Besvara sju uppgifter.","section_*_8_8":"Besvara åtta uppgifter.","section_*_9_9":"Besvara nio uppgifter.","section_*_10_10":"Besvara tio uppgifter.","section_1_*_1":"Besvara uppgift {{questions, range}}.","section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","section_*_*_*":"Besvara {{answerCount, range}} uppgifter.","toc-section_*_1_1":"Besvara en uppgift.","toc-section_*_2_2":"Besvara två uppgifter.","toc-section_*_3_3":"Besvara tre uppgifter.","toc-section_*_4_4":"Besvara fyra uppgifter.","toc-section_*_5_5":"Besvara fem uppgifter.","toc-section_*_6_6":"Besvara sex uppgifter.","toc-section_*_7_7":"Besvara sju uppgifter.","toc-section_*_8_8":"Besvara åtta uppgifter.","toc-section_*_9_9":"Besvara nio uppgifter.","toc-section_*_10_10":"Besvara tio uppgifter.","toc-section_1_*_1":"Besvara uppgift {{questions, range}}.","toc-section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","toc-section_*_*_*":"Besvara {{answerCount, range}} uppgifter."},"answer-errors":{"screenshot-too-big":"Den skärmdump du tagit är för stor. Ta en ny skärmdump av en mindre del av skärmen och försök på nytt.","screenshot-byte-limit-reached":"Minnesutrymmet för skärmdumpar är fullt. (Du kan referera till bilder i materialet direkt utan skärmdumpar.)","screenshot-upload-failed":"Bifogandet av skärmdumpen misslyckades. Försök på nytt.","answer-too-long":"Svaret är för långt."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},El=Ml(Al,["exam-total","material","external-material-title","section","references","toc-heading"]),Cl={"exam-total":"Koe yhteensä","grading-total":"Yhteensä",material:"Aineisto",material_plural:"Aineistot","attachments-page-title":"Aineisto:","external-material-title":"Aineisto","grading-instructions-page-title":"Hyvän vastauksen piirteet:",section:"Osa {{displayNumber}}:",question:"Tehtävä {{displayNumber}}:",grade:"Arvosana",comment:"Kommentti",points:"{{count}} p.",recording:"Tallenne","audio-errors":{"already-accessed":"Olet jo toistanut tämän äänitteen. Päivitä sivu.","already-playing":"Kuuntele äänite ensin loppuun.","other-error":"Äänitteen toistaminen epäonnistui, pyydä apua valvojalta."},"audio-test":{instructions:"Koe sisältää kuullunymmärtämisen tehtäviä.",play:"Testaa äänitteiden kuuluvuus",volume:"Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta."},"dropdown-answer":{label:"Valitse parhaiten sopiva vaihtoehto.",clear:"Poista valinta."},grading:{"pregrading-annotations":"Alustavan arvostelun merkinnät (opettaja)","censor-annotations":"Sensorin merkinnät","pregrading-abbrev":"alust.","inspection-grading-abbrev":"ov","round.1":"1.s","round.2":"2.s","round.3":"3.s",annotate:"Merkitse","non-answer-not-graded":"Jätetty arvostelematta","loading-images":"Odota, kuvia ladataan..."},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{examineSectionA:"Voit käydä tarkastelemassa A-osan vastauksiasi nyt.",cannotEditLater:"Palautettuasi A-osan et voi enää muokata A-osan vastauksia.",youCanReturn:"Tarkastelun jälkeen voit palata kokeeseen jatkamaan tehtäviin vastaamista.",forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöösi palautettuasi A-osan.",buttonText:"Palauta A-osa"},allowing:{infoText:"A-osan vastaukset lukitaan. Saat estetyt laskinohjelmat käyttöösi hetken kuluttua.",cancel:"Peruuta ({{count}} s)"},allowed:{infoText:"A-osa palautettu"}},"examine-exam":{examine:"Siirry tarkastelemaan vastauksiasi",instructions:"Tarkastelun jälkeen voit vielä palata muokkaamaan vastauksia, tai päättää kokeen."},undo:{loading:"Ladataan...",close:"Sulje",restoreAnswer:"Palauta",answerNoText:"ei tekstiä",answerWordCount:"{{count}} sana",answerWordCount_plural:"{{count}} sanaa",answerCharacterCount:"{{count}} merkki",answerCharacterCount_plural:"{{count}} merkkiä",answerImageCount:"{{count}} kuva",answerImageCount_plural:"{{count}} kuvaa",minutesSinceAnswer:"{{ minutes }} min sitten",latestVersion:"Viimeisin versio"},examineExam:{returnToExam:"Palaa suorittamaan koetta",checkYourAnswersTitle:"Tarkista vastauksesi",hereAreYourAnswers:"Näet tässä vastauksesi samanlaisina kuin kokeen arvostelijat tulevat ne näkemään.",checkYourAnswers:"Tarkista, että näet alla kaikki vastaukset, jotka haluat jättää arvosteltavaksi.",removeExcessAnswers:"Jos näet vastauksia, joita et halua jättää arvosteltavaksi, palaa kokeeseen ja poista ne.",emptyAnswersAreHighlighted:"Tyhjät vastaukset on korostettu.",thereMayBeOptionalQuestions:"Kokeessa voi olla valinnaisia tehtäviä, joten tyhjä vastaus ei välttämättä tarkoita virhettä.",questionHasNoAnswer:"Tähän kysymykseen ei ole vastattu",endExamTitle:"Päätä koe",afterInspectingYourAnswers:"Kun olet tarkistanut vastauksesi, päätä koe klikkaamalla alla olevaa nappia.",youCanNotReturnToExam:"Napin klikkaamisen jälkeen et voi enää palata kokeeseen.",thankYouTitle:"Kiitos!",shutdownComputer:"Sammuta vielä tietokoneesi.",returnUsbStick:"Kun kone on sammunut, irrota USB-muisti ja palauta se kokeen valvojalle."},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liian moneen tehtävään:","max-answers-warning":"Vastaa enintään {{count}} tehtävään.","open-writing-mode":"Avaa kirjoitusnäkymä","close-writing-mode":"Pienennä näkymä","listen-times-remaining":"{{count}} kuuntelukerta jäljellä.","listen-times-remaining_plural":"{{count}} kuuntelukertaa jäljellä.","answer-length":"Vastauksen pituus: {{count}} merkki.","answer-length_plural":"Vastauksen pituus: {{count}} merkkiä.","answer-length-with-max-length":"Vastauksen pituus: {{count}} / {{maxLength}} merkkiä.","max-length-surplus":"Vastauksen enimmäispituus {{maxLength}} merkkiä ylittyy {{percentage}} %.","max-length-info":"Vastauksen pituus on enintään {{count}} merkkiä. Ylityksestä seuraa pistevähennys.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","end-of-exam":"Kokeen tehtävät loppuvat tähän.","answering-instructions":{"exam_*_1_1":"Vastaa kokeessa enintään yhteen tehtävään.","exam_*_2_2":"Vastaa kokeessa enintään kahteen tehtävään.","exam_*_3_3":"Vastaa kokeessa enintään kolmeen tehtävään.","exam_*_4_4":"Vastaa kokeessa enintään neljään tehtävään.","exam_*_5_5":"Vastaa kokeessa enintään viiteen tehtävään.","exam_*_6_6":"Vastaa kokeessa enintään kuuteen tehtävään.","exam_*_7_7":"Vastaa kokeessa enintään seitsemään tehtävään.","exam_*_8_8":"Vastaa kokeessa enintään kahdeksaan tehtävään.","exam_*_9_9":"Vastaa kokeessa enintään yhdeksään tehtävään.","exam_*_10_10":"Vastaa kokeessa enintään kymmeneen tehtävään.","exam_*_*_*":"Vastaa kokeessa enintään {{answerCount, range}} tehtävään.","question_*_1_1":"Vastaa yhteen kohdista {{questions, range}}.","question_*_2_2":"Vastaa kahteen kohdista {{questions, range}}.","question_*_3_3":"Vastaa kolmeen kohdista {{questions, range}}.","question_*_4_4":"Vastaa neljään kohdista {{questions, range}}.","question_*_5_5":"Vastaa viiteen kohdista {{questions, range}}.","question_*_6_6":"Vastaa kuuteen kohdista {{questions, range}}.","question_*_7_7":"Vastaa seitsemään kohdista {{questions, range}}.","question_*_8_8":"Vastaa kahdeksaan kohdista {{questions, range}}.","question_*_9_9":"Vastaa yhdeksään kohdista {{questions, range}}.","question_*_10_10":"Vastaa kymmeneen kohdista {{questions, range}}.","question_2_*_1":"Vastaa joko kohtaan {{questions, first}} tai {{questions, last}}.","question_*_*_*":"Vastaa {{answerCount, range}} kohdista {{questions, range}}.","section_*_1_1":"Vastaa yhteen tehtävään.","section_*_2_2":"Vastaa kahteen tehtävään.","section_*_3_3":"Vastaa kolmeen tehtävään.","section_*_4_4":"Vastaa neljään tehtävään.","section_*_5_5":"Vastaa viiteen tehtävään.","section_*_6_6":"Vastaa kuuteen tehtävään.","section_*_7_7":"Vastaa seitsemään tehtävään.","section_*_8_8":"Vastaa kahdeksaan tehtävään.","section_*_9_9":"Vastaa yhdeksään tehtävään.","section_*_10_10":"Vastaa kymmeneen tehtävään.","section_1_*_1":"Vastaa tehtävään {{questions, range}}.","section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","section_*_*_*":"Vastaa {{answerCount, range}} tehtävään.","toc-section_*_1_1":"Vastaa yhteen tehtävään.","toc-section_*_2_2":"Vastaa kahteen tehtävään.","toc-section_*_3_3":"Vastaa kolmeen tehtävään.","toc-section_*_4_4":"Vastaa neljään tehtävään.","toc-section_*_5_5":"Vastaa viiteen tehtävään.","toc-section_*_6_6":"Vastaa kuuteen tehtävään.","toc-section_*_7_7":"Vastaa seitsemään tehtävään.","toc-section_*_8_8":"Vastaa kahdeksaan tehtävään.","toc-section_*_9_9":"Vastaa yhdeksään tehtävään.","toc-section_*_10_10":"Vastaa kymmeneen tehtävään.","toc-section_1_*_1":"Vastaa tehtävään {{questions, range}}.","toc-section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","toc-section_*_*_*":"Vastaa {{answerCount, range}} tehtävään."},"answer-errors":{"screenshot-too-big":"Ottamasi kuvakaappaus on liian iso. Ota uusi kuvakaappaus pienemmästä osasta näyttöä ja yritä uudelleen.","screenshot-byte-limit-reached":"Kokeesi kuvakaappauksille varattu tila on täyttynyt. (Voit viitata aineistokuviin suoraan ilman kuvakaappausta.)","screenshot-upload-failed":"Kuvan liittäminen ei onnistunut. Kokeile uudestaan.","answer-too-long":"Vastaus on liian pitkä."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},Nl=Ml(Cl,["exam-total","material","external-material-title","section","references","toc-heading"]),Sl={"exam-total":"Total points for the exam",material:"Material","external-material-title":"Material",section:"Part {{displayNumber}}:",references:{heading:"Sources",source:"Source:",date:"Published:","reference-date":"Accessed:",translator:"Translation:","modified-by":"Adaptation:"},"toc-heading":"Contents"},kl={"exam-total":"Total des points",material:"Document",material_plural:"Documents","external-material-title":"Document",section:"Partie {{displayNumber}} :",references:{heading:"Sources",source:"Source :",date:"Publication le","reference-date":"Téléchargement le",translator:"Traduction :","modified-by":"Modifications :"},"toc-heading":"Sommaire"},jl={section:""},Dl={"exam-total":"Puntuación total",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fuentes",source:"Fuente:",date:"Publicado:","reference-date":"Consultado:",translator:"Traducción:","modified-by":"Adaptado:"},"toc-heading":"Contenido"},Ol={"exam-total":"Die Prüfung insgesamt",material:"Materialien","external-material-title":"Materialien",section:"Teil {{displayNumber}}:",references:{heading:"Quellen",source:"Quelle:",date:"Veröffentlicht:","reference-date":"Zugriff:",translator:"Übersetzung:","modified-by":"Bearbeitung:"},"toc-heading":"Inhalt"},Ll={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Rl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:El,BB:El,CA:Nl,CB:Nl,EA:Sl,EC:Sl,FA:kl,FC:kl,GC:{"exam-total":"Totalidade da pontuação",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fontes",source:"Fonte:",date:"Publicado:","reference-date":"Acedido:",translator:"Tradução:","modified-by":"Adaptação:"},"toc-heading":"Conteúdo"},I:{"exam-total":"Iskos ohtsis",material:"Amnâstuvah","external-material-title":"Amnâstuvah","attachments-page-title":"Amnâstuvah:",section:"Uási {{displayNumber}}:",points:"{{count}} č.",references:{source:"Käldee:",date:"Almostittum:","reference-date":"Čujottum:",translator:"Jurgâlus:","modified-by":"Heiviittâs:"},"answering-instructions":{"toc-section_*_1_1":"Fáádáh","section_*_1_1":"Valjii oovtâ fáádá."},"toc-heading":"Siskáldâs"},M:jl,N:jl,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:Ol,SC:Ol,PA:Dl,PC:Dl,TC:{"exam-total":"Punteggio complessivo",material:"Materiale","external-material-title":"Materiale",section:"Parte {{displayNumber}}:",references:{heading:"Fonti",source:"Fonte:",date:"Pubblicato:","reference-date":"Consultato:",translator:"Traduzione:","modified-by":"Adattamento:"},"toc-heading":"Contenuto"},VA:Ll,VC:Ll,Z:{"exam-total":"Iskkus oktiibuot",material:"Ávdnasat","external-material-title":"Ávdnasat","attachments-page-title":"Ávdnasat:",section:"Oassi {{displayNumber}}:",points:"{{count}} č.",references:{heading:"Gáldut",source:"Gáldu:",date:"Almmuhuvvon:","reference-date":"Vižžojuvvon:",translator:"Jorgalus","modified-by":"Heivehus:"},"answering-instructions":{"toc-section_*_1_1":"Fáttát","section_*_1_1":"Vállje ovtta fáttá."},"toc-heading":"Sisdoallu"}},Pl={"fi-FI":{translation:Cl,...Rl},"sv-FI":{translation:Al,...Rl}};function zl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return hl.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:Pl,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{const n=e;switch(t){case"range":{const[e,t]=n;return null==e?t:null==t||e===t?e:`${e}–${t}`}case"first":return gl(n);case"last":return ml(n);default:return e}}}},yl)}function Ul(){const{i18n:e,t:n}=y(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Rl,s=a&&function(e,t,n){return Array.isArray(n)?n.some((n=>null!=e.getResource(e.language,t,n))):null!=e.getResource(e.language,t,n)}(e,o,n);return s||!a?i:t().createElement("span",{lang:e.language},i)}(e,n,r);return r.raw=n,{i18n:e,t:r}}const _l=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(yl).catch(yl)},Fl=new WeakMap;let Bl=0;const Gl=e=>t=>`${e}-${(e=>{const t=Fl.get(e);if(null!=t)return t;const n=++Bl;return Fl.set(e,n),n})(t)}`,Zl=e=>t=>`${e}-${t}`,Hl="title",ql="references-title",Vl=Zl("section-title"),Yl=Zl("question-title"),Wl=Gl("question-instruction"),Ql=Gl("answer-length-info"),Jl=Gl("external-material-list-title"),Xl=Zl("toc-section-title"),$l=Gl("answer-score"),Kl=Gl("image-caption"),ec=Gl("video-caption"),tc=Gl("audio-label"),nc="toc-title";function rc(){const e=decodeURIComponent(window.location.hash).slice(1);if(e){const n=document.getElementById(e);n&&((t=n).setAttribute("tabindex","-1"),t.style.outline="none",t.addEventListener("blur",(()=>{t.removeAttribute("tabindex"),t.style.outline=""}),{once:!0}),t.focus(),t.scrollIntoView())}var t;return window.addEventListener("hashchange",rc),()=>window.removeEventListener("hashchange",rc)}function ic(t){return(0,e.useState)(t)[0]}const oc=t().memo((n=>{const r=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{r.current&&(document.title=r.current.textContent)})),t().createElement("h1",{...n,ref:r})})),ac=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},sc=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),lc=e=>{const n=Sr()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)};function cc(e){return e.displayName||e.name||"Component"}const uc=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};return i.displayName=`WithContext(${cc(r)})`,i},dc=t().createContext({});function fc(e){return uc(dc,(({attachmentsURL:e,resolveAttachment:t,doc:n,abitti2:r})=>{var i;const o=n.documentElement,a=Ee(o,"date"),s=Ee(o,"exam-lang"),l=null!==(i=Ee(o,"exam-type"))&&void 0!==i?i:"normal",c=Ee(o,"lang")||s;return{attachmentsURL:e,date:a?new Date(a):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:Ee(o,"day-code"),examCode:Ee(o,"exam-code"),language:s,subjectLanguage:c,examType:l,maxAnswers:Ce(o,"max-answers"),maxScore:Ce(o,"max-score"),sections:Te(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const pc=t().createContext({}),hc=uc(pc,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),gc=t().createContext({}),mc=uc(gc,(({element:e})=>({casForbidden:Ne(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:Ce(e,"max-answers"),minAnswers:Ce(e,"min-answers"),maxScore:Ce(e,"max-score"),childQuestions:Se(e,(e=>e)).filter((e=>"question"===e.localName))})));function yc(e,t){const n=new URL(e,"http://example.com");ye(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const vc=({children:e,href:n,type:r})=>"link"===r?t().createElement("a",{href:n,className:"attachment-link e-nowrap",target:"attachments"},e):t().createElement("span",{className:"attachment-link e-nowrap"},e),bc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(dc),{attachmentsURL:a}=(0,e.useContext)(dc),{t:s}=Ul(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=yc(a,{hash:l});return c?t().createElement(vc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(vc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),Ic=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(dc),{t:a}=Ul(),s=Se(r,(e=>{const t=e.getAttribute("ref");return we(i,(e=>"attachment"===e.localName&&e.getAttribute("name")===t)).getAttribute("display-number")})),l=function(e,t){const n=[[]];let r;for(let i=0;i<e.length;i++){const o=e[i];if(r&&t(o,i)){const e=[o];n.push(e)}else n[n.length-1].push(o);r=o}return n}(s,((e,t)=>t>0&&!function(e,t){const n=e.length;return n===t.length&&(e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1)}(s[t-1],e))),c="short"===r.getAttribute("type"),u=yc(o,{hash:s[0]}),d=l.map((e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0])).join(", "),f=l[0].length;return c?t().createElement(vc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(vc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),xc=t().createContext({}),wc=uc(xc,(({element:e})=>{const t=null!=Me(e,"external-material"),n=e.getAttribute("name");return t?{displayNumber:e.getAttribute("display-number"),isExternal:t,name:n}:{displayNumber:null,isExternal:t,name:n}})),Tc=t().memo(wc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(xc);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),Mc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(xc);return t().createElement("h3",null,i,be,r(n))}));var Ac=a(5919),Ec=e,Cc=Symbol.for("react-redux-context"),Nc="undefined"!=typeof globalThis?globalThis:{};function Sc(){if(!Ec.createContext)return{};const e=Nc[Cc]??(Nc[Cc]=new Map);let t=e.get(Ec.createContext);return t||(t=Ec.createContext(null),e.set(Ec.createContext,t)),t}var kc=Sc();function jc(e=kc){return function(){return Ec.useContext(e)}}var Dc=jc(),Oc=()=>{throw new Error("uSES not initialized!")},Lc=(e,t)=>e===t;function Rc(e=kc){const t=e===kc?Dc:jc(e),n=(e,n={})=>{const{equalityFn:r=Lc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(Ec.useRef(!0),Ec.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Oc(a.addNestedSub,o.getState,s||o.getState,u,r);return Ec.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var Pc=Rc();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var zc={notify(){},get:()=>[]};var Uc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),_c="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Fc=Uc||_c?Ec.useLayoutEffect:Ec.useEffect;function Bc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Gc(e,t){if(Bc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Bc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var Zc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ec.useMemo((()=>{const t=function(e,t){let n,r=zc,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){var t;t=()=>{let t=e;for(;t;)t.callback(),t=t.next},t()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=zc)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}}),[e,r,i,o]),s=Ec.useMemo((()=>e.getState()),[e]);Fc((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||kc;return Ec.createElement(l.Provider,{value:a},n)};function Hc(e=kc){const t=e===kc?Dc:jc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var qc=Hc();function Vc(e=kc){const t=e===kc?qc:Hc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Yc,Wc=Vc();Yc=Ac.useSyncExternalStoreWithSelector,Oc=Yc,e.useSyncExternalStore;const Qc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Jc=(e,t)=>n=>n.audio.errors[null!=t?t:e],Xc=e=>t=>An(t.audio.playbackTimes,e,0),$c=(e,t)=>n=>t-Xc(e)(n),Kc=e=>{const{serverQuestionIds:t,savedQuestionIds:n,answersById:r}=e.answers;return 0===t.size?"initial":t.size!==n.size||function(e,t){for(const n in t)if(!e.has(Number(n)))return!0;return!1}(t,r)?"saving":"saved"},eu=!("undefined"==typeof window||!window.document||!window.document.createElement);var tu=(new Date).getTime(),nu=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-tu)),r=setTimeout(e,n);return tu=t,r},ru=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};eu&&["","webkit","moz","o","ms"].some((function(e){var t=ru(e,"request");return t in window&&(ru(e,"cancel"),nu=function(e){return window[t](e)}),!!nu}));var iu=nu;function ou(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function au(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function su(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=au(e.className,t):e.setAttribute("class",au(e.className&&e.className.baseVal||"",t))}var lu=/([A-Z])/g,cu=/^ms-/;function uu(e){return function(e){return e.replace(lu,"-$1").toLowerCase()}(e).replace(cu,"-ms-")}var du=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const fu=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(uu(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(uu(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!du.test(e))}(i)?r+=i+"("+o+") ":n+=uu(i)+": "+o+";":e.style.removeProperty(uu(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var pu=!1,hu=!1;try{var gu={get passive(){return pu=!0},get once(){return hu=pu=!0}};eu&&(window.addEventListener("test",gu,gu),window.removeEventListener("test",gu,!0))}catch(xg){}const mu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!hu){var i=r.once,o=r.capture,a=n;!hu&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,pu?r:o)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}(e,t,n,r)}};function yu(e,t,n,r){var i,o;null==n&&(o=-1===(i=fu(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(i)*o||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent("transitionend",n,r),e.dispatchEvent(i)}}(e,0,!0)}),t+n),o=mu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=mu(e,"transitionend",t);return function(){a(),s()}}function vu(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(!e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}var bu=Fa().oneOfType([Fa().string,Fa().shape({enter:Fa().string,leave:Fa().string,active:Fa().string,height:Fa().string}),Fa().shape({enter:Fa().string,enterActive:Fa().string,leave:Fa().string,leaveActive:Fa().string,appear:Fa().string,appearActive:Fa().string,height:Fa().string,heightActive:Fa().string})]);function Iu(e){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(e)}function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mu(e,t){return Mu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mu(e,t)}function Au(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eu(e)}function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=[];yu&&Nu.push(yu);var Su={children:Fa().node,name:bu.isRequired,appear:Fa().bool,enter:Fa().bool,leave:Fa().bool,appearTimeout:Fa().number,enterTimeout:Fa().number,leaveTimeout:Fa().number},ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Eu(i);if(o){var n=Eu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Iu(t)&&"function"!=typeof t?Au(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Cu(Au(n=a.call(this,e)),"refNode",t().createRef()),Cu(Au(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Cu(Au(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Cu(Au(n),"componentWillLeave",(function(e){n.props.leave?n.transition("leave",e,n.props.leaveTimeout):e()})),n.classNameAndNodeQueue=[],n.transitionTimeouts=[],n}return n=s,r=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"getNode",value:function(){return this.refNode.current}},{key:"transition",value:function(e,t,n){var r=this.getNode();if(r){var i,o=this.props.name[e]||this.props.name+"-"+e,a=this.props.name[e+"Active"]||o+"-active",s=null;ou(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(su(r,o),su(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):yu&&(i=function(e,t){return Nu.length?Nu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){Nu.length&&Nu.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,l))}else t&&t()}},{key:"queueClassAndNode",value:function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=iu((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=iu((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,ou(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=wu(wu({},this.props),{},{ref:this.refNode});return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,t().cloneElement(t().Children.only(this.props.children),e)}}],r&&Tu(n.prototype,r),s}(t().Component);Cu(ku,"displayName","CSSTransitionGroupChild"),ku.propTypes=Su;const ju=ku;function Du(e){return Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(e)}function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){_u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pu(e,t){return Pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pu(e,t)}function zu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uu(e)}function _u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Uu(i);if(o){var n=Uu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Du(t)&&"function"!=typeof t?zu(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),_u(zu(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),_u(zu(n),"performLeave",(function(e){var t,r;n.transitioningKeys[e]=!0,null===(t=n.childRefs[e].current)||void 0===t||t.componentWillLeave(n.handleDoneLeaving.bind(zu(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),_u(zu(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=zu(n).state,r=t.currentChild?null===(e=n.childRefs[t.currentKey].current)||void 0===e?void 0:e.getNode():null;n.setState({height:r?r.offsetHeight:0,width:n.props.changeWidth?r?r.offsetWidth:0:null})}n.rafHandle=null})),_u(zu(n),"setChildRef",(function(e,r){if(r){var i=t().createRef();i.current=r,n.childRefs[e]=i}else delete n.childRefs[e]})),n.childRefs=Object.create(null),n.state={currentKey:"1",currentChild:n.props.children?t().Children.only(n.props.children):void 0,prevChildren:{},height:null,width:null},n.shouldEnterCurrent=!1,n.keysToLeave=[],n.transitioningKeys={},n}return n=s,r=[{key:"componentDidMount",value:function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)}},{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var n=e.children?t().Children.only(e.children):void 0,r=this.state.currentChild;if(r&&n&&n.key===r.key&&!this.state.nextChild)return this.setState({currentChild:n});var i=this.state,o=i.currentKey,a=i.prevChildren,s={currentKey:String(Number(o)+1),currentChild:n,height:0,width:this.props.changeWidth?0:null};if(n&&(this.shouldEnterCurrent=!0),r){var l,c=null===(l=this.childRefs[o].current)||void 0===l?void 0:l.getNode();s.height=c?c.offsetHeight:0,s.width=this.props.changeWidth?c?c.offsetWidth:0:null,s.prevChildren=Lu(Lu({},a),{},_u({},o,r)),this.transitioningKeys[o]||this.keysToLeave.push(o)}this.setState(s)}},{key:"componentDidUpdate",value:function(){var e;this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,null!==(e=this.childRefs[this.state.currentKey].current)&&void 0!==e&&e.getNode()&&this.performEnter(this.state.currentKey));var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"performAppear",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()}},{key:"handleDoneEntering",value:function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)}},{key:"handleDoneLeaving",value:function(e){var t;delete this.transitioningKeys[e];var n={prevChildren:Lu({},this.state.prevChildren)};delete n.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&null!==(t=this.childRefs[this.state.currentKey].current)&&void 0!==t&&t.getNode()||(n.height=null),this.setState(n)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=iu(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Du(r)&&null!==r&&delete(r=Lu({},r)).height,t().createElement(ju,Lu({name:r,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},n),e)}},{key:"render",value:function(){var e=this,n=this.state,r=n.currentKey,i=n.currentChild,o=n.prevChildren,a=n.height,s=n.width,l=[],c=this.props,u=c.overflowHidden,d=c.transitionName,f=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(c,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),m=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=Lu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var y="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=a}null!==s&&(g.style.width=s);var v={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(o).forEach((function(n){var r=o[n];l.push(t().createElement(p,{key:n,style:v},e.wrapChild(h&&"string"!=typeof r.type?t().cloneElement(r,{isLeaving:!0}):r,{ref:function(t){return e.setChildRef(n,t)}})))})),i&&l.push(t().createElement(p,{key:r,style:this.transitioningKeys[r]?v:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}],r&&Ru(n.prototype,r),s}(t().Component);_u(Fu,"displayName","ReactCSSTransitionReplace"),_u(Fu,"propTypes",{transitionName:bu.isRequired,transitionAppear:Fa().bool,transitionEnter:Fa().bool,transitionLeave:Fa().bool,transitionAppearTimeout:vu("Appear"),transitionEnterTimeout:vu("Enter"),transitionLeaveTimeout:vu("Leave"),overflowHidden:Fa().bool,changeWidth:Fa().bool,notifyLeaving:Fa().bool}),_u(Fu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Bu=({error:e,children:n})=>{const{t:r}=Ul();return t().createElement(Fu,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(Ka,{icon:fs,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Gu=a(758);const Zu=e=>(0,Gu.action)("PLAY_AUDIO",e),Hu=e=>(0,Gu.action)("PLAY_AUDIO_STARTED",e),qu=()=>(0,Gu.action)("PLAY_AUDIO_FINISHED"),Vu=(e,t)=>(0,Gu.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Yu=e=>(0,Gu.action)("HIDE_AUDIO_ERROR",e),Wu=e=>(0,Gu.action)("UPDATE_REMAINING",e),Qu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=Pc(Qc(n,r)),l=Pc(((e,t)=>n=>"playing"===Qc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=Pc($c(r,o)),{i18n:u}=Ul(),d=Wc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:y}=(0,e.useContext)(dc),v=(0,e.useRef)(null);return t().createElement("div",{className:Sr()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":h}),lang:u.language},y&&t().createElement("audio",{ref:v,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:Sr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(Zu({src:n,restrictedAudioId:r,duration:i,audioRef:v})),"aria-labelledby":m.join(" ")},!f&&t().createElement(Ka,{icon:cs,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},function(e){const t=e%60;return`${Ju(Math.floor(e/60))}:${Ju(t)}`}(null!=l?l:i)))}));function Ju(e){return e.toString().padStart(2,"0")}const Xu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=Ce(n,"restricted-audio-id"),s=Ce(n,"times"),l=Ce(n,"duration"),{t:c}=Ul(),u=null!=s&&null!=a?Pc(Jc(o,a)):void 0,d=null!=s&&null!=a?Pc($c(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(dc),p=tc(n);return t().createElement("div",{className:Sr()("audio e-columns e-columns--center-v e-mrg-b-2",r)},null!=a&&null!=s?t().createElement(Qu,{src:o,restrictedAudioId:a,duration:l,times:s,labelId:p}):t().createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},t().createElement("source",{src:f(o)})),t().createElement("div",{className:"e-column",id:p},t().createElement(Bu,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),$u=Ms({attachment:wc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(xc);return t().createElement("li",{"data-list-number":r,"aria-label":r},$u(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(dc),{displayNumber:i}=(0,e.useContext)(xc);return t().createElement("a",{href:yc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},$u(n))}}),Ku=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=Ul(),o=Jl(e);return t().createElement("div",{className:"external-material-list e-mrg-b-4"},n&&t().createElement("h4",{className:"external-material-title",id:o},i("external-material-title")),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":o},$u(e)))})),ed=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(dc);return t().createElement("a",{className:Sr()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),td=t().memo((function({element:e,className:n}){const r=Ee(e,"svg"),i=Ee(e,"assistive-title"),o="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:Sr()("e-formula",{"e-block e-text-center":o},n),dangerouslySetInnerHTML:{__html:r},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},i||e.textContent))})),nd=({bordered:e=!1,className:n,children:r,height:i,width:o,caption:a,captionId:s})=>{const l=i/o*100+"%",c=o+(e?18:0);return t().createElement("span",{className:Sr()("responsive-media-container",{"responsive-media-container--bordered":e},n),style:{maxWidth:c}},t().createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},r),a&&t().createElement("span",{className:"e-block e-mrg-t-1 e-font-size-s e-light",id:s},a))};function rd(e){return"string"==typeof e&&0===e.trim().length}const id=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(dc),{t:a}=Ul(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Ae(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every(rd),p=f?d:void 0,h=f?Kl(n):void 0,g=o(s),m=t().createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return t().createElement(t().Fragment,null,t().createElement(nd,{className:r,width:l,height:c,caption:p,captionId:h,bordered:f||null!=Me(n,"choice-answer")},null!=Me(n,["choice-answer","hint"])?m:t().createElement("a",{title:a.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!f,tabIndex:-1},m)))}));function od({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function ad({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function sd({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement(t().Fragment,null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(dc);return t().createElement(t().Fragment,null,i.format(n))}}const ld=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=Ul();function i(r,i){const o=Ae(e,r);if(o){const e=o.localName,r=t().createElement(i,{element:o,renderChildNodes:n,key:e});if(r)return Ne(o,"hidden")?t().createElement("del",{key:e},r):r}}function o(i,o,a){const s=Ae(e,i);return s&&t().createElement(t().Fragment,{key:s.localName},r(o)," ",t().createElement(a,{element:s,renderChildNodes:n,key:s.localName}))}return t().createElement("span",{className:Sr()("e-break-word",{"e-line-through":Ne(e,"hidden")})},r("references.source"),be,(". ",(a=[i("author",ac),i("title",od),i("publisher",ac),i("publication",ac),i("howpublished",ac),i("url",ad),o("publication-date","references.date",sd),o("reference-date","references.reference-date",sd),o("translator","references.translator",ac),o("modified-by","references.modified-by",ac),i("note",ac)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),cd=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(dc),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Ae(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every(rd),f=d?u:void 0,p=d?ec(n):void 0;return t().createElement(nd,{caption:f,captionId:p,className:i,width:s,height:l},t().createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},t().createElement("source",{src:o(a)})))}));const ud=function(e){var t=function(e){return e?1/0===(e=dr(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0};var dd=4294967295,fd=Math.min;function pd({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Ae(r,"image-title");return t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},t().createElement("div",{className:"e-column e-text-right e-mrg-r-1"},o&&i(o)),t().createElement(Ka,{icon:rs,className:"e-mrg-r-1 e-pointer",onClick:()=>n(0)}),t().createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>n(Number(e.target.value))}),t().createElement(Ka,{icon:as,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function hd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(dc).resolveAttachment(o);return t().createElement("div",{className:Sr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(nd,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const gd=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=ud(e))<1||e>9007199254740991)return[];var n=dd,r=fd(e,dd);t=me(t),e-=dd;for(var i=w(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),a=e=>t=>{const n=[...i];n[e]=t,o(n)};return t().createElement("div",{className:"e-image-overlay e-mrg-b-1"},t().createElement("div",{className:"e-columns e-columns--center-h"},t().createElement("div",null,Se(n,((e,n)=>t().createElement(pd,{key:n,opacity:i[n],element:e,setOpacity:a(n),renderChildNodes:r}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(hd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),md=t().createContext({}),yd=uc(md,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Wl).join(" "):Yl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function vd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(md);return t().createElement(t().Fragment,null,gl(i.split(".")),".",r)}const bd=t().memo((function({element:e}){const{t:n}=Ul(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),Id=Ms({"attachment-link":bc("link"),"attachment-links":Ic("link"),"attachment-title":Mc,attachment:Tc,audio:Xu,"audio-title":ac,file:ed,image:id,video:cd,formula:td,"question-number":vd,translation:bd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${cc(e)})`,i}(ld,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":gd}),xd=t().memo((function({element:e,forceRender:n=!1}){if(null==Me(e,"question")&&!n)return null;const r=e.children.length;return t().createElement(t().Fragment,null,r>1&&t().createElement(Ku,{element:e,renderChildNodes:Id,showTitle:!1,forceRender:n}),Id(e))})),wd=t().memo(yd((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(md);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(lc,{id:i,"aria-labelledby":Yl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function Td(e){return e.includes(".")?e:`${e}.`}const Md=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(md);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Yl(i)},Td(i)," ",r(n))):null})),Ad=Ms({"audio-group":sc,"external-material":xd,"question-title":Md,question:wd,section:mc(ac)}),Ed=()=>{const{t:e}=Ul();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Cd=t().memo(hc(fc((({annotations:n,onClickAnnotation:r,onSaveAnnotation:i})=>{const{root:o,language:a,date:s,dateTimeFormatter:l,dayCode:c,examCode:u,resolveAttachment:d,subjectLanguage:f}=(0,e.useContext)(dc),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=ic((()=>zl(a,u,c)));return(0,e.useEffect)(_l(m,a)),(0,e.useEffect)(rc,[]),t().createElement(ms,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(v,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":Hl},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(lc,{"aria-labelledby":Hl},p&&t().createElement(oc,{id:Hl},t().createElement(Ed,null),be,Ad(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(xd,{element:g,renderChildNodes:Ad,forceRender:!0})),Ad(o))))}))));function Nd(e){const t=e.documentElement;return Dd(t,Te(t,"section",!1).map(Sd),{maxAnswers:Ce(t,"max-answers")})}function Sd(e){return Dd(e,Te(e,"question",!1).map(kd),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function kd(e){const t=Te(e,"question",!1);return Dd(e,t.length?t.map(kd):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(jd),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function jd(e){return Dd(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Dd(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Od=function(e,t){return(F(e)?yn:Vn)(e,Sn(t))};var Ld=kn((function(e,t,n){Qe(e,n,t)}));const Rd=Ld;function Pd(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Ud=()=>Math.random().toString(36).substring(7).split("").join("."),_d={INIT:`@@redux/INIT${Ud()}`,REPLACE:`@@redux/REPLACE${Ud()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ud()}`};function Fd(e,t,n){if("function"!=typeof e)throw new Error(Pd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Pd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Pd(1));return n(Fd)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(l)throw new Error(Pd(3));return i}function d(e){if("function"!=typeof e)throw new Error(Pd(4));if(l)throw new Error(Pd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Pd(6));t=!1,c(),a.delete(n),o=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Pd(7));if(void 0===e.type)throw new Error(Pd(8));if("string"!=typeof e.type)throw new Error(Pd(17));if(l)throw new Error(Pd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:_d.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Pd(10));r=e,f({type:_d.REPLACE})},[zd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Pd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[zd](){return this}}}}}function Bd(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Gd=function(e){return"@@redux-saga/"+e},Zd=Gd("CANCEL_PROMISE"),Hd=Gd("CHANNEL_END"),qd=Gd("IO"),Vd=Gd("MATCH"),Yd=Gd("MULTICAST"),Wd=Gd("SAGA_ACTION"),Qd=Gd("SELF_CANCELLATION"),Jd=Gd("TASK"),Xd=Gd("TASK_CANCEL"),$d=Gd("TERMINATE"),Kd=Gd("LOCATION");function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ef.apply(null,arguments)}function tf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var nf=function(e){return null==e},rf=function(e){return null!=e},of=function(e){return"function"==typeof e},af=function(e){return"string"==typeof e},sf=Array.isArray,lf=function(e){return e&&of(e.then)},cf=function(e){return e&&of(e.next)&&of(e.throw)},uf=function e(t){return t&&(af(t)||pf(t)||of(t)||sf(t)&&t.every(e))},df=function(e){return e&&of(e.take)&&of(e.close)},ff=function(e){return of(e)&&e.hasOwnProperty("toString")},pf=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},hf=function(e){return df(e)&&e[Yd]};const gf=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[Zd]=function(){clearTimeout(n)},r};var mf=function(e){return function(){return true}}(),yf=function(){},vf=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var bf=function(e,t){ef(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function If(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function xf(e){var t=!1;return function(){t||(t=!0,e())}}var wf=function(e){throw e},Tf=function(e){return{value:e,done:!0}};function Mf(e,t,n){void 0===t&&(t=wf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Tf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Af(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Ef=function(e){return Array.apply(null,new Array(e))},Cf=function(e){return function(t){return e(Object.defineProperty(t,Wd,{value:!0}))}},Nf=function(e){return e===$d},Sf=function(e){return e===Xd},kf=function(e){return Nf(e)||Sf(e)};function jf(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=sf(e)?Ef(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||kf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=yf,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Df(e){return{name:e.name||"anonymous",location:Of(e)}}function Of(e){return e[Kd]}function Lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Rf={isEmpty:mf,put:yf,take:yf};var Pf=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}(e,4)},zf="TAKE",Uf="PUT",_f="RACE",Ff="CALL",Bf="FORK",Gf="CANCEL",Zf="SELECT",Hf="CANCELLED",qf=function(e,t){var n;return(n={})[qd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Vf(e,t){return void 0===e&&(e="*"),uf(e)?(rf(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),qf(zf,{pattern:e})):hf(e)&&rf(t)&&uf(t)?qf(zf,{channel:e,pattern:t}):df(e)?(rf(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),qf(zf,{channel:e})):void 0}function Yf(e,t){return nf(t)&&(t=e,e=void 0),qf(Uf,{channel:e,action:t})}function Wf(e,t){var n,r=null;return of(e)?n=e:(sf(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&af(n)&&of(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Qf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Ff,Wf(e,n))}function Jf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Bf,Wf(e,n))}function Xf(e){return void 0===e&&(e=Qd),qf(Gf,e)}var $f=Qf.bind(null,gf);const Kf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var ep=[],tp=0;function np(e){try{op(),e()}finally{ap()}}function rp(e){ep.push(e),tp||(op(),sp())}function ip(e){try{return op(),e()}finally{sp()}}function op(){tp++}function ap(){tp--}function sp(){var e;for(ap();!tp&&void 0!==(e=ep.shift());)np(e)}var lp=function(e){return function(t){return e.some((function(e){return pp(e)(t)}))}},cp=function(e){return function(t){return e(t)}},up=function(e){return function(t){return t.type===String(e)}},dp=function(e){return function(t){return t.type===e}},fp=function(){return mf};function pp(e){var t="*"===e?fp:af(e)?up:sf(e)?lp:ff(e)?up:of(e)?cp:pf(e)?dp:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var hp={type:Hd},gp=function(e){return e&&e.type===Hd};function mp(e){void 0===e&&(e=Pf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(hp):e.isEmpty()?(n.push(r),r.cancel=function(){If(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(hp):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(hp)}}}}function yp(){var e,t,n,r,i,o,a=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(hp)}))},(e={})[Yd]=!0,e.put=function(e){if(!t)if(gp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Vd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=fp),t?e(hp):(e[Vd]=n,i(),r.push(e),e.cancel=xf((function(){i(),If(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Wd]?s(e):rp((function(){s(e)}))},a}var vp=0,bp=1,Ip=2,xp=3;function wp(e,t){var n=e[Zd];of(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Tp,Mp=0,Ap=function(){return++Mp};function Ep(e){e.isRunning()&&e.cancel()}var Cp=((Tp={})[zf]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!gp(e)||a?n(e):n($d)};try{i.take(s,rf(o)?pp(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Tp[Uf]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;rp((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&lf(t)?wp(t,n):n(t)}))},Tp.ALL=function(e,t,n,r){var i=r.digestEffect,o=Mp,a=Object.keys(t);if(0!==a.length){var s=jf(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(sf(t)?[]:{})},Tp[_f]=function(e,t,n,r){var i=r.digestEffect,o=Mp,a=Object.keys(t),s=sf(t)?Ef(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||kf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=yf,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||i(t[e],o,l[e],e)}))},Tp[Ff]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(lf(l))return void wp(l,n);if(cf(l))return void zp(e,l,s.context,Mp,Df(o),!1,n);n(l)}catch(e){n(e,!0)}},Tp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){nf(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Tp[Bf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(cf(i))return i;var o=!1;return Mf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!lf(i)})}))}catch(e){return Mf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Df(t)}(c,o);ip((function(){var t=zp(e,c,l.context,Mp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Tp.JOIN=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&If(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(sf(t)){if(0===t.length)return void n([]);var a=jf(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},Tp[Gf]=function(e,t,n,r){var i=r.task;t===Qd?Ep(i):sf(t)?t.forEach(Ep):Ep(t),n()},Tp[Zf]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},Tp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=mp(t.buffer),o=pp(r),a=function t(n){gp(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},Tp[Hf]=function(e,t,n,r){n(r.task.isCancelled())},Tp.FLUSH=function(e,t,n){t.flush(n)},Tp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Tp.SET_CONTEXT=function(e,t,n,r){var i=r.task;bf(i.context,t),n()},Tp);function Np(e,t){return e+"?"+t}function Sp(e){var t=e.name,n=e.location;return n?t+" "+Np(n.fileName,n.lineNumber):t}function kp(e){var t,n,r,i=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return i.length?["Tasks cancelled due to error:"].concat(i).join("\n"):""}var jp=null,Dp=[],Op=function(e){e.crashedEffect=jp,Dp.push(e)},Lp=function(){jp=null,Dp.length=0},Rp=function(e){jp=e},Pp=function(){var e,t,n=Dp[0],r=Dp.slice(1),i=n.crashedEffect?(e=n.crashedEffect,(t=Of(e))?t.code+" "+Np(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Sp(n.meta)+(i?" \n when executing effect "+i:"")].concat(r.map((function(e){return" created by "+Sp(e.meta)})),[kp(Dp)]).join("\n")};function zp(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){lf(t)?wp(t,r):cf(t)?zp(e,t,c.context,n,i,!1,r):t&&t[qd]?(0,Cp[t.type])(e,t.payload,r,u):r(t)}));d.cancel=yf;var l={meta:i,cancel:function(){l.status===vp&&(l.status=bp,d(Xd))},status:vp},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=yf);var l,c,u=vp,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(If(i,t),t.cont=yf,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=yf,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=Ip,Op({meta:i,cancelledTasks:f}),m.isRoot){var r=Pp();Lp(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===Xd?u=bp:u!==bp&&(u=xp),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Jd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===vp&&(u=bp,h.cancelAll(),g(Xd,!1))},s.cont=a,s.end=g,s.setContext=function(e){bf(p,e)},s.toPromise=function(){return d||(d=Kf(),u===Ip?d.reject(c):u!==vp&&d.resolve(l)),d.promise},s.isRunning=function(){return u===vp},s.isCancelled=function(){return u===bp||u===vp&&t.status===bp},s.isAborted=function(){return u===Ip},s.result=function(){return l},s.error=function(){return c},s);return m}(e,l,n,r,i,o,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var i;n?(i=t.throw(e),Lp()):Sf(e)?(l.status=bp,d.cancel(),i=of(t.return)?t.return(Xd):{done:!0,value:Xd}):i=Nf(e)?of(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==bp&&(l.status=xp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===bp)throw e;l.status=Ip,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=Ap();function l(n,i){o||(o=!0,r.cancel=yf,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Rp(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=yf,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=yf,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Up(e,t){for(var n=e.channel,r=void 0===n?yp():n,i=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?Af:u,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var g,m=t.apply(void 0,p),y=Ap();if(l&&(l.rootSagaStarted=l.rootSagaStarted||yf,l.effectTriggered=l.effectTriggered||yf,l.effectResolved=l.effectResolved||yf,l.effectRejected=l.effectRejected||yf,l.effectCancelled=l.effectCancelled||yf,l.actionDispatched=l.actionDispatched||yf,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=Lf.apply(void 0,c);g=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else g=vf;var b={channel:r,dispatch:Cf(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return ip((function(){var e=zp(b,m,s,y,Df(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}const _p=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?yp():o,s=n.sagaMonitor,l=tf(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Up.bind(null,ef({},l,{context:i,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){bf(i,e)},c};var Fp=function(e){return{done:!0,value:e}},Bp={};function Gp(e){return df(e)?"channel":ff(e)?String(e):of(e)?e.name:String(e)}function Zp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Bp)return Fp(t);if(n&&!i)throw a=Bp,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===Bp?Fp(t):o}return Mf(s,(function(e){return s(null,e)}),n)}function Hp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:Vf(e)},s=function(e){return o=e};return Zp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Jf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Gp(e)+", "+t.name+")")}function qp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a,s={done:!1,value:Vf(e)},l=function(e){return{done:!1,value:Jf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:Xf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Zp({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return o?{nextState:"q3",effect:c(o)}:{nextState:"q1",effect:l(a),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:u}}},"q1","takeLatest("+Gp(e)+", "+t.name+")")}const Vp=function(e,t){return qn(Od(e,t),1)};function Yp(e,t){return function(e,n,r){return function e(n,r){return r.childNodes.reduce(e,((e,n)=>{if("text-answer"===n.name&&null!=n.attributes.maxLength){const r=t[n.attributes.questionId];return("richText"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type))&&r.characterCount>n.attributes.maxLength?[...e,{type:"AnswerTooLong",displayNumber:n.attributes.displayNumber,characterCount:r.characterCount,elementType:"question"}]:e}return e})(n,r))}([],e)}(e)}function Wp(e,t){return function e(n){var r;const i="exam"===n.name?"":n.attributes.displayNumber;switch(n.name){case"exam":case"section":case"question":{const t=n.childNodes.map(e),o=t.filter((e=>e.answerCount>0)),a=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?o.reduce(((e,t)=>e+t.answerCount),0):o.length,c=Vp(t,(e=>e.extraAnswers));return{answerCount:l,displayNumber:i,extraAnswers:l>a?[{type:"ExtraAnswer",elementType:n.name,displayNumber:i,childQuestions:t.map((e=>e.displayNumber)),maxAnswers:a,minAnswers:s},...c]:c}}case"text-answer":case"scored-text-answer":case"choice-answer":case"dropdown-answer":{const e=t[n.attributes.questionId];return{answerCount:(null==e?void 0:e.value.length)>0?1:0,displayNumber:i,extraAnswers:[]}}}}(e).extraAnswers}function Qp(e,t){return Vp([Yp,Wp],(n=>n(e,t)))}const Jp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Xp(e,t){const n=new Set(e);return n.add(t),n}const $p=e=>(0,Gu.action)("SAVE_ANSWER",e),Kp=e=>(0,Gu.action)("SAVE_ANSWER_SUCCEEDED",e),eh=(e,t)=>(0,Gu.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),th=new Map;function*nh(e,t){const n=e.payload;try{yield $f(1e3),yield Qf(t.saveAnswer,n),yield Yf(Kp(n))}catch(e){yield Yf(eh(n,e))}th.delete(n.questionId)}function*rh(e){for(;;){const t=yield Vf("SAVE_ANSWER"),n=th.get(t.payload.questionId);n&&(yield Xf(n));const r=yield Jf(nh,t,e);th.set(t.payload.questionId,r)}}function*ih(e){for(;e.selectAnswerVersion;){const t=yield Vf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Qf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Qf(e.selectAnswerVersion,n,r);t&&(yield Yf($p(t)),e.logActivity&&(yield Qf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*oh(e){yield Jf(rh,e),yield Jf(ih,e)}const ah=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Qe(n,s,l):bl(n,s,l)}return n};var sh=Object.prototype.hasOwnProperty;const lh=function(e){if(!ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=oe(e),n=[];for(var r in e)("constructor"!=r||!t&&sh.call(e,r))&&n.push(r);return n},ch=function(e){return de(e)?re(e,!0):lh(e)};var uh="object"==typeof exports&&exports&&!exports.nodeType&&exports,dh=uh&&"object"==typeof module&&module&&!module.nodeType&&module,fh=dh&&dh.exports===uh?A.Buffer:void 0,ph=fh?fh.allocUnsafe:void 0;const hh=ae(Object.getPrototypeOf,Object),gh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Mt(t,kt(e)),e=hh(e);return t}:Et,mh=function(e){return At(e,ch,gh)};var yh=Object.prototype.hasOwnProperty;const vh=function(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t};var bh=/\w*$/;var Ih=E?E.prototype:void 0,xh=Ih?Ih.valueOf:void 0;const wh=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return vh(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?vh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?vh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,bh.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return xh?Object(xh.call(e)):{}}(e)}};var Th=Object.create;const Mh=function(){function e(){}return function(t){if(!ce(t))return{};if(Th)return Th(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Ah=K&&K.isMap;const Eh=Ah?Q(Ah):function(e){return L(e)&&"[object Map]"==Wt(e)};var Ch=K&&K.isSet;const Nh=Ch?Q(Ch):function(e){return L(e)&&"[object Set]"==Wt(e)};var Sh="[object Arguments]",kh="[object Function]",jh="[object Object]",Dh={};Dh[Sh]=Dh["[object Array]"]=Dh["[object ArrayBuffer]"]=Dh["[object DataView]"]=Dh["[object Boolean]"]=Dh["[object Date]"]=Dh["[object Float32Array]"]=Dh["[object Float64Array]"]=Dh["[object Int8Array]"]=Dh["[object Int16Array]"]=Dh["[object Int32Array]"]=Dh["[object Map]"]=Dh["[object Number]"]=Dh[jh]=Dh["[object RegExp]"]=Dh["[object Set]"]=Dh["[object String]"]=Dh["[object Symbol]"]=Dh["[object Uint8Array]"]=Dh["[object Uint8ClampedArray]"]=Dh["[object Uint16Array]"]=Dh["[object Uint32Array]"]=!0,Dh["[object Error]"]=Dh[kh]=Dh["[object WeakMap]"]=!1;const Oh=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!ce(t))return t;var d=F(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&yh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,s)}else{var f=Wt(t),p=f==kh||"[object GeneratorFunction]"==f;if(H(t))return function(e,t){if(t)return e.slice();var n=e.length,r=ph?ph(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==jh||f==Sh||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||oe(e)?{}:Mh(hh(e))}(t),!l)return c?function(e,t){return ah(e,gh(e),t)}(t,function(e,t){return e&&ah(t,ch(t),e)}(s,t)):function(e,t){return ah(e,kt(e),t)}(t,function(e,t){return e&&ah(t,fe(t),e)}(s,t))}else{if(!Dh[f])return o?t:{};s=wh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),Nh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Eh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?mh:jt:c?ch:fe)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),bl(s,o,e(i,n,r,o,t,a))})),s},Lh=function(e,t){return null==(e=function(e,t){return t.length<2?e:Mn(e,Ln(t,0,-1))}(e,t=wn(t,e)))||delete e[Tn(ml(t))]};var Rh=Function.prototype,Ph=Object.prototype,zh=Rh.toString,Uh=Ph.hasOwnProperty,_h=zh.call(Object);const Fh=function(e){return function(e){if(!L(e)||"[object Object]"!=O(e))return!1;var t=hh(e);if(null===t)return!0;var n=Uh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&zh.call(n)==_h}(e)?void 0:e},Bh=Tl((function(e,t){var n={};if(null==e)return n;var r=!1;t=yn(t,(function(t){return t=wn(t,e),r||(r=t.length>1),t})),ah(e,mh(e),n),r&&(n=Oh(n,7,Fh));for(var i=t.length;i--;)Lh(n,t[i]);return n})),Gh={errors:{},nowPlaying:null,playbackTimes:{}},Zh=e=>function(t,n){void 0===n&&(n=Rf);var r,i=!1,o=mp(n),a=function(){i||(i=!0,of(r)&&r(),o.close())};return r=xf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(hp),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){gp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Hh(e,t){const n=yield Qf(Zh,e);try{for(;;){const e=yield Vf(n);yield Yf(t(e))}}finally{(yield qf(Hf,{}))&&n.close()}}function*qh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=vf);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Zf,{selector:e,args:n})}(Xc(n.restrictedAudioId)):void 0,r=n.audioRef&&n.audioRef.current?yield function(e,t,n){return null!=n&&null!=t.restrictedAudioId?async function(e,t,n,r){try{const i=await e.getRestrictedAudio("",t,r),o=n.querySelector("source");return o.src=URL.createObjectURL(i),n.load(),n.play(),{response:"ok",cleanup:()=>{URL.revokeObjectURL(o.src)}}}catch(e){return{response:"other-error",cleanup:()=>{}}}}(e,t.restrictedAudioId,t.audioRef.current,n):(t.audioRef.current.play(),{response:"ok"})}(e,n,t):yield function*(e,t,n){return{response:null!=n&&null!=t.restrictedAudioId?yield Qf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Qf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield Yf(Hu(n)),yield Qf(Hh,n.duration,Wu),yield Yf(qu())):(yield Yf(Vu(n,r.response)),yield $f(5e3),yield Yf(Yu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Vh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Jf.apply(void 0,[Hp,e,t].concat(r))}("PLAY_AUDIO",qh,e)}const Yh={casStatus:"forbidden"},{createAction:Wh}=Gu.deprecated,Qh=e=>(0,Gu.action)("ALLOW_CAS_COUNTDOWN",e),Jh=Wh("ALLOW_CAS_SUCCEEDED"),Xh=Wh("ALLOW_CAS_CANCELLED"),$h=e=>(0,Gu.action)("UPDATE_CAS_REMAINING",e);function*Kh(e,{payload:t}){try{if("allowed"===(yield Qf(e.setCasStatus,"allowing")))return void(yield Yf(Jh()));yield Yf(Qh(t));const{cancelled:i}=yield(n={finished:Qf(Hh,t,$h),cancelled:Vf("ALLOW_CAS_CANCELLED")},r=qf(_f,n),r.combinator=!0,r);"allowed"===(yield Qf(e.setCasStatus,i?"forbidden":"allowed"))?yield Yf(Jh()):i||(yield Yf(Xh()))}catch(e){console.error(e)}var n,r}function*eg(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Jf.apply(void 0,[qp,e,t].concat(r))}("ALLOW_CAS",Kh,e)}const tg=function(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:_d.INIT}))throw new Error(Pd(12));if(void 0===n(void 0,{type:_d.PROBE_UNKNOWN_ACTION()}))throw new Error(Pd(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(Pd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Jp,t){switch(t.type){case"SAVE_ANSWER":{const{questionId:n}=t.payload,r=function(e,t){const n=new Set(e);return n.delete(t),n}(e.savedQuestionIds,n),i={...e.answersById,[n]:t.payload};return{...e,savedQuestionIds:r,answersById:i}}case"SAVE_ANSWER_FAILED":default:return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=Xp(e.savedQuestionIds,n),i=Xp(e.serverQuestionIds,n),o=Qp(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,validationErrors:o}}case"ANSWER_FOCUSED":{const n=t.payload;return{...e,focusedQuestionId:n}}case"ANSWER_BLURRED":{const n=t.payload;return{...e,focusedQuestionId:e.focusedQuestionId===n?null:e.focusedQuestionId}}}},audio:function(e=Gh,t){switch(t.type){case"PLAY_AUDIO":{const n=t.payload,r={audio:n,durationRemaining:n.duration};return{...e,nowPlaying:r}}case"PLAY_AUDIO_STARTED":{const n=t.payload;if(null!=n.restrictedAudioId){const t=e.playbackTimes[n.restrictedAudioId],r={...e.playbackTimes,[n.restrictedAudioId]:t?t+1:1},i=Bh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=An(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=An(n,"restrictedAudioId",n.src),i=Bh(e.errors,[r]);return{...e,errors:i}}case"PLAY_AUDIO_FINISHED":return{...e,nowPlaying:null};case"UPDATE_REMAINING":{const n=t.payload,r={...e.nowPlaying,durationRemaining:n};return{...e,nowPlaying:r}}default:return e}},cas:function(e=Yh,t){switch(t.type){case"ALLOW_CAS":default:return e;case"ALLOW_CAS_COUNTDOWN":case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"}}}});function*ng(e){yield Jf(oh,e),yield Jf(Vh,e),yield Jf(eg,e)}function rg(e,t,n,r,i){const o=new Set(Od(n,"questionId")),a=function(e,t){var n={};return t=Sn(t),pe(e,(function(e,r,i){Qe(n,r,t(e,r,i))})),n}(Rd(r,"restrictedAudioId"),"times"),s=Rd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:Qp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=_p(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Bd)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Pd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Bd(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Fd(tg,l,u);return c.run(ng,i),d}const ig=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:Sr()("e-audio-group",n)},t().createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),r(e))})),og=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=Ul(),a=Pc(Qc(r)),s=Pc(Jc(r)),l=Wc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(dc),d=(0,e.useRef)(null);return t().createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},t().createElement("p",null,o("audio-test.instructions")),t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-column e-column--narrow"},c&&t().createElement("audio",{ref:d,preload:"none"},t().createElement("source",{src:u(r)})),t().createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&l(Zu({src:r,duration:i,audioRef:d}))},t().createElement(Ka,{className:"e-mrg-r-1",icon:cs,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Bu,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),ag=({children:e})=>t().createElement("footer",{className:"e-footer"},e),sg=Ms({}),lg=t().memo((function(n){const{root:r}=(0,e.useContext)(dc),{t:i}=Ul(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(lc,{"aria-labelledby":ql},t().createElement("h2",{id:ql},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":ql},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":Td(r),key:`${r}${n}`},t().createElement(ld,{element:e,renderChildNodes:sg}))})))):null})),cg=(0,e.memo)((e=>{const{id:n,type:r,answer:i,error:o,displayNumber:a}=e,s=null==i?void 0:i.value,l="richText"===(null==i?void 0:i.type),c=l&&(null==s?void 0:s.includes('src="/math.svg?latex=')),u=l&&((null==s?void 0:s.includes('<img src="/screenshot/'))||(null==s?void 0:s.includes('<img src="data:image/png;')));return t().createElement("div",{className:"answer-indicator-container",onClick:e=>{e.stopPropagation(),window.location.href=`#question-nr-${a}`},key:n},t().createElement("div",{className:Sr()("answer-indicator",{ok:s,error:o,big:"rich-text"===r}),"data-indicator-id":n},"richText"===(null==i?void 0:i.type)&&t().createElement(t().Fragment,null,l&&(null==i?void 0:i.characterCount)&&t().createElement("span",null,i.characterCount)||"",c&&t().createElement("span",{className:"formula"},"∑"),u&&t().createElement("span",{className:"img"},t().createElement(Ka,{icon:os,size:"lg"})))))})),ug=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(dc),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(md),{t:c}=Ul(),{isInSidebar:u}=(0,e.useContext)(ys),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=Pc((e=>e.answers));h=(null==e?void 0:e.answersById)||{};const t=n.querySelectorAll("[question-id]"),r=null===(i=e.validationErrors)||void 0===i?void 0:i.filter((e=>"question"===(null==e?void 0:e.elementType)));g=!!(null==r?void 0:r.find((e=>e.displayNumber===a))),t.forEach((e=>{var t;const n=Number(e.getAttribute("question-id")),i=e.getAttribute("type")||"",o=e.getAttribute("display-number")||"",a=!!(null==r?void 0:r.find((e=>e.displayNumber===o))),s=r.flatMap((e=>"childQuestions"in e?e.childQuestions:[])).includes(o),l=!!(null===(t=h[n])||void 0===t?void 0:t.value);n&&p.push({id:n,type:i,error:a||s&&l,displayNumber:o})}))}const m=!!p.find((e=>e.error)),y=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,v=Number(n.getAttribute("max-answers"))||p.length,b=Oe("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:Sr()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:yc("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:Sr()("numeric-answer-indicator",{error:m,ok:y===v})},y,"/",v),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:yc(o,{hash:Ee(Me(f,"question"),"display-number")}),target:"attachments"},c("material"))),t().createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},c("points",{count:s})),u&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},f&&t().createElement(Ka,{size:"sm",icon:ss,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(cg,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},dg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!F(t)&&L(t)&&"[object String]"==O(t)?e:e.getAttribute("display-number");var t})),{t:a}=Ul(),s=function(e,t,n){const r=[];for(const i of e)for(const e of t)for(const t of n)r.push([i,e,t]);return r}([o.length,"*"],[e,"*"],[null!=n?n:e,"*"]).map((([e,t,n])=>`answering-instructions.${r}_${e}_${n}_${t}`)),l=[n,e],c=[gl(o),ml(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),fg=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(dc),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(gc),{t:c}=Ul(),{isInSidebar:u}=(0,e.useContext)(ys),d=u&&!!Pc((e=>{var t,n;return null===(n=null===(t=e.answers)||void 0===t?void 0:t.validationErrors)||void 0===n?void 0:n.find((e=>e.displayNumber===a&&"section"===(null==e?void 0:e.elementType)))})),f=Oe("section",a);return t().createElement("div",{className:f?"current":""},n.hasChildNodes()&&t().createElement("div",{className:"toc-section-header-container"},t().createElement("h4",{className:"toc-section-header",id:Xl(a)},i.length>1&&c("section",{displayNumber:a})," ",r(n))),l&&t().createElement("div",{style:{display:"grid"},className:`answer-instructions-container section-${a}`},t().createElement("div",{className:Sr()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(dg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},pg=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(gc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(fg,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&Xl(o)},i(n,1)))},hg=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=Ms({section:mc(pg),question:yd(ug)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(dc),{t:s}=Ul(),l=Ce(n,"max-answers"),c=i&&!!Pc((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),u=t().createRef();return(0,e.useEffect)((()=>{var e;const t=e=>{const t=e.currentTarget;if(t.scrollHeight<=t.clientHeight)return;const n=e.deltaY,r=n<0&&0===t.scrollTop,i=n>0&&t.scrollTop>=t.scrollHeight-t.clientHeight;(r||i)&&e.preventDefault()};return null===(e=null==u?void 0:u.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":nc,ref:u},!i&&t().createElement("h2",{id:nc},t().createElement("span",{className:"e-toc-heading"},s("toc-heading"))),r&&l&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:Sr()("answer-instructions",{error:c})},c&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},s("max-answers-warning",{count:l})))),t().createElement(ys.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},o(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},s("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},s("points",{count:a})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},gg=JSON.parse('{"rE":"22.2.0-alpha.8"}'),mg=()=>{const e=An(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||gg.rE)},yg=t().memo(wc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(xc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),vg=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:Sr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Sr()("e-columns",{"e-columns--inline":null==we(n,["image","video"])})},t().createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(i),onChange:o,value:s,checked:e}),c)):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:"e-block e-text-center"},t().createElement("input",{type:"radio",className:"e-radio-button",name:String(i),onChange:o,value:s,checked:e}),c))},bg=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=n.getAttribute("display-number"),a=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),{questionLabelIds:l}=(0,e.useContext)(md),c=Pc((e=>e.answers.answersById[i])),u=Wc(),d=(0,e.useCallback)((e=>{u($p({type:"choice",questionId:i,value:e.currentTarget.value,displayNumber:o}))}),[i,o]);return t().createElement("div",{className:Sr()("e-choice-answer e-mrg-b-4",s,{"e-columns":"horizontal"===a}),"data-question-id":i,role:"radiogroup","aria-labelledby":l},t().createElement("span",{className:"anchor",id:`question-nr-${o}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),o="no-answer"===e.getAttribute("type")?"":n,s=null!=c&&c.value===o;return t().createElement(vg,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));a(4828);const Ig=e=>"object"==typeof e&&null!=e&&1===e.nodeType,xg=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,wg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return xg(n.overflowY,t)||xg(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Tg=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,Mg=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Ag=function(){return Ag=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ag.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Eg=0;function Cg(){}function Ng(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Sg(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function kg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function jg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Dg(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function Og(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=Lg(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Lg(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?Lg(t?o-1:0,t,n,r):-1}function Rg(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(Ng(t,e,n)||r&&Ng(t,n.document.activeElement,n))}))}var Pg=Sg((function(e){zg(e).textContent=""}),500);function zg(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ug={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var _g=Sg((function(e,t){!function(e,t){e&&t&&(zg(t).textContent=e,Pg(t))}(e,t)}),200),Fg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Bg="useId"in t()?function(n){var r=n.id,i=n.labelId,o=n.menuId,a=n.getItemId,s=n.toggleButtonId,l=n.inputId,c="downshift-"+t().useId();return r||(r=c),(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current}:function(t){var n=t.id,r=void 0===n?"downshift-"+String(Eg++):n,i=t.labelId,o=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId;return(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current};function Gg(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Zg(t){var n=(0,e.useRef)(t);return n.current=t,n}function Hg(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=Dg(e,n.props);var r=t(e,n);return n.props.stateReducer(e,ef({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Zg(n),f=(0,e.useCallback)((function(e){return u(ef({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=Dg(o.current,null==p?void 0:p.props);p&&o.current&&!i(e,c)&&function(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,o=t.type,a="on"+Gg(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](ef({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(ef({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var qg={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Ig(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Ig(h)&&d(h);){if(h=Mg(h),h===f){p.push(h);break}null!=h&&h===document.body&&wg(h)&&!wg(document.documentElement)||null!=h&&wg(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:y,scrollY:v}=window,{height:b,width:I,top:x,right:w,bottom:T,left:M}=e.getBoundingClientRect(),{top:A,right:E,bottom:C,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let S="start"===s||"nearest"===s?x-A:"end"===s?T+C:x+b/2-A+C,k="center"===l?M+I/2-N+E:"end"===l?w+E:M-N;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:i,right:o,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&M>=0&&T<=m&&w<=g&&x>=i&&T<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const O="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-C:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===s?S:"end"===s?S-m:"nearest"===s?Tg(v,v+m,m,A,C,v+S,v+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:Tg(y,y+g,g,h,E,y+k,y+k+I,I),N=Math.max(0,N+v),D=Math.max(0,D+y);else{N="start"===s?S-i-A:"end"===s?S-c+C+L:"nearest"===s?Tg(i,c,n,A,C+L,S,S+b,b):S-(i+n/2)+L/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+O/2:"end"===l?k-o+E+O:Tg(u,o,r,h,E+O,k,k+I,I);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+L)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+O)),S+=a-N,k+=e-D}j.push({el:t,top:N,left:D})}return j})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}},environment:"undefined"==typeof window?void 0:window};function Vg(e,t,n){void 0===n&&(n=Ug);var r=e["default"+Gg(t)];return void 0!==r?r:n[t]}function Yg(e,t,n){void 0===n&&(n=Ug);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Gg(t)];return void 0!==i?i:Vg(e,t,n)}function Wg(e){var t=Yg(e,"selectedItem"),n=Yg(e,"isOpen"),r=function(e){var t=Yg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=Yg(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function Qg(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}function Jg(n,r,i,o){void 0===o&&(o={});var a,s=o.document,l=(a=t().useRef(!0),t().useEffect((function(){return a.current=!1,function(){a.current=!0}}),[]),a.current);(0,e.useEffect)((function(){if(n&&!l&&s){var e=n(r);_g(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;_g.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Xg=Cg;function $g(e,t,n){var r;return void 0===n&&(n=!0),ef({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&ef({selectedItem:e.items[t],isOpen:Vg(e,"isOpen"),highlightedIndex:Vg(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Kg(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function em(e){var t=Vg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var tm=ef({},{environment:Fa().shape({addEventListener:Fa().func.isRequired,removeEventListener:Fa().func.isRequired,document:Fa().shape({createElement:Fa().func.isRequired,getElementById:Fa().func.isRequired,activeElement:Fa().any.isRequired,body:Fa().any.isRequired}).isRequired,Node:Fa().func.isRequired}),itemToString:Fa().func,itemToKey:Fa().func,stateReducer:Fa().func},{getA11yStatusMessage:Fa().func,highlightedIndex:Fa().number,defaultHighlightedIndex:Fa().number,initialHighlightedIndex:Fa().number,isOpen:Fa().bool,defaultIsOpen:Fa().bool,initialIsOpen:Fa().bool,selectedItem:Fa().any,initialSelectedItem:Fa().any,defaultSelectedItem:Fa().any,id:Fa().string,labelId:Fa().string,menuId:Fa().string,getItemId:Fa().func,toggleButtonId:Fa().string,onSelectedItemChange:Fa().func,onHighlightedIndexChange:Fa().func,onStateChange:Fa().func,onIsOpenChange:Fa().func,scrollIntoView:Fa().func});Ag(Ag({},tm),{items:Fa().array.isRequired,isItemDisabled:Fa().func});var nm=Ag(Ag({},qg),{isItemDisabled:function(){return!1}}),rm=Cg,im=1,om=2,am=3,sm=4,lm=5,cm=6,um=7,dm=8,fm=9,pm=10,hm=11,gm=14,mm=19,ym=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:mm,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:gm,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:hm,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:im,ToggleButtonKeyDownArrowUp:om,ToggleButtonKeyDownCharacter:am,ToggleButtonKeyDownEnd:cm,ToggleButtonKeyDownEnter:um,ToggleButtonKeyDownEscape:sm,ToggleButtonKeyDownHome:lm,ToggleButtonKeyDownPageDown:pm,ToggleButtonKeyDownPageUp:fm,ToggleButtonKeyDownSpaceButton:dm});function vm(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case gm:r={isOpen:Vg(o,"isOpen"),highlightedIndex:em(o),selectedItem:o.items[t.index]};break;case am:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(a)&&!o(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?o.items.findIndex((function(t){return o.itemToKey(t)===o.itemToKey(e.selectedItem)})):e.highlightedIndex,items:o.items,itemToString:o.itemToString,isItemDisabled:o.isItemDisabled}),isOpen:!0};break;case im:r={highlightedIndex:e.isOpen?Og(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Qg(o,e,1),isOpen:!0};break;case om:r=e.isOpen&&a?$g(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Og(e.highlightedIndex,-1,o.items,o.isItemDisabled):Qg(o,e,-1),isOpen:!0};break;case um:case dm:r=$g(o,e.highlightedIndex,!1);break;case lm:r={highlightedIndex:Lg(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case cm:r={highlightedIndex:Lg(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case fm:r={highlightedIndex:Og(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case pm:r={highlightedIndex:Og(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case sm:r={isOpen:!1,highlightedIndex:-1};break;case hm:r=ef({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case mm:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Qg(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Qg(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:o.isItemDisabled(o.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:em(o),isOpen:Vg(o,"isOpen"),selectedItem:Vg(o,"selectedItem"),inputValue:Vg(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ef({},e,r)}(e,t,ym)}return ef({},e,r)}var bm=["onClick"],Im=["onMouseLeave","refKey","ref"],xm=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],wm=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Tm(t){void 0===t&&(t={}),rm(t,Tm);var n=ef({},nm,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Hg(e,t,n,r),o=i[0],a=i[1];return[Dg(o,t),a]}(vm,n,Wg,Kg),s=a[0],l=a[1],c=s.isOpen,u=s.highlightedIndex,d=s.selectedItem,f=s.inputValue,p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)({}),m=(0,e.useRef)(null),y=Bg(n),v=Zg({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[y.getItemId(e)]}),[y]);Jg(o,s,[c,u,d,f],i);var I=function(t){var n=t.highlightedIndex,r=t.isOpen,i=t.itemRefs,o=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=(0,e.useRef)(!0);return Fg((function(){n<0||!r||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(o(n),a))}),[n]),l}({menuElement:h.current,highlightedIndex:u,isOpen:c,itemRefs:g,scrollIntoView:r,getItemNodeFromIndex:b});(0,e.useEffect)((function(){return m.current=Sg((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Xg({props:n,state:s}),(0,e.useEffect)((function(){Yg(n,"isOpen")&&p.current&&p.current.focus()}),[]);var x=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return Cg;var e=r.map((function(e){return e.current}));function o(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function a(r){i.current.isMouseDown=!1,Rg(r.target,e,t)||n()}function s(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function l(){i.current.isTouchMove=!0}function c(r){i.current.isTouchEnd=!0,i.current.isTouchMove||Rg(r.target,e,t,!1)||n()}return t.addEventListener("mousedown",o),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",o),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[r,t,n]),i.current}(i,(0,e.useCallback)((function(){v.current.state.isOpen&&l({type:hm})}),[l,v]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=Cg;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:im,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:om,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:lm})},End:function(e){e.preventDefault(),l({type:cm})},Escape:function(){v.current.state.isOpen&&l({type:sm})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?um:0})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:fm}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:pm}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:am,key:" "}):l({type:dm}):l({type:0})}}}),[l,v]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),A=(0,e.useCallback)((function(){l({type:17})}),[l]),E=(0,e.useCallback)((function(){l({type:16})}),[l]),C=(0,e.useCallback)((function(e){l({type:18,highlightedIndex:e})}),[l]),N=(0,e.useCallback)((function(e){l({type:mm,selectedItem:e})}),[l]),S=(0,e.useCallback)((function(){l({type:21})}),[l]),k=(0,e.useCallback)((function(e){l({type:20,inputValue:e})}),[l]),j=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,n=t.onClick,r=tf(t,bm);return ef({id:y.labelId,htmlFor:y.toggleButtonId,onClick:kg(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[y]),D=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,o=r.refKey,a=void 0===o?"ref":o,s=r.ref,c=tf(r,Im),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),ef(((n={})[a]=jg(s,(function(e){h.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=kg(i,(function(){l({type:12})})),n),c)}),[l,w,y]),O=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,o=r.onClick;r.onPress;var a=r.onKeyDown,s=r.refKey,c=void 0===s?"ref":s,u=r.ref,d=tf(r,xm),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=v.current.state,m=ef(((n={})[c]=jg(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?y.getItemId(g.highlightedIndex):"",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+y.labelId,n.id=y.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=kg(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:hm})})),n),d);return d.disabled||(m.onClick=kg(o,(function(){l({type:0})})),m.onKeyDown=kg(a,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&T[t]?T[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:am,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,y,v,x,w,T]),L=(0,e.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,o=n.onMouseMove,a=n.onClick,s=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,p=tf(n,wm);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=v.current,m=h.state,b=h.props,w=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(r,i,b.items,"Pass either item or index to getItemProps!"),T=w[0],M=w[1],A=b.isItemDisabled(T,M),E=ef(((t={})[u]=jg(f,(function(e){e&&(g.current[y.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=y.getItemId(M),t.role="option",t),p);return A||(E.onClick=kg(a,(function(){l({type:gm,index:M})}))),E.onMouseMove=kg(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=kg(s,(function(e){return e.preventDefault()})),E}),[v,y,x,I,l]);return{getToggleButtonProps:O,getLabelProps:j,getMenuProps:D,getItemProps:L,toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}Tm.stateChangeTypes=ym,ef({},tm,{items:Fa().array.isRequired,isItemDisabled:Fa().func,inputValue:Fa().string,defaultInputValue:Fa().string,initialInputValue:Fa().string,inputId:Fa().string,onInputValueChange:Fa().func}),ef({},qg,{isItemDisabled:function(){return!1}}),Fa().array,Fa().array,Fa().array,Fa().func,Fa().number,Fa().number,Fa().number,Fa().func,Fa().func,Fa().string,Fa().string;var Mm=a(7767),Am=a.n(Mm);const Em=Promise.all([new(Am())("Noto Sans",{weight:300}).load(),new(Am())("Noto Sans",{weight:400}).load(),new(Am())("Noto Sans",{weight:600}).load()]).then((()=>{Cm=!0})).catch(yl);let Cm=!1;const Nm=({id:e,size:n="small",score:r})=>{const{t:i}=Ul(),o="inline"===n?"sup":"span";return t().createElement(o,{className:Sr()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===n,"e-score--large e-font-size-l e-semibold":"large"===n,"e-score--inline e-font-size-xs":"inline"===n}),id:e},i("points",{count:r}))},Sm=!navigator.userAgent.includes("jsdom/"),km=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=Pc((e=>e.answers.answersById[i])),s=Wc(),l=n.getAttribute("display-number"),c=a&&a.value&&Ae(n,(e=>a.value===e.getAttribute("option-id"))),u=(0,e.useRef)(null),d=t().useRef(null),[f,p]=(0,e.useState)(!0),[h,g]=(0,e.useState)(Cm);Sm&&(Em.then((()=>!h&&g(!0))).catch((e=>console.error(e))),(0,e.useEffect)((()=>p(!0)),[n]),(0,e.useEffect)((()=>{if(f&&d.current&&u.current){const t=d.current,n=u.current,r=(e=Se(t,(e=>e.firstElementChild.scrollWidth)))&&e.length?Un(e,ge,Bn):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:y,questionLabelIds:v}=(0,e.useContext)(md),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:T,selectedItem:M}=Tm({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s($p({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=Ul(),E=$l(n),C=(0,e.useContext)(gs),N=0!==Object.keys(C).length,S={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:Sr()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:Sr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":T}),...x({"aria-describedby":E,"aria-labelledby":v},{suppressRefError:!Sm})},t().createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},t().createElement("span",{className:"e-ellipsis e-block",ref:u},M?r(M):t().createElement("span",{"aria-label":A.raw("dropdown-answer.label")},be))),t().createElement("span",{className:Sr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(Ka,{icon:T?is:us}))),t().createElement("span",{...I({className:Sr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!Sm})},m.map(((e,n)=>t().createElement("span",{className:Sr()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===M,"e-bg-color-off-white":w!==n,"e-bg-color-link e-color-off-white":w===n}),key:n,...b({item:e,index:n}),...N?S:{}},t().createElement("span",{className:Sr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":A.raw("dropdown-answer.clear")},be))))))),y.length>1&&t().createElement(Nm,{score:o,size:"inline",id:E}))})),jm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),Dm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"exam-instruction notification e-pad-4","data-annotation-anchor":"exam-instruction"},n(e))})),Om=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(pc),{examineExam:r}=n,{t:i}=Ul();return t().createElement("button",{className:"e-button goto-examine-answers",onClick:()=>{r&&(r(),window.scrollTo(0,0))},"aria-describedby":"examineExamInstructions"},i("examine-exam.examine"))}));function Lm(e){return`${ml(e.split("."))}.`}function Rm({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Ae(e,"hint"),s=je(e);return t().createElement("p",{className:Sr()("e-hints__hint",{"e-hints__hint--focused":n===i}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${i}"]`);e&&e.focus()},"data-question-id":i},s&&Lm(o)," ",r(a))}const Pm=({element:e,renderChildNodes:n})=>{const r=Pc((e=>e.answers.focusedQuestionId)),i=Te(e,["text-answer","scored-text-answer"]).filter((e=>null!=Ae(e,"hint")));return i.length>0?t().createElement("div",{className:"e-columns"},t().createElement("div",{className:"e-column e-column--8"},n(e)),t().createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},i.map(((e,i)=>t().createElement(Rm,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},zm=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Um=t().memo(yd((function({element:n,renderChildNodes:r}){const i=Pc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(gc),{displayNumber:a,level:s}=(0,e.useContext)(md),{examServerApi:l}=(0,e.useContext)(pc),[c,u]=(0,e.useState)(!1),{t:d}=Ul(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`);const t=document.querySelector("body");e?null==t||t.classList.add("writer-mode"):(null==t||t.classList.remove("writer-mode"),null==t||t.classList.remove("rich-text-editor-focus"),setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10))},p=e=>{"Tab"===e.code&&e.preventDefault()},h=we(n,"text-answer"),g=h?Ce(h,"question-id"):null;(0,e.useEffect)((()=>{if(c){window.addEventListener("keydown",p);const e=g?document.querySelector(`[data-question-id="${g}"]`):void 0;null==e||e.focus()}return()=>window.removeEventListener("keydown",p)}),[c]);const m=t().createRef(),{addRef:y}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&y&&y(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(zm.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:Sr()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0,"e-expanded":c}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:m},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement("div",{className:"full-screen","data-full-screen-id":a},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(Ka,{icon:ns}),d("close-writing-mode")),r(n)):r(n)))}))),_m=t().memo((function({element:e,renderChildNodes:n}){const r=Wl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Fm=()=>t().createElement(Ka,{size:"lg",icon:ls,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),Bm=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(md),c=`h${Math.min(3+a,6)}`,u=Yl(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:Sr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${Td(i)} `),r(n)," ",t().createElement(Nm,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),Gm=({duration:n,durationRemaining:r,className:i})=>{const o=(0,e.useRef)(null),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{o.current.clientTop,s(!0)}),[]),t().createElement("div",{className:Sr()("e-progress-bar",i),ref:o},t().createElement("div",{className:Sr()("e-progress-bar__fill",{"e-progress-bar__fill--animating":a}),style:{transitionDuration:`${n}s`},role:"progressbar","aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":n-r}))};function Zm(){const{t:e}=Ul();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Hm(n){const r=Wc(),{t:i}=Ul(),{casCountdownDuration:o}=(0,e.useContext)(pc);return t().createElement("div",{className:"e-cas-controls"},"forbidden"===n.casStatus?t().createElement("div",{className:"e-text-center"},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",null,i("cas.examineSectionA"),t().createElement("br",null),i("cas.cannotEditLater")),t().createElement(Om,null),t().createElement("p",null,i("cas.youCanReturn")),t().createElement("p",{className:"dots-separator"},"•••"),t().createElement("p",{id:"e-cas-controls-forbidden-description"},i("cas.forbidden.infoText")),t().createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return r((e=o,(0,Gu.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},i("cas.forbidden.buttonText"))):"allowing"===n.casStatus?t().createElement("div",{className:"e-text-center",ref:e=>null!=e&&o===n.durationRemaining&&e.scrollIntoView()},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",{id:"e-cas-controls-allowing-description"},i("cas.allowing.infoText")),t().createElement(Gm,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Xh()),ref:e=>null!=e&&o===n.durationRemaining&&e.focus(),"aria-describedby":"e-cas-controls-allowing-description"},i("cas.allowing.cancel",{count:n.durationRemaining}))):t().createElement("div",{className:"notification e-text-left e-mrg-b-0"},i("cas.allowed.infoText")))}const qm=t().memo(mc((function({element:n,renderChildNodes:r}){const i=Pc((e=>e.cas),Gc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(gc),{sections:s}=(0,e.useContext)(dc),l=n===ml(s);return t().createElement(lc,{className:"exam-section","aria-labelledby":Vl(a)},r(n),o&&t().createElement(Hm,{...i}),l&&t().createElement(Zm,null))}))),Vm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Ym=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(dc),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(gc),{t:c}=Ul(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==u?void 0:u.current)&&d&&d(u.current)}),[]),t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"exam-section-title",id:Vl(o),"data-toc-id":`section-${o}`,ref:u},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Wm=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Qm=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Jm=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=Ul(),c=null==e?void 0:e.characterCount,u=Ce(n,"max-length");return t().createElement("div",{className:"answer-toolbar e-font-size-xs e-columns e-mrg-b-2"},t().createElement("div",{className:Sr()("answer-toolbar__answer-length e-column",{"e-color-error":null!=i})},null!=e?l(null!=u?"answer-length-with-max-length":"answer-length",{count:c,maxLength:u}):be,r?t().createElement("span",{className:"e-color-error",role:"alert"}," ",l(`answer-errors.${r.key}`,r.options)):i?t().createElement("span",null," ",l("answer-errors.answer-too-long",{count:i.characterCount})):null),t().createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},s&&t().createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?t().createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(o){const t=Ae(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));class Xm extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(An(e,"response.status")){case 409:return"screenshot-byte-limit-reached";case 413:return"screenshot-too-big";default:return"screenshot-upload-failed"}})();this.props.onError({key:t})},this.handleChange=e=>{const{onChange:t}=this.props;this.lastHTML=e.answerHtml,t(e.answerHtml,e.answerText)},this.editorRef=t().createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidUpdate(){this.editorRef.current&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(this.lastHTML=this.props.answer.value,this.editorRef.current.setValue(this.props.answer.value))}render(){const{questionId:e,className:n,labelledBy:r,answer:i,lang:o,invalid:a,saveScreenshot:s}=this.props;return t().createElement(zm.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Cr(),{ref:this.editorRef,baseUrl:"",initialValue:null==i?void 0:i.value,language:this.context.language.slice(0,2).toUpperCase(),onValueChange:this.handleChange,getPasteSource:e=>s(e).catch((e=>{throw this.handleSaveError(e),e})),textAreaProps:{ariaInvalid:a,ariaLabelledBy:r,id:e.toString(),questionId:e,className:n,lang:o}}),!l&&t().createElement("button",{className:"expand open",onClick:()=>c(!0),"aria-labelledby":"expand-label","aria-owns":String(e)},t().createElement(Km,null),t().createElement(Ka,{icon:ds})))))}}Xm.contextType=dc;const $m=Xm,Km=()=>{const{t:e}=Ul();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},ey=t().memo((({maxLength:e,id:n})=>{const{t:r}=Ul();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Fm,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function ty(e){return e.replace(/\s/g,"").length}const ny=t().memo((({element:n,className:r})=>{const i=Ee(n,"type"),o=Ce(n,"question-id"),a=Ee(n,"display-number"),s=Ce(n,"max-score"),l=Ne(n,"use-language-of-instruction"),c=Ce(n,"max-length"),{language:u}=(0,e.useContext)(dc),{questionLabelIds:d,answers:f}=(0,e.useContext)(md),{examServerApi:p}=(0,e.useContext)(pc),[h,g]=(0,e.useState)(),m=Pc((e=>e.answers.answersById[o])),y=Pc((e=>e.answers.supportsAnswerHistory)),v=Pc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=Pc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=Wc(),x=(0,e.useRef)(null),w=m&&m.value,T=$l(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Ql(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=x;e&&("single-line"!==i&&"integer"!==i||(e.style.width="0",e.style.width=`${e.scrollWidth+2}px`))}));const C=(0,e.useCallback)((e=>{const t=e.currentTarget.value.trim(),n={type:"text",questionId:o,value:t,characterCount:ty(t),displayNumber:a};I($p(n)),g(void 0)}),[o,a]),[N,S]=(0,e.useState)((null==m?void 0:m.value)||""),k=(0,e.useCallback)((e=>{e.preventDefault(),e.currentTarget.classList.remove("text-answer--integer--input-error");const t=e.currentTarget.value.trim();if(/^-?\d*$/.test(t)){S(t);const e={type:"text",questionId:o,value:t,characterCount:ty(t),displayNumber:a};I($p(e)),g(void 0)}else e.currentTarget.classList.add("text-answer--integer--input-error"),setTimeout((e=>{e.classList.remove("text-answer--integer--input-error")}),200,e.currentTarget)}),[o,a]),j=(0,e.useCallback)(((e,t)=>{const n={type:"richText",questionId:o,value:e,characterCount:ty(t),displayNumber:a};I($p(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),O=(0,e.useCallback)((()=>I((e=>(0,Gu.action)("ANSWER_FOCUSED",e))(o))),[o]),L=(0,e.useCallback)((()=>I((e=>(0,Gu.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Gu.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}))(e,t))),[]);switch(i){case"rich-text":return t().createElement(t().Fragment,null,null!=c&&t().createElement(ey,{maxLength:c,id:Ql(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement($m,{answer:m,className:Sr()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:A,invalid:M,labelledBy:E}),t().createElement(Jm,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:v,supportsAnswerHistory:y,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Sr()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:O,onBlur:L,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(Nm,{score:s,size:"inline",id:T}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Sr()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:O,onBlur:L,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(Nm,{score:s,size:"inline",id:T}))}})),ry=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(ny,{...e}),s=je(n);return t().createElement(t().Fragment,null,t().createElement("span",{className:"anchor",id:`question-nr-${i}`}),o?t().createElement("label",{className:"e-nowrap"},s&&t().createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},Lm(i)),t().createElement(Qm,null,r(o)),a):a)}));var iy=a(6660),oy=a.n(iy);class ay extends t().PureComponent{constructor(e){super(e),this.inputValueChanged=()=>{this.props.onChange(this.props.answerIndex),this.labelInputRef&&this.labelInputRef.current&&this.labelInputRef.current.scrollIntoView({block:"center"})},this.entryInputRef=t().createRef(),this.labelInputRef=t().createRef()}componentDidMount(){this.entryInputRef.current&&0===this.props.answerIndex&&this.entryInputRef.current.focus()}render(){const{selected:e,croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}=this.props;return t().createElement("label",{ref:this.labelInputRef,className:"js-undo-history-entry"},t().createElement("input",{type:"radio",className:"e-undo-view-entry-tab",name:"undoHistory",value:o,checked:e,onChange:this.inputValueChanged,ref:this.entryInputRef}),t().createElement(sy,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const sy=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=Ul(),s=[n>0?a("undo.answerCharacterCount",{count:n}):null,r>0?a("undo.answerImageCount",{count:r}):null].filter((e=>null!==e));return t().createElement("div",{className:"e-undo-view-entry js-undo-entry-content"},t().createElement("div",{className:"js-undo-history-entry-time"},0===i?a("undo.latestVersion"):a("undo.minutesSinceAnswer",{minutes:o})),t().createElement("div",{className:"e-undo-view-answer-cropped js-undo-history-entry-answer"},e||a("undo.answerNoText")),t().createElement("div",{className:"e-undo-view-answer-length js-undo-history-entry-stats"},s.map(((e,n)=>t().createElement(t().Fragment,{key:n},e,n<s.length-1&&t().createElement("span",null,", "))))))};var ly=a(4867),cy=a.n(ly);const uy=oy().CancelToken;function dy(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function fy(e){const{selectedAnswer:n}=e;return n?"richText"===n.type?t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail",dangerouslySetInnerHTML:{__html:n.value}}):t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail plainText"},n.value):null}function py(e){const{selectedAnswer:n,selectedAnswerIndex:r,restoreAnswer:i,questionId:o}=e,a=!n||0===r;return t().createElement("div",{className:"e-undo-view-bottom-bar"},t().createElement("button",{className:"e-button-default e-button js-restore-answer-button",disabled:a,onClick:()=>n&&i({...n,questionId:o})},t().createElement(xy,null)))}function hy(e){return("text"===e.type?e.value:function(e){const t=document.createElement("div");return t.innerHTML=e,t.innerText}(e.value)).replace(/\s+/g," ").trim()}function gy(e,t=50){const n=hy(e);if(n.length<=t)return n;const r=t-1,i=Math.ceil(r/2),o=r-i;return n.substr(0,i)+"…"+n.substr(n.length-o)}function my(e){return hy(e).replace(/\s/g,"").length}function yy(e){const t=document.createElement("div");t.innerHTML=e.value;const n=t.querySelectorAll("img").length,r=t.querySelectorAll('img[src=""]').length;return n-t.querySelectorAll('img[src^="/math.svg"], img[src^="data:image/svg+xml"]').length-r}class vy extends t().PureComponent{constructor(e){super(e),this.source=uy.source(),this.toggleBodyScroll=e=>document.documentElement.classList.toggle("e-exam-body-no-scroll",!e),this.keydownListener=e=>{if(13===e.keyCode){const e=this.state.answers[this.state.selectedAnswerIndex];this.props.restoreAnswer({...e,questionId:this.props.questionId}),this.close()}else 27===e.keyCode&&this.close()},this.state={answers:[],selectedAnswerIndex:0,loading:!0,loadRetryTimeout:null}}componentDidMount(){this.toggleBodyScroll(!1),document.addEventListener("keydown",this.keydownListener,!1),this.fetchAnswerHistory(this.props.questionId)}componentWillUnmount(){this.source.cancel(),document.removeEventListener("keydown",this.keydownListener,!1),this.toggleBodyScroll(!0)}componentDidUpdate(e){this.props.questionId!==e.questionId&&this.fetchAnswerHistory(this.props.questionId)}overlayClicked(e){e.target.className.includes("js-undo-overlay")&&this.close()}async fetchAnswerHistory(e){try{const t=(await oy().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(dy);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){oy().isCancel(t)||this.setState({loadRetryTimeout:window.setTimeout((()=>{this.fetchAnswerHistory(e)}),4e3)})}}close(){const e=this.state.loadRetryTimeout;e&&clearTimeout(e),this.source.cancel(),this.props.close()}render(){const e=this.state.answers[this.state.selectedAnswerIndex],n=(new Date).getTime();return t().createElement(cy(),null,t().createElement("div",{onClick:this.overlayClicked.bind(this),className:"e-overlay js-undo-overlay","aria-modal":"true"},t().createElement("div",{id:"undo",className:"e-undo-view"},t().createElement(Iy,{close:this.close.bind(this)}),this.state.loading?t().createElement(by,null):t().createElement("div",{className:"e-undo-view-content"},t().createElement("div",{className:"e-undo-view-answer-index js-undo-answer-index"},this.state.answers.map(((e,r)=>{const i=n-new Date(e.answerTime).getTime(),o=Math.round(i/1e3/60);return t().createElement(ay,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:gy(e),minutesSinceAnswer:o,characterCount:my(e),screenshotCount:yy(e)})}))),t().createElement("div",{className:"e-undo-view-right-panel"},t().createElement("div",{className:"e-undo-view-header js-undo-view-header"},t().createElement("h3",{className:"e-undo-view-title js-undo-view-title"},this.props.title)),t().createElement(fy,{selectedAnswer:e}),t().createElement(py,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const by=()=>{const{t:e}=Ul();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},Iy=({close:e})=>{const{t:n}=Ul();return t().createElement("div",null,t().createElement("img",{src:"img/closeButton.svg",id:"closeUndoDialogButton",className:"e-undo-view-close-overlay-button js-close-undo-dialog-button",onClick:e,tabIndex:0,role:"button","aria-label":n("undo.close")}))},xy=()=>{const{t:e}=Ul();return t().createElement("div",null,e("undo.restoreAnswer"))},wy=e=>{const{t:n}=Ul(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(Ay,{...e}):""," ",t().createElement(dg,{...e}))},Ty=({displayNumber:e,characterCount:n})=>{const{t:r}=Ul();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function My({validationErrors:e,inExam:n}){return e.length>0?t().createElement("div",{className:Sr()({"error-indicator e-bg-color-error e-color-off-white":n,"e-font-size-xs":n},"e-columns e-columns--inline e-pad-1 e-mrg-r-1"),role:"alert"},t().createElement("div",{className:"e-column e-column--narrow",style:{color:"#f90"}},t().createElement(Ka,{size:"lg",icon:fs,fixedWidth:!0,className:"e-mrg-r-1"})),t().createElement("div",{className:"e-column e-column--gapless"},e.map((e=>{const n=e.type+e.displayNumber;return"ExtraAnswer"===e.type?t().createElement(wy,{...e,key:n}):t().createElement(Ty,{...e,key:n})})))):null}const Ay=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(dc),i=Ae(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Ae(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},Ey=t().memo((()=>{const e=Pc((e=>e.answers.validationErrors));return t().createElement(My,{validationErrors:e,inExam:!0})})),Cy=t().memo((function(){const e=Pc(Kc),{t:n}=Ul();return"initial"===e?null:t().createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:Sr()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),Ny=Ms({attachment:yg,"attachment-link":bc("link"),"attachment-links":Ic("link"),audio:Xu,"audio-title":ac,"audio-group":ig,"audio-test":og,"choice-answer":bg,"dropdown-answer":km,"exam-footer":jm,"external-material":Ku,file:ed,formula:td,image:id,question:Um,"question-number":vd,translation:bd,"question-instruction":_m,"question-title":Bm,hints:Pm,references:lg,"scored-text-answer":ry,"scored-text-answers":Pm,"section-instruction":Vm,section:qm,"section-title":Ym,"text-answer":ry,video:cd,"image-overlay":gd}),Sy=()=>{const{t:e}=Ul();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},ky=t().memo(hc(fc((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotations:u,onClickAnnotation:d,onSaveAnnotation:f})=>{const{date:p,dateTimeFormatter:h,dayCode:g,examCode:m,language:y,resolveAttachment:b,root:I,subjectLanguage:x}=(0,e.useContext)(dc),w=Ae(I,"exam-title"),T=Ae(I,"exam-instruction"),M=Ae(I,"table-of-contents"),A=Ae(I,"external-material"),E=I.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=ic((()=>rg(Nd(n),r,i,o,a))),S=ic((()=>hg({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=ic((()=>hg({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=ic((()=>zl(y,m,g)));(0,e.useEffect)(_l(j,y)),(0,e.useEffect)(rc,[]);const[D,O]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(L),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const L=e=>e.forEach((e=>{const t=e.target.getAttribute("data-toc-id");P((n=>e.isIntersecting?[...n,t]:n.filter((e=>e!==t))))})),[R,P]=(0,e.useState)([]);(0,e.useEffect)((()=>{R.forEach((e=>{const t=e.replace("question-",""),n=document.querySelector(`.table-of-contents li[data-list-number="${t}."]`);if(n){const e=(e=>{const t=e.getBoundingClientRect();return t.top>=100&&t.bottom<=window.innerHeight-100})(n),t=document.querySelector(".sidebar-toc-container .table-of-contents");if(!e&&t){const e=t.getBoundingClientRect().height,r=n.offsetTop-e/2;t.scrollTo({behavior:"smooth",top:r})}}}))}),[R]);const z=void 0!==a.examineExam,U="[Kokelaan Nimi]"===s;return t().createElement(Zc,{store:N},t().createElement(ms,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ve.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||O((t=>[...t,e]))}}},t().createElement(v,{i18n:j},t().createElement("main",{className:"e-exam",lang:x,"aria-labelledby":Hl,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:b(E)}),t().createElement("div",{className:"e-toc-and-exam"},M&&t().createElement("div",{className:"sidebar-toc-container","aria-hidden":"true"},t().createElement(S,{element:M,renderChildNodes:Ny})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Wm,{studentName:s}),t().createElement(lc,{"aria-labelledby":Hl},w&&t().createElement(oc,{id:Hl},Ny(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(Dm,{element:T,renderChildNodes:Ny}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:Ny})),A&&t().createElement(Ku,{element:A,renderChildNodes:Ny,forceRender:!0})),Ny(I),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(Om,null),t().createElement(Sy,null))))),(U||z)&&t().createElement(ag,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(mg,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(Ey,null),t().createElement(Cy,null)),l&&z&&t().createElement(vy,{...c}))))))})))),jy=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${cc(n)})`,r},Dy=t().createContext({}),Oy=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(Dy),{displayNumber:o}=(0,e.useContext)(md);return t().createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},i?t().createElement(i,{element:n,displayNumber:o}):r(n))},Ly=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(md),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(ey,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(Oy,{element:o,renderChildNodes:r}));if(1===i.length)return s;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Ae(n,"hint");return t().createElement("div",{className:"e-mrg-l-8"},t().createElement("p",{className:"exam-question-title"},t().createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},e," "),o&&r(o)," ",t().createElement(Nm,{score:i})),s)}},Ry=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=Ul();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Py=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),zy=yd((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(md);return t().createElement("div",{className:Sr()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:i,"data-annotation-anchor":i},t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),r(n,1))})),Uy=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=Ul(),o=Ae(e,["audio-title","video-title"]);return t().createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},t().createElement("summary",null,t().createElement("strong",null,i("recording"))," ",o&&t().createElement("em",null,n(o))),n(r))}return null},_y=mc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement(lc,{className:"e-grading-instruction-section","aria-labelledby":Vl(i)},r(n))})),Fy=({EditorComponent:e,children:n})=>t().createElement(Dy.Provider,{value:{EditorComponent:e}},n),By=jy((({element:e})=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction"]))),Gy=jy((({element:e})=>null==Me(e,["external-material"]))),Zy=Ms({"accepted-answer":Ry,attachment:sc,"attachment-link":Gy(bc("plain")),"attachment-links":Gy(Ic("plain")),audio:Uy,"audio-group":sc,"choice-answer":Ly,"choice-answer-option":Ry,"dropdown-answer":Ly,"dropdown-answer-option":Ry,"external-material":sc,file:By(ed),formula:By(td),hints:sc,image:By(id),question:zy,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(md),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:Sr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${Td(i)} `),r(n)," ",t().createElement(Nm,{score:o,size:0===a?"large":"small"})))},"question-instruction":_m,"question-grading-instruction":Oy,"question-number":vd,translation:bd,"scored-text-answer":Ly,"text-answer":Ly,section:_y,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(dc),{displayNumber:o}=(0,e.useContext)(gc),{t:a}=Ul();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:Vl(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Uy}),Hy=()=>{const{t:e}=Ul();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},qy=t().memo(fc((({doc:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o,EditorComponent:a})=>{const s=n.documentElement,{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,subjectLanguage:p}=(0,e.useContext)(dc),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),y=hg({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=ic((()=>zl(f,d,u)));return(0,e.useEffect)(_l(b,f)),(0,e.useEffect)(rc,[]),t().createElement(ms,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Fy,{EditorComponent:a},t().createElement(v,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(lc,{"aria-labelledby":Hl},t().createElement(oc,{id:Hl},t().createElement(Hy,null)," ",h&&Zy(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Py,{element:g,renderChildNodes:Zy}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(y,{element:m,renderChildNodes:Zy}))),Zy(s)))))}))),Vy=t().createContext({}),Yy=uc(Vy,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Rd(i,"questionId"),s=function(e,t,n,r){return Pn(e.map((e=>function(e,t,n,r){const i=Pn(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=Wy(t,e);return i?null===(r=i.options.find((e=>e.id===Number(n.value))))||void 0===r?void 0:r.score:0})(i,o):(e=>{var t,r;const i=Qy(n,e);return i&&(null===(r=[i.inspection,null===(t=i.censoring)||void 0===t?void 0:t.scores[0],i.autograding,i.pregrading].find(Boolean))||void 0===r?void 0:r.score)||0})(i):0})));return 0===Ie(e,"question").length&&i<0?0:i}(e,t,n,r))))}(Te(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function Wy(e,t){const n=(null==e?void 0:e.questions.filter((e=>"choicegroup"===e.type)))||[];for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,n=r.choices.length;e<n;e++)if(r.choices[e].id===t)return r.choices[e]}}function Qy(e,t){return e.find((e=>e.questionId===t))}const Jy=()=>{const{gradingStructure:t}=(0,e.useContext)(Vy);return void 0===t},Xy=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(md),c=Jy(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Vy),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=Ul();return c?null:t().createElement("span",{className:Sr()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":o}),id:u},f&&t().createElement("div",{className:"non-answer"},p("grading.non-answer-not-graded")),t().createElement("span",{className:"e-result-scorecount-border-wrap"},n.length>1&&r&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),$y=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(md),{t:s}=Ul(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(Xy,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))}));function Ky({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=Ul(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:Sr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":n})},e(r)),d=({narrow:e=!1})=>t().createElement(t().Fragment,null,t().createElement("input",{type:"radio",className:Sr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(Qm,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Sr()("e-columns",{"e-correct-answer-left":a,"e-columns--inline":null==we(r,["image","video"])})},t().createElement(d,{narrow:!0}))):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:Sr()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const ev=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Vy),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=Wy(s,l),p=c&&(null===(o=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.find((e=>e.id===Number(c.value))))||void 0===o?void 0:o.score),h=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement($y,{score:p,maxScore:h,questionId:l}),t().createElement("div",{className:Sr()("e-choice-answer",d,{"e-columns":"horizontal"===u})},Se(n,(e=>{var n;const i=Ce(e,"option-id"),o=null!=c&&Number(c.value)===i,a=null===(n=null==f?void 0:f.options)||void 0===n?void 0:n.find((e=>e.id===i));return t().createElement(Ky,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),tv=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=Ul(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Vy),{answers:c}=(0,e.useContext)(md),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=Jy(),h=Wy(l,u),g=(null==h?void 0:h.options.filter((e=>e.correct)).map((e=>e.id)))||[],m=Array.from(n.children).filter((e=>g.includes(Ce(e,"option-id")))),y=f&&g.includes(Ce(f,"option-id")),v=Lm(n.getAttribute("display-number")),b=d&&(null===(i=null==h?void 0:h.options.find((e=>e.id===Number(d.value))))||void 0===i?void 0:i.score)||0,I=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,v),t().createElement("span",{className:Sr()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":y,"e-dropdown-answer__answered--wrong":!y}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Qm,null,o("screen-reader.answer-end")),y&&t().createElement(Qm,null,o("screen-reader.correct-answer"))),!p&&!y&&t().createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},m.map(((e,n)=>t().createElement(t().Fragment,{key:n},r(e),n<m.length-1&&", ")))),null!=b&&t().createElement($y,{score:b,maxScore:I,displayNumber:v,questionId:u}))}));function nv({pregradingAnnotations:e,censoringAnnotations:n,singleGrading:r}){return e.length||n.length?t().createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},r?t().createElement("div",{className:"e-column e-column--10"},t().createElement(rv,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(rv,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(rv,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const rv=({i18nTitleKey:e,annotations:n})=>{const{t:r}=Ul();return n?t().createElement(t().Fragment,null,e&&t().createElement("h5",null,r(e)),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},n.map((({numbering:e,message:n})=>t().createElement("li",{"data-list-number":e,key:e},n))))):null},iv=t().memo((function(){const{answers:n}=(0,e.useContext)(md),{scores:r,singleGrading:i}=(0,e.useContext)(Vy),o=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);void 0!==i&&n.push(i)}return n}(n||[],(e=>{const t=Ce(e,"question-id"),n=Qy(r,t);return n&&e&&(e=>{var t,n,r,i;return Boolean((null===(n=null===(t=null==e?void 0:e.pregrading)||void 0===t?void 0:t.annotations)||void 0===n?void 0:n.length)||(null===(i=null===(r=null==e?void 0:e.censoring)||void 0===r?void 0:r.annotations)||void 0===i?void 0:i.length))})(n)?[e,n]:void 0})),a=(e,t,r=0)=>Vp(e,(([e,i])=>{var o,a,s;return null!==(s=null===(a=null===(o=i[t])||void 0===o?void 0:o.annotations)||void 0===a?void 0:a.filter((e=>e.message.length)).map(((t,i)=>{const o=`${((e,t)=>e.length>1?Lm(t.getAttribute("display-number")):"")(n,e)+String(r+i+1)})`;return{numbering:o,message:t.message}})))&&void 0!==s?s:[]})),s=a(o,"pregrading"),l=a(o,"censoring",s.length);return t().createElement(nv,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),ov=t().memo(yd((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Vy),{displayNumber:l,level:c}=(0,e.useContext)(md),u=function(e,t){return ke(e).some((e=>{var n;return null===(n=t[Ce(e,"question-id")])||void 0===n?void 0:n.value}))}(n,a),{i18n:d}=Ul(),f=null===(i=null==s?void 0:s.questions)||void 0===i?void 0:i.find((e=>e.displayNumber===l)),p=f&&("choices"in f?f.choices[0].id:f.id),h=!!p&&(null===(o=a[p])||void 0===o?void 0:o.answerNonAnswer);return t().createElement("div",{className:Sr()("e-exam-question",`e-level-${c}`,{"e-mrg-b-8 e-clearfix":0===c,"e-mrg-l-8 e-mrg-y-4":c>0,"no-answer":!u,"non-answer":h}),id:l,"aria-description":u?void 0:d.t("examineExam.questionHasNoAnswer")},r(n),t().createElement(iv,null))}))),av=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(md),c=`h${Math.min(3+o,6)}`,u=Jy();return t().createElement(t().Fragment,null,t().createElement(c,{className:Sr()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${Td(i)} `),r(n)," ",u&&t().createElement(Nm,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),sv=t().memo(mc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement(lc,{"aria-labelledby":Vl(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),lv=5;function cv(e,t,n,r=!0){const i=[...t,...n],o=i.filter((e=>e.message));for(const[n,a]of i.entries()){const i=t.includes(a)?"pregrading":"censoring",s=o.indexOf(a)+1||void 0,l="pregrading"===i?n:n-t.length;switch(a.type){case"line":case"rect":fv(e,a,i,l,s,r);break;default:hv(e,a,i,l,s,r)}}}function uv(e,t){const n=e.style,r=e=>100*e+"%";"rect"===t.type?(n.left=r(t.x),n.top=r(t.y),n.right=r(1-(t.x+t.width)),n.bottom=r(1-(t.y+t.height))):(n.left=r(t.x1),n.top=r(t.y1),n.right=r(1-t.x2),n.bottom=r(1-t.y2))}function dv(e){const t=e.parentElement;if(t instanceof HTMLSpanElement)return t;const n=De("span",{className:"e-annotation-wrapper"});return t.insertBefore(n,e),n.appendChild(e),n}function fv(e,t,n,r,i,o){const{attachmentIndex:a}=t;return pv(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function pv(e,t,n,r,i,o){const a=dv(e),s=function(){const e=De("mark",{className:Sr()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===r,"e-annotation--censoring":"censoring"===r}),title:t,"data-list-index":String(i),"data-type":r,...o&&{"data-index":String(o)},...n.message&&{"data-message":n.message}});return uv(e,n),o&&e.appendChild(gv(o,"shape",n.message)),e}();return a.appendChild(s),s}function hv(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(!l(f)&&!function(e){return"SUP"===e.nodeName}(f)&&!function(e){return"BR"===e.nodeName}(f)&&p>=a){const a=De("mark",{className:Sr()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:o?t.message:"","data-list-index":String(r),"data-type":n,...i&&{"data-index":String(i)},...t.message&&{"data-message":t.message}});null===(g=f.parentElement)||void 0===g||g.insertBefore(a,f);const l=d(a,f,h);l>0?e(c(a),p+s-l,l):i&&a.appendChild(gv(i,"text",t.message))}else f instanceof Text&&p+u(f)>a&&f.splitText(a-p),e(function(e){return l(e)?e.childNodes[0]:c(e)}(f),p+u(f),h)}(e.childNodes[0],0,s);function l(e){return"MARK"===e.nodeName}function c(t){const n=t.nextSibling;if(n)return n;const r=t.parentElement;if(null===r||r===e)throw new Error("Bug: the answer seems to be too short for the current set of annotations.");return c(r)}function u(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}function d(e,t,n){if(!t||l(t)||0===n)return n;t instanceof Text&&u(t)>0&&u(t)>n&&t.splitText(n);const r=t.nextSibling;return e.appendChild(t),d(e,r,n-u(t))}}function gv(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>lv?`${e})`:n,"data-message":n})}const mv=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=Ul(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&cv(c.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement(t().Fragment,null,n&&o.length>1&&t().createElement("sup",null,n),t().createElement("span",{className:Sr()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Qm,null,s("screen-reader.answer-end"))),a)})),yv=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(md),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Vy),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Lm(n.getAttribute("display-number")),d=Qy(o,a),f=null==d?void 0:d.autograding;return t().createElement(mv,{answers:r,displayNumber:u,value:c,score:d},t().createElement($y,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function vv({maxScore:e}){const{t:n}=Ul();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function bv({shortCode:e}){return t().createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},t().createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),t().createElement("span",null,e))}function Iv({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=Ul();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(xv,{className:Sr()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(xv,{className:"e-result-scorecount-shortcode"},n),t().createElement(xv,{className:"e-mrg-r-0"},a(r)))}function xv({className:e,children:n}){return t().createElement("span",{className:Sr()("e-mrg-r-1 e-nowrap",e)},n)}function wv({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function Tv(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const Mv=t().memo((function({scores:n,maxScore:r,displayNumber:i,multilineAnswer:o,questionId:a}){var s,l,c,u,d;const{answers:f}=(0,e.useContext)(md),p={answers:f,displayNumber:i,multilineAnswer:o,questionId:a},h=null===(l=null===(s=null==n?void 0:n.censoring)||void 0===s?void 0:s.nonAnswerDetails)||void 0===l?void 0:l.shortCode;return t().createElement(Xy,{...p},null!=(null===(c=null==n?void 0:n.pregrading)||void 0===c?void 0:c.score)||(null===(d=null===(u=null==n?void 0:n.censoring)||void 0===u?void 0:u.scores)||void 0===d?void 0:d.length)?t().createElement(t().Fragment,null,function(e,n){var r;return[e.inspection&&(r=e.inspection,{score:r.score,shortCode:r.shortCodes?r.shortCodes.join(", "):"",type:"grading.inspection-grading-abbrev"}),...e.censoring?Tv(e.censoring):[],e.pregrading&&wv(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(Iv,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(bv,{shortCode:h})):t().createElement(vv,{maxScore:r}))})),Av=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=Ul(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&cv(s.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement("div",{className:Sr()("e-multiline-results-text-answer e-line-height-l e-pad-x-2 e-mrg-b-1",{"no-answer":!i}),"aria-description":i?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,o("screen-reader.answer-begin")),"rich-text"===n?t().createElement("div",{dangerouslySetInnerHTML:{__html:i||""},ref:s}):t().createElement("div",{className:"e-pre-wrap",ref:s},i),t().createElement(Qm,null,o("screen-reader.answer-end")))},Ev=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(md),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Vy),{t:s}=Ul(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Lm(n.getAttribute("display-number")):void 0,p=Qy(a,l),h=null===(r=null==p?void 0:p.pregrading)||void 0===r?void 0:r.comment,g=n.getAttribute("type")||"single-line",m=Ce(n,"max-length");return"rich-text"===g?t().createElement(t().Fragment,null,null!=m&&t().createElement(ey,{maxLength:m}),t().createElement(Mv,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(Av,{type:g,value:d,score:p}),t().createElement(Jm,{answer:u,element:n}),h&&t().createElement(t().Fragment,null,t().createElement("h5",null,s("comment")),t().createElement("p",{className:"e-italic"},h))):t().createElement(mv,{answers:i,score:p,displayNumber:f,value:d},t().createElement(Mv,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),Cv=({onEndSession:e,sessionEnded:n})=>{const{t:r}=Ul();return t().createElement("div",{className:"e-logout-container"},t().createElement("div",{className:"e-bg-color-off-white e-pad-6 shadow-box"},n?t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.thankYouTitle")),t().createElement("p",null,r("examineExam.shutdownComputer"),t().createElement("br",null),r("examineExam.returnUsbStick"))):t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.endExamTitle")),t().createElement("p",null,r("examineExam.afterInspectingYourAnswers"),t().createElement("br",null),r("examineExam.youCanNotReturnToExam"))),!n&&t().createElement("button",{id:"endSession",className:"e-button",onClick:()=>{e()}},r("examineExam.endExamTitle"))))},Nv=Ms({attachment:ac,"attachment-link":bc("plain"),"attachment-links":Ic("plain"),"audio-group":ac,"choice-answer":ev,"dropdown-answer":tv,formula:td,question:ov,hints:ac,image:jy((({element:e})=>null!=Me(e,"choice-answer")))(id),"question-instruction":_m,"question-number":vd,translation:bd,"question-title":av,section:sv,"section-title":Ym,"text-answer":Ev,"scored-text-answer":yv,"scored-text-answers":ac}),Sv=()=>{const{t:e}=Ul();return e("examineExam.returnToExam")},kv=()=>{const{t:e}=Ul();return t().createElement("div",{className:"e-section examine-exam-page-instructions shadow-box"},t().createElement("h3",null,e("examineExam.checkYourAnswersTitle")),t().createElement("ul",null,t().createElement("li",null,e("examineExam.hereAreYourAnswers")),t().createElement("li",null,e("examineExam.checkYourAnswers")),t().createElement("li",null,e("examineExam.removeExcessAnswers")),t().createElement("li",null,t().createElement("span",{className:"no-answer-example"},e("examineExam.emptyAnswersAreHighlighted")),e("examineExam.thereMayBeOptionalQuestions"))))};function jv(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Vy),{t:i}=Ul();return t().createElement("div",{className:"e-column--narrow"},t().createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},t().createElement("tbody",null,t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grading-total")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},i("points",{count:r}))),n&&t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grade")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n)))))}const Dv=t().memo(Yy(fc((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,resolveAttachment:f,root:p,subjectLanguage:h}=(0,e.useContext)(dc),{answersByQuestionId:g}=(0,e.useContext)(Vy),m=Ae(p,"exam-title"),y=p.getAttribute("exam-stylesheet"),b=ic((()=>zl(d,u,c)));(0,e.useEffect)(_l(b,d)),(0,e.useEffect)(rc,[]);const I=Jy(),x=void 0!==i,w=!I&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(v,{i18n:b},t().createElement("main",{className:Sr()("e-exam e-results",{"examine-exam-page":I,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),y&&t().createElement("link",{rel:"stylesheet",href:f(y)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(Sv,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement(oc,{id:"title",className:"e-column e-mrg-b-0"},Nv(m),s&&`, ${l.format(s)}`),!I&&t().createElement(jv,null)),!w&&t().createElement(kv,null),t().createElement(My,{validationErrors:Qp(Nd(n),g),inExam:!1}),Nv(p),(x||a)&&t().createElement(Cv,{onEndSession:I?()=>{try{document.querySelectorAll("main > *:not(.e-logout-container)").forEach((e=>{const t=e;t.style.height=`${t.clientHeight}px`})),setTimeout((()=>{i()}),50)}catch(e){console.error(e)}}:()=>Promise.resolve(),sessionEnded:o})),t().createElement(ag,null))})))),Ov=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var Lv=Math.max;const Rv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ud(n);return i<0&&(i=Lv(r+i,0)),Ov(e,Sn(t),i)};var Pv=Math.max,zv=Math.min;const Uv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ud(n),i=n<0?Pv(r+i,0):zv(i,r-1)),Ov(e,Sn(t),i,!0)},_v=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ln(e,t,n)},Fv=function(e){return e!=e},Bv=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ov(e,Fv,n)};var Gv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zv="\\ud800-\\udfff",Hv="["+Zv+"]",qv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vv="\\ud83c[\\udffb-\\udfff]",Yv="[^"+Zv+"]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",Qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Jv="(?:"+qv+"|"+Vv+")?",Xv="[\\ufe0e\\ufe0f]?",$v=Xv+Jv+"(?:\\u200d(?:"+[Yv,Wv,Qv].join("|")+")"+Xv+Jv+")*",Kv="(?:"+[Yv+qv+"?",qv,Wv,Qv,Hv].join("|")+")",eb=RegExp(Vv+"(?="+Vv+")|"+Kv+$v,"g");const tb=function(e){return function(e){return Gv.test(e)}(e)?function(e){return e.match(eb)||[]}(e):function(e){return e.split("")}(e)};var nb=/^\s+/;const rb=function(e,t,n){if((e=xn(e))&&(n||void 0===t))return e.replace(nb,"");if(!e||!(t=In(t)))return e;var r=tb(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&Bv(t,e[n],0)>-1;);return n}(r,tb(t));return _v(r,i).join("")},ib=function(e,t,n){if((e=xn(e))&&(n||void 0===t))return e.slice(0,or(e)+1);if(!e||!(t=In(t)))return e;var r=tb(e),i=function(e,t){for(var n=e.length;n--&&Bv(t,e[n],0)>-1;);return n}(r,tb(t))+1;return _v(r,0,i).join("")};function ob(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(ab),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(sb)})),n}function ab(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Ae(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function sb(e){const t=e=>/\S/.test(e.textContent),n=(()=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;n.nextNode();)t.push(n.currentNode);return t})(),r=Rv(n,t),i=Uv(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=rb(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=ib(n[i].textContent))}const lb=function({pregrading:e,censoring:n,singleGrading:r}){const i=(e,t=0)=>{var n;return null!==(n=e.filter((e=>e.message.length)).map(((e,n)=>({numbering:`${String(t+n+1)})`,message:e.message}))))&&void 0!==n?n:[]},o=i(e),a=i(n,o.length);return t().createElement(nv,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let cb;function ub(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];cb=t.length,t.forEach((e=>{e.complete?setTimeout((()=>db(e)),0):e.addEventListener("load",(()=>db(e)))}))}function db(e){cb--;const t=e.parentElement,n=null==t?void 0:t.nextSibling,r=n instanceof HTMLElement&&n.classList.contains("full-size-image"),i=e.naturalWidth>e.width;null==t||t.classList.toggle("e-large-image",i),i?r||null==t||t.insertAdjacentHTML("afterend",`<div class="full-size-image"><a target="_blank" href="${e.src}"></a>`):r&&(null==n||n.remove())}function fb({characterCount:e,maxLength:n}){const{t:r}=Ul(),i=(o=e,!(a=n)||o<=a?0:Math.floor(100*o/a-100));var o,a;return t().createElement("div",{className:"e-font-size-xs e-grading-answer-length"},r("answer-length",{count:e}),i>0?t().createElement("span",{className:"e-grading-answer-max-length-surplus"},r("max-length-surplus",{maxLength:n,percentage:i})):"")}function pb(n){const r=ic((()=>zl(n.language)));return(0,e.useEffect)(_l(r,n.language)),t().createElement(v,{i18n:r},t().createElement(hb,{...n}))}function hb({answer:{type:n,characterCount:r,value:i},language:o,isReadOnly:a,gradingRole:s,annotations:l,saveAnnotations:c,maxLength:u,popupTopMargin:d=25}){const f=(0,e.useRef)(null),p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)(null);let m,y;const v={start:void 0,element:void 0,img:void 0};let b,I,x,w,T,M=!1;const[A,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=document.querySelectorAll("img[src]");function t(){E((e=>e+1))}return E(0),N(e.length),e.forEach((e=>{e.addEventListener("load",t)})),()=>{e.forEach((e=>{e.removeEventListener("load",t)}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(y=l,wr(g.current,!1),wr(p.current,!1),F(y),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",z)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>ub(f.current)),1e3)},()=>{window.removeEventListener("keydown",B),window.removeEventListener("mouseup",P),window.removeEventListener("mousemove",_)})));const{t:S}=Ul();return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)v.element||D(n);else if("LI"===n.tagName){const e=null===(t=n.dataset.listNumber)||void 0===t?void 0:t.replace(")",""),r=document.querySelector(`.e-annotation[data-index="${e}"]`);D(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&k()}(e),className:"e-grading-answer-wrapper"},0!==C&&A!==C&&t().createElement("div",{className:"loading-images"},t().createElement("span",null,S("grading.loading-images")," (",A,"/",C,")")),t().createElement("div",{className:"e-grading-answer e-line-height-l e-mrg-b-1",ref:f,onMouseDown:e=>function(e){var t;if(a||0!==e.button)return;window.addEventListener("mouseup",P);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",xr),v.start=function(e,t){const n=t.closest(".e-grading-answer"),r=Array.from(n.querySelectorAll("img")).findIndex((e=>e===t)),i=n.querySelectorAll(".e-annotation-wrapper").item(r).getBoundingClientRect(),o=e.clientX,a=Ir((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:Ir((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),v.img=n,window.addEventListener("mousemove",_))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||yr()&&!a||v.element||D(t)}(e.target)}),t().createElement(fb,{characterCount:r,maxLength:u}),t().createElement(lb,{censoring:l.censoring,pregrading:l.pregrading,singleGrading:"pregrading"===s}),t().createElement("form",{style:{display:"none"},ref:p,className:"e-grading-answer-popup e-grading-answer-add-annotation",onSubmit:e=>function(e){e.preventDefault();const t=h.current.value;b?y[b.role][b.index].message=t:y[s]=vr(f.current,{...m,message:t},y[s]||[]),wr(p.current,!1),c(y)}(e)},t().createElement("input",{onFocus:()=>function(){if(!Tr()&&f.current){const e={...y};e[s]=vr(f.current,m,y[s]),F(e)}}(),name:"message",className:"e-grading-answer-add-annotation-text",type:"text",ref:h}),t().createElement("button",{className:"e-grading-answer-add-annotation-button",type:"submit","data-i18n":"arpa.annotate"},S("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),R()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(x)},onMouseOut:k},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(wr(g.current,!1),L(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),k(),y[b.role].splice(b.index,1),b=void 0,c(y)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function k(){x=setTimeout((()=>{wr(g.current,!1)}),400)}function j(e){"MARK"===e.target.tagName&&(clearTimeout(x),k()),f.current.removeEventListener("mouseout",j)}function D(e){clearTimeout(x);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),I=e.getBoundingClientRect(),mr(I,f.current,t,d),t.querySelector(".e-grading-answer-tooltip-label").textContent=i||"–",b={index:Number(r),role:n,message:i||""},f.current.addEventListener("mouseout",j)}function O(e,t){b=void 0,L(e,t)}function L(e,t){window.removeEventListener("keydown",B),mr(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",B)}function R(){m=void 0,v.element=void 0,v.img=void 0,M=!1,window.removeEventListener("keydown",B),wr(p.current,!1),F(y)}function P(){var e,t;if(null===(e=v.img)||void 0===e||e.removeEventListener("dragstart",xr),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",P),v.element)return void O(null===(t=v.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&yr()){const e=n.getRangeAt(0),t=pr(f.current,e);if(!t)return;const r=hr(y[s],t.startIndex,t.length);m={...t,type:"text",message:r},O(e.getBoundingClientRect(),r);const i={...y};i[s]=vr(f.current,m,y[s]),F(i)}}function z(){Tr()||(clearTimeout(T),T=setTimeout(U,500))}function U(){const e=window.getSelection();if(e&&null!==f.current&&yr()){const t=e.getRangeAt(0),n=pr(f.current,t);if(!n)return;const r=hr(y[s],n.startIndex,n.length);M=!0,h.current.value=r,mr(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function _(e){xr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=Ir((e.clientX-t.left)/t.width),l=Ir((e.clientY-t.top)/t.height),c=Math.abs(o-e.clientX)<=10,u=Math.abs(a-e.clientY)<=10;switch(c||u?"line":"rect"){case"rect":return{type:"rect",attachmentIndex:n,x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i),message:""};case"line":return{type:"line",attachmentIndex:n,x1:c?r:Math.min(r,s),y1:u?i:Math.min(i,l),x2:c?r:Math.max(r,s),y2:u?i:Math.max(i,l),message:""}}}(e,v.start),v.element?uv(v.element,m):v.element=pv(v.img,"",m,s,999)}function F(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(dv),ub(t)):t.textContent=i,cv(t,e.pregrading,e.censoring,!1)}function B(e){"Escape"===e.key&&M&&(e.stopPropagation(),R())}}})(),s})()));
|
356
|
+
`},3858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SET_THEORY=t.GEOMETRY=t.ALGEBRA=t.BASIC=void 0,t.BASIC=[{label:"°",latex:"\\degree"},{label:"·",latex:"\\cdot"},{label:"×",latex:"\\times"},{label:"±",latex:"\\pm"},{label:"∞",latex:"\\infty"},{label:"²",latex:"^2"},{label:"³",latex:"^3"},{label:"½",latex:"\\frac{1}{2}"},{label:"⅓",latex:"\\frac{1}{3}"},{label:"π",latex:"\\pi"},{label:"‰"},{label:"α",latex:"\\alpha"},{label:"β",latex:"\\beta"},{label:"Γ",latex:"\\Gamma"},{label:"γ",latex:"\\gamma"},{label:"Δ",latex:"\\Delta"},{label:"δ",latex:"\\delta"},{label:"ε",latex:"\\varepsilon"},{label:"ζ",latex:"\\zeta"},{label:"η",latex:"\\eta"},{label:"θ",latex:"\\theta"},{label:"ϑ",latex:"\\vartheta"},{label:"ι",latex:"\\iota"},{label:"κ",latex:"\\kappa"},{label:"Λ",latex:"\\Lambda"},{label:"λ",latex:"\\lambda"},{label:"µ",latex:"\\mu"},{label:"ν",latex:"\\nu"},{label:"Ξ",latex:"\\Xi"},{label:"ξ",latex:"\\xi"},{label:"∏",latex:"\\Pi"},{label:"ρ",latex:"\\rho"},{label:"∑",latex:"\\Sigma"},{label:"σ",latex:"\\sigma"},{label:"τ",latex:"\\tau"},{label:"Υ",latex:"\\Upsilon"},{label:"υ",latex:"\\upsilon"},{label:"Φ",latex:"\\Phi"},{label:"ϕ",latex:"\\phi"},{label:"χ",latex:"\\chi"},{label:"Ψ",latex:"\\Psi"},{label:"ψ",latex:"\\psi"},{label:"Ω",latex:"\\Omega"},{label:"ω",latex:"\\omega"},{label:"∂",latex:"\\partial"},{label:"φ",latex:"\\varphi"}],t.ALGEBRA=[{label:"≠",latex:"\\neq"},{label:"≈",latex:"\\approx"},{label:"≤",latex:"\\leq"},{label:"≥",latex:"\\geq"},{label:"<"},{label:">"},{label:"∼",latex:"\\sim"},{label:"≡",latex:"\\equiv"},{label:"≢",latex:"\\not\\equiv"},{label:"∘",latex:"\\circ"},{label:"…",latex:"\\ldots"},{label:"∝",latex:"\\propto"}],t.GEOMETRY=[{label:"∢",latex:"\\sphericalangle"},{label:"|",latex:"\\mid"},{label:"‖",latex:"\\parallel"},{label:"⇌",latex:"\\xrightleftharpoons"},{label:"⇅"},{label:"∠",latex:"\\angle"},{label:"↑",latex:"\\uparrow"},{label:"↗",latex:"\\nearrow"},{label:"↘",latex:"\\searrow"},{label:"↓",latex:"\\downarrow"},{label:"↔",latex:"\\leftrightarrow"},{label:"⊥",latex:"\\perp"}],t.SET_THEORY=[{label:"→",latex:"\\rightarrow"},{label:"⇒",latex:"\\Rightarrow"},{label:"⇔",latex:"\\Leftrightarrow"},{label:"∈",latex:"\\in"},{label:"ℤ",latex:"\\mathbb{Z}"},{label:"ℝ",latex:"\\mathbb{R}"},{label:"∃",latex:"\\exists"},{label:"∀",latex:"\\forall"},{label:"ℕ",latex:"\\mathbb{N}"},{label:"ℚ",latex:"\\mathbb{Q}"},{label:"∩",latex:"\\cap"},{label:"∪",latex:"\\cup"},{label:"∖",latex:"\\setminus"},{label:"⊂",latex:"\\subset"},{label:"⊄",latex:"\\notsubset"},{label:"∉",latex:"\\notin"},{label:"∅",latex:"\\empty"},{label:"∧",latex:"\\and"},{label:"∨",latex:"\\or"},{label:"¬",latex:"\\neg"},{label:"∇",latex:"\\nabla"}]},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3Lncz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IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}]},2959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useKeyboardEventListener=void 0;const r=n(5442);t.useKeyboardEventListener=(e,t,n,i=!0)=>{(0,r.useEffect)((()=>{const r=r=>{(!t||t&&r.ctrlKey)&&r.key.toLowerCase()===e.toLowerCase()&&(i&&r.preventDefault(),n(r))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}}),[e,n])}},7548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const[t,n]=(0,r.useState)({current:new Map(e)});function i(e){n((t=>(e(t.current),{current:t.current})))}return{raw:t.current,has:t.current.has.bind(t.current),get:t.current.get.bind(t.current),values:t.current.values.bind(t.current),set:(e,t)=>i((n=>n.set(e,t))),delete:e=>i((t=>t.delete(e)))}};const r=n(5442)},2613:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,c.default)(),[n,r]=(0,l.useState)(null),[i,o]=(0,l.useState)(e.latex),a=(0,l.useRef)(null),s=(0,l.useRef)(i),d=(0,l.useCallback)((function(t){if(!t)return;const n=u.MathField(t,{handlers:{edit:function(t){var n,r;if(t.el().contains(document.activeElement)){const t=null===(n=a.current)||void 0===n?void 0:n.latex();t&&(null===(r=e.onChange)||void 0===r||r.call(e,s.current,t),o(t),s.current=t)}},enter:function(){var t;null===(t=e.onEnter)||void 0===t||t.call(e)}}});n.latex(e.latex),r(n),a.current=n}),[]);return(0,l.useEffect)((function(){n&&n.latex()!=e.latex&&(null==n||n.latex(e.latex),t())}),[n,e.latex]),{ref:d,mq:n,isError:""===(null==n?void 0:n.latex())&&""!==e.latex,lastValue:i}};const s=o(n(5968)),l=n(5442),c=a(n(9957)),u=s.getInterface(2)},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n={attributes:!1,characterData:!1,childList:!0,subtree:!1}){(0,r.useEffect)((()=>{if(!e.current)return;const r=new MutationObserver(t);return r.observe(e.current,n),()=>r.disconnect()}),[t,n])};const r=n(5442)},9957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)(0);return()=>t((e=>(e+1)%(Number.MAX_SAFE_INTEGER-1)))};const r=n(5442)},8115:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=r(n(7204)),s=n(2373),l=(0,o.forwardRef)(((e,t)=>{const{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,textAreaProps:f,toolbarRoot:p}=e,[h,g]=(0,o.useState)(p),m=(0,o.useRef)(null);return(0,o.useEffect)((()=>{p?g(p):m.current&&g(m.current)}),[p,m]),(0,i.jsxs)(s.EditorStateProvider,{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,children:[p?null:(0,i.jsx)("div",{ref:m,className:"rich-text-editor-toolbar-root"}),(0,i.jsx)(a.default,Object.assign({},f,{toolbarRoot:h,ref:t}))]})}));t.default=l},6482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)([]),[n,i]=(0,r.useState)(0),o=(0,r.useRef)(e),a=(0,r.useRef)(n),s=e=>{o.current=e,t(e)},l=e=>{a.current=e,i(e)};return{canUndo:0!==n,canRedo:n<e.length-1,write:e=>{if(e===o.current.at(a.current))return;const t=[...o.current.slice(0,a.current+1),e];s(t),l(t.length-1)},clear:()=>{s([""]),l(0)},undo:()=>{const e=a.current-1;if(e<0)return;const t=o.current.at(e);return l(e),t},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),t}}};const r=n(5442)},2373:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,o.useContext)(m);if(!e)throw Error("Tried to use Editor State Context outside a Provider");return e},t.EditorStateProvider=function({children:e,language:t="FI",getPasteSource:n=b,allowedFileTypes:r=["image/png","image/jpeg"],onValueChange:y=(()=>{}),initialValue:x="",baseUrl:w=""}){var T;const[M,A]=(0,o.useState)(!1),[E,C]=(0,o.useState)(!1),[N,S]=(0,o.useState)(!1),[k,j]=(0,o.useState)(!1),[D,O]=(0,o.useState)(null),[L,R]=(0,o.useState)(!1),P=null!==(T=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==T?T:"0",z=(0,s.default)(),U=(0,a.default)(),_=(0,o.useRef)(null),F={FI:d.default,SV:f.default}[t];function B(e,t){const n=(0,p.createPortal)((0,i.jsx)(c.default,Object.assign({onOpen:function(e){U.clear(),O(e),A(!0),C(!0)},onBlur:function(t){var n;O(null),C(!1),U.clear(),Z();const r=null===(n=window.getSelection())||void 0===n?void 0:n.anchorNode;if(t)I(e,t);else if(r){const e=g(r);e&&I(e)}},onChange:function(e){U.write(e)},onEditorRemoved:function(){var t,n;z.delete(e);const r=e;(null===(t=r.previousSibling)||void 0===t?void 0:t.textContent)===h.nbsp&&r.previousSibling.remove(),(null===(n=r.nextSibling)||void 0===n?void 0:n.textContent)===h.nbsp&&r.nextSibling.remove(),r.remove(),U.clear()},errorText:F.editor.render_error},t)),e);z.set(e,n)}function G(){if(!_.current)return;const e=Array.from(_.current.querySelectorAll(`span.${u.MATH_EDITOR_CLASS}`)),t=Array.from(_.current.querySelectorAll('img[src*="/math.svg?"]')),n=[].concat(e.filter((e=>{var t;return!z.has(e)&&(null===(t=e.querySelector("img"))||void 0===t?void 0:t.alt)})).map((e=>[e,e.querySelector("img").alt]))).concat(t.filter((e=>!z.has(e)&&e instanceof HTMLImageElement&&e.alt&&null===e.closest(`span.${u.MATH_EDITOR_CLASS}`))).map((e=>[e,e.alt])));for(const[e,t]of n){const n=(0,u.createMathStub)(v());e.replaceWith(n),B(n,{initialLatex:t})}}function Z(){setTimeout((()=>{var e;const t=null===(e=_.current)||void 0===e?void 0:e.innerHTML;t&&y((0,h.getAnswer)(t))}),0)}return(0,l.default)(_,(function(e){e.flatMap((e=>Array.from(e.removedNodes))).filter((e=>z.has(e))).forEach((e=>{z.delete(e)}))})),(0,o.useEffect)((()=>{!L&&_.current&&(x&&(_.current.innerHTML=x),setTimeout((()=>{G(),R(!0)}),0))}),[L,x,_.current]),(0,i.jsx)(m.Provider,{value:{isToolbarOpen:"0"!==P||M,isMathToolbarOpen:"2"===P||E,showToolbar:()=>A(!0),hideToolbar:()=>A(!1),isToolbarExpanded:N,expandToolbar:()=>S(!0),collapseToolbar:()=>S(!1),isHelpDialogOpen:k,showHelpDialog:()=>j(!0),hideHelpDialog:()=>j(!1),activeMathEditor:D,setActiveMathEditor:O,ref:_,mathEditorPortals:z,spawnMathEditor:B,spawnMathEditorAtCursor:function(){B((0,u.createMathStub)(v(),!0),{initialOpen:!0})},spawnMathEditorInNewLine:function(e){var t,n,r,i;const o=e.closest(`.${u.MATH_EDITOR_CLASS}`),a=(0,u.createMathStub)(v(),!1),s=null==o?void 0:o.nextSibling;s?(null===(t=_.current)||void 0===t||t.insertBefore(a,s),null===(n=_.current)||void 0===n||n.insertBefore(document.createElement("br"),a)):(null===(r=_.current)||void 0===r||r.appendChild(document.createElement("br")),null===(i=_.current)||void 0===i||i.appendChild(a)),B(a,{initialOpen:!0})},initMathEditors:G,canUndo:U.canUndo,canRedo:U.canRedo,undo:U.undo,redo:U.redo,t:F,handlePastedImage:n,allowedFileTypes:r,onAnswerChange:Z,initialValue:x,baseUrl:w},children:e})};const i=n(1085),o=n(5442),a=r(n(6482)),s=r(n(7548)),l=r(n(5702)),c=r(n(3671)),u=n(7469),d=r(n(1414)),f=r(n(42)),p=n(6003),h=n(2127),g=e=>{var t;return(null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains(u.MATH_EDITOR_CLASS))?e:e.parentElement?g(e.parentElement):null},m=(0,o.createContext)(null);let y=0;const v=()=>{const e=y;return y=e+1,e},b=e=>new Promise((t=>{const n=new FileReader;n.onload=e=>t(n.result),n.readAsDataURL(e)})),I=(e,t="after")=>{const n=window.getSelection(),r=document.createRange();"before"===t?r.setStartBefore(e):r.setStartAfter(e),r.collapse(!0),null==n||n.removeAllRanges(),null==n||n.addRange(r)}},2127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnswer=t.isBr=t.isTextNode=t.isAddMutation=t.isRemoveMutation=t.nbsp=t.eventHandlerWithoutFocusLoss=void 0;const r=n(7772);t.eventHandlerWithoutFocusLoss=e=>t=>(e&&e(),t.preventDefault(),t.stopPropagation(),!1),t.nbsp=" ",t.isRemoveMutation=e=>e.removedNodes.length>0,t.isAddMutation=e=>e.addedNodes.length>0,t.isTextNode=e=>e&&e.nodeType===Node.TEXT_NODE,t.isBr=e=>e&&"BR"===e.nodeName,t.getAnswer=e=>{const t=(0,r.sanitizeForExport)(e),n=(new DOMParser).parseFromString(t,"text/html").body,a=(new DOMParser).parseFromString(t.replaceAll("<br />","\n"),"text/html").body.innerText,s=n.querySelectorAll(":scope > img:not([data-math-svg])"),l=n.querySelectorAll("span.math-editor-wrapper").length;return n.querySelectorAll("span.math-editor-wrapper").forEach((e=>{const t=e.querySelector("img");t&&e.replaceWith(t)})),{answerHtml:0===(null==a?void 0:a.trim().length)&&0===s.length&&l>0?"":i(t),answerText:o(null!=a?a:""),imageCount:s.length}};const i=e=>e.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,""),o=e=>e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")},7469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MATH_EDITOR_CLASS=void 0,t.createMathStub=function(e,n=!1){const i=document.createElement("span");if(i.className=t.MATH_EDITOR_CLASS,i.id=`math-editor-${e}`,i.style.display="contents",i.contentEditable="false",n){const e=window.getSelection();if(!e||0===e.rangeCount)return i;const n=e.getRangeAt(0);n.deleteContents(),n.insertNode(i);const o=i.parentNode;o.className===t.MATH_EDITOR_CLASS&&o.insertAdjacentElement(i.nextSibling?"beforebegin":"afterend",i),i.insertAdjacentText("beforebegin",r.nbsp),i.insertAdjacentText("afterend",r.nbsp),e.removeAllRanges(),n.setStartAfter(i),n.setEndAfter(i),e.addRange(n)}return i};const r=n(2127);t.MATH_EDITOR_CLASS="math-editor-wrapper"},7772:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=a,t.sanitizeForExport=function(e){return[e=>a(e,Object.assign(Object.assign({},o),{transformTags:{span:(e,t)=>"math-editor-wrapper"===t.class?{tagName:"",attribs:{}}:{tagName:e,attribs:t}}})),e=>e.trim(),e=>e.replace(/ /g,"")].reduce(((e,t)=>t(e)),e)};const i=r(n(7521)),o={allowedTags:["img","br","span"],allowedAttributes:{img:["src","alt","data-math-svg"],span:["class"]},allowedSchemes:["data"],allowedClasses:{span:["math-editor-wrapper"]},transformTags:{img:(e,t)=>{var n;return{tagName:e,attribs:(null===(n=t.src)||void 0===n?void 0:n.includes("math.svg"))?Object.assign(Object.assign({},t),{"data-math-svg":"true"}):t}},span:(e,t)=>"math-editor-wrapper"===t.class?{tagName:e,attribs:t}:{tagName:"",attribs:{text:""}}}};function a(e,t){return[e=>function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),e=>(0,i.default)(e,Object.assign(Object.assign({},o),{allowedTags:[...o.allowedTags,"div","p"],allowedSchemes:["data","http","https"]})),e=>function(e){var t;const n=document.createElement("div");n.innerHTML=e;do{let e;for(let r=0;r<n.childNodes.length;r++){const i=n.childNodes[r];if(s(i)){for(void 0!==e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(null!==(t=e.textContent)&&void 0!==t?t:"")&&n.insertBefore(document.createElement("br"),i),i.lastChild&&"BR"!==i.lastChild.nodeName&&i.insertBefore(document.createElement("br"),null);i.childNodes.length&&null!==i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i)}e=i}}while(Array.prototype.some.call(n.childNodes,(e=>s(e))));return n.innerHTML}(e),e=>(0,i.default)(e,Object.assign(Object.assign({},o),t))].reduce(((e,t)=>t(e)),e)}function s(e){return"DIV"===e.nodeName||"P"===e.nodeName}},7521:(e,t,n)=>{const r=n(5482),i=n(2189),{isPlainObject:o}=n(993),a=n(2743),s=n(8287),{parse:l}=n(9274),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=g;const h=/^[^\0\t\n\f\r /<=>]+$/;function g(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let y="",v="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=y.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){k.length&&(k[k.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){k.length&&c.includes(this.tag)&&k[k.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},g.defaults,t)).parser=Object.assign({},m,t.parser);const I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){I(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const x=t.nonTextTags||["script","style","textarea","option"];let w,T;t.allowedAttributes&&(w={},T={},d(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&(T[t]=new RegExp("^("+n.join("|")+")$"))})));const M={},A={},E={};d(t.allowedClasses,(function(e,t){if(w&&(f(w,t)||(w[t]=[]),w[t].push("class")),M[t]=e,Array.isArray(e)){const n=[];M[t]=[],E[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}}));const C={};let N,S,k,j,D,O,L;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=g.simpleTransform(e)),"*"===t?N=n:C[t]=n}));let R=!1;z();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&z(),O)return void L++;const r=new b(e,n);k.push(r);let i=!1;const c=!!r.text;let u;if(f(C,e)&&(u=C[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),N&&(u=N(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),(!I(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(j)||null!=t.nestingLimit&&S>=t.nestingLimit)&&(i=!0,j[S]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==x.indexOf(e)&&(O=!0,L=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;v=y,y=""}y+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||f(w,e)||w["*"])&&d(n,(function(n,i){if(!h.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!w||f(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||f(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&_(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=F(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=F(n);if(r.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=s(n);if(e.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),e=p(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=p(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=M[e],o=M["*"],s=A[e],l=E[e],c=[s,A["*"]].concat(l).filter((function(e){return e}));if(!(u=n,d=t&&o?a(t,o):t||o,g=c,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||g.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let r;return r=t[n.selector]&&t["*"]?a(t[n.selector],t["*"]):t[n.selector]||t["*"],r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(r),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");y+=" "+i,n&&n.length?y+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(y+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?y+=" />":(y+=">",!r.innerText||c||t.textFilter||(y+=U(r.innerText),R=!0)),i&&(y=v+U(y),v="")},ontext:function(e){if(O)return;const n=k[k.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||I(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?y+=t.textFilter(n,r):R||(y+=n)}else y+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(O){if(L--,L)return;O=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);O=!!t.enforceHtmlBoundary&&"html"===e,S--;const i=j[S];if(i){if(delete j[S],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();v=y,y=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?y=y.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!I(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(y=v,v=""):(y+="</"+e+">",i&&(y=v+U(y),v=""),R=!1))}},t.parser);return P.write(e),P.end(),y;function z(){y="",S=0,k=[],j={},D={},O=!1,L=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function _(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const m={decodeEntities:!0};g.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},g.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2146:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},3864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>on,StyleSheetConsumer:()=>St,StyleSheetContext:()=>Nt,StyleSheetManager:()=>Dt,ThemeConsumer:()=>Zt,ThemeContext:()=>Gt,ThemeProvider:()=>qt,__PRIVATE__:()=>an,createGlobalStyle:()=>tn,css:()=>Jt,default:()=>Kt,isStyledComponent:()=>Je,keyframes:()=>nn,styled:()=>Kt,useTheme:()=>Ht,version:()=>de,withTheme:()=>rn});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(5442),a=n.n(o),s=n(2146),l=n.n(s),c="-ms-",u="-moz-",d="-webkit-",f="comm",p="rule",h="decl",g="@import",m="@keyframes",y="@layer",v=Math.abs,b=String.fromCharCode,I=Object.assign;function x(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function C(e){return e.length}function N(e){return e.length}function S(e,t){return t.push(e),e}function k(e,t){return e.filter((function(e){return!w(e,t)}))}var j=1,D=1,O=0,L=0,R=0,P="";function z(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:D,length:a,return:"",siblings:s}}function U(e,t){return I(z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _(e){for(;e.root;)e=U(e.root,{children:[e]});S(e,e.siblings)}function F(){return R=L>0?A(P,--L):0,D--,10===R&&(D=1,j--),R}function B(){return R=L<O?A(P,L++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,L)}function Z(){return L}function H(e,t){return E(P,e,t)}function q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(e){return x(H(L-1,Q(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(R=G())&&R<33;)B();return q(e)>2||q(R)>3?"":" "}function W(e,t){for(;--t&&B()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return H(e,Z()+(t<6&&32==G()&&32==B()))}function Q(e){for(;B();)switch(R){case e:return L;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:B()}return L}function J(e,t){for(;B()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,L-1)+"*"+b(47===e?e:B())}function X(e){for(;!q(G());)B();return H(e,L)}function $(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case y:if(e.children.length)break;case g:case h:return e.return=e.return||e.value;case f:return"";case m:return e.return=e.value+"{"+$(e.children,r)+"}";case p:if(!C(e.value=e.props.join(",")))return""}return C(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return d+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return d+e+u+e+c+e+e;case 5936:switch(A(e,t+11)){case 114:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return d+e+c+e+e;case 6165:return d+e+c+"flex-"+e+e;case 5187:return d+e+T(e,/(\w+).+(:[^]+)/,d+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return d+e+c+"flex-item-"+T(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return d+e+c+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return d+e+c+T(e,"shrink","negative")+e;case 5292:return d+e+c+T(e,"basis","preferred-size")+e;case 6060:return d+"box-"+T(e,"-grow","")+d+e+c+T(e,"grow","positive")+e;case 4554:return d+T(e,/([^-])(transform)/g,"$1"+d+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+E(e,t)+e;break;case 2592:case 3360:return c+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:c+T(e,"-start","")+e+c+"grid-row-span:"+(~M(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":c+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,d+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?ee(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return c+n+":"+r+s+(i?c+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+d)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===A(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return T(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case m:return $([U(e,{value:T(e.value,"@","@"+d)})],r);case p:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_(U(e,{props:[T(t,/:(read-\w+)/,":"+u+"$1")]})),_(U(e,{props:[t]})),I(e,{props:k(n,r)});break;case"::placeholder":_(U(e,{props:[T(t,/:(plac\w+)/,":"+d+"input-$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,":"+u+"$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,c+"input-$1")]})),_(U(e,{props:[t]})),I(e,{props:k(n,r)})}return""}))}}function ne(e){return function(e){return P="",e}(re("",null,null,null,[""],e=function(e){return j=D=1,O=C(P=e),L=0,[]}(e),0,[0],e))}function re(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,I=0,x="",w=i,E=o,N=r,k=x;m;)switch(h=I,I=B()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(V(I),"&","&\f"),"&\f",v(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=V(I);break;case 9:case 10:case 13:case 32:k+=Y(h);break;case 92:k+=W(Z()-1,7);continue;case 47:switch(G()){case 42:case 47:S(oe(J(B(),Z()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=C(k)*y;case 125*g:case 59:case 0:switch(I){case 0:case 125:m=0;case 59+u:-1==y&&(k=T(k,/\f/g,"")),p>0&&C(k)-d&&S(p>32?ae(k+";",r,n,d-1,l):ae(T(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(S(N=ie(k,t,n,c,u,i,s,x,w=[],E=[],d,o),o),123===I)if(0===u)re(k,t,N,N,w,o,d,s,E);else switch(99===f&&110===A(k,3)?100:f){case 100:case 108:case 109:case 115:re(e,N,N,r&&S(ie(e,N,N,0,0,i,s,x,i,w=[],d,E),E),i,E,d,s,r?w:E);break;default:re(k,N,N,N,[""],E,0,s,E)}}c=u=p=0,g=y=1,x=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==I)--g;else if(125==I&&0==g++&&125==F())continue;switch(k+=b(I),I*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*y,y=1;break;case 64:45===G()&&(k+=V(B())),f=G(),u=d=C(x=k+=X(Z())),I++;break;case 45:45===h&&2==C(k)&&(g=0)}}return o}function ie(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=0===i?o:[""],g=N(h),m=0,y=0,b=0;m<r;++m)for(var I=0,w=E(e,f+1,f=v(y=a[m])),M=e;I<g;++I)(M=x(y>0?h[I]+" "+w:T(w,/&\f/g,h[I])))&&(l[b++]=M);return z(e,t,n,0===i?p:s,l,c,u,d)}function oe(e,t,n,r){return z(e,t,n,f,b(R),E(e,2,-2),0,r)}function ae(e,t,n,r,i){return z(e,t,n,h,E(e,0,r),E(e,r+1,-1),r,i)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},le="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",de="6.1.13",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ge={},me=(new Set,Object.freeze([])),ye=Object.freeze({});function ve(e,t,n){return void 0===n&&(n=ye),e.theme!==n.theme&&e.theme||t||n.theme}var be=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ie=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function we(e){return e.replace(Ie,"-").replace(xe,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var Ce,Ne=5381,Se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ke=function(e){return Se(Ne,e)};function je(e){return Ee(ke(e)>>>0)}function De(e){return e.displayName||e.name||"Component"}function Oe(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Pe=Le?Symbol.for("react.forward_ref"):60112,ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Ce={})[Pe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[Re]=_e,Ce);function Be(e){return("type"in(t=e)&&t.type.$$typeof)===Re?_e:"$$typeof"in e?Fe[e.$$typeof]:ze;var t}var Ge=Object.defineProperty,Ze=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,qe=Object.getOwnPropertyDescriptor,Ve=Object.getPrototypeOf,Ye=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ye){var r=Ve(t);r&&r!==Ye&&We(e,r,n)}var i=Ze(t);He&&(i=i.concat(He(t)));for(var o=Be(e),a=Be(t),s=0;s<i.length;++s){var l=i[s];if(!(l in Ue||n&&n[l]||a&&l in a||o&&l in o)){var c=qe(t,l);try{Ge(e,l,c)}catch(e){}}}}return e}function Qe(e){return"function"==typeof e}function Je(e){return"object"==typeof e&&"styledComponentId"in e}function Xe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $e(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ke(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=et(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=et(e[r],t[r]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),it=new Map,ot=new Map,at=1,st=function(e){if(it.has(e))return it.get(e);for(;ot.has(at);)at++;var t=at++;return it.set(e,t),ot.set(t,e),t},lt=function(e,t){at=t+1,it.set(e,t),ot.set(t,e)},ct="style[".concat(le,"][").concat(ue,'="').concat(de,'"]'),ut=new RegExp("^".concat(le,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dt=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ft=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fe),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(ut);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(lt(u,c),dt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},pt=function(e){for(var t=document.querySelectorAll(ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(le)!==ce&&(ft(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ht(){return n.nc}var gt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(le,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(le,ce),r.setAttribute(ue,de);var a=ht();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},mt=function(){function e(e){this.element=gt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),yt=function(){function e(e){this.element=gt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),vt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bt=pe,It={isServer:!pe,useCSSOMInjection:!he},xt=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={});var i=this;this.options=r(r({},It),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&bt&&(bt=!1,pt(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return ot.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(le,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(fe)},o=0;o<n;o++)i(o);return r}(i)}))}return e.registerId=function(e){return st(e)},e.prototype.rehydrate=function(){!this.server&&pe&&pt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new vt(n):t?new mt(n):new yt(n)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(st(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(st(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(st(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}function At(e){var t,n,r,i=void 0===e?ye:e,o=i.options,a=void 0===o?ye:o,s=i.plugins,l=void 0===s?me:s,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wt,n).replace(r,c))})),a.prefix&&u.push(te),u.push(K);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Tt,""),c=ne(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(c=Mt(c,a.namespace));var d,f,p,h=[];return $(c,(d=u.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=N(d),function(e,t,n,r){for(var i="",o=0;o<f;o++)i+=d[o](e,t,n,r)||"";return i})),h};return d.hash=l.length?l.reduce((function(e,t){return t.name||nt(15),Se(e,t.name)}),Ne).toString():"",d}var Et=new xt,Ct=At(),Nt=a().createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Ct}),St=Nt.Consumer,kt=a().createContext(void 0);function jt(){return(0,o.useContext)(Nt)}function Dt(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=jt().styleSheet,s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),c=(0,o.useMemo)((function(){return At({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return a().createElement(Nt.Provider,{value:u},a().createElement(kt.Provider,{value:c},e.children))}var Ot=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ct);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ct),this.name+e.hash},e}(),Lt=function(e){return e>="A"&&e<="Z"};function Rt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Lt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Pt=function(e){return null==e||!1===e||""===e},zt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Qe(a)?r.push("".concat(Rt(o),":"),a,";"):Ke(a)?r.push.apply(r,i(i(["".concat(o," {")],zt(a),!1),["}"],!1)):r.push("".concat(Rt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ut(e,t,n,r){return Pt(e)?[]:Je(e)?[".".concat(e.styledComponentId)]:Qe(e)?!Qe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ut(e(t),t,n,r):e instanceof Ot?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?zt(e):Array.isArray(e)?Array.prototype.concat.apply(me,e.map((function(e){return Ut(e,t,n,r)}))):[e.toString()];var i}function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Qe(n)&&!Je(n))return!1}return!0}var Ft=ke(de),Bt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=Se(Ft,t),this.baseStyle=n,xt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Xe(r,this.staticRulesId);else{var i=$e(Ut(this.rules,e,t,n)),o=Ee(Se(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=Xe(r,o),this.staticRulesId=o}else{for(var s=Se(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=$e(Ut(u,e,t,n));s=Se(s,d+c),l+=d}}if(l){var f=Ee(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Xe(r,f)}}return r},e}(),Gt=a().createContext(void 0),Zt=Gt.Consumer;function Ht(){var e=(0,o.useContext)(Gt);if(!e)throw nt(18);return e}function qt(e){var t=a().useContext(Gt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Qe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?a().createElement(Gt.Provider,{value:n},e.children):null}var Vt={};function Yt(e,t,n){var i=Je(e),s=e,l=!Oe(e),c=t.attrs,u=void 0===c?me:c,d=t.componentId,f=void 0===d?function(e,t){var n="string"!=typeof e?"sc":we(e);Vt[n]=(Vt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Vt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Oe(e)?"styled.".concat(e):"Styled(".concat(De(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,m=i&&s.attrs?s.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var I=new Bt(n,g,i?s.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,f=a().useContext(Gt),p=jt(),h=e.shouldForwardProp||p.shouldForwardProp,g=ve(t,f,l)||ye,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Qe(i=e[a])?i(o):i;for(var l in s)o[l]="className"===l?Xe(o[l],s[l]):"style"===l?r(r({},o[l]),s[l]):s[l]}return t.className&&(o.className=Xe(o.className,t.className)),o}(i,t,g),y=m.as||d,v={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?v.as=m.forwardedAs:h&&!h(b,y)||(v[b]=m[b]));var I=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),x=Xe(c,u);return I&&(x+=" "+I),m.className&&(x+=" "+m.className),v[Oe(y)&&!be.has(y)?"class":"className"]=x,v.ref=n,(0,o.createElement)(y,v)}(w,e,t)}x.displayName=h;var w=a().forwardRef(x);return w.attrs=m,w.componentStyle=I,w.displayName=h,w.shouldForwardProp=y,w.foldedComponentIds=i?Xe(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=g,w.target=i?s.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)et(e,i[r],!0);return e}({},s.defaultProps,e):e}}),tt(w,(function(){return".".concat(w.styledComponentId)})),l&&We(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Wt(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Qt=function(e){return Object.assign(e,{isCss:!0})};function Jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Qe(e)||Ke(e))return Qt(Ut(Wt(me,i([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ut(r):Qt(Ut(Wt(r,t)))}function Xt(e,t,n){if(void 0===n&&(n=ye),!t)throw nt(1,t);var o=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Jt.apply(void 0,i([r],o,!1)))};return o.attrs=function(i){return Xt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Xt(e,t,r(r({},n),i))},o}var $t=function(e){return Xt(Yt,e)},Kt=$t;be.forEach((function(e){Kt[e]=$t(e)}));var en=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),xt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r($e(Ut(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Jt.apply(void 0,i([e],t,!1)),s="sc-global-".concat(je(JSON.stringify(o))),l=new en(o,s),c=function(e){var t=jt(),n=a().useContext(Gt),r=a().useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),a().useLayoutEffect((function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function u(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,ge,n,o);else{var a=r(r({},t),{theme:ve(t,i,c.defaultProps)});l.renderStyles(e,a,n,o)}}return a().memo(c)}function nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$e(Jt.apply(void 0,i([e],t,!1))),o=je(r);return new Ot(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ve(t,a().useContext(Gt),e.defaultProps);return a().createElement(e,r({},t,{theme:i,ref:n}))}));return t.displayName="WithTheme(".concat(De(e),")"),We(t,e)}var on=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ht(),r=$e([n&&'nonce="'.concat(n,'"'),"".concat(le,'="true"'),"".concat(ue,'="').concat(de,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=e.instance.toString();if(!n)return[];var i=((t={})[le]="",t[ue]=de,t.dangerouslySetInnerHTML={__html:n},t),o=ht();return o&&(i.nonce=o),[a().createElement("style",r({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new xt({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return a().createElement(Dt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),an={StyleSheet:xt,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>x,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>I});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},y=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||f(t)<0||!m(e,t))},v=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},I=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):c(e,t.includeContainer,y.bind(null,t)),b(n)},x=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,m.bind(null,t))},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&y(t,e)},T=r.concat("iframe").join(","),M=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,T)&&m(t,e)}},758:function(e,t){!function(e){"use strict";function t(e){return null==e}function n(e){throw new Error("Argument "+e+" is empty.")}function r(e){return"function"==typeof e&&"getType"in e}function i(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions"')}function o(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if(null==e.getType)throw new Error("Argument contains array with invalid element at index "+t+', it should be an action-creator instance from "typesafe-actions"')}function a(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!a(e)}function l(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function c(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if("string"!=typeof e&&"symbol"!=typeof e)throw new Error("Argument contains array with invalid element at index "+t+", it should be of type: string | symbol")}function u(e,r,o,a){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:o,error:a}}function d(e,r){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){var t=null!=r?r.apply(void 0,arguments):void 0;return Object.assign({type:e},t)}),{getType:function(){return e},toString:function(){return e}})}function f(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return d(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==r&&null==i||(e=null!=r?r.apply(void 0,arguments):void 0,t=null!=i?i.apply(void 0,arguments):void 0),Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function p(e){return t(e)&&n(1),r(e)||i(1),e.getType()}function h(e,r){t(e)&&n(1),s(e)&&l(1);var i=null!=r?r(e):function(){return{type:e}};return Object.assign(i,{getType:function(){return e},toString:function(){return e}})}var g={createAction:function(e,t){var n=null==t?function(){return u(e)}:t(u.bind(null,e));return Object.assign(n,{getType:function(){return e},toString:function(){return e}})},createCustomAction:h,createStandardAction:function(e){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){return h(e,(function(e){return function(t,n){return{type:e,payload:t,meta:n}}}))}),{map:function(t){return h(e,(function(e){return function(n,r){return Object.assign(t(n,r),{type:e})}}))}})}};e.action=u,e.createAction=f,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?f(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?f(e)():void(t<3&&function(e){throw new Error("Argument "+e+' is invalid, it should be an action type of "string | symbol" or a tuple of "[string | symbol, Function, Function?]"')}(t))}));return{request:i[0],success:i[1],failure:i[2],cancel:i[3]}}},e.createCustomAction=d,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),o=function(n,o){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):a(e)?e:function(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol')}(t+1)})).forEach((function(e){return l[e]=o})),e(t,Object.assign({},i,{},l))};return Object.assign((function(e,n){if(void 0===e&&(e=t),i.hasOwnProperty(n.type)){var r=i[n.type];if("function"!=typeof r)throw Error('Reducer under "'+n.type+'" key is not a valid reducer');return r(e,n)}return e}),{handlers:Object.assign({},i),handleAction:o,handleType:o})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(o);var a=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?a:a(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var o=function(e){return i.includes(e.type)};return void 0===r?o:o(r)}}(t)},5969:(e,t,n)=>{"use strict";var r=n(5442),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},5919:(e,t,n)=>{"use strict";e.exports=n(5969)},9002:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5442:t=>{"use strict";t.exports=e},6003:e=>{"use strict";e.exports=t},3215:()=>{},8892:()=>{},5324:()=>{},8645:()=>{},588:()=>{},1198:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function i(e,i){if(i){var o=typeof i;"string"===o?function(e,t){for(var n=t.split(r),i=n.length,o=0;o<i;++o)e[n[o]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,i):"number"===o&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new e;t(o,r);var a=[];for(var s in o)o[s]&&a.push(s);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var o={};n=n||[null,r({}),r([]),r(r)];for(var s=2&t&&e;"object"==typeof s&&!~n.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{Attachments:()=>Cd,Exam:()=>ky,GradingAnswer:()=>pb,GradingInstructions:()=>qy,Results:()=>Dv,parseExam:()=>ob});var e=a(5442),t=a.n(e);a(9002),Object.create(null);const n={},r=(...e)=>{c(e[0])&&n[e[0]]||(c(e[0])&&(n[e[0]]=new Date),((...e)=>{console?.warn&&(c(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))})(...e))},i=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},o=(e,t,n)=>{e.loadNamespaces(t,i(e,n))},l=(e,t,n,r)=>{c(n)&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,i(e,r))},c=e=>"string"==typeof e,u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},f=e=>d[e];let p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(u,f)};const h=(0,e.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]??=!0}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),y=(t,n={})=>{const{i18n:i}=n,{i18n:a,defaultNS:s}=(0,e.useContext)(h)||{},u=i||a||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return c(t)?t:"object"==typeof(n=t)&&null!==n&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}u.options.react?.wait&&r("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...p,...u.options.react,...n},{useSuspense:f,keyPrefix:y}=d;let v=t||s||u.options?.defaultNS;v=c(v)?[v]:v||["translation"],u.reportNamespaces.addUsedNamespaces?.(v);const b=(u.isInitialized||u.initializedStoreOnce)&&v.every((e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(r("i18n.languages were undefined or empty",t.languages),!0))(e,u,d))),I=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),[T,M]=(0,e.useState)(x);let A=v.join();n.lng&&(A=`${n.lng}${A}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(A),C=(0,e.useRef)(!0);(0,e.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=d;C.current=!0,b||f||(n.lng?l(u,n.lng,v,(()=>{C.current&&M(w)})):o(u,v,(()=>{C.current&&M(w)}))),b&&E&&E!==A&&C.current&&M(w);const r=()=>{C.current&&M(w)};return e&&u?.on(e,r),t&&u?.store.on(t,r),()=>{C.current=!1,u&&e?.split(" ").forEach((e=>u.off(e,r))),t&&u&&t.split(" ").forEach((e=>u.store.off(e,r)))}}),[u,A]),(0,e.useEffect)((()=>{C.current&&b&&M(x)}),[u,y,b]);const N=[T,u,b];if(N.t=T,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,v,(()=>e())):o(u,v,(()=>e()))}))};function v({i18n:t,defaultNS:n,children:r}){const i=(0,e.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,e.createElement)(h.Provider,{value:i},r)}const b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},I=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[x?a:++r];if(!1===t(i[s],s,i))break}return e};var x;const w=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},T="object"==typeof global&&global&&global.Object===Object&&global;var M="object"==typeof self&&self&&self.Object===Object&&self;const A=T||M||Function("return this")(),E=A.Symbol;var C=Object.prototype,N=C.hasOwnProperty,S=C.toString,k=E?E.toStringTag:void 0;var j=Object.prototype.toString;var D=E?E.toStringTag:void 0;const O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?function(e){var t=N.call(e,k),n=e[k];try{e[k]=void 0;var r=!0}catch(e){}var i=S.call(e);return r&&(t?e[k]=n:delete e[k]),i}(e):function(e){return j.call(e)}(e)},L=function(e){return null!=e&&"object"==typeof e},R=function(e){return L(e)&&"[object Arguments]"==O(e)};var P=Object.prototype,z=P.hasOwnProperty,U=P.propertyIsEnumerable;const _=R(function(){return arguments}())?R:function(e){return L(e)&&z.call(e,"callee")&&!U.call(e,"callee")},F=Array.isArray;var B="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=B&&"object"==typeof module&&module&&!module.nodeType&&module,Z=G&&G.exports===B?A.Buffer:void 0;const H=(Z?Z.isBuffer:void 0)||function(){return!1};var q=/^(?:0|[1-9]\d*)$/;const V=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&q.test(e))&&e>-1&&e%1==0&&e<t},Y=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var W={};W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Arguments]"]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object Boolean]"]=W["[object DataView]"]=W["[object Date]"]=W["[object Error]"]=W["[object Function]"]=W["[object Map]"]=W["[object Number]"]=W["[object Object]"]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object WeakMap]"]=!1;const Q=function(e){return function(t){return e(t)}};var J="object"==typeof exports&&exports&&!exports.nodeType&&exports,X=J&&"object"==typeof module&&module&&!module.nodeType&&module,$=X&&X.exports===J&&T.process;const K=function(){try{return X&&X.require&&X.require("util").types||$&&$.binding&&$.binding("util")}catch(e){}}();var ee=K&&K.isTypedArray;const te=ee?Q(ee):function(e){return L(e)&&Y(e.length)&&!!W[O(e)]};var ne=Object.prototype.hasOwnProperty;const re=function(e,t){var n=F(e),r=!n&&_(e),i=!n&&!r&&H(e),o=!n&&!r&&!i&&te(e),a=n||r||i||o,s=a?w(e.length,String):[],l=s.length;for(var c in e)!t&&!ne.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||V(c,l))||s.push(c);return s};var ie=Object.prototype;const oe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ie)},ae=function(e,t){return function(n){return e(t(n))}},se=ae(Object.keys,Object);var le=Object.prototype.hasOwnProperty;const ce=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ue=function(e){if(!ce(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=function(e){return null!=e&&Y(e.length)&&!ue(e)},fe=function(e){return de(e)?re(e):function(e){if(!oe(e))return se(e);var t=[];for(var n in Object(e))le.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},pe=function(e,t){return e&&I(e,t,fe)},he=function(e,t){return function(n,r){if(null==n)return n;if(!de(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(pe),ge=function(e){return e},me=function(e){return"function"==typeof e?e:ge},ye=function(e,t){return(F(e)?b:he)(e,me(t))},ve=(0,e.createContext)({}),be=" ";function Ie(e,t){const n=null!=t?xe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function xe(e){return"function"==typeof e?t=>t.namespaceURI===Ts&&e(t):Array.isArray(e)?t=>t.namespaceURI===Ts&&e.includes(t.localName):t=>t.namespaceURI===Ts&&t.localName===e}function we(e,t){const n=xe(t);return function e(t){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r];if(n(i))return i;const o=e(i);if(null!=o)return o}}(e)}function Te(e,t,n=!0){const r=xe(t),i=[];return function e(t){for(let o=0,a=t.children.length;o<a;o++){const a=t.children[o];r(a)?(i.push(a),n&&e(a)):e(a)}}(e),i}function Me(e,t){const n=xe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=xe(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function Ee(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function Ce(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ne(e,t){return"true"===Ee(e,t)}function Se(e,t){const n=[];for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r];n.push(t(i,r))}return n}function ke(e){return Te(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer"],!0)}function je(e){const t=Me(e,"question"),n=null==t?void 0:t.querySelectorAll("[question-id]");return n&&(null==n?void 0:n.length)>1}function De(e,t,...n){const r=document.createElement(e);return function(e,t){ye(t,((t,n)=>{"css"===n?e.style.cssText=t:n.startsWith("data-")?e.setAttribute(n,t):e[n]=t}))}(r,t),n.forEach((e=>r.appendChild("string"==typeof e?new Text(e):e))),r}function Oe(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ve),[i,o]=(0,e.useState)(!1),a=`${t}-${n}`;return(0,e.useEffect)((()=>{(null==r?void 0:r.includes(a))&&!i?o(!0):!(null==r?void 0:r.includes(a))&&i&&o(!1)}),[r]),i}function Le(e){var t,n,r;const i=!e.tagName&&Array.from((null===(t=e.parentNode)||void 0===t?void 0:t.childNodes)||[]).indexOf(e),o=Array.from((null===(n=e.parentElement)||void 0===n?void 0:n.children)||[]).indexOf(e);let a=`${e.nodeName}:${o>0?o:i}`,s=e;for(;s.parentElement;){s=s.parentElement;const e=s.getAttribute("display-number"),t=Number(e)?e:Array.from((null===(r=s.parentElement)||void 0===r?void 0:r.children)||[s]).indexOf(s);a=`${s.getAttribute("id")||s.nodeName}:${t} > ${a}`}return a}const Re=A["__core-js_shared__"];var Pe,ze=(Pe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+Pe:"";var Ue=Function.prototype.toString;const _e=function(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Fe=/^\[object .+?Constructor\]$/,Be=Function.prototype,Ge=Object.prototype,Ze=Be.toString,He=Ge.hasOwnProperty,qe=RegExp("^"+Ze.call(He).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ve=function(e){return!(!ce(e)||(t=e,ze&&ze in t))&&(ue(e)?qe:Fe).test(_e(e));var t},Ye=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0},We=function(){try{var e=Ye(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qe=function(e,t,n){"__proto__"==t&&We?We(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Je=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r},Xe=function(e,t,n,r){return he(e,(function(e,i,o){t(r,e,n(e),o)})),r},$e=function(e,t){return e===t||e!=e&&t!=t},Ke=function(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1};var et=Array.prototype.splice;function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},tt.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},tt.prototype.has=function(e){return Ke(this.__data__,e)>-1},tt.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const nt=tt,rt=Ye(A,"Map"),it=Ye(Object,"create");var ot=Object.prototype.hasOwnProperty;var at=Object.prototype.hasOwnProperty;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},st.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},st.prototype.get=function(e){var t=this.__data__;if(it){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0},st.prototype.has=function(e){var t=this.__data__;return it?void 0!==t[e]:at.call(t,e)},st.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=it&&void 0===t?"__lodash_hash_undefined__":t,this};const lt=st,ct=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function ut(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(rt||nt),string:new lt}},ut.prototype.delete=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return ct(this,e).get(e)},ut.prototype.has=function(e){return ct(this,e).has(e)},ut.prototype.set=function(e,t){var n=ct(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const dt=ut;function ft(e){var t=this.__data__=new nt(e);this.size=t.size}ft.prototype.clear=function(){this.__data__=new nt,this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ft.prototype.get=function(e){return this.__data__.get(e)},ft.prototype.has=function(e){return this.__data__.has(e)},ft.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!rt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};const pt=ft;function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ht.prototype.has=function(e){return this.__data__.has(e)};const gt=ht,mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},yt=function(e,t){return e.has(t)},vt=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new gt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!mt(t,(function(e,t){if(!yt(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f},bt=A.Uint8Array,It=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},xt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var wt=E?E.prototype:void 0,Tt=wt?wt.valueOf:void 0;const Mt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},At=function(e,t,n){var r=t(e);return F(e)?r:Mt(r,n(e))},Et=function(){return[]};var Ct=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,St=Nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Nt(e),(function(t){return Ct.call(e,t)})))}:Et;const kt=St,jt=function(e){return At(e,fe,kt)};var Dt=Object.prototype.hasOwnProperty;const Ot=Ye(A,"DataView"),Lt=Ye(A,"Promise"),Rt=Ye(A,"Set"),Pt=Ye(A,"WeakMap");var zt="[object Map]",Ut="[object Promise]",_t="[object Set]",Ft="[object WeakMap]",Bt="[object DataView]",Gt=_e(Ot),Zt=_e(rt),Ht=_e(Lt),qt=_e(Rt),Vt=_e(Pt),Yt=O;(Ot&&Yt(new Ot(new ArrayBuffer(1)))!=Bt||rt&&Yt(new rt)!=zt||Lt&&Yt(Lt.resolve())!=Ut||Rt&&Yt(new Rt)!=_t||Pt&&Yt(new Pt)!=Ft)&&(Yt=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case Gt:return Bt;case Zt:return zt;case Ht:return Ut;case qt:return _t;case Vt:return Ft}return t});const Wt=Yt;var Qt="[object Arguments]",Jt="[object Array]",Xt="[object Object]",$t=Object.prototype.hasOwnProperty;const Kt=function(e,t,n,r,i,o){var a=F(e),s=F(t),l=a?Jt:Wt(e),c=s?Jt:Wt(t),u=(l=l==Qt?Xt:l)==Xt,d=(c=c==Qt?Xt:c)==Xt,f=l==c;if(f&&H(e)){if(!H(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new pt),a||te(e)?vt(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new bt(e),new bt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=It;case"[object Set]":var l=1&r;if(s||(s=xt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=vt(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Tt)return Tt.call(e)==Tt.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&$t.call(e,"__wrapped__"),h=d&&$t.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new pt),i(g,m,n,r,o)}}return!!f&&(o||(o=new pt),function(e,t,n,r,i,o){var a=1&n,s=jt(e),l=s.length;if(l!=jt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Dt.call(t,u)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},en=function e(t,n,r,i,o){return t===n||(null==t||null==n||!L(t)&&!L(n)?t!=t&&n!=n:Kt(t,n,r,i,e,o))},tn=function(e){return e==e&&!ce(e)},nn=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},rn=function(e){var t=function(e){for(var t=fe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,tn(i)]}return t}(e);return 1==t.length&&t[0][2]?nn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new pt;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?en(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},on=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==O(e)};var an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sn=/^\w*$/;const ln=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!on(e))||sn.test(e)||!an.test(e)||null!=t&&e in Object(t)};function cn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(cn.Cache||dt),n}cn.Cache=dt;var un,dn,fn,pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hn=/\\(\\)?/g,gn=(un=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(pn,(function(e,n,r,i){t.push(r?i.replace(hn,"$1"):n||e)})),t},dn=cn(un,(function(e){return 500===fn.size&&fn.clear(),e})),fn=dn.cache,dn);const mn=gn,yn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var vn=E?E.prototype:void 0,bn=vn?vn.toString:void 0;const In=function e(t){if("string"==typeof t)return t;if(F(t))return yn(t,e)+"";if(on(t))return bn?bn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},xn=function(e){return null==e?"":In(e)},wn=function(e,t){return F(e)?e:ln(e,t)?[e]:mn(xn(e))},Tn=function(e){if("string"==typeof e||on(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Mn=function(e,t){for(var n=0,r=(t=wn(t,e)).length;null!=e&&n<r;)e=e[Tn(t[n++])];return n&&n==r?e:void 0},An=function(e,t,n){var r=null==e?void 0:Mn(e,t);return void 0===r?n:r},En=function(e,t){return null!=e&&t in Object(e)},Cn=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=wn(t,e)).length,o=!1;++r<i;){var a=Tn(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Y(i)&&V(a,i)&&(F(e)||_(e))}(e,t,En)},Nn=function(e){return ln(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Tn(e)):function(e){return function(t){return Mn(t,e)}}(e)},Sn=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?F(e)?(t=e[0],n=e[1],ln(t)&&tn(n)?nn(Tn(t),n):function(e){var r=An(e,t);return void 0===r&&r===n?Cn(e,t):en(n,r,3)}):rn(e):Nn(e);var t,n},kn=function(e,t){return function(n,r){var i=F(n)?Je:Xe,o=t?t():{};return i(n,e,Sn(r),o)}};var jn=Object.prototype.hasOwnProperty,Dn=kn((function(e,t,n){jn.call(e,n)?e[n].push(t):Qe(e,n,[t])}));const On=Dn,Ln=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Rn=function(e,t){return e&&e.length?function(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ln(e,r?0:o,r?o+1:i):Ln(e,r?o+1:0,r?i:o)}(e,Sn(t)):[]},Pn=function(e){return e&&e.length?function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}(e,ge):0},zn=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!on(a):n(a,s)))var s=a,l=o}return l},_n=function(e,t){return e<t},Fn=function(e,t){return e&&e.length?Un(e,Sn(t),_n):void 0},Bn=function(e,t){return e>t},Gn=function(e,t){return e&&e.length?Un(e,Sn(t),Bn):void 0};var Zn=E?E.isConcatSpreadable:void 0;const Hn=function(e){return F(e)||_(e)||!!(Zn&&e&&e[Zn])},qn=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=Hn),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Mt(o,l):i||(o[o.length]=l)}return o},Vn=function(e,t){var n=-1,r=de(e)?Array(e.length):[];return he(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},Yn=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=on(e),a=void 0!==t,s=null===t,l=t==t,c=on(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0},Wn=function(e,t,n){t=t.length?yn(t,(function(e){return F(e)?function(t){return Mn(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=yn(t,Q(Sn)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Vn(e,(function(e,n,i){return{criteria:yn(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Yn(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))};var Qn=Math.max;const Jn=function(e,t,n){return t=Qn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Qn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},Xn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var $n=Date.now;const Kn=function(e){var t=0,n=0;return function(){var r=$n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Xn),er=function(e,t,n){if(!ce(n))return!1;var r=typeof t;return!!("number"==r?de(n)&&V(t,n.length):"string"==r&&t in n)&&$e(n[t],e)},tr=function(e,t){return Kn(Jn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&er(e,t[0],t[1])?t=[]:n>2&&er(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,qn(t,1),[])}));var nr=kn((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));const rr=nr;var ir=/\s/;const or=function(e){for(var t=e.length;t--&&ir.test(e.charAt(t)););return t};var ar=/^\s+/;var sr=/^[-+]0x[0-9a-f]+$/i,lr=/^0b[01]+$/i,cr=/^0o[0-7]+$/i,ur=parseInt;const dr=function(e){if("number"==typeof e)return e;if(on(e))return NaN;if(ce(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ce(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,or(n)+1).replace(ar,""):n;var r=lr.test(e);return r||cr.test(e)?ur(e.slice(2),r?2:8):sr.test(e)?NaN:+e},fr=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=dr(n))==n?n:0),void 0!==t&&(t=(t=dr(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(dr(e),t,n)};function pr(e,t){if(function(e){var t;const n=e.cloneContents(),r=Array.from(n.childNodes).some((e=>e instanceof Element&&(e.classList.contains("e-annotation-wrapper")||"IMG"===e.tagName)));return 0===(null===(t=n.textContent)||void 0===t?void 0:t.length)&&!r}(t))return;const n=function(e,t=document){let n=null;const r=[],i=t.createTreeWalker(e,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null);for(;n=i.nextNode();)r.push(n);return r}(e),r=o(t.startContainer,t.startOffset,e),i=o(t.endContainer,t.endOffset,e)-r;if(!(i<=0))return{startIndex:r,length:i};function o(e,t,r){const i=e===r,o=i?e.childNodes[t]:e,a=i?0:t,s=Rn(n,(e=>e!==o));return a+Pn(s.map(gr))}}function hr(e,t,n){return function(e,t,n){const r=br(e,{startIndex:t,length:n,message:""});return zn(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function gr(e){var t;return e.nodeType===Node.TEXT_NODE?null===(t=e.textContent)||void 0===t?void 0:t.length:"IMG"===e.nodeName?1:0}function mr(e,t,n,r){const i=n.style;if(t){i.display="block";const o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s=e.left-o.left,l=e.bottom-o.top+r;i.top=`${String(l)}px`,i.left=`${String(s+a.width<o.width-30?s+20:o.width-a.width-20)}px`}}function yr(){const e=window.getSelection();return null!==e&&function(e){var t,n,r;if("None"===e.type||"Caret"===e.type||0===e.rangeCount)return!1;const i=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).endContainer;return e.rangeCount>0&&null!==(null===(t=i.parentElement)||void 0===t?void 0:t.closest(".e-grading-answer"))&&null!==(null===(n=o.parentElement)||void 0===n?void 0:n.closest(".e-grading-answer"))&&null===(null===(r=i.parentElement)||void 0===r?void 0:r.closest(".remove-annotation-popup"))}(e)&&("Range"===(null==(t=e)?void 0:t.type)||function(e){const t=e.getRangeAt(0);return!!e.rangeCount&&(t.toString().length>0||n(t.startContainer)||n(t.endContainer))}(e));var t;function n(e){return e.classList.contains("answer")}}function vr(e,t,n){const r=br(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=Fn(r.overlapping,(e=>e.startIndex)),n=Gn(r.overlapping,(e=>e.startIndex+e.length)),i={startIndex:e.startIndex,length:n.startIndex+n.length-e.startIndex,message:t.message};r.nonOverlapping.push(i)}else r.nonOverlapping.push(t);return tr(r.nonOverlapping,(t=>{return"line"===t.type||"rect"===t.type?function(e,t){var n;const r=document.createRange();return r.selectNode(e),null===(n=pr(t,r))||void 0===n?void 0:n.startIndex}((n=e,r=t.attachmentIndex,n.querySelectorAll("img").item(r)),e):t.startIndex;var n,r}),(e=>"rect"===e.type?e.y:"line"===e.type?e.y1:void 0),(e=>"rect"===e.type?e.x:"line"===e.type?e.x1:void 0))}function br(e,t){const n=rr(e,(e=>{const n=t.startIndex+t.length,r=e.startIndex+e.length;return t.startIndex>=e.startIndex&&t.startIndex<=r||n>=e.startIndex&&n<=r||t.startIndex<=e.startIndex&&n>=r}));return{overlapping:n[0],nonOverlapping:n[1]}}function Ir(e){return fr(e,0,1)}function xr(e){e.preventDefault(),e.stopPropagation()}function wr(e,t){e.style.display=t?"initial":"none"}function Tr(){return matchMedia("(pointer:fine)").matches}const Mr=e=>{var t;return null===(t=null==e?void 0:e.closest("div[data-annotation-anchor]"))||void 0===t?void 0:t.getAttribute("data-annotation-anchor")},Ar=e=>(null==e?void 0:e.getAttribute("data-annotation-path"))&&"MARK"!==e.tagName;var Er=a(8115),Cr=a.n(Er),Nr=a(3373),Sr=a.n(Nr);const kr=()=>{};let jr={},Dr={},Or=null,Lr={mark:kr,measure:kr};try{"undefined"!=typeof window&&(jr=window),"undefined"!=typeof document&&(Dr=document),"undefined"!=typeof MutationObserver&&(Or=MutationObserver),"undefined"!=typeof performance&&(Lr=performance)}catch(xg){}const{userAgent:Rr=""}=jr.navigator||{},Pr=jr,zr=Dr,Ur=Or,_r=Lr,Fr=(Pr.document,!!zr.documentElement&&!!zr.head&&"function"==typeof zr.addEventListener&&"function"==typeof zr.createElement),Br=~Rr.indexOf("MSIE")||~Rr.indexOf("Trident/");var Gr="classic",Zr="duotone",Hr="sharp",qr="sharp-duotone",Vr=[Gr,Zr,Hr,qr],Yr={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Wr=[1,2,3,4,5,6,7,8,9,10],Qr=Wr.concat([11,12,13,14,15,16,17,18,19,20]),Jr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Xr=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Jr.GROUP,Jr.SWAP_OPACITY,Jr.PRIMARY,Jr.SECONDARY].concat(Wr.map((e=>"".concat(e,"x")))).concat(Qr.map((e=>"w-".concat(e))));const $r="___FONT_AWESOME___",Kr=16,ei="fa",ti="svg-inline--fa",ni="data-fa-i2svg",ri="data-fa-pseudo-element",ii="data-fa-pseudo-element-pending",oi="data-prefix",ai="data-icon",si="fontawesome-i2svg",li="async",ci=["HTML","HEAD","STYLE","SCRIPT"],ui=(()=>{try{return!0}catch(e){return!1}})(),di=[Gr,Hr,qr];function fi(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Gr]})}const pi={...Yr};pi[Gr]={...Yr[Gr],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const hi=fi(pi),gi={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};gi[Gr]={...gi[Gr],kit:"fak","kit-duotone":"fakd"};const mi=fi(gi),yi={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};yi[Gr]={...yi[Gr],fak:"fa-kit"};const vi=fi(yi),bi={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};bi[Gr]={...bi[Gr],"fa-kit":"fak"};const Ii=fi(bi),xi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,wi="fa-layers-text",Ti=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Mi=(fi({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Ai=Jr,Ei=new Set;Object.keys(mi[Gr]).map(Ei.add.bind(Ei)),Object.keys(mi[Hr]).map(Ei.add.bind(Ei)),Object.keys(mi[qr]).map(Ei.add.bind(Ei));const Ci=["kit",...Xr],Ni=Pr.FontAwesomeConfig||{};zr&&"function"==typeof zr.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=zr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Ni[n]=r)}));const Si={styleDefault:"solid",familyDefault:"classic",cssPrefix:ei,replacementClass:ti,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ni.familyPrefix&&(Ni.cssPrefix=Ni.familyPrefix);const ki={...Si,...Ni};ki.autoReplaceSvg||(ki.observeMutations=!1);const ji={};Object.keys(Si).forEach((e=>{Object.defineProperty(ji,e,{enumerable:!0,set:function(t){ki[e]=t,Di.forEach((e=>e(ji)))},get:function(){return ki[e]}})})),Object.defineProperty(ji,"familyPrefix",{enumerable:!0,set:function(e){ki.cssPrefix=e,Di.forEach((e=>e(ji)))},get:function(){return ki.cssPrefix}}),Pr.FontAwesomeConfig=ji;const Di=[],Oi=Kr,Li={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Ri="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Pi(){let e=12,t="";for(;e-- >0;)t+=Ri[62*Math.random()|0];return t}function zi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ui(e){return e.classList?zi(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function _i(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Fi(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Bi(e){return e.size!==Li.size||e.x!==Li.x||e.y!==Li.y||e.rotate!==Li.rotate||e.flipX||e.flipY}var Gi=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Zi(){const e=ei,t=ti,n=ji.cssPrefix,r=ji.replacementClass;let i=Gi;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Hi=!1;function qi(){ji.autoAddCss&&!Hi&&(function(e){if(!e||!Fr)return;const t=zr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=zr.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],i=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=t)}zr.head.insertBefore(t,r)}(Zi()),Hi=!0)}var Vi={mixout:()=>({dom:{css:Zi,insertCss:qi}}),hooks:()=>({beforeDOMElementCreation(){qi()},beforeI2svg(){qi()}})};const Yi=Pr||{};Yi[$r]||(Yi[$r]={}),Yi[$r].styles||(Yi[$r].styles={}),Yi[$r].hooks||(Yi[$r].hooks={}),Yi[$r].shims||(Yi[$r].shims=[]);var Wi=Yi[$r];const Qi=[],Ji=function(){zr.removeEventListener("DOMContentLoaded",Ji),Xi=1,Qi.map((e=>e()))};let Xi=!1;function $i(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?_i(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(_i(e[n]),'" ')),"").trim()}(n),">").concat(r.map($i).join(""),"</").concat(t,">")}function Ki(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Fr&&(Xi=(zr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(zr.readyState),Xi||zr.addEventListener("DOMContentLoaded",Ji));var eo=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function to(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function no(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function ro(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=no(t);"function"!=typeof Wi.hooks.addPack||r?Wi.styles[e]={...Wi.styles[e]||{},...i}:Wi.hooks.addPack(e,no(t)),"fas"===e&&ro("fa",t)}const{styles:io,shims:oo}=Wi,ao={[Gr]:Object.values(vi[Gr]),[Hr]:Object.values(vi[Hr]),[qr]:Object.values(vi[qr])};let so=null,lo={},co={},uo={},fo={},po={};const ho={[Gr]:Object.keys(hi[Gr]),[Hr]:Object.keys(hi[Hr]),[qr]:Object.keys(hi[qr])};const go=()=>{const e=e=>eo(io,((t,n,r)=>(t[r]=eo(n,e,{}),t)),{});lo=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),co=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),po=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in io||ji.autoFetchSvg,n=eo(oo,((e,n)=>{const r=n[0];let i=n[1];const o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});uo=n.names,fo=n.unicodes,so=wo(ji.styleDefault,{family:ji.familyDefault})};var mo;function yo(e,t){return(lo[e]||{})[t]}function vo(e,t){return(po[e]||{})[t]}function bo(e){return uo[e]||{prefix:null,iconName:null}}function Io(){return so}mo=e=>{so=wo(e.styleDefault,{family:ji.familyDefault})},Di.push(mo),go();const xo=()=>({prefix:null,iconName:null,rest:[]});function wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Gr}=t,r=hi[n][e],i=mi[n][e]||mi[n][r],o=e in Wi.styles?e:null;return i||o||null}const To={[Gr]:Object.keys(vi[Gr]),[Hr]:Object.keys(vi[Hr]),[qr]:Object.keys(vi[qr])};function Mo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Gr]:"".concat(ji.cssPrefix,"-").concat(Gr),[Hr]:"".concat(ji.cssPrefix,"-").concat(Hr),[qr]:"".concat(ji.cssPrefix,"-").concat(qr)};let i=null,o=Gr;const a=Vr.filter((e=>e!==Zr));a.forEach((t=>{(e.includes(r[t])||e.some((e=>To[t].includes(e))))&&(o=t)}));const s=e.reduce(((e,t)=>{const s=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~Ci.indexOf(o))?null:i;var o}(ji.cssPrefix,t);if(io[t]?(t=ao[o].includes(t)?Ii[o][t]:t,i=t,e.prefix=t):ho[o].indexOf(t)>-1?(i=t,e.prefix=wo(t,{family:o})):s?e.iconName=s:t===ji.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===i?bo(e.iconName):{},n=vo(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||io.far||!io.fas||ji.autoFetchSvg||(e.prefix="fas")}return e}),xo());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Hr||!io.fass&&!ji.autoFetchSvg||(s.prefix="fass",s.iconName=vo(s.prefix,s.iconName)||s.iconName),s.prefix||o!==qr||!io.fasds&&!ji.autoFetchSvg||(s.prefix="fasds",s.iconName=vo(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=Io()||"fas"),s}let Ao=[],Eo={};const Co={},No=Object.keys(Co);function So(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Eo[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Eo[e]||[]).forEach((e=>{e.apply(null,n)}))}function jo(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Co[e]?Co[e].apply(null,t):void 0}function Do(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Io();if(t)return t=vo(n,t)||t,Ki(Oo.definitions,n,t)||Ki(Wi.styles,n,t)}const Oo=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...r[e]},ro(e,r[e]);const t=vi[Gr][e];t&&ro(t,r[e]),go()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=o)})),e[r][i]=o})),e}},Lo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Fr?(ko("beforeI2svg",e),jo("pseudoElements2svg",e),jo("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===ji.autoReplaceSvg&&(ji.autoReplaceSvg=!0),ji.observeMutations=!0,n=()=>{zo({autoReplaceSvgRoot:t}),ko("watch",e)},Fr&&(Xi?setTimeout(n,0):Qi.push(n))}},Ro={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:vo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=wo(e[0]);return{prefix:n,iconName:vo(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ji.cssPrefix,"-"))>-1||e.match(xi))){const t=Mo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Io(),iconName:vo(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Io();return{prefix:t,iconName:vo(t,e)||e}}}},Po={noAuto:()=>{ji.autoReplaceSvg=!1,ji.observeMutations=!1,ko("noAuto")},config:ji,dom:Lo,parse:Ro,library:Oo,findIconDefinition:Do,toHtml:$i},zo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=zr}=e;(Object.keys(Wi.styles).length>0||ji.autoFetchSvg)&&Fr&&ji.autoReplaceSvg&&Po.dom.i2svg({node:t})};function Uo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>$i(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Fr)return;const t=zr.createElement("div");return t.innerHTML=e.html,t.children}}),e}function _o(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,g=[ji.replacementClass,i?"".concat(ji.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:{...u.attributes,"data-prefix":r,"data-icon":i,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)}};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[ni]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Pi())},children:[s]}),delete m.attributes.title);const v={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...y,...u.styles}},{children:b,attributes:I}=n.found&&t.found?jo("generateAbstractMask",v)||{children:[],attributes:{}}:jo("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=I,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(ji.cssPrefix,"-").concat(n):o},children:r}]}]}(v):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Bi(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=Fi({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(v)}function Fo(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[ni]="");const c={...a.styles};Bi(i)&&(c.transform=function(e){let{transform:t,width:n=Kr,height:r=Kr,startCentered:i=!1}=e,o="";return o+=i&&Br?"translate(".concat(t.x/Oi-n/2,"em, ").concat(t.y/Oi-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Oi,"em), calc(-50% + ").concat(t.y/Oi,"em)) "):"translate(".concat(t.x/Oi,"em, ").concat(t.y/Oi,"em) "),o+="scale(".concat(t.size/Oi*(t.flipX?-1:1),", ").concat(t.size/Oi*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=Fi(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}const{styles:Bo}=Wi;function Go(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ji.cssPrefix,"-").concat(Ai.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const Zo={found:!1,width:512,height:512};function Ho(e,t){let n=t;return"fa"===t&&null!==ji.styleDefault&&(t=Io()),new Promise(((r,i)=>{if("fa"===n){const n=bo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Bo[t]&&Bo[t][e])return r(Go(Bo[t][e]));!function(e,t){ui||ji.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({...Zo,icon:ji.showMissingIcons&&e&&jo("missingIconAbstract")||{}})}))}const qo=()=>{},Vo=ji.measurePerformance&&_r&&_r.mark&&_r.measure?_r:{mark:qo,measure:qo},Yo='FA "6.6.0"',Wo=e=>{Vo.mark("".concat(Yo," ").concat(e," ends")),Vo.measure("".concat(Yo," ").concat(e),"".concat(Yo," ").concat(e," begins"),"".concat(Yo," ").concat(e," ends"))};var Qo={begin:e=>(Vo.mark("".concat(Yo," ").concat(e," begins")),()=>Wo(e)),end:Wo};const Jo=()=>{};function Xo(e){return"string"==typeof(e.getAttribute?e.getAttribute(ni):null)}function $o(e){return zr.createElementNS("http://www.w3.org/2000/svg",e)}function Ko(e){return zr.createElement(e)}function ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?$o:Ko)}=t;if("string"==typeof e)return zr.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(ea(e,{ceFn:n}))})),r}const ta={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ea(e),t)})),null===t.getAttribute(ni)&&ji.keepOriginalSource){let e=zr.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ui(t).indexOf(ji.replacementClass))return ta.replace(e);const r=new RegExp("".concat(ji.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===ji.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>$i(e))).join("\n");t.setAttribute(ni,""),t.innerHTML=i}};function na(e){e()}function ra(e,t){const n="function"==typeof t?t:Jo;if(0===e.length)n();else{let t=na;ji.mutateApproach===li&&(t=Pr.requestAnimationFrame||na),t((()=>{const t=!0===ji.autoReplaceSvg?ta.replace:ta[ji.autoReplaceSvg]||ta.replace,r=Qo.begin("mutate");e.map(t),r(),n()}))}}let ia=!1;function oa(){ia=!0}function aa(){ia=!1}let sa=null;function la(e){if(!Ur)return;if(!ji.observeMutations)return;const{treeCallback:t=Jo,nodeCallback:n=Jo,pseudoElementsCallback:r=Jo,observeMutationsRoot:i=zr}=e;sa=new Ur((e=>{if(ia)return;const i=Io();zi(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Xo(e.addedNodes[0])&&(ji.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&ji.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&Xo(e.target)&&~Mi.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(oi):null,n=e.getAttribute?e.getAttribute(ai):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Mo(Ui(e.target));e.target.setAttribute(oi,t||i),n&&e.target.setAttribute(ai,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(ji.replacementClass)&&n(e.target);var o}))})),Fr&&sa.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=Mo(Ui(e));return i.prefix||(i.prefix=Io()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(o=i.prefix,a=e.innerText,(co[o]||{})[a]||yo(i.prefix,to(e.innerText)))),!i.iconName&&ji.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=zi(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ji.autoA11y&&(n?t["aria-labelledby"]="".concat(ji.replacementClass,"-title-").concat(r||Pi()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=So("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Li,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:ua}=Wi;function da(e){const t="nest"===ji.autoReplaceSvg?ca(e,{styleParser:!1}):ca(e);return~t.extra.classes.indexOf(wi)?jo("generateLayersText",e,t):jo("generateSvgReplacementMutation",e,t)}let fa=new Set;function pa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fr)return Promise.resolve();const n=zr.documentElement.classList,r=e=>n.add("".concat(si,"-").concat(e)),i=e=>n.remove("".concat(si,"-").concat(e)),o=ji.autoFetchSvg?fa:di.map((e=>"fa-".concat(e))).concat(Object.keys(ua));o.includes("fa")||o.push("fa");const a=[".".concat(wi,":not([").concat(ni,"])")].concat(o.map((e=>".".concat(e,":not([").concat(ni,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=zi(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=Qo.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=da(t);n&&e.push(n)}catch(e){ui||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{ra(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;da(e).then((e=>{e&&ra([e],t)}))}di.map((e=>{fa.add("fa-".concat(e))})),Object.keys(hi[Gr]).map(fa.add.bind(fa)),Object.keys(hi[Hr]).map(fa.add.bind(fa)),Object.keys(hi[qr]).map(fa.add.bind(fa)),fa=[...fa];const ga=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Li,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return Uo({type:"icon",...e},(()=>(ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),ji.autoA11y&&(a?c["aria-labelledby"]="".concat(ji.replacementClass,"-title-").concat(s||Pi()):(c["aria-hidden"]="true",c.focusable="false")),_o({icons:{main:Go(p),mask:i?Go(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...Li,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var ma={mixout(){return{icon:(e=ga,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Do(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Do(i||{})),e(r,{...n,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=pa,e.nodeCallback=ha,e)}),provides(e){e.i2svg=function(e){const{node:t=zr,callback:n=(()=>{})}=e;return pa(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([Ho(n,o),l.iconName?Ho(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,_o({icons:{main:d,mask:f},prefix:o,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:o}=e;const a=Fi(o);let s;return a.length>0&&(n.style=a),Bi(i)&&(s=jo("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},ya={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Uo({type:"layer"},(()=>{ko("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ji.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},va={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return Uo({type:"counter",content:e},(()=>(ko("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Fi(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ji.cssPrefix,"-layers-counter"),...r]}}))))}})},ba={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Li,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Uo({type:"text",content:e},(()=>(ko("beforeDOMElementCreation",{content:e,params:t}),Fo({content:e,transform:{...Li,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(ji.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let o=null,a=null;if(Br){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return ji.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Fo({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const Ia=new RegExp('"',"ug"),xa=[1105920,1112319],wa={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Ta=Object.keys(wa).reduce(((e,t)=>(e[t.toLowerCase()]=wa[t],e)),{}),Ma=Object.keys(Ta).reduce(((e,t)=>{const n=Ta[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Aa(e,t){const n="".concat(ii).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=zi(e.children).filter((e=>e.getAttribute(ri)===t))[0],a=Pr.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Ti),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Ta[n]||{})[i]||Ma[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Ia,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(0);return i>=55296&&i<=56319&&n>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t),r=n>=xa[0]&&n<=xa[1],i=2===t.length&&t[0]===t[1];return{value:to(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=yo(d,f),m=g;if(h){const e=function(e){const t=fo[e],n=yo("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||p||o&&o.getAttribute(oi)===d&&o.getAttribute(ai)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Li,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ri]=t,Ho(g,d).then((i=>{const o=_o({...a,icons:{main:i,mask:xo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=zr.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>$i(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ea(e){return Promise.all([Aa(e,"::before"),Aa(e,"::after")])}function Ca(e){return!(e.parentNode===document.head||~ci.indexOf(e.tagName.toUpperCase())||e.getAttribute(ri)||e.parentNode&&"svg"===e.parentNode.tagName)}function Na(e){if(Fr)return new Promise(((t,n)=>{const r=zi(e.querySelectorAll("*")).filter(Ca).map(Ea),i=Qo.begin("searchPseudoElements");oa(),Promise.all(r).then((()=>{i(),aa(),t()})).catch((()=>{i(),aa(),n()}))}))}var Sa={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Na,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=zr}=e;ji.searchPseudoElements&&Na(t)}}};let ka=!1;const ja=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var Da={mixout:()=>({parse:{transform:e=>ja(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=ja(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const Oa={x:0,y:0,width:"100%",height:"100%"};function La(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Ra={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Mo(n.split(" ").map((e=>e.trim()))):xo();return r.prefix||(r.prefix=Io()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:o,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...Oa,fill:"white"}},p=l.children?{children:l.children.map(La)}:{},h={tag:"g",attributes:{...d.inner},children:[La({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},g={tag:"g",attributes:{...d.outer},children:[h]},m="mask-".concat(o||Pi()),y="clip-".concat(o||Pi()),v={tag:"mask",attributes:{...Oa,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(I=u,"g"===I.tag?I.children:[I])},v]};var I;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")"),...Oa}}),{children:t,attributes:n}}}},Pa={provides(e){let t=!1;Pr.matchMedia&&(t=Pr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;Ao=e,Eo={},Object.keys(Co).forEach((e=>{-1===No.indexOf(e)&&delete Co[e]})),Ao.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Eo[e]||(Eo[e]=[]),Eo[e].push(t[e])}))}e.provides&&e.provides(Co)}))}([Vi,ma,ya,va,ba,Sa,{mixout:()=>({dom:{unwatch(){oa(),ka=!0}}}),hooks:()=>({bootstrap(){la(So("mutationObserverCallbacks",{}))},noAuto(){sa&&sa.disconnect()},watch(e){const{observeMutationsRoot:t}=e;ka?aa():la(So("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},Da,Ra,Pa,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Po});const za=Po.parse,Ua=Po.icon;var _a=a(9067),Fa=a.n(_a);function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Za(e){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(e)}function Ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qa(e){return function(e){if(Array.isArray(e))return Va(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Va(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ya(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Wa=["style"],Qa=!1;try{Qa=!0}catch(xg){}function Ja(e){return e&&"object"===Za(e)&&e.prefix&&e.iconName&&e.icon?e:za.icon?za.icon(e):null===e?null:e&&"object"===Za(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Xa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ha({},e,t):{}}var $a={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ka=t().forwardRef((function(e,t){var n=Ga(Ga({},$a),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Ja(r),d=Xa("classes",[].concat(qa(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,y=e.size,v=e.rotation,b=e.pull,I=(Ha(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(y),null!=y),Ha(t,"fa-rotate-".concat(v),null!=v&&0!==v),Ha(t,"fa-pull-".concat(b),null!=b),Ha(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map((function(e){return I[e]?e:null})).filter((function(e){return e}))}(n)),qa((a||"").split(" ")))),f=Xa("transform","string"==typeof n.transform?za.transform(n.transform):n.transform),p=Xa("mask",Ja(i)),h=Ua(u,Ga(Ga(Ga(Ga({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Qa&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){$a.hasOwnProperty(e)||(m[e]=n[e])})),es(g[0],m)}));Ka.displayName="FontAwesomeIcon",Ka.propTypes={beat:Fa().bool,border:Fa().bool,beatFade:Fa().bool,bounce:Fa().bool,className:Fa().string,fade:Fa().bool,flash:Fa().bool,mask:Fa().oneOfType([Fa().object,Fa().array,Fa().string]),maskId:Fa().string,fixedWidth:Fa().bool,inverse:Fa().bool,flip:Fa().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Fa().oneOfType([Fa().object,Fa().array,Fa().string]),listItem:Fa().bool,pull:Fa().oneOf(["right","left"]),pulse:Fa().bool,rotation:Fa().oneOf([0,90,180,270]),shake:Fa().bool,size:Fa().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Fa().bool,spinPulse:Fa().bool,spinReverse:Fa().bool,symbol:Fa().oneOfType([Fa().bool,Fa().string]),title:Fa().string,titleId:Fa().string,transform:Fa().oneOfType([Fa().string,Fa().object]),swapOpacity:Fa().bool};var es=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Ya(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ya(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Wa);return o.attrs.style=Ga(Ga({},o.attrs.style),s),t.apply(void 0,[n.tag,Ga(Ga({},o.attrs),l)].concat(qa(i)))}.bind(null,t().createElement);const ts={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},ns={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},rs={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},is={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},os={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},as={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},ss={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"]},ls={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},cs={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},us={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},ds={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},fs={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};function ps(n){const r=t().createRef(),[i,o]=(0,e.useState)(n.initialTextContent||""),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(null);return(0,e.useEffect)((()=>{n.element&&function(e,t){const n=t.current;if(e&&n){const t=n.style,r=null==e?void 0:e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height+r.top+window.scrollY,a=window.innerWidth;t.top=`${String(o)}px`,t.opacity="1";const s=r.left+i.width>a;t.left=s?r.right-i.width+"px":`${r.left}px`}}(n.element,r),o(n.initialTextContent||""),s(n.initialTextContent.length>0)}),[n.element]),n.element?t().createElement("div",{className:"e-popup",style:{position:"absolute",opacity:0},ref:r,"data-testid":"e-popup"},t().createElement(Cr(),{language:"FI",baseUrl:"",initialValue:n.initialTextContent,getPasteSource:()=>Promise.resolve(""),onValueChange:e=>{if(n.onValueChange){const t=n.onValueChange(e.answerHtml);d(t)}o(e.answerHtml),s(e.answerHtml.trim().length>0)},textAreaProps:{className:"comment-content"}})," ",u&&t().createElement("span",{className:"e-popup-error"},u),t().createElement("span",{className:"e-popup-button-area"},t().createElement("span",null,t().createElement("button",{className:"button",onClick:e=>{e.stopPropagation(),n.onValueSave(i)},"data-testid":"e-popup-save",disabled:!a||!!u},"Tallenna"),t().createElement("button",{className:"button text-button","data-testid":"e-popup-cancel",onClick:()=>{n.onCancel()}},"Peru")),n.enableDelete&&t().createElement("button",{className:Sr()("button","e-popup-delete","round",{confirm:l}),"data-testid":"e-popup-delete",onClick:()=>{l?n.onDelete&&n.onDelete():c(!0)}},t().createElement(Ka,{size:"lg",icon:ts,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function hs(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(gs);return t().createElement(ps,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const gs=t().createContext({}),ms=({children:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o})=>{const[a,s]=t().useState(null),[l,c]=t().useState(null),u=e=>{s(e)};if(!i&&!o)return n;const d=(0,e.useMemo)((()=>On((null==r?void 0:r.flatMap((e=>e.annotationParts.map(((t,n,r)=>{const i=n===r.length-1;return{...t,annotationId:e.annotationId,markNumber:i?e.markNumber:void 0,hidden:e.hidden}})))))||[],"annotationAnchor")),[JSON.stringify(r)]);return t().createElement(gs.Provider,{value:{annotations:d,onClickAnnotation:i,onSaveAnnotation:o,newAnnotation:a,setNewAnnotation:s,newAnnotationRef:l,setNewAnnotationRef:c}},t().createElement("span",{onMouseDown:function(e){!!e.target.closest(".e-popup")||(s(null),c(null)),function(e,t){0===e.button&&window.addEventListener("mouseup",(function e(){var n,r;window.removeEventListener("mouseup",e);const i=window.getSelection(),o=null===(n=null==i?void 0:i.anchorNode)||void 0===n?void 0:n.parentElement,a=null===(r=null==i?void 0:i.focusNode)||void 0===r?void 0:r.parentElement;if(i&&o&&a&&i.toString().length>0){const e=(e=>{const t=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),n=null==t?void 0:t.some((e=>"MARK"===e.tagName&&"false"===e.getAttribute("data-hidden"))),r=t.some((e=>e.querySelector('mark[data-hidden="false"]')));return n||r})(i),n=Mr(o);if(n===Mr(a)&&Ar(o)&&Ar(a)&&!e){const e=(e=>{var t,n;const r=e.getRangeAt(0),i=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),o=r.startContainer.parentElement;if(null==i?void 0:i.length){const e=null==i?void 0:i.reduce(((e,t,n,i)=>{var a;const s=t.getAttribute("data-annotation-path"),l=n===i.length-1;if(s){const i={annotationAnchor:s,selectedText:t.textContent||"",startIndex:0===n?r.startOffset:0,length:l?r.endOffset:(null===(a=t.textContent)||void 0===a?void 0:a.length)||0};return[...e,i]}{const i=t.querySelectorAll("[data-annotation-path]");return null==i||i.forEach(((t,a)=>{var s;const c=t.getAttribute("data-annotation-path");if(c){const u=0===n&&0===a,d=a===i.length-1,f=l&&d,p=pr(o,r),h={annotationAnchor:c,selectedText:t.textContent||"",startIndex:u&&(null==p?void 0:p.startIndex)||0,length:f?r.endOffset:(null===(s=t.textContent)||void 0===s?void 0:s.length)||0};e.push(h)}})),e}}),[]);return e}{const i=null===(n=null===(t=null==e?void 0:e.focusNode)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.getAttribute("data-annotation-path"),a=pr(o,r);return[{annotationAnchor:i,selectedText:(null==e?void 0:e.toString())||"",startIndex:(null==a?void 0:a.startIndex)||0,length:(null==a?void 0:a.length)||0}]}})(i);t({annotationParts:e,displayNumber:n,selectedText:e.map((e=>e.selectedText)).join(" ")})}}}))}(e,u)}},t().createElement(hs,null),n))},ys=(0,e.createContext)({}),vs=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!Is(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":Is(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>Is(n)?i(e,n):void 0},r,(null==n?void 0:n.markNumber)&&t().createElement("sup",{className:"e-annotation","data-content":null==n?void 0:n.markNumber}))};function bs(e){return Is(e)?e.annotationId+e.startIndex:e.startIndex}function Is(e){return"annotationId"in e}function xs(e,t,n){return e.substring(t,t+n)}const ws=({node:n})=>{var r,i;const o=(0,e.useContext)(gs),{isInSidebar:a}=(0,e.useContext)(ys),{annotations:s,onClickAnnotation:l,setNewAnnotationRef:c,newAnnotation:u}=o;if(void 0===(null==o?void 0:o.annotations)||0===(null===(r=n.textContent)||void 0===r?void 0:r.trim().length)||void 0!==a)return n.textContent;const d=Le(n),f=(null===(i=null==u?void 0:u.annotationParts)||void 0===i?void 0:i.filter((e=>e.annotationAnchor===d)))||[],p=[...(null==s?void 0:s[d])||[],...f];return t().createElement("span",{className:"e-annotatable",key:d,"data-annotation-path":d,"data-testid":d},p.length>0&&l?function(e,n,r,i){var o;if(0===n.length)return[e];n.sort(((e,t)=>e.startIndex-t.startIndex));const[a,s]=rr(n,(e=>e.hidden)),l=[];a.forEach((e=>{const n=bs(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":Is(e)?e.annotationId:"","data-hidden":"true"}))}));let c=0;const u=e.replace(/^\s+/," "),d=e.length-u.length,f=s.reduce(((e,t)=>{const n=e.some((e=>t.startIndex<e.startIndex+e.length&&e.startIndex<t.startIndex+t.length&&!e.hidden));return e.push({...t,hidden:t.hidden||n}),e}),[]);for(const n of f){const a=xs(e.replace(/\n/g," ").replace(/\s+/g," "),n.startIndex,n.length)===n.selectedText,s=((null===(o=e.split(n.selectedText)[0].match(/\n/g))||void 0===o?void 0:o.length)||0)*d,u=n.startIndex+(a?s:0),f=xs(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=bs(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":Is(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(vs,{key:p,annotation:n,markedText:f,onClickAnnotation:r,setNewAnnotationRef:i})),c=u+n.length}return l.push(e.substring(c)),l}(n.textContent,p,l,c):n.textContent)},Ts="http://ylioppilastutkinto.fi/exam.xsd";function Ms(e){function n(r,i=0){return function(e,t){const n=e.childNodes.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=t(e.childNodes[i],i);return r}(r,((r,o)=>function(r,i,o){switch(r.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===o?function(e){return t().createElement(ws,{node:e,key:Le(e)})}(r):null;case Node.ELEMENT_NODE:return function(r,i,o){switch(r.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,r,i){const o=e.hasChildNodes()?n(e,i):null;if(0===i){const n=e.localName,i=function(e,t){const n={key:As(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,r);return t().createElement(n,{...i},o)}return o}(r,i,o);case Ts:return function(r,i){const o=e[r.localName],a=r.getAttribute("class")||void 0;return o?t().createElement(o,{element:r,className:a,renderChildNodes:n,key:As(r,i)}):null}(r,i);default:throw new Error(`Unrecognized element: ${r.localName}`)}}(r,i,o);default:return null}}(r,o,i)))}return n}function As(e,t){return`${e.localName}-${t}`}const Es={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Cs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Es,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Cs(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Cs(this.logger,e)}}var Ns=new Cs;class Ss{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])}))}}const ks=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},js=e=>null==e?"":""+e,Ds=/###/g,Os=e=>e&&e.indexOf("###")>-1?e.replace(Ds,"."):e,Ls=e=>!e||"string"==typeof e,Rs=(e,t,n)=>{const r="string"!=typeof t?t:t.split(".");let i=0;for(;i<r.length-1;){if(Ls(e))return{};const t=Os(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ls(e)?{}:{obj:e,k:Os(r[i])}},Ps=(e,t,n)=>{const{obj:r,k:i}=Rs(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=Rs(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Rs(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},zs=(e,t)=>{const{obj:n,k:r}=Rs(e,t);if(n)return n[r]},Us=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Us(e[r],t[r],n):e[r]=t[r]);return e},_s=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Fs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Bs=e=>"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Fs[e])):e,Gs=[" ",",","?","!",";"],Zs=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const 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}}(20),Hs=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},qs=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Vs extends Ss{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=zs(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!=typeof n?s:Hs(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Ps(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)("string"==typeof 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){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=zs(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Us(s,n,i):s={...s,...n},Ps(this.data,a,s),o.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 void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var Ys={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const Ws={};class Qs extends Ss{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Ns.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Gs.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Zs.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||o,p=u&&u.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&"string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}else if(m&&"string"==typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=Qs.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,o,v?m:d),i){const e=this.resolve(o,{...t,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=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&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}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Ys.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(o=e,!Ws[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Ws[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" 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((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),u&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Js=e=>e.charAt(0).toUpperCase()+e.slice(1);class Xs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ns.create("languageUtils")}getScriptPartFromCode(e){if(!(e=qs(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=qs(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Js(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Js(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Js(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||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;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(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"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let $s=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ks={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const el=["v1","v2","v3"],tl=["v4"],nl={zero:0,one:1,two:2,few:3,many:4,other:5};class rl{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Ns.create("pluralResolver"),this.options.compatibilityJSON&&!tl.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return $s.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Ks[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=qs("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const o=new Intl.PluralRules(n,{type:r});return this.pluralRulesCache[i]=o,o}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>nl[e]-nl[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!el.includes(this.options.compatibilityJSON)}}const il=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=zs(e,n);return void 0!==r?r:zs(t,n)})(e,t,n);return!o&&i&&"string"==typeof n&&(o=Hs(e,n,r),void 0===o&&(o=Hs(t,n,r))),o},ol=e=>e.replace(/\$/g,"$$$$");class al{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Ns.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:Bs,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?_s(i):o||"{{",this.suffix=a?_s(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?_s(d):f||_s("$t("),this.nestingSuffix=p?_s(p):h||_s(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&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,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=il(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(il(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ol(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ol(this.escape(e)):ol(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(u){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=js(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!=typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=js(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const sl=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(qs(r),i),t[a]=s),s(n)}};class ll{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Ns.create("formatter"),this.options=e,this.formats={number:sl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:sl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:sl(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:sl(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:sl(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=sl(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e);return o}}class cl extends Ss{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Ns.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&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:i,k:o}=Rs(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const ul=()=>({debug:!1,initImmediate:!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("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const 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}}),dl=e=>("string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),fl=()=>{};class pl extends Ss{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=dl(e),this.services={},this.logger=Ns,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=ul();this.options={...r,...this.options,...dl(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Ns.init(i(this.modules.logger),this.options):Ns.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ll);const n=new Xs(this.options);this.store=new Vs(this.options.resources,this.options);const o=this.services;o.logger=Ns,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new rl(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new al(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new cl(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Qs(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=fl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(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((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=ks(),a=()=>{const e=(e,t)=>{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),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e))),this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=ks();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=fl),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ys.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&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++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=ks();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(e)?e.map((e=>`${o.keyPrefix}${c}${e}`)):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(u,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=ks();return this.options.ns?("string"==typeof 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){const n=ks();"string"==typeof e&&(e=[e]);const 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||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Xs(ul());return["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new pl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new pl(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Vs(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Qs(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const hl=pl.createInstance();hl.createInstance=pl.createInstance,hl.createInstance,hl.dir,hl.init,hl.loadResources,hl.reloadResources,hl.use,hl.changeLanguage,hl.getFixedT,hl.t,hl.exists,hl.setDefaultNamespace,hl.hasLoadedNamespace,hl.loadNamespaces,hl.loadLanguages;const gl=function(e){return e&&e.length?e[0]:void 0},ml=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},yl=function(){};var vl=Object.prototype.hasOwnProperty;const bl=function(e,t,n){var r=e[t];vl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},Il=function(e,t,n,r){if(!ce(e))return e;for(var i=-1,o=(t=wn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Tn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=ce(u)?u:V(t[i+1])?[]:{})}bl(s,l,c),s=s[l]}return e},xl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Mn(e,a);n(s,a)&&Il(o,wn(a,e),s)}return o}(e,t,(function(t,n){return Cn(e,n)}))},wl=function(e){return null!=e&&e.length?qn(e,1):[]},Tl=function(e){return Kn(Jn(e,void 0,wl),e+"")},Ml=Tl((function(e,t){return null==e?{}:xl(e,t)})),Al={"exam-total":"Provet sammanlagt","grading-total":"Sammanlagt",material:"Material","attachments-page-title":"Material:","external-material-title":"Material","grading-instructions-page-title":"Beskrivningar av goda svar:",section:"Del {{displayNumber}}:",question:"Uppgift {{displayNumber}}:",grade:"Vitsord",comment:"Kommentar",points:"{{count}} p.",recording:"Inspelningen","audio-errors":{"already-accessed":"Du har redan spelat denna inspelning. Uppdatera sidan","already-playing":"Lyssna först inspelningen till slut.","other-error":"Uppspelning misslyckades, be övervakaren om hjälp."},"audio-test":{instructions:"Provet omfattar uppgifter i hörförståelse.",play:"Testa hörbarheten",volume:"Du kan justera ljudvolymen uppe i högra hörnet av rutan."},"dropdown-answer":{label:"Välj det alternativ som passar bäst.",clear:"Avmarkera alternativet."},grading:{"pregrading-annotations":"Preliminära bedömningens anteckningar (lärare)","censor-annotations":"Censorns anteckningar","pregrading-abbrev":"prel.","inspection-grading-abbrev":"ompr.","round.1":"1.c","round.2":"2.c","round.3":"3.c",annotate:"Markera","non-answer-not-graded":"Lämnats utan bedömning","loading-images":"Vänta, bilder laddas..."},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{examineSectionA:"Du kan nu granska dina svar för del A.",cannotEditLater:"När du har returnerat del A kan du inte längre redigera svaren för del A.",youCanReturn:"Efter att du granskat dina svar kan du gå tillbaka till provet för att fortsätta svara på uppgifterna.",forbidden:{infoText:"Du får tillgång till de blockerade räknarprogrammen efter att du returnerat del A.",buttonText:"Returnera del A"},allowing:{infoText:"Svaren i A-delen låses. Du får tillgång till de blockerade räknarprogrammen om en stund.",cancel:"Avbryt ({{count}} s)"},allowed:{infoText:"Del A returnerad"}},"examine-exam":{examine:"Kontrollera dina svar",instructions:"Efter att du granskat dina svar kan du ännu gå tillbaka och redigera svaren eller avsluta provet."},undo:{loading:"Laddar...",close:"Stäng",restoreAnswer:"Återställ",answerNoText:"ingen text",answerWordCount:"{{count}} ord",answerWordCount_plural:"{{count}} ord",answerCharacterCount:"{{count}} tecken",answerCharacterCount_plural:"{{count}} tecken",answerImageCount:"{{count}} bild",answerImageCount_plural:"{{count}} bilder",minutesSinceAnswer:"{{ minutes }} min sedan",latestVersion:"Den senaste versionen"},examineExam:{returnToExam:"Återvänd till provutförandet",checkYourAnswersTitle:"Kontrollera dina svar",hereAreYourAnswers:"Du ser här dina svar på samma sätt som de som bedömer proven kommer att se dem.",checkYourAnswers:"Kontrollera att du kan se alla de svar som du vill lämna in till bedömning.",removeExcessAnswers:"Om du ser svar som du inte vill lämna in till bedömning bör du gå tillbaka till provet och avlägsna dem.",emptyAnswersAreHighlighted:"Tomma svarsfält har markerats.",thereMayBeOptionalQuestions:"Det kan finnas valbara uppgifter i provet, och därmed innebär ett tomt svarsfält inte alltid att något är fel.",questionHasNoAnswer:"Denna fråga har inte besvarats",endExamTitle:"Avsluta provet",afterInspectingYourAnswers:"När du har kontrollerat dina svar kan du avsluta provet genom att klicka på knappen nedan.",youCanNotReturnToExam:"Efter att du klickat på knappen kan du inte längre gå tillbaka till provet.",thankYouTitle:"Tack!",shutdownComputer:"Stäng nu av datorn.",returnUsbStick:"När datorn har är avstängd, ta bort USB-minnet och ge det till provets övervakare."},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"Svar på för många uppgifter:","max-answers-warning":"Besvara högst {{count}} uppgift.","max-answers-warning_plural":"Besvara högst {{count}} uppgifter.","open-writing-mode":"Öppna skrivvyn","close-writing-mode":"Minska vyn","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","answer-length-with-max-length":"Svarets längd: {{count}} / {{maxLength}} tecken.","max-length-surplus":"Svaret överskrider maximallängden på {{maxLength}} märken med {{percentage}} %.","max-length-info":"Svaret får inte överskrida {{count}} tecken. Om det givna antalet tecken överskrids leder det till poängavdrag.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","end-of-exam":"Uppgifterna i provet slutar här.","answering-instructions":{"exam_*_1_1":"Besvara högst en uppgift i provet.","exam_*_2_2":"Besvara högst två uppgifter i provet.","exam_*_3_3":"Besvara högst tre uppgifter i provet.","exam_*_4_4":"Besvara högst fyra uppgifter i provet.","exam_*_5_5":"Besvara högst fem uppgifter i provet.","exam_*_6_6":"Besvara högst sex uppgifter i provet.","exam_*_7_7":"Besvara högst sju uppgifter i provet.","exam_*_8_8":"Besvara högst åtta uppgifter i provet.","exam_*_9_9":"Besvara högst nio uppgifter i provet.","exam_*_10_10":"Besvara högst tio uppgifter i provet.","exam_*_*_*":"Besvara högst {{answerCount, range}} uppgifter i provet.","question_*_1_1":"Besvara en av punkterna {{questions, range}}.","question_*_2_2":"Besvara två av punkterna {{questions, range}}.","question_*_3_3":"Besvara tre av punkterna {{questions, range}}.","question_*_4_4":"Besvara fyra av punkterna {{questions, range}}.","question_*_5_5":"Besvara fem av punkterna {{questions, range}}.","question_*_6_6":"Besvara sex av punkterna {{questions, range}}.","question_*_7_7":"Besvara sju av punkterna {{questions, range}}.","question_*_8_8":"Besvara åtta av punkterna {{questions, range}}.","question_*_9_9":"Besvara nio av punkterna {{questions, range}}.","question_*_10_10":"Besvara tio av punkterna {{questions, range}}.","question_2_*_1":"Besvara antingen punkt {{questions, first}} eller {{questions, last}}.","question_*_*_*":"Besvara {{answerCount, range}} av punkterna {{questions, range}}.","section_*_1_1":"Besvara en uppgift.","section_*_2_2":"Besvara två uppgifter.","section_*_3_3":"Besvara tre uppgifter.","section_*_4_4":"Besvara fyra uppgifter.","section_*_5_5":"Besvara fem uppgifter.","section_*_6_6":"Besvara sex uppgifter.","section_*_7_7":"Besvara sju uppgifter.","section_*_8_8":"Besvara åtta uppgifter.","section_*_9_9":"Besvara nio uppgifter.","section_*_10_10":"Besvara tio uppgifter.","section_1_*_1":"Besvara uppgift {{questions, range}}.","section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","section_*_*_*":"Besvara {{answerCount, range}} uppgifter.","toc-section_*_1_1":"Besvara en uppgift.","toc-section_*_2_2":"Besvara två uppgifter.","toc-section_*_3_3":"Besvara tre uppgifter.","toc-section_*_4_4":"Besvara fyra uppgifter.","toc-section_*_5_5":"Besvara fem uppgifter.","toc-section_*_6_6":"Besvara sex uppgifter.","toc-section_*_7_7":"Besvara sju uppgifter.","toc-section_*_8_8":"Besvara åtta uppgifter.","toc-section_*_9_9":"Besvara nio uppgifter.","toc-section_*_10_10":"Besvara tio uppgifter.","toc-section_1_*_1":"Besvara uppgift {{questions, range}}.","toc-section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","toc-section_*_*_*":"Besvara {{answerCount, range}} uppgifter."},"answer-errors":{"screenshot-too-big":"Den skärmdump du tagit är för stor. Ta en ny skärmdump av en mindre del av skärmen och försök på nytt.","screenshot-byte-limit-reached":"Minnesutrymmet för skärmdumpar är fullt. (Du kan referera till bilder i materialet direkt utan skärmdumpar.)","screenshot-upload-failed":"Bifogandet av skärmdumpen misslyckades. Försök på nytt.","answer-too-long":"Svaret är för långt."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},El=Ml(Al,["exam-total","material","external-material-title","section","references","toc-heading"]),Cl={"exam-total":"Koe yhteensä","grading-total":"Yhteensä",material:"Aineisto",material_plural:"Aineistot","attachments-page-title":"Aineisto:","external-material-title":"Aineisto","grading-instructions-page-title":"Hyvän vastauksen piirteet:",section:"Osa {{displayNumber}}:",question:"Tehtävä {{displayNumber}}:",grade:"Arvosana",comment:"Kommentti",points:"{{count}} p.",recording:"Tallenne","audio-errors":{"already-accessed":"Olet jo toistanut tämän äänitteen. Päivitä sivu.","already-playing":"Kuuntele äänite ensin loppuun.","other-error":"Äänitteen toistaminen epäonnistui, pyydä apua valvojalta."},"audio-test":{instructions:"Koe sisältää kuullunymmärtämisen tehtäviä.",play:"Testaa äänitteiden kuuluvuus",volume:"Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta."},"dropdown-answer":{label:"Valitse parhaiten sopiva vaihtoehto.",clear:"Poista valinta."},grading:{"pregrading-annotations":"Alustavan arvostelun merkinnät (opettaja)","censor-annotations":"Sensorin merkinnät","pregrading-abbrev":"alust.","inspection-grading-abbrev":"ov","round.1":"1.s","round.2":"2.s","round.3":"3.s",annotate:"Merkitse","non-answer-not-graded":"Jätetty arvostelematta","loading-images":"Odota, kuvia ladataan..."},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{examineSectionA:"Voit käydä tarkastelemassa A-osan vastauksiasi nyt.",cannotEditLater:"Palautettuasi A-osan et voi enää muokata A-osan vastauksia.",youCanReturn:"Tarkastelun jälkeen voit palata kokeeseen jatkamaan tehtäviin vastaamista.",forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöösi palautettuasi A-osan.",buttonText:"Palauta A-osa"},allowing:{infoText:"A-osan vastaukset lukitaan. Saat estetyt laskinohjelmat käyttöösi hetken kuluttua.",cancel:"Peruuta ({{count}} s)"},allowed:{infoText:"A-osa palautettu"}},"examine-exam":{examine:"Siirry tarkastelemaan vastauksiasi",instructions:"Tarkastelun jälkeen voit vielä palata muokkaamaan vastauksia, tai päättää kokeen."},undo:{loading:"Ladataan...",close:"Sulje",restoreAnswer:"Palauta",answerNoText:"ei tekstiä",answerWordCount:"{{count}} sana",answerWordCount_plural:"{{count}} sanaa",answerCharacterCount:"{{count}} merkki",answerCharacterCount_plural:"{{count}} merkkiä",answerImageCount:"{{count}} kuva",answerImageCount_plural:"{{count}} kuvaa",minutesSinceAnswer:"{{ minutes }} min sitten",latestVersion:"Viimeisin versio"},examineExam:{returnToExam:"Palaa suorittamaan koetta",checkYourAnswersTitle:"Tarkista vastauksesi",hereAreYourAnswers:"Näet tässä vastauksesi samanlaisina kuin kokeen arvostelijat tulevat ne näkemään.",checkYourAnswers:"Tarkista, että näet alla kaikki vastaukset, jotka haluat jättää arvosteltavaksi.",removeExcessAnswers:"Jos näet vastauksia, joita et halua jättää arvosteltavaksi, palaa kokeeseen ja poista ne.",emptyAnswersAreHighlighted:"Tyhjät vastaukset on korostettu.",thereMayBeOptionalQuestions:"Kokeessa voi olla valinnaisia tehtäviä, joten tyhjä vastaus ei välttämättä tarkoita virhettä.",questionHasNoAnswer:"Tähän kysymykseen ei ole vastattu",endExamTitle:"Päätä koe",afterInspectingYourAnswers:"Kun olet tarkistanut vastauksesi, päätä koe klikkaamalla alla olevaa nappia.",youCanNotReturnToExam:"Napin klikkaamisen jälkeen et voi enää palata kokeeseen.",thankYouTitle:"Kiitos!",shutdownComputer:"Sammuta vielä tietokoneesi.",returnUsbStick:"Kun kone on sammunut, irrota USB-muisti ja palauta se kokeen valvojalle."},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liian moneen tehtävään:","max-answers-warning":"Vastaa enintään {{count}} tehtävään.","open-writing-mode":"Avaa kirjoitusnäkymä","close-writing-mode":"Pienennä näkymä","listen-times-remaining":"{{count}} kuuntelukerta jäljellä.","listen-times-remaining_plural":"{{count}} kuuntelukertaa jäljellä.","answer-length":"Vastauksen pituus: {{count}} merkki.","answer-length_plural":"Vastauksen pituus: {{count}} merkkiä.","answer-length-with-max-length":"Vastauksen pituus: {{count}} / {{maxLength}} merkkiä.","max-length-surplus":"Vastauksen enimmäispituus {{maxLength}} merkkiä ylittyy {{percentage}} %.","max-length-info":"Vastauksen pituus on enintään {{count}} merkkiä. Ylityksestä seuraa pistevähennys.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","end-of-exam":"Kokeen tehtävät loppuvat tähän.","answering-instructions":{"exam_*_1_1":"Vastaa kokeessa enintään yhteen tehtävään.","exam_*_2_2":"Vastaa kokeessa enintään kahteen tehtävään.","exam_*_3_3":"Vastaa kokeessa enintään kolmeen tehtävään.","exam_*_4_4":"Vastaa kokeessa enintään neljään tehtävään.","exam_*_5_5":"Vastaa kokeessa enintään viiteen tehtävään.","exam_*_6_6":"Vastaa kokeessa enintään kuuteen tehtävään.","exam_*_7_7":"Vastaa kokeessa enintään seitsemään tehtävään.","exam_*_8_8":"Vastaa kokeessa enintään kahdeksaan tehtävään.","exam_*_9_9":"Vastaa kokeessa enintään yhdeksään tehtävään.","exam_*_10_10":"Vastaa kokeessa enintään kymmeneen tehtävään.","exam_*_*_*":"Vastaa kokeessa enintään {{answerCount, range}} tehtävään.","question_*_1_1":"Vastaa yhteen kohdista {{questions, range}}.","question_*_2_2":"Vastaa kahteen kohdista {{questions, range}}.","question_*_3_3":"Vastaa kolmeen kohdista {{questions, range}}.","question_*_4_4":"Vastaa neljään kohdista {{questions, range}}.","question_*_5_5":"Vastaa viiteen kohdista {{questions, range}}.","question_*_6_6":"Vastaa kuuteen kohdista {{questions, range}}.","question_*_7_7":"Vastaa seitsemään kohdista {{questions, range}}.","question_*_8_8":"Vastaa kahdeksaan kohdista {{questions, range}}.","question_*_9_9":"Vastaa yhdeksään kohdista {{questions, range}}.","question_*_10_10":"Vastaa kymmeneen kohdista {{questions, range}}.","question_2_*_1":"Vastaa joko kohtaan {{questions, first}} tai {{questions, last}}.","question_*_*_*":"Vastaa {{answerCount, range}} kohdista {{questions, range}}.","section_*_1_1":"Vastaa yhteen tehtävään.","section_*_2_2":"Vastaa kahteen tehtävään.","section_*_3_3":"Vastaa kolmeen tehtävään.","section_*_4_4":"Vastaa neljään tehtävään.","section_*_5_5":"Vastaa viiteen tehtävään.","section_*_6_6":"Vastaa kuuteen tehtävään.","section_*_7_7":"Vastaa seitsemään tehtävään.","section_*_8_8":"Vastaa kahdeksaan tehtävään.","section_*_9_9":"Vastaa yhdeksään tehtävään.","section_*_10_10":"Vastaa kymmeneen tehtävään.","section_1_*_1":"Vastaa tehtävään {{questions, range}}.","section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","section_*_*_*":"Vastaa {{answerCount, range}} tehtävään.","toc-section_*_1_1":"Vastaa yhteen tehtävään.","toc-section_*_2_2":"Vastaa kahteen tehtävään.","toc-section_*_3_3":"Vastaa kolmeen tehtävään.","toc-section_*_4_4":"Vastaa neljään tehtävään.","toc-section_*_5_5":"Vastaa viiteen tehtävään.","toc-section_*_6_6":"Vastaa kuuteen tehtävään.","toc-section_*_7_7":"Vastaa seitsemään tehtävään.","toc-section_*_8_8":"Vastaa kahdeksaan tehtävään.","toc-section_*_9_9":"Vastaa yhdeksään tehtävään.","toc-section_*_10_10":"Vastaa kymmeneen tehtävään.","toc-section_1_*_1":"Vastaa tehtävään {{questions, range}}.","toc-section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","toc-section_*_*_*":"Vastaa {{answerCount, range}} tehtävään."},"answer-errors":{"screenshot-too-big":"Ottamasi kuvakaappaus on liian iso. Ota uusi kuvakaappaus pienemmästä osasta näyttöä ja yritä uudelleen.","screenshot-byte-limit-reached":"Kokeesi kuvakaappauksille varattu tila on täyttynyt. (Voit viitata aineistokuviin suoraan ilman kuvakaappausta.)","screenshot-upload-failed":"Kuvan liittäminen ei onnistunut. Kokeile uudestaan.","answer-too-long":"Vastaus on liian pitkä."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},Nl=Ml(Cl,["exam-total","material","external-material-title","section","references","toc-heading"]),Sl={"exam-total":"Total points for the exam",material:"Material","external-material-title":"Material",section:"Part {{displayNumber}}:",references:{heading:"Sources",source:"Source:",date:"Published:","reference-date":"Accessed:",translator:"Translation:","modified-by":"Adaptation:"},"toc-heading":"Contents"},kl={"exam-total":"Total des points",material:"Document",material_plural:"Documents","external-material-title":"Document",section:"Partie {{displayNumber}} :",references:{heading:"Sources",source:"Source :",date:"Publication le","reference-date":"Téléchargement le",translator:"Traduction :","modified-by":"Modifications :"},"toc-heading":"Sommaire"},jl={section:""},Dl={"exam-total":"Puntuación total",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fuentes",source:"Fuente:",date:"Publicado:","reference-date":"Consultado:",translator:"Traducción:","modified-by":"Adaptado:"},"toc-heading":"Contenido"},Ol={"exam-total":"Die Prüfung insgesamt",material:"Materialien","external-material-title":"Materialien",section:"Teil {{displayNumber}}:",references:{heading:"Quellen",source:"Quelle:",date:"Veröffentlicht:","reference-date":"Zugriff:",translator:"Übersetzung:","modified-by":"Bearbeitung:"},"toc-heading":"Inhalt"},Ll={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Rl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:El,BB:El,CA:Nl,CB:Nl,EA:Sl,EC:Sl,FA:kl,FC:kl,GC:{"exam-total":"Totalidade da pontuação",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fontes",source:"Fonte:",date:"Publicado:","reference-date":"Acedido:",translator:"Tradução:","modified-by":"Adaptação:"},"toc-heading":"Conteúdo"},I:{"exam-total":"Iskos ohtsis",material:"Amnâstuvah","external-material-title":"Amnâstuvah","attachments-page-title":"Amnâstuvah:",section:"Uási {{displayNumber}}:",points:"{{count}} č.",references:{source:"Käldee:",date:"Almostittum:","reference-date":"Čujottum:",translator:"Jurgâlus:","modified-by":"Heiviittâs:"},"answering-instructions":{"toc-section_*_1_1":"Fáádáh","section_*_1_1":"Valjii oovtâ fáádá."},"toc-heading":"Siskáldâs"},M:jl,N:jl,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:Ol,SC:Ol,PA:Dl,PC:Dl,TC:{"exam-total":"Punteggio complessivo",material:"Materiale","external-material-title":"Materiale",section:"Parte {{displayNumber}}:",references:{heading:"Fonti",source:"Fonte:",date:"Pubblicato:","reference-date":"Consultato:",translator:"Traduzione:","modified-by":"Adattamento:"},"toc-heading":"Contenuto"},VA:Ll,VC:Ll,Z:{"exam-total":"Iskkus oktiibuot",material:"Ávdnasat","external-material-title":"Ávdnasat","attachments-page-title":"Ávdnasat:",section:"Oassi {{displayNumber}}:",points:"{{count}} č.",references:{heading:"Gáldut",source:"Gáldu:",date:"Almmuhuvvon:","reference-date":"Vižžojuvvon:",translator:"Jorgalus","modified-by":"Heivehus:"},"answering-instructions":{"toc-section_*_1_1":"Fáttát","section_*_1_1":"Vállje ovtta fáttá."},"toc-heading":"Sisdoallu"}},Pl={"fi-FI":{translation:Cl,...Rl},"sv-FI":{translation:Al,...Rl}};function zl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return hl.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:Pl,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{const n=e;switch(t){case"range":{const[e,t]=n;return null==e?t:null==t||e===t?e:`${e}–${t}`}case"first":return gl(n);case"last":return ml(n);default:return e}}}},yl)}function Ul(){const{i18n:e,t:n}=y(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Rl,s=a&&function(e,t,n){return Array.isArray(n)?n.some((n=>null!=e.getResource(e.language,t,n))):null!=e.getResource(e.language,t,n)}(e,o,n);return s||!a?i:t().createElement("span",{lang:e.language},i)}(e,n,r);return r.raw=n,{i18n:e,t:r}}const _l=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(yl).catch(yl)},Fl=new WeakMap;let Bl=0;const Gl=e=>t=>`${e}-${(e=>{const t=Fl.get(e);if(null!=t)return t;const n=++Bl;return Fl.set(e,n),n})(t)}`,Zl=e=>t=>`${e}-${t}`,Hl="title",ql="references-title",Vl=Zl("section-title"),Yl=Zl("question-title"),Wl=Gl("question-instruction"),Ql=Gl("answer-length-info"),Jl=Gl("external-material-list-title"),Xl=Zl("toc-section-title"),$l=Gl("answer-score"),Kl=Gl("image-caption"),ec=Gl("video-caption"),tc=Gl("audio-label"),nc="toc-title";function rc(){const e=decodeURIComponent(window.location.hash).slice(1);if(e){const n=document.getElementById(e);n&&((t=n).setAttribute("tabindex","-1"),t.style.outline="none",t.addEventListener("blur",(()=>{t.removeAttribute("tabindex"),t.style.outline=""}),{once:!0}),t.focus(),t.scrollIntoView())}var t;return window.addEventListener("hashchange",rc),()=>window.removeEventListener("hashchange",rc)}function ic(t){return(0,e.useState)(t)[0]}const oc=t().memo((n=>{const r=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{r.current&&(document.title=r.current.textContent)})),t().createElement("h1",{...n,ref:r})})),ac=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},sc=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),lc=e=>{const n=Sr()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)};function cc(e){return e.displayName||e.name||"Component"}const uc=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};return i.displayName=`WithContext(${cc(r)})`,i},dc=t().createContext({});function fc(e){return uc(dc,(({attachmentsURL:e,resolveAttachment:t,doc:n,abitti2:r})=>{var i;const o=n.documentElement,a=Ee(o,"date"),s=Ee(o,"exam-lang"),l=null!==(i=Ee(o,"exam-type"))&&void 0!==i?i:"normal",c=Ee(o,"lang")||s;return{attachmentsURL:e,date:a?new Date(a):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:Ee(o,"day-code"),examCode:Ee(o,"exam-code"),language:s,subjectLanguage:c,examType:l,maxAnswers:Ce(o,"max-answers"),maxScore:Ce(o,"max-score"),sections:Te(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const pc=t().createContext({}),hc=uc(pc,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),gc=t().createContext({}),mc=uc(gc,(({element:e})=>({casForbidden:Ne(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:Ce(e,"max-answers"),minAnswers:Ce(e,"min-answers"),maxScore:Ce(e,"max-score"),childQuestions:Se(e,(e=>e)).filter((e=>"question"===e.localName))})));function yc(e,t){const n=new URL(e,"http://example.com");ye(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const vc=({children:e,href:n,type:r})=>"link"===r?t().createElement("a",{href:n,className:"attachment-link e-nowrap",target:"attachments"},e):t().createElement("span",{className:"attachment-link e-nowrap"},e),bc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(dc),{attachmentsURL:a}=(0,e.useContext)(dc),{t:s}=Ul(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=yc(a,{hash:l});return c?t().createElement(vc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(vc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),Ic=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(dc),{t:a}=Ul(),s=Se(r,(e=>{const t=e.getAttribute("ref");return we(i,(e=>"attachment"===e.localName&&e.getAttribute("name")===t)).getAttribute("display-number")})),l=function(e,t){const n=[[]];let r;for(let i=0;i<e.length;i++){const o=e[i];if(r&&t(o,i)){const e=[o];n.push(e)}else n[n.length-1].push(o);r=o}return n}(s,((e,t)=>t>0&&!function(e,t){const n=e.length;return n===t.length&&(e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1)}(s[t-1],e))),c="short"===r.getAttribute("type"),u=yc(o,{hash:s[0]}),d=l.map((e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0])).join(", "),f=l[0].length;return c?t().createElement(vc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(vc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),xc=t().createContext({}),wc=uc(xc,(({element:e})=>{const t=null!=Me(e,"external-material"),n=e.getAttribute("name");return t?{displayNumber:e.getAttribute("display-number"),isExternal:t,name:n}:{displayNumber:null,isExternal:t,name:n}})),Tc=t().memo(wc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(xc);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),Mc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(xc);return t().createElement("h3",null,i,be,r(n))}));var Ac=a(5919),Ec=e,Cc=Symbol.for("react-redux-context"),Nc="undefined"!=typeof globalThis?globalThis:{};function Sc(){if(!Ec.createContext)return{};const e=Nc[Cc]??(Nc[Cc]=new Map);let t=e.get(Ec.createContext);return t||(t=Ec.createContext(null),e.set(Ec.createContext,t)),t}var kc=Sc();function jc(e=kc){return function(){return Ec.useContext(e)}}var Dc=jc(),Oc=()=>{throw new Error("uSES not initialized!")},Lc=(e,t)=>e===t;function Rc(e=kc){const t=e===kc?Dc:jc(e),n=(e,n={})=>{const{equalityFn:r=Lc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(Ec.useRef(!0),Ec.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Oc(a.addNestedSub,o.getState,s||o.getState,u,r);return Ec.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var Pc=Rc();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var zc={notify(){},get:()=>[]};var Uc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),_c="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Fc=Uc||_c?Ec.useLayoutEffect:Ec.useEffect;function Bc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Gc(e,t){if(Bc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Bc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var Zc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ec.useMemo((()=>{const t=function(e,t){let n,r=zc,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){var t;t=()=>{let t=e;for(;t;)t.callback(),t=t.next},t()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=zc)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}}),[e,r,i,o]),s=Ec.useMemo((()=>e.getState()),[e]);Fc((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||kc;return Ec.createElement(l.Provider,{value:a},n)};function Hc(e=kc){const t=e===kc?Dc:jc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var qc=Hc();function Vc(e=kc){const t=e===kc?qc:Hc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Yc,Wc=Vc();Yc=Ac.useSyncExternalStoreWithSelector,Oc=Yc,e.useSyncExternalStore;const Qc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Jc=(e,t)=>n=>n.audio.errors[null!=t?t:e],Xc=e=>t=>An(t.audio.playbackTimes,e,0),$c=(e,t)=>n=>t-Xc(e)(n),Kc=e=>{const{serverQuestionIds:t,savedQuestionIds:n,answersById:r}=e.answers;return 0===t.size?"initial":t.size!==n.size||function(e,t){for(const n in t)if(!e.has(Number(n)))return!0;return!1}(t,r)?"saving":"saved"},eu=!("undefined"==typeof window||!window.document||!window.document.createElement);var tu=(new Date).getTime(),nu=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-tu)),r=setTimeout(e,n);return tu=t,r},ru=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};eu&&["","webkit","moz","o","ms"].some((function(e){var t=ru(e,"request");return t in window&&(ru(e,"cancel"),nu=function(e){return window[t](e)}),!!nu}));var iu=nu;function ou(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function au(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function su(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=au(e.className,t):e.setAttribute("class",au(e.className&&e.className.baseVal||"",t))}var lu=/([A-Z])/g,cu=/^ms-/;function uu(e){return function(e){return e.replace(lu,"-$1").toLowerCase()}(e).replace(cu,"-ms-")}var du=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const fu=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(uu(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(uu(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!du.test(e))}(i)?r+=i+"("+o+") ":n+=uu(i)+": "+o+";":e.style.removeProperty(uu(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var pu=!1,hu=!1;try{var gu={get passive(){return pu=!0},get once(){return hu=pu=!0}};eu&&(window.addEventListener("test",gu,gu),window.removeEventListener("test",gu,!0))}catch(xg){}const mu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!hu){var i=r.once,o=r.capture,a=n;!hu&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,pu?r:o)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}(e,t,n,r)}};function yu(e,t,n,r){var i,o;null==n&&(o=-1===(i=fu(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(i)*o||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent("transitionend",n,r),e.dispatchEvent(i)}}(e,0,!0)}),t+n),o=mu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=mu(e,"transitionend",t);return function(){a(),s()}}function vu(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(!e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}var bu=Fa().oneOfType([Fa().string,Fa().shape({enter:Fa().string,leave:Fa().string,active:Fa().string,height:Fa().string}),Fa().shape({enter:Fa().string,enterActive:Fa().string,leave:Fa().string,leaveActive:Fa().string,appear:Fa().string,appearActive:Fa().string,height:Fa().string,heightActive:Fa().string})]);function Iu(e){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(e)}function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mu(e,t){return Mu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mu(e,t)}function Au(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eu(e)}function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=[];yu&&Nu.push(yu);var Su={children:Fa().node,name:bu.isRequired,appear:Fa().bool,enter:Fa().bool,leave:Fa().bool,appearTimeout:Fa().number,enterTimeout:Fa().number,leaveTimeout:Fa().number},ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Eu(i);if(o){var n=Eu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Iu(t)&&"function"!=typeof t?Au(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Cu(Au(n=a.call(this,e)),"refNode",t().createRef()),Cu(Au(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Cu(Au(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Cu(Au(n),"componentWillLeave",(function(e){n.props.leave?n.transition("leave",e,n.props.leaveTimeout):e()})),n.classNameAndNodeQueue=[],n.transitionTimeouts=[],n}return n=s,r=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"getNode",value:function(){return this.refNode.current}},{key:"transition",value:function(e,t,n){var r=this.getNode();if(r){var i,o=this.props.name[e]||this.props.name+"-"+e,a=this.props.name[e+"Active"]||o+"-active",s=null;ou(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(su(r,o),su(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):yu&&(i=function(e,t){return Nu.length?Nu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){Nu.length&&Nu.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,l))}else t&&t()}},{key:"queueClassAndNode",value:function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=iu((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=iu((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,ou(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=wu(wu({},this.props),{},{ref:this.refNode});return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,t().cloneElement(t().Children.only(this.props.children),e)}}],r&&Tu(n.prototype,r),s}(t().Component);Cu(ku,"displayName","CSSTransitionGroupChild"),ku.propTypes=Su;const ju=ku;function Du(e){return Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(e)}function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){_u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pu(e,t){return Pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pu(e,t)}function zu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uu(e)}function _u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Uu(i);if(o){var n=Uu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Du(t)&&"function"!=typeof t?zu(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),_u(zu(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),_u(zu(n),"performLeave",(function(e){var t,r;n.transitioningKeys[e]=!0,null===(t=n.childRefs[e].current)||void 0===t||t.componentWillLeave(n.handleDoneLeaving.bind(zu(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),_u(zu(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=zu(n).state,r=t.currentChild?null===(e=n.childRefs[t.currentKey].current)||void 0===e?void 0:e.getNode():null;n.setState({height:r?r.offsetHeight:0,width:n.props.changeWidth?r?r.offsetWidth:0:null})}n.rafHandle=null})),_u(zu(n),"setChildRef",(function(e,r){if(r){var i=t().createRef();i.current=r,n.childRefs[e]=i}else delete n.childRefs[e]})),n.childRefs=Object.create(null),n.state={currentKey:"1",currentChild:n.props.children?t().Children.only(n.props.children):void 0,prevChildren:{},height:null,width:null},n.shouldEnterCurrent=!1,n.keysToLeave=[],n.transitioningKeys={},n}return n=s,r=[{key:"componentDidMount",value:function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)}},{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var n=e.children?t().Children.only(e.children):void 0,r=this.state.currentChild;if(r&&n&&n.key===r.key&&!this.state.nextChild)return this.setState({currentChild:n});var i=this.state,o=i.currentKey,a=i.prevChildren,s={currentKey:String(Number(o)+1),currentChild:n,height:0,width:this.props.changeWidth?0:null};if(n&&(this.shouldEnterCurrent=!0),r){var l,c=null===(l=this.childRefs[o].current)||void 0===l?void 0:l.getNode();s.height=c?c.offsetHeight:0,s.width=this.props.changeWidth?c?c.offsetWidth:0:null,s.prevChildren=Lu(Lu({},a),{},_u({},o,r)),this.transitioningKeys[o]||this.keysToLeave.push(o)}this.setState(s)}},{key:"componentDidUpdate",value:function(){var e;this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,null!==(e=this.childRefs[this.state.currentKey].current)&&void 0!==e&&e.getNode()&&this.performEnter(this.state.currentKey));var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"performAppear",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()}},{key:"handleDoneEntering",value:function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)}},{key:"handleDoneLeaving",value:function(e){var t;delete this.transitioningKeys[e];var n={prevChildren:Lu({},this.state.prevChildren)};delete n.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&null!==(t=this.childRefs[this.state.currentKey].current)&&void 0!==t&&t.getNode()||(n.height=null),this.setState(n)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=iu(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Du(r)&&null!==r&&delete(r=Lu({},r)).height,t().createElement(ju,Lu({name:r,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},n),e)}},{key:"render",value:function(){var e=this,n=this.state,r=n.currentKey,i=n.currentChild,o=n.prevChildren,a=n.height,s=n.width,l=[],c=this.props,u=c.overflowHidden,d=c.transitionName,f=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(c,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),m=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=Lu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var y="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=a}null!==s&&(g.style.width=s);var v={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(o).forEach((function(n){var r=o[n];l.push(t().createElement(p,{key:n,style:v},e.wrapChild(h&&"string"!=typeof r.type?t().cloneElement(r,{isLeaving:!0}):r,{ref:function(t){return e.setChildRef(n,t)}})))})),i&&l.push(t().createElement(p,{key:r,style:this.transitioningKeys[r]?v:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}],r&&Ru(n.prototype,r),s}(t().Component);_u(Fu,"displayName","ReactCSSTransitionReplace"),_u(Fu,"propTypes",{transitionName:bu.isRequired,transitionAppear:Fa().bool,transitionEnter:Fa().bool,transitionLeave:Fa().bool,transitionAppearTimeout:vu("Appear"),transitionEnterTimeout:vu("Enter"),transitionLeaveTimeout:vu("Leave"),overflowHidden:Fa().bool,changeWidth:Fa().bool,notifyLeaving:Fa().bool}),_u(Fu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Bu=({error:e,children:n})=>{const{t:r}=Ul();return t().createElement(Fu,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(Ka,{icon:fs,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Gu=a(758);const Zu=e=>(0,Gu.action)("PLAY_AUDIO",e),Hu=e=>(0,Gu.action)("PLAY_AUDIO_STARTED",e),qu=()=>(0,Gu.action)("PLAY_AUDIO_FINISHED"),Vu=(e,t)=>(0,Gu.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Yu=e=>(0,Gu.action)("HIDE_AUDIO_ERROR",e),Wu=e=>(0,Gu.action)("UPDATE_REMAINING",e),Qu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=Pc(Qc(n,r)),l=Pc(((e,t)=>n=>"playing"===Qc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=Pc($c(r,o)),{i18n:u}=Ul(),d=Wc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:y}=(0,e.useContext)(dc),v=(0,e.useRef)(null);return t().createElement("div",{className:Sr()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":h}),lang:u.language},y&&t().createElement("audio",{ref:v,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:Sr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(Zu({src:n,restrictedAudioId:r,duration:i,audioRef:v})),"aria-labelledby":m.join(" ")},!f&&t().createElement(Ka,{icon:cs,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},function(e){const t=e%60;return`${Ju(Math.floor(e/60))}:${Ju(t)}`}(null!=l?l:i)))}));function Ju(e){return e.toString().padStart(2,"0")}const Xu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=Ce(n,"restricted-audio-id"),s=Ce(n,"times"),l=Ce(n,"duration"),{t:c}=Ul(),u=null!=s&&null!=a?Pc(Jc(o,a)):void 0,d=null!=s&&null!=a?Pc($c(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(dc),p=tc(n);return t().createElement("div",{className:Sr()("audio e-columns e-columns--center-v e-mrg-b-2",r)},null!=a&&null!=s?t().createElement(Qu,{src:o,restrictedAudioId:a,duration:l,times:s,labelId:p}):t().createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},t().createElement("source",{src:f(o)})),t().createElement("div",{className:"e-column",id:p},t().createElement(Bu,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),$u=Ms({attachment:wc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(xc);return t().createElement("li",{"data-list-number":r,"aria-label":r},$u(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(dc),{displayNumber:i}=(0,e.useContext)(xc);return t().createElement("a",{href:yc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},$u(n))}}),Ku=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=Ul(),o=Jl(e);return t().createElement("div",{className:"external-material-list e-mrg-b-4"},n&&t().createElement("h4",{className:"external-material-title",id:o},i("external-material-title")),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":o},$u(e)))})),ed=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(dc);return t().createElement("a",{className:Sr()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),td=t().memo((function({element:e,className:n}){const r=Ee(e,"svg"),i=Ee(e,"assistive-title"),o="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:Sr()("e-formula",{"e-block e-text-center":o},n),dangerouslySetInnerHTML:{__html:r},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},i||e.textContent))})),nd=({bordered:e=!1,className:n,children:r,height:i,width:o,caption:a,captionId:s})=>{const l=i/o*100+"%",c=o+(e?18:0);return t().createElement("span",{className:Sr()("responsive-media-container",{"responsive-media-container--bordered":e},n),style:{maxWidth:c}},t().createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},r),a&&t().createElement("span",{className:"e-block e-mrg-t-1 e-font-size-s e-light",id:s},a))};function rd(e){return"string"==typeof e&&0===e.trim().length}const id=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(dc),{t:a}=Ul(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Ae(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every(rd),p=f?d:void 0,h=f?Kl(n):void 0,g=o(s),m=t().createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return t().createElement(t().Fragment,null,t().createElement(nd,{className:r,width:l,height:c,caption:p,captionId:h,bordered:f||null!=Me(n,"choice-answer")},null!=Me(n,["choice-answer","hint"])?m:t().createElement("a",{title:a.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!f,tabIndex:-1},m)))}));function od({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function ad({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function sd({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement(t().Fragment,null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(dc);return t().createElement(t().Fragment,null,i.format(n))}}const ld=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=Ul();function i(r,i){const o=Ae(e,r);if(o){const e=o.localName,r=t().createElement(i,{element:o,renderChildNodes:n,key:e});if(r)return Ne(o,"hidden")?t().createElement("del",{key:e},r):r}}function o(i,o,a){const s=Ae(e,i);return s&&t().createElement(t().Fragment,{key:s.localName},r(o)," ",t().createElement(a,{element:s,renderChildNodes:n,key:s.localName}))}return t().createElement("span",{className:Sr()("e-break-word",{"e-line-through":Ne(e,"hidden")})},r("references.source"),be,(". ",(a=[i("author",ac),i("title",od),i("publisher",ac),i("publication",ac),i("howpublished",ac),i("url",ad),o("publication-date","references.date",sd),o("reference-date","references.reference-date",sd),o("translator","references.translator",ac),o("modified-by","references.modified-by",ac),i("note",ac)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),cd=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(dc),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Ae(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every(rd),f=d?u:void 0,p=d?ec(n):void 0;return t().createElement(nd,{caption:f,captionId:p,className:i,width:s,height:l},t().createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},t().createElement("source",{src:o(a)})))}));const ud=function(e){var t=function(e){return e?1/0===(e=dr(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0};var dd=4294967295,fd=Math.min;function pd({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Ae(r,"image-title");return t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},t().createElement("div",{className:"e-column e-text-right e-mrg-r-1"},o&&i(o)),t().createElement(Ka,{icon:rs,className:"e-mrg-r-1 e-pointer",onClick:()=>n(0)}),t().createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>n(Number(e.target.value))}),t().createElement(Ka,{icon:as,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function hd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(dc).resolveAttachment(o);return t().createElement("div",{className:Sr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(nd,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const gd=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=ud(e))<1||e>9007199254740991)return[];var n=dd,r=fd(e,dd);t=me(t),e-=dd;for(var i=w(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),a=e=>t=>{const n=[...i];n[e]=t,o(n)};return t().createElement("div",{className:"e-image-overlay e-mrg-b-1"},t().createElement("div",{className:"e-columns e-columns--center-h"},t().createElement("div",null,Se(n,((e,n)=>t().createElement(pd,{key:n,opacity:i[n],element:e,setOpacity:a(n),renderChildNodes:r}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(hd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),md=t().createContext({}),yd=uc(md,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Wl).join(" "):Yl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function vd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(md);return t().createElement(t().Fragment,null,gl(i.split(".")),".",r)}const bd=t().memo((function({element:e}){const{t:n}=Ul(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),Id=Ms({"attachment-link":bc("link"),"attachment-links":Ic("link"),"attachment-title":Mc,attachment:Tc,audio:Xu,"audio-title":ac,file:ed,image:id,video:cd,formula:td,"question-number":vd,translation:bd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${cc(e)})`,i}(ld,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":gd}),xd=t().memo((function({element:e,forceRender:n=!1}){if(null==Me(e,"question")&&!n)return null;const r=e.children.length;return t().createElement(t().Fragment,null,r>1&&t().createElement(Ku,{element:e,renderChildNodes:Id,showTitle:!1,forceRender:n}),Id(e))})),wd=t().memo(yd((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(md);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(lc,{id:i,"aria-labelledby":Yl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function Td(e){return e.includes(".")?e:`${e}.`}const Md=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(md);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Yl(i)},Td(i)," ",r(n))):null})),Ad=Ms({"audio-group":sc,"external-material":xd,"question-title":Md,question:wd,section:mc(ac)}),Ed=()=>{const{t:e}=Ul();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Cd=t().memo(hc(fc((({annotations:n,onClickAnnotation:r,onSaveAnnotation:i})=>{const{root:o,language:a,date:s,dateTimeFormatter:l,dayCode:c,examCode:u,resolveAttachment:d,subjectLanguage:f}=(0,e.useContext)(dc),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=ic((()=>zl(a,u,c)));return(0,e.useEffect)(_l(m,a)),(0,e.useEffect)(rc,[]),t().createElement(ms,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(v,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":Hl},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(lc,{"aria-labelledby":Hl},p&&t().createElement(oc,{id:Hl},t().createElement(Ed,null),be,Ad(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(xd,{element:g,renderChildNodes:Ad,forceRender:!0})),Ad(o))))}))));function Nd(e){const t=e.documentElement;return Dd(t,Te(t,"section",!1).map(Sd),{maxAnswers:Ce(t,"max-answers")})}function Sd(e){return Dd(e,Te(e,"question",!1).map(kd),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function kd(e){const t=Te(e,"question",!1);return Dd(e,t.length?t.map(kd):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(jd),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function jd(e){return Dd(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Dd(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Od=function(e,t){return(F(e)?yn:Vn)(e,Sn(t))};var Ld=kn((function(e,t,n){Qe(e,n,t)}));const Rd=Ld;function Pd(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Ud=()=>Math.random().toString(36).substring(7).split("").join("."),_d={INIT:`@@redux/INIT${Ud()}`,REPLACE:`@@redux/REPLACE${Ud()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ud()}`};function Fd(e,t,n){if("function"!=typeof e)throw new Error(Pd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Pd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Pd(1));return n(Fd)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(l)throw new Error(Pd(3));return i}function d(e){if("function"!=typeof e)throw new Error(Pd(4));if(l)throw new Error(Pd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Pd(6));t=!1,c(),a.delete(n),o=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Pd(7));if(void 0===e.type)throw new Error(Pd(8));if("string"!=typeof e.type)throw new Error(Pd(17));if(l)throw new Error(Pd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:_d.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Pd(10));r=e,f({type:_d.REPLACE})},[zd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Pd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[zd](){return this}}}}}function Bd(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Gd=function(e){return"@@redux-saga/"+e},Zd=Gd("CANCEL_PROMISE"),Hd=Gd("CHANNEL_END"),qd=Gd("IO"),Vd=Gd("MATCH"),Yd=Gd("MULTICAST"),Wd=Gd("SAGA_ACTION"),Qd=Gd("SELF_CANCELLATION"),Jd=Gd("TASK"),Xd=Gd("TASK_CANCEL"),$d=Gd("TERMINATE"),Kd=Gd("LOCATION");function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ef.apply(null,arguments)}function tf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var nf=function(e){return null==e},rf=function(e){return null!=e},of=function(e){return"function"==typeof e},af=function(e){return"string"==typeof e},sf=Array.isArray,lf=function(e){return e&&of(e.then)},cf=function(e){return e&&of(e.next)&&of(e.throw)},uf=function e(t){return t&&(af(t)||pf(t)||of(t)||sf(t)&&t.every(e))},df=function(e){return e&&of(e.take)&&of(e.close)},ff=function(e){return of(e)&&e.hasOwnProperty("toString")},pf=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},hf=function(e){return df(e)&&e[Yd]};const gf=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[Zd]=function(){clearTimeout(n)},r};var mf=function(e){return function(){return true}}(),yf=function(){},vf=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var bf=function(e,t){ef(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function If(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function xf(e){var t=!1;return function(){t||(t=!0,e())}}var wf=function(e){throw e},Tf=function(e){return{value:e,done:!0}};function Mf(e,t,n){void 0===t&&(t=wf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Tf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Af(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Ef=function(e){return Array.apply(null,new Array(e))},Cf=function(e){return function(t){return e(Object.defineProperty(t,Wd,{value:!0}))}},Nf=function(e){return e===$d},Sf=function(e){return e===Xd},kf=function(e){return Nf(e)||Sf(e)};function jf(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=sf(e)?Ef(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||kf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=yf,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Df(e){return{name:e.name||"anonymous",location:Of(e)}}function Of(e){return e[Kd]}function Lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Rf={isEmpty:mf,put:yf,take:yf};var Pf=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}(e,4)},zf="TAKE",Uf="PUT",_f="RACE",Ff="CALL",Bf="FORK",Gf="CANCEL",Zf="SELECT",Hf="CANCELLED",qf=function(e,t){var n;return(n={})[qd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Vf(e,t){return void 0===e&&(e="*"),uf(e)?(rf(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),qf(zf,{pattern:e})):hf(e)&&rf(t)&&uf(t)?qf(zf,{channel:e,pattern:t}):df(e)?(rf(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),qf(zf,{channel:e})):void 0}function Yf(e,t){return nf(t)&&(t=e,e=void 0),qf(Uf,{channel:e,action:t})}function Wf(e,t){var n,r=null;return of(e)?n=e:(sf(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&af(n)&&of(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Qf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Ff,Wf(e,n))}function Jf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Bf,Wf(e,n))}function Xf(e){return void 0===e&&(e=Qd),qf(Gf,e)}var $f=Qf.bind(null,gf);const Kf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var ep=[],tp=0;function np(e){try{op(),e()}finally{ap()}}function rp(e){ep.push(e),tp||(op(),sp())}function ip(e){try{return op(),e()}finally{sp()}}function op(){tp++}function ap(){tp--}function sp(){var e;for(ap();!tp&&void 0!==(e=ep.shift());)np(e)}var lp=function(e){return function(t){return e.some((function(e){return pp(e)(t)}))}},cp=function(e){return function(t){return e(t)}},up=function(e){return function(t){return t.type===String(e)}},dp=function(e){return function(t){return t.type===e}},fp=function(){return mf};function pp(e){var t="*"===e?fp:af(e)?up:sf(e)?lp:ff(e)?up:of(e)?cp:pf(e)?dp:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var hp={type:Hd},gp=function(e){return e&&e.type===Hd};function mp(e){void 0===e&&(e=Pf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(hp):e.isEmpty()?(n.push(r),r.cancel=function(){If(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(hp):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(hp)}}}}function yp(){var e,t,n,r,i,o,a=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(hp)}))},(e={})[Yd]=!0,e.put=function(e){if(!t)if(gp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Vd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=fp),t?e(hp):(e[Vd]=n,i(),r.push(e),e.cancel=xf((function(){i(),If(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Wd]?s(e):rp((function(){s(e)}))},a}var vp=0,bp=1,Ip=2,xp=3;function wp(e,t){var n=e[Zd];of(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Tp,Mp=0,Ap=function(){return++Mp};function Ep(e){e.isRunning()&&e.cancel()}var Cp=((Tp={})[zf]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!gp(e)||a?n(e):n($d)};try{i.take(s,rf(o)?pp(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Tp[Uf]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;rp((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&lf(t)?wp(t,n):n(t)}))},Tp.ALL=function(e,t,n,r){var i=r.digestEffect,o=Mp,a=Object.keys(t);if(0!==a.length){var s=jf(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(sf(t)?[]:{})},Tp[_f]=function(e,t,n,r){var i=r.digestEffect,o=Mp,a=Object.keys(t),s=sf(t)?Ef(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||kf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=yf,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||i(t[e],o,l[e],e)}))},Tp[Ff]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(lf(l))return void wp(l,n);if(cf(l))return void zp(e,l,s.context,Mp,Df(o),!1,n);n(l)}catch(e){n(e,!0)}},Tp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){nf(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Tp[Bf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(cf(i))return i;var o=!1;return Mf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!lf(i)})}))}catch(e){return Mf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Df(t)}(c,o);ip((function(){var t=zp(e,c,l.context,Mp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Tp.JOIN=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&If(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(sf(t)){if(0===t.length)return void n([]);var a=jf(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},Tp[Gf]=function(e,t,n,r){var i=r.task;t===Qd?Ep(i):sf(t)?t.forEach(Ep):Ep(t),n()},Tp[Zf]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},Tp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=mp(t.buffer),o=pp(r),a=function t(n){gp(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},Tp[Hf]=function(e,t,n,r){n(r.task.isCancelled())},Tp.FLUSH=function(e,t,n){t.flush(n)},Tp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Tp.SET_CONTEXT=function(e,t,n,r){var i=r.task;bf(i.context,t),n()},Tp);function Np(e,t){return e+"?"+t}function Sp(e){var t=e.name,n=e.location;return n?t+" "+Np(n.fileName,n.lineNumber):t}function kp(e){var t,n,r,i=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return i.length?["Tasks cancelled due to error:"].concat(i).join("\n"):""}var jp=null,Dp=[],Op=function(e){e.crashedEffect=jp,Dp.push(e)},Lp=function(){jp=null,Dp.length=0},Rp=function(e){jp=e},Pp=function(){var e,t,n=Dp[0],r=Dp.slice(1),i=n.crashedEffect?(e=n.crashedEffect,(t=Of(e))?t.code+" "+Np(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Sp(n.meta)+(i?" \n when executing effect "+i:"")].concat(r.map((function(e){return" created by "+Sp(e.meta)})),[kp(Dp)]).join("\n")};function zp(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){lf(t)?wp(t,r):cf(t)?zp(e,t,c.context,n,i,!1,r):t&&t[qd]?(0,Cp[t.type])(e,t.payload,r,u):r(t)}));d.cancel=yf;var l={meta:i,cancel:function(){l.status===vp&&(l.status=bp,d(Xd))},status:vp},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=yf);var l,c,u=vp,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(If(i,t),t.cont=yf,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=yf,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=Ip,Op({meta:i,cancelledTasks:f}),m.isRoot){var r=Pp();Lp(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===Xd?u=bp:u!==bp&&(u=xp),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Jd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===vp&&(u=bp,h.cancelAll(),g(Xd,!1))},s.cont=a,s.end=g,s.setContext=function(e){bf(p,e)},s.toPromise=function(){return d||(d=Kf(),u===Ip?d.reject(c):u!==vp&&d.resolve(l)),d.promise},s.isRunning=function(){return u===vp},s.isCancelled=function(){return u===bp||u===vp&&t.status===bp},s.isAborted=function(){return u===Ip},s.result=function(){return l},s.error=function(){return c},s);return m}(e,l,n,r,i,o,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var i;n?(i=t.throw(e),Lp()):Sf(e)?(l.status=bp,d.cancel(),i=of(t.return)?t.return(Xd):{done:!0,value:Xd}):i=Nf(e)?of(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==bp&&(l.status=xp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===bp)throw e;l.status=Ip,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=Ap();function l(n,i){o||(o=!0,r.cancel=yf,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Rp(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=yf,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=yf,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Up(e,t){for(var n=e.channel,r=void 0===n?yp():n,i=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?Af:u,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var g,m=t.apply(void 0,p),y=Ap();if(l&&(l.rootSagaStarted=l.rootSagaStarted||yf,l.effectTriggered=l.effectTriggered||yf,l.effectResolved=l.effectResolved||yf,l.effectRejected=l.effectRejected||yf,l.effectCancelled=l.effectCancelled||yf,l.actionDispatched=l.actionDispatched||yf,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=Lf.apply(void 0,c);g=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else g=vf;var b={channel:r,dispatch:Cf(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return ip((function(){var e=zp(b,m,s,y,Df(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}const _p=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?yp():o,s=n.sagaMonitor,l=tf(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Up.bind(null,ef({},l,{context:i,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){bf(i,e)},c};var Fp=function(e){return{done:!0,value:e}},Bp={};function Gp(e){return df(e)?"channel":ff(e)?String(e):of(e)?e.name:String(e)}function Zp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Bp)return Fp(t);if(n&&!i)throw a=Bp,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===Bp?Fp(t):o}return Mf(s,(function(e){return s(null,e)}),n)}function Hp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:Vf(e)},s=function(e){return o=e};return Zp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Jf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Gp(e)+", "+t.name+")")}function qp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a,s={done:!1,value:Vf(e)},l=function(e){return{done:!1,value:Jf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:Xf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Zp({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return o?{nextState:"q3",effect:c(o)}:{nextState:"q1",effect:l(a),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:u}}},"q1","takeLatest("+Gp(e)+", "+t.name+")")}const Vp=function(e,t){return qn(Od(e,t),1)};function Yp(e,t){return function(e,n,r){return function e(n,r){return r.childNodes.reduce(e,((e,n)=>{if("text-answer"===n.name&&null!=n.attributes.maxLength){const r=t[n.attributes.questionId];return("richText"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type))&&r.characterCount>n.attributes.maxLength?[...e,{type:"AnswerTooLong",displayNumber:n.attributes.displayNumber,characterCount:r.characterCount,elementType:"question"}]:e}return e})(n,r))}([],e)}(e)}function Wp(e,t){return function e(n){var r;const i="exam"===n.name?"":n.attributes.displayNumber;switch(n.name){case"exam":case"section":case"question":{const t=n.childNodes.map(e),o=t.filter((e=>e.answerCount>0)),a=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?o.reduce(((e,t)=>e+t.answerCount),0):o.length,c=Vp(t,(e=>e.extraAnswers));return{answerCount:l,displayNumber:i,extraAnswers:l>a?[{type:"ExtraAnswer",elementType:n.name,displayNumber:i,childQuestions:t.map((e=>e.displayNumber)),maxAnswers:a,minAnswers:s},...c]:c}}case"text-answer":case"scored-text-answer":case"choice-answer":case"dropdown-answer":{const e=t[n.attributes.questionId];return{answerCount:(null==e?void 0:e.value.length)>0?1:0,displayNumber:i,extraAnswers:[]}}}}(e).extraAnswers}function Qp(e,t){return Vp([Yp,Wp],(n=>n(e,t)))}const Jp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Xp(e,t){const n=new Set(e);return n.add(t),n}const $p=e=>(0,Gu.action)("SAVE_ANSWER",e),Kp=e=>(0,Gu.action)("SAVE_ANSWER_SUCCEEDED",e),eh=(e,t)=>(0,Gu.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),th=new Map;function*nh(e,t){const n=e.payload;try{yield $f(1e3),yield Qf(t.saveAnswer,n),yield Yf(Kp(n))}catch(e){yield Yf(eh(n,e))}th.delete(n.questionId)}function*rh(e){for(;;){const t=yield Vf("SAVE_ANSWER"),n=th.get(t.payload.questionId);n&&(yield Xf(n));const r=yield Jf(nh,t,e);th.set(t.payload.questionId,r)}}function*ih(e){for(;e.selectAnswerVersion;){const t=yield Vf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Qf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Qf(e.selectAnswerVersion,n,r);t&&(yield Yf($p(t)),e.logActivity&&(yield Qf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*oh(e){yield Jf(rh,e),yield Jf(ih,e)}const ah=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Qe(n,s,l):bl(n,s,l)}return n};var sh=Object.prototype.hasOwnProperty;const lh=function(e){if(!ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=oe(e),n=[];for(var r in e)("constructor"!=r||!t&&sh.call(e,r))&&n.push(r);return n},ch=function(e){return de(e)?re(e,!0):lh(e)};var uh="object"==typeof exports&&exports&&!exports.nodeType&&exports,dh=uh&&"object"==typeof module&&module&&!module.nodeType&&module,fh=dh&&dh.exports===uh?A.Buffer:void 0,ph=fh?fh.allocUnsafe:void 0;const hh=ae(Object.getPrototypeOf,Object),gh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Mt(t,kt(e)),e=hh(e);return t}:Et,mh=function(e){return At(e,ch,gh)};var yh=Object.prototype.hasOwnProperty;const vh=function(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t};var bh=/\w*$/;var Ih=E?E.prototype:void 0,xh=Ih?Ih.valueOf:void 0;const wh=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return vh(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?vh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?vh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,bh.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return xh?Object(xh.call(e)):{}}(e)}};var Th=Object.create;const Mh=function(){function e(){}return function(t){if(!ce(t))return{};if(Th)return Th(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Ah=K&&K.isMap;const Eh=Ah?Q(Ah):function(e){return L(e)&&"[object Map]"==Wt(e)};var Ch=K&&K.isSet;const Nh=Ch?Q(Ch):function(e){return L(e)&&"[object Set]"==Wt(e)};var Sh="[object Arguments]",kh="[object Function]",jh="[object Object]",Dh={};Dh[Sh]=Dh["[object Array]"]=Dh["[object ArrayBuffer]"]=Dh["[object DataView]"]=Dh["[object Boolean]"]=Dh["[object Date]"]=Dh["[object Float32Array]"]=Dh["[object Float64Array]"]=Dh["[object Int8Array]"]=Dh["[object Int16Array]"]=Dh["[object Int32Array]"]=Dh["[object Map]"]=Dh["[object Number]"]=Dh[jh]=Dh["[object RegExp]"]=Dh["[object Set]"]=Dh["[object String]"]=Dh["[object Symbol]"]=Dh["[object Uint8Array]"]=Dh["[object Uint8ClampedArray]"]=Dh["[object Uint16Array]"]=Dh["[object Uint32Array]"]=!0,Dh["[object Error]"]=Dh[kh]=Dh["[object WeakMap]"]=!1;const Oh=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!ce(t))return t;var d=F(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&yh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,s)}else{var f=Wt(t),p=f==kh||"[object GeneratorFunction]"==f;if(H(t))return function(e,t){if(t)return e.slice();var n=e.length,r=ph?ph(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==jh||f==Sh||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||oe(e)?{}:Mh(hh(e))}(t),!l)return c?function(e,t){return ah(e,gh(e),t)}(t,function(e,t){return e&&ah(t,ch(t),e)}(s,t)):function(e,t){return ah(e,kt(e),t)}(t,function(e,t){return e&&ah(t,fe(t),e)}(s,t))}else{if(!Dh[f])return o?t:{};s=wh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),Nh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Eh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?mh:jt:c?ch:fe)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),bl(s,o,e(i,n,r,o,t,a))})),s},Lh=function(e,t){return null==(e=function(e,t){return t.length<2?e:Mn(e,Ln(t,0,-1))}(e,t=wn(t,e)))||delete e[Tn(ml(t))]};var Rh=Function.prototype,Ph=Object.prototype,zh=Rh.toString,Uh=Ph.hasOwnProperty,_h=zh.call(Object);const Fh=function(e){return function(e){if(!L(e)||"[object Object]"!=O(e))return!1;var t=hh(e);if(null===t)return!0;var n=Uh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&zh.call(n)==_h}(e)?void 0:e},Bh=Tl((function(e,t){var n={};if(null==e)return n;var r=!1;t=yn(t,(function(t){return t=wn(t,e),r||(r=t.length>1),t})),ah(e,mh(e),n),r&&(n=Oh(n,7,Fh));for(var i=t.length;i--;)Lh(n,t[i]);return n})),Gh={errors:{},nowPlaying:null,playbackTimes:{}},Zh=e=>function(t,n){void 0===n&&(n=Rf);var r,i=!1,o=mp(n),a=function(){i||(i=!0,of(r)&&r(),o.close())};return r=xf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(hp),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){gp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Hh(e,t){const n=yield Qf(Zh,e);try{for(;;){const e=yield Vf(n);yield Yf(t(e))}}finally{(yield qf(Hf,{}))&&n.close()}}function*qh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=vf);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return qf(Zf,{selector:e,args:n})}(Xc(n.restrictedAudioId)):void 0,r=n.audioRef&&n.audioRef.current?yield function(e,t,n){return null!=n&&null!=t.restrictedAudioId?async function(e,t,n,r){try{const i=await e.getRestrictedAudio("",t,r),o=n.querySelector("source");return o.src=URL.createObjectURL(i),n.load(),n.play(),{response:"ok",cleanup:()=>{URL.revokeObjectURL(o.src)}}}catch(e){return{response:"other-error",cleanup:()=>{}}}}(e,t.restrictedAudioId,t.audioRef.current,n):(t.audioRef.current.play(),{response:"ok"})}(e,n,t):yield function*(e,t,n){return{response:null!=n&&null!=t.restrictedAudioId?yield Qf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Qf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield Yf(Hu(n)),yield Qf(Hh,n.duration,Wu),yield Yf(qu())):(yield Yf(Vu(n,r.response)),yield $f(5e3),yield Yf(Yu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Vh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Jf.apply(void 0,[Hp,e,t].concat(r))}("PLAY_AUDIO",qh,e)}const Yh={casStatus:"forbidden"},{createAction:Wh}=Gu.deprecated,Qh=e=>(0,Gu.action)("ALLOW_CAS_COUNTDOWN",e),Jh=Wh("ALLOW_CAS_SUCCEEDED"),Xh=Wh("ALLOW_CAS_CANCELLED"),$h=e=>(0,Gu.action)("UPDATE_CAS_REMAINING",e);function*Kh(e,{payload:t}){try{if("allowed"===(yield Qf(e.setCasStatus,"allowing")))return void(yield Yf(Jh()));yield Yf(Qh(t));const{cancelled:i}=yield(n={finished:Qf(Hh,t,$h),cancelled:Vf("ALLOW_CAS_CANCELLED")},r=qf(_f,n),r.combinator=!0,r);"allowed"===(yield Qf(e.setCasStatus,i?"forbidden":"allowed"))?yield Yf(Jh()):i||(yield Yf(Xh()))}catch(e){console.error(e)}var n,r}function*eg(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Jf.apply(void 0,[qp,e,t].concat(r))}("ALLOW_CAS",Kh,e)}const tg=function(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:_d.INIT}))throw new Error(Pd(12));if(void 0===n(void 0,{type:_d.PROBE_UNKNOWN_ACTION()}))throw new Error(Pd(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(Pd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Jp,t){switch(t.type){case"SAVE_ANSWER":{const{questionId:n}=t.payload,r=function(e,t){const n=new Set(e);return n.delete(t),n}(e.savedQuestionIds,n),i={...e.answersById,[n]:t.payload};return{...e,savedQuestionIds:r,answersById:i}}case"SAVE_ANSWER_FAILED":default:return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=Xp(e.savedQuestionIds,n),i=Xp(e.serverQuestionIds,n),o=Qp(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,validationErrors:o}}case"ANSWER_FOCUSED":{const n=t.payload;return{...e,focusedQuestionId:n}}case"ANSWER_BLURRED":{const n=t.payload;return{...e,focusedQuestionId:e.focusedQuestionId===n?null:e.focusedQuestionId}}}},audio:function(e=Gh,t){switch(t.type){case"PLAY_AUDIO":{const n=t.payload,r={audio:n,durationRemaining:n.duration};return{...e,nowPlaying:r}}case"PLAY_AUDIO_STARTED":{const n=t.payload;if(null!=n.restrictedAudioId){const t=e.playbackTimes[n.restrictedAudioId],r={...e.playbackTimes,[n.restrictedAudioId]:t?t+1:1},i=Bh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=An(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=An(n,"restrictedAudioId",n.src),i=Bh(e.errors,[r]);return{...e,errors:i}}case"PLAY_AUDIO_FINISHED":return{...e,nowPlaying:null};case"UPDATE_REMAINING":{const n=t.payload,r={...e.nowPlaying,durationRemaining:n};return{...e,nowPlaying:r}}default:return e}},cas:function(e=Yh,t){switch(t.type){case"ALLOW_CAS":default:return e;case"ALLOW_CAS_COUNTDOWN":case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"}}}});function*ng(e){yield Jf(oh,e),yield Jf(Vh,e),yield Jf(eg,e)}function rg(e,t,n,r,i){const o=new Set(Od(n,"questionId")),a=function(e,t){var n={};return t=Sn(t),pe(e,(function(e,r,i){Qe(n,r,t(e,r,i))})),n}(Rd(r,"restrictedAudioId"),"times"),s=Rd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:Qp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=_p(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Bd)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Pd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Bd(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Fd(tg,l,u);return c.run(ng,i),d}const ig=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:Sr()("e-audio-group",n)},t().createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),r(e))})),og=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=Ul(),a=Pc(Qc(r)),s=Pc(Jc(r)),l=Wc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(dc),d=(0,e.useRef)(null);return t().createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},t().createElement("p",null,o("audio-test.instructions")),t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-column e-column--narrow"},c&&t().createElement("audio",{ref:d,preload:"none"},t().createElement("source",{src:u(r)})),t().createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&l(Zu({src:r,duration:i,audioRef:d}))},t().createElement(Ka,{className:"e-mrg-r-1",icon:cs,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Bu,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),ag=({children:e})=>t().createElement("footer",{className:"e-footer"},e),sg=Ms({}),lg=t().memo((function(n){const{root:r}=(0,e.useContext)(dc),{t:i}=Ul(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(lc,{"aria-labelledby":ql},t().createElement("h2",{id:ql},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":ql},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":Td(r),key:`${r}${n}`},t().createElement(ld,{element:e,renderChildNodes:sg}))})))):null})),cg=(0,e.memo)((e=>{const{id:n,type:r,answer:i,error:o,displayNumber:a}=e,s=null==i?void 0:i.value,l="richText"===(null==i?void 0:i.type),c=l&&(null==s?void 0:s.includes('src="/math.svg?latex=')),u=l&&((null==s?void 0:s.includes('<img src="/screenshot/'))||(null==s?void 0:s.includes('<img src="data:image/png;')));return t().createElement("div",{className:"answer-indicator-container",onClick:e=>{e.stopPropagation(),window.location.href=`#question-nr-${a}`},key:n},t().createElement("div",{className:Sr()("answer-indicator",{ok:s,error:o,big:"rich-text"===r}),"data-indicator-id":n},"richText"===(null==i?void 0:i.type)&&t().createElement(t().Fragment,null,l&&(null==i?void 0:i.characterCount)&&t().createElement("span",null,i.characterCount)||"",c&&t().createElement("span",{className:"formula"},"∑"),u&&t().createElement("span",{className:"img"},t().createElement(Ka,{icon:os,size:"lg"})))))})),ug=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(dc),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(md),{t:c}=Ul(),{isInSidebar:u}=(0,e.useContext)(ys),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=Pc((e=>e.answers));h=(null==e?void 0:e.answersById)||{};const t=n.querySelectorAll("[question-id]"),r=null===(i=e.validationErrors)||void 0===i?void 0:i.filter((e=>"question"===(null==e?void 0:e.elementType)));g=!!(null==r?void 0:r.find((e=>e.displayNumber===a))),t.forEach((e=>{var t;const n=Number(e.getAttribute("question-id")),i=e.getAttribute("type")||"",o=e.getAttribute("display-number")||"",a=!!(null==r?void 0:r.find((e=>e.displayNumber===o))),s=r.flatMap((e=>"childQuestions"in e?e.childQuestions:[])).includes(o),l=!!(null===(t=h[n])||void 0===t?void 0:t.value);n&&p.push({id:n,type:i,error:a||s&&l,displayNumber:o})}))}const m=!!p.find((e=>e.error)),y=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,v=Number(n.getAttribute("max-answers"))||p.length,b=Oe("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:Sr()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:yc("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:Sr()("numeric-answer-indicator",{error:m,ok:y===v})},y,"/",v),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:yc(o,{hash:Ee(Me(f,"question"),"display-number")}),target:"attachments"},c("material"))),t().createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},c("points",{count:s})),u&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},f&&t().createElement(Ka,{size:"sm",icon:ss,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(cg,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},dg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!F(t)&&L(t)&&"[object String]"==O(t)?e:e.getAttribute("display-number");var t})),{t:a}=Ul(),s=function(e,t,n){const r=[];for(const i of e)for(const e of t)for(const t of n)r.push([i,e,t]);return r}([o.length,"*"],[e,"*"],[null!=n?n:e,"*"]).map((([e,t,n])=>`answering-instructions.${r}_${e}_${n}_${t}`)),l=[n,e],c=[gl(o),ml(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),fg=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(dc),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(gc),{t:c}=Ul(),{isInSidebar:u}=(0,e.useContext)(ys),d=u&&!!Pc((e=>{var t,n;return null===(n=null===(t=e.answers)||void 0===t?void 0:t.validationErrors)||void 0===n?void 0:n.find((e=>e.displayNumber===a&&"section"===(null==e?void 0:e.elementType)))})),f=Oe("section",a);return t().createElement("div",{className:f?"current":""},n.hasChildNodes()&&t().createElement("div",{className:"toc-section-header-container"},t().createElement("h4",{className:"toc-section-header",id:Xl(a)},i.length>1&&c("section",{displayNumber:a})," ",r(n))),l&&t().createElement("div",{style:{display:"grid"},className:`answer-instructions-container section-${a}`},t().createElement("div",{className:Sr()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(dg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},pg=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(gc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(fg,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&Xl(o)},i(n,1)))},hg=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=Ms({section:mc(pg),question:yd(ug)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(dc),{t:s}=Ul(),l=Ce(n,"max-answers"),c=i&&!!Pc((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),u=t().createRef();return(0,e.useEffect)((()=>{var e;const t=e=>{const t=e.currentTarget;if(t.scrollHeight<=t.clientHeight)return;const n=e.deltaY,r=n<0&&0===t.scrollTop,i=n>0&&t.scrollTop>=t.scrollHeight-t.clientHeight;(r||i)&&e.preventDefault()};return null===(e=null==u?void 0:u.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":nc,ref:u},!i&&t().createElement("h2",{id:nc},t().createElement("span",{className:"e-toc-heading"},s("toc-heading"))),r&&l&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:Sr()("answer-instructions",{error:c})},c&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},s("max-answers-warning",{count:l})))),t().createElement(ys.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},o(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},s("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},s("points",{count:a})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},gg=JSON.parse('{"rE":"22.2.0-alpha.9"}'),mg=()=>{const e=An(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||gg.rE)},yg=t().memo(wc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(xc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),vg=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:Sr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Sr()("e-columns",{"e-columns--inline":null==we(n,["image","video"])})},t().createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(i),onChange:o,value:s,checked:e}),c)):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:"e-block e-text-center"},t().createElement("input",{type:"radio",className:"e-radio-button",name:String(i),onChange:o,value:s,checked:e}),c))},bg=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=n.getAttribute("display-number"),a=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),{questionLabelIds:l}=(0,e.useContext)(md),c=Pc((e=>e.answers.answersById[i])),u=Wc(),d=(0,e.useCallback)((e=>{u($p({type:"choice",questionId:i,value:e.currentTarget.value,displayNumber:o}))}),[i,o]);return t().createElement("div",{className:Sr()("e-choice-answer e-mrg-b-4",s,{"e-columns":"horizontal"===a}),"data-question-id":i,role:"radiogroup","aria-labelledby":l},t().createElement("span",{className:"anchor",id:`question-nr-${o}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),o="no-answer"===e.getAttribute("type")?"":n,s=null!=c&&c.value===o;return t().createElement(vg,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));a(4828);const Ig=e=>"object"==typeof e&&null!=e&&1===e.nodeType,xg=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,wg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return xg(n.overflowY,t)||xg(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Tg=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,Mg=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Ag=function(){return Ag=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ag.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Eg=0;function Cg(){}function Ng(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Sg(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function kg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function jg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Dg(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function Og(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=Lg(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Lg(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?Lg(t?o-1:0,t,n,r):-1}function Rg(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(Ng(t,e,n)||r&&Ng(t,n.document.activeElement,n))}))}var Pg=Sg((function(e){zg(e).textContent=""}),500);function zg(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ug={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var _g=Sg((function(e,t){!function(e,t){e&&t&&(zg(t).textContent=e,Pg(t))}(e,t)}),200),Fg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Bg="useId"in t()?function(n){var r=n.id,i=n.labelId,o=n.menuId,a=n.getItemId,s=n.toggleButtonId,l=n.inputId,c="downshift-"+t().useId();return r||(r=c),(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current}:function(t){var n=t.id,r=void 0===n?"downshift-"+String(Eg++):n,i=t.labelId,o=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId;return(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current};function Gg(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Zg(t){var n=(0,e.useRef)(t);return n.current=t,n}function Hg(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=Dg(e,n.props);var r=t(e,n);return n.props.stateReducer(e,ef({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Zg(n),f=(0,e.useCallback)((function(e){return u(ef({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=Dg(o.current,null==p?void 0:p.props);p&&o.current&&!i(e,c)&&function(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,o=t.type,a="on"+Gg(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](ef({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(ef({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var qg={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Ig(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Ig(h)&&d(h);){if(h=Mg(h),h===f){p.push(h);break}null!=h&&h===document.body&&wg(h)&&!wg(document.documentElement)||null!=h&&wg(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:y,scrollY:v}=window,{height:b,width:I,top:x,right:w,bottom:T,left:M}=e.getBoundingClientRect(),{top:A,right:E,bottom:C,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let S="start"===s||"nearest"===s?x-A:"end"===s?T+C:x+b/2-A+C,k="center"===l?M+I/2-N+E:"end"===l?w+E:M-N;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:i,right:o,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&M>=0&&T<=m&&w<=g&&x>=i&&T<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const O="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-C:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===s?S:"end"===s?S-m:"nearest"===s?Tg(v,v+m,m,A,C,v+S,v+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:Tg(y,y+g,g,h,E,y+k,y+k+I,I),N=Math.max(0,N+v),D=Math.max(0,D+y);else{N="start"===s?S-i-A:"end"===s?S-c+C+L:"nearest"===s?Tg(i,c,n,A,C+L,S,S+b,b):S-(i+n/2)+L/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+O/2:"end"===l?k-o+E+O:Tg(u,o,r,h,E+O,k,k+I,I);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+L)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+O)),S+=a-N,k+=e-D}j.push({el:t,top:N,left:D})}return j})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}},environment:"undefined"==typeof window?void 0:window};function Vg(e,t,n){void 0===n&&(n=Ug);var r=e["default"+Gg(t)];return void 0!==r?r:n[t]}function Yg(e,t,n){void 0===n&&(n=Ug);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Gg(t)];return void 0!==i?i:Vg(e,t,n)}function Wg(e){var t=Yg(e,"selectedItem"),n=Yg(e,"isOpen"),r=function(e){var t=Yg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=Yg(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function Qg(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}function Jg(n,r,i,o){void 0===o&&(o={});var a,s=o.document,l=(a=t().useRef(!0),t().useEffect((function(){return a.current=!1,function(){a.current=!0}}),[]),a.current);(0,e.useEffect)((function(){if(n&&!l&&s){var e=n(r);_g(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;_g.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Xg=Cg;function $g(e,t,n){var r;return void 0===n&&(n=!0),ef({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&ef({selectedItem:e.items[t],isOpen:Vg(e,"isOpen"),highlightedIndex:Vg(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Kg(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function em(e){var t=Vg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var tm=ef({},{environment:Fa().shape({addEventListener:Fa().func.isRequired,removeEventListener:Fa().func.isRequired,document:Fa().shape({createElement:Fa().func.isRequired,getElementById:Fa().func.isRequired,activeElement:Fa().any.isRequired,body:Fa().any.isRequired}).isRequired,Node:Fa().func.isRequired}),itemToString:Fa().func,itemToKey:Fa().func,stateReducer:Fa().func},{getA11yStatusMessage:Fa().func,highlightedIndex:Fa().number,defaultHighlightedIndex:Fa().number,initialHighlightedIndex:Fa().number,isOpen:Fa().bool,defaultIsOpen:Fa().bool,initialIsOpen:Fa().bool,selectedItem:Fa().any,initialSelectedItem:Fa().any,defaultSelectedItem:Fa().any,id:Fa().string,labelId:Fa().string,menuId:Fa().string,getItemId:Fa().func,toggleButtonId:Fa().string,onSelectedItemChange:Fa().func,onHighlightedIndexChange:Fa().func,onStateChange:Fa().func,onIsOpenChange:Fa().func,scrollIntoView:Fa().func});Ag(Ag({},tm),{items:Fa().array.isRequired,isItemDisabled:Fa().func});var nm=Ag(Ag({},qg),{isItemDisabled:function(){return!1}}),rm=Cg,im=1,om=2,am=3,sm=4,lm=5,cm=6,um=7,dm=8,fm=9,pm=10,hm=11,gm=14,mm=19,ym=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:mm,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:gm,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:hm,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:im,ToggleButtonKeyDownArrowUp:om,ToggleButtonKeyDownCharacter:am,ToggleButtonKeyDownEnd:cm,ToggleButtonKeyDownEnter:um,ToggleButtonKeyDownEscape:sm,ToggleButtonKeyDownHome:lm,ToggleButtonKeyDownPageDown:pm,ToggleButtonKeyDownPageUp:fm,ToggleButtonKeyDownSpaceButton:dm});function vm(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case gm:r={isOpen:Vg(o,"isOpen"),highlightedIndex:em(o),selectedItem:o.items[t.index]};break;case am:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(a)&&!o(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?o.items.findIndex((function(t){return o.itemToKey(t)===o.itemToKey(e.selectedItem)})):e.highlightedIndex,items:o.items,itemToString:o.itemToString,isItemDisabled:o.isItemDisabled}),isOpen:!0};break;case im:r={highlightedIndex:e.isOpen?Og(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Qg(o,e,1),isOpen:!0};break;case om:r=e.isOpen&&a?$g(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Og(e.highlightedIndex,-1,o.items,o.isItemDisabled):Qg(o,e,-1),isOpen:!0};break;case um:case dm:r=$g(o,e.highlightedIndex,!1);break;case lm:r={highlightedIndex:Lg(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case cm:r={highlightedIndex:Lg(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case fm:r={highlightedIndex:Og(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case pm:r={highlightedIndex:Og(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case sm:r={isOpen:!1,highlightedIndex:-1};break;case hm:r=ef({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case mm:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Qg(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Qg(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:o.isItemDisabled(o.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:em(o),isOpen:Vg(o,"isOpen"),selectedItem:Vg(o,"selectedItem"),inputValue:Vg(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ef({},e,r)}(e,t,ym)}return ef({},e,r)}var bm=["onClick"],Im=["onMouseLeave","refKey","ref"],xm=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],wm=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Tm(t){void 0===t&&(t={}),rm(t,Tm);var n=ef({},nm,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Hg(e,t,n,r),o=i[0],a=i[1];return[Dg(o,t),a]}(vm,n,Wg,Kg),s=a[0],l=a[1],c=s.isOpen,u=s.highlightedIndex,d=s.selectedItem,f=s.inputValue,p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)({}),m=(0,e.useRef)(null),y=Bg(n),v=Zg({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[y.getItemId(e)]}),[y]);Jg(o,s,[c,u,d,f],i);var I=function(t){var n=t.highlightedIndex,r=t.isOpen,i=t.itemRefs,o=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=(0,e.useRef)(!0);return Fg((function(){n<0||!r||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(o(n),a))}),[n]),l}({menuElement:h.current,highlightedIndex:u,isOpen:c,itemRefs:g,scrollIntoView:r,getItemNodeFromIndex:b});(0,e.useEffect)((function(){return m.current=Sg((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Xg({props:n,state:s}),(0,e.useEffect)((function(){Yg(n,"isOpen")&&p.current&&p.current.focus()}),[]);var x=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return Cg;var e=r.map((function(e){return e.current}));function o(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function a(r){i.current.isMouseDown=!1,Rg(r.target,e,t)||n()}function s(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function l(){i.current.isTouchMove=!0}function c(r){i.current.isTouchEnd=!0,i.current.isTouchMove||Rg(r.target,e,t,!1)||n()}return t.addEventListener("mousedown",o),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",o),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[r,t,n]),i.current}(i,(0,e.useCallback)((function(){v.current.state.isOpen&&l({type:hm})}),[l,v]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=Cg;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:im,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:om,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:lm})},End:function(e){e.preventDefault(),l({type:cm})},Escape:function(){v.current.state.isOpen&&l({type:sm})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?um:0})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:fm}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:pm}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:am,key:" "}):l({type:dm}):l({type:0})}}}),[l,v]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),A=(0,e.useCallback)((function(){l({type:17})}),[l]),E=(0,e.useCallback)((function(){l({type:16})}),[l]),C=(0,e.useCallback)((function(e){l({type:18,highlightedIndex:e})}),[l]),N=(0,e.useCallback)((function(e){l({type:mm,selectedItem:e})}),[l]),S=(0,e.useCallback)((function(){l({type:21})}),[l]),k=(0,e.useCallback)((function(e){l({type:20,inputValue:e})}),[l]),j=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,n=t.onClick,r=tf(t,bm);return ef({id:y.labelId,htmlFor:y.toggleButtonId,onClick:kg(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[y]),D=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,o=r.refKey,a=void 0===o?"ref":o,s=r.ref,c=tf(r,Im),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),ef(((n={})[a]=jg(s,(function(e){h.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=kg(i,(function(){l({type:12})})),n),c)}),[l,w,y]),O=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,o=r.onClick;r.onPress;var a=r.onKeyDown,s=r.refKey,c=void 0===s?"ref":s,u=r.ref,d=tf(r,xm),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=v.current.state,m=ef(((n={})[c]=jg(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?y.getItemId(g.highlightedIndex):"",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+y.labelId,n.id=y.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=kg(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:hm})})),n),d);return d.disabled||(m.onClick=kg(o,(function(){l({type:0})})),m.onKeyDown=kg(a,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&T[t]?T[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:am,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,y,v,x,w,T]),L=(0,e.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,o=n.onMouseMove,a=n.onClick,s=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,p=tf(n,wm);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=v.current,m=h.state,b=h.props,w=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(r,i,b.items,"Pass either item or index to getItemProps!"),T=w[0],M=w[1],A=b.isItemDisabled(T,M),E=ef(((t={})[u]=jg(f,(function(e){e&&(g.current[y.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=y.getItemId(M),t.role="option",t),p);return A||(E.onClick=kg(a,(function(){l({type:gm,index:M})}))),E.onMouseMove=kg(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=kg(s,(function(e){return e.preventDefault()})),E}),[v,y,x,I,l]);return{getToggleButtonProps:O,getLabelProps:j,getMenuProps:D,getItemProps:L,toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}Tm.stateChangeTypes=ym,ef({},tm,{items:Fa().array.isRequired,isItemDisabled:Fa().func,inputValue:Fa().string,defaultInputValue:Fa().string,initialInputValue:Fa().string,inputId:Fa().string,onInputValueChange:Fa().func}),ef({},qg,{isItemDisabled:function(){return!1}}),Fa().array,Fa().array,Fa().array,Fa().func,Fa().number,Fa().number,Fa().number,Fa().func,Fa().func,Fa().string,Fa().string;var Mm=a(7767),Am=a.n(Mm);const Em=Promise.all([new(Am())("Noto Sans",{weight:300}).load(),new(Am())("Noto Sans",{weight:400}).load(),new(Am())("Noto Sans",{weight:600}).load()]).then((()=>{Cm=!0})).catch(yl);let Cm=!1;const Nm=({id:e,size:n="small",score:r})=>{const{t:i}=Ul(),o="inline"===n?"sup":"span";return t().createElement(o,{className:Sr()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===n,"e-score--large e-font-size-l e-semibold":"large"===n,"e-score--inline e-font-size-xs":"inline"===n}),id:e},i("points",{count:r}))},Sm=!navigator.userAgent.includes("jsdom/"),km=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=Pc((e=>e.answers.answersById[i])),s=Wc(),l=n.getAttribute("display-number"),c=a&&a.value&&Ae(n,(e=>a.value===e.getAttribute("option-id"))),u=(0,e.useRef)(null),d=t().useRef(null),[f,p]=(0,e.useState)(!0),[h,g]=(0,e.useState)(Cm);Sm&&(Em.then((()=>!h&&g(!0))).catch((e=>console.error(e))),(0,e.useEffect)((()=>p(!0)),[n]),(0,e.useEffect)((()=>{if(f&&d.current&&u.current){const t=d.current,n=u.current,r=(e=Se(t,(e=>e.firstElementChild.scrollWidth)))&&e.length?Un(e,ge,Bn):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:y,questionLabelIds:v}=(0,e.useContext)(md),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:T,selectedItem:M}=Tm({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s($p({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=Ul(),E=$l(n),C=(0,e.useContext)(gs),N=0!==Object.keys(C).length,S={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:Sr()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:Sr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":T}),...x({"aria-describedby":E,"aria-labelledby":v},{suppressRefError:!Sm})},t().createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},t().createElement("span",{className:"e-ellipsis e-block",ref:u},M?r(M):t().createElement("span",{"aria-label":A.raw("dropdown-answer.label")},be))),t().createElement("span",{className:Sr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(Ka,{icon:T?is:us}))),t().createElement("span",{...I({className:Sr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!Sm})},m.map(((e,n)=>t().createElement("span",{className:Sr()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===M,"e-bg-color-off-white":w!==n,"e-bg-color-link e-color-off-white":w===n}),key:n,...b({item:e,index:n}),...N?S:{}},t().createElement("span",{className:Sr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":A.raw("dropdown-answer.clear")},be))))))),y.length>1&&t().createElement(Nm,{score:o,size:"inline",id:E}))})),jm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),Dm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"exam-instruction notification e-pad-4","data-annotation-anchor":"exam-instruction"},n(e))})),Om=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(pc),{examineExam:r}=n,{t:i}=Ul();return t().createElement("button",{className:"e-button goto-examine-answers",onClick:()=>{r&&(r(),window.scrollTo(0,0))},"aria-describedby":"examineExamInstructions"},i("examine-exam.examine"))}));function Lm(e){return`${ml(e.split("."))}.`}function Rm({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Ae(e,"hint"),s=je(e);return t().createElement("p",{className:Sr()("e-hints__hint",{"e-hints__hint--focused":n===i}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${i}"]`);e&&e.focus()},"data-question-id":i},s&&Lm(o)," ",r(a))}const Pm=({element:e,renderChildNodes:n})=>{const r=Pc((e=>e.answers.focusedQuestionId)),i=Te(e,["text-answer","scored-text-answer"]).filter((e=>null!=Ae(e,"hint")));return i.length>0?t().createElement("div",{className:"e-columns"},t().createElement("div",{className:"e-column e-column--8"},n(e)),t().createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},i.map(((e,i)=>t().createElement(Rm,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},zm=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Um=t().memo(yd((function({element:n,renderChildNodes:r}){const i=Pc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(gc),{displayNumber:a,level:s}=(0,e.useContext)(md),{examServerApi:l}=(0,e.useContext)(pc),[c,u]=(0,e.useState)(!1),{t:d}=Ul(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`);const t=document.querySelector("body");e?null==t||t.classList.add("writer-mode"):(null==t||t.classList.remove("writer-mode"),null==t||t.classList.remove("rich-text-editor-focus"),setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10))},p=e=>{"Tab"===e.code&&e.preventDefault()},h=we(n,"text-answer"),g=h?Ce(h,"question-id"):null;(0,e.useEffect)((()=>{if(c){window.addEventListener("keydown",p);const e=g?document.querySelector(`[data-question-id="${g}"]`):void 0;null==e||e.focus()}return()=>window.removeEventListener("keydown",p)}),[c]);const m=t().createRef(),{addRef:y}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&y&&y(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(zm.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:Sr()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0,"e-expanded":c}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:m},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement("div",{className:"full-screen","data-full-screen-id":a},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(Ka,{icon:ns}),d("close-writing-mode")),r(n)):r(n)))}))),_m=t().memo((function({element:e,renderChildNodes:n}){const r=Wl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Fm=()=>t().createElement(Ka,{size:"lg",icon:ls,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),Bm=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(md),c=`h${Math.min(3+a,6)}`,u=Yl(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:Sr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${Td(i)} `),r(n)," ",t().createElement(Nm,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),Gm=({duration:n,durationRemaining:r,className:i})=>{const o=(0,e.useRef)(null),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{o.current.clientTop,s(!0)}),[]),t().createElement("div",{className:Sr()("e-progress-bar",i),ref:o},t().createElement("div",{className:Sr()("e-progress-bar__fill",{"e-progress-bar__fill--animating":a}),style:{transitionDuration:`${n}s`},role:"progressbar","aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":n-r}))};function Zm(){const{t:e}=Ul();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Hm(n){const r=Wc(),{t:i}=Ul(),{casCountdownDuration:o}=(0,e.useContext)(pc);return t().createElement("div",{className:"e-cas-controls"},"forbidden"===n.casStatus?t().createElement("div",{className:"e-text-center"},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",null,i("cas.examineSectionA"),t().createElement("br",null),i("cas.cannotEditLater")),t().createElement(Om,null),t().createElement("p",null,i("cas.youCanReturn")),t().createElement("p",{className:"dots-separator"},"•••"),t().createElement("p",{id:"e-cas-controls-forbidden-description"},i("cas.forbidden.infoText")),t().createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return r((e=o,(0,Gu.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},i("cas.forbidden.buttonText"))):"allowing"===n.casStatus?t().createElement("div",{className:"e-text-center",ref:e=>null!=e&&o===n.durationRemaining&&e.scrollIntoView()},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",{id:"e-cas-controls-allowing-description"},i("cas.allowing.infoText")),t().createElement(Gm,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Xh()),ref:e=>null!=e&&o===n.durationRemaining&&e.focus(),"aria-describedby":"e-cas-controls-allowing-description"},i("cas.allowing.cancel",{count:n.durationRemaining}))):t().createElement("div",{className:"notification e-text-left e-mrg-b-0"},i("cas.allowed.infoText")))}const qm=t().memo(mc((function({element:n,renderChildNodes:r}){const i=Pc((e=>e.cas),Gc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(gc),{sections:s}=(0,e.useContext)(dc),l=n===ml(s);return t().createElement(lc,{className:"exam-section","aria-labelledby":Vl(a)},r(n),o&&t().createElement(Hm,{...i}),l&&t().createElement(Zm,null))}))),Vm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Ym=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(dc),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(gc),{t:c}=Ul(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==u?void 0:u.current)&&d&&d(u.current)}),[]),t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"exam-section-title",id:Vl(o),"data-toc-id":`section-${o}`,ref:u},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Wm=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Qm=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Jm=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=Ul(),c=null==e?void 0:e.characterCount,u=Ce(n,"max-length");return t().createElement("div",{className:"answer-toolbar e-font-size-xs e-columns e-mrg-b-2"},t().createElement("div",{className:Sr()("answer-toolbar__answer-length e-column",{"e-color-error":null!=i})},null!=e?l(null!=u?"answer-length-with-max-length":"answer-length",{count:c,maxLength:u}):be,r?t().createElement("span",{className:"e-color-error",role:"alert"}," ",l(`answer-errors.${r.key}`,r.options)):i?t().createElement("span",null," ",l("answer-errors.answer-too-long",{count:i.characterCount})):null),t().createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},s&&t().createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?t().createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(o){const t=Ae(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));class Xm extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(An(e,"response.status")){case 409:return"screenshot-byte-limit-reached";case 413:return"screenshot-too-big";default:return"screenshot-upload-failed"}})();this.props.onError({key:t})},this.handleChange=e=>{const{onChange:t}=this.props;this.lastHTML=e.answerHtml,t(e.answerHtml,e.answerText)},this.editorRef=t().createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidUpdate(){this.editorRef.current&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(this.lastHTML=this.props.answer.value,this.editorRef.current.setValue(this.props.answer.value))}render(){const{questionId:e,className:n,labelledBy:r,answer:i,lang:o,invalid:a,saveScreenshot:s}=this.props;return t().createElement(zm.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Cr(),{ref:this.editorRef,baseUrl:"",initialValue:null==i?void 0:i.value,language:this.context.language.slice(0,2).toUpperCase(),onValueChange:this.handleChange,getPasteSource:e=>s(e).catch((e=>{throw this.handleSaveError(e),e})),textAreaProps:{ariaInvalid:a,ariaLabelledBy:r,id:e.toString(),questionId:e,className:n,lang:o}}),!l&&t().createElement("button",{className:"expand open",onClick:()=>c(!0),"aria-labelledby":"expand-label","aria-owns":String(e)},t().createElement(Km,null),t().createElement(Ka,{icon:ds})))))}}Xm.contextType=dc;const $m=Xm,Km=()=>{const{t:e}=Ul();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},ey=t().memo((({maxLength:e,id:n})=>{const{t:r}=Ul();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Fm,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function ty(e){return e.replace(/\s/g,"").length}const ny=t().memo((({element:n,className:r})=>{const i=Ee(n,"type"),o=Ce(n,"question-id"),a=Ee(n,"display-number"),s=Ce(n,"max-score"),l=Ne(n,"use-language-of-instruction"),c=Ce(n,"max-length"),{language:u}=(0,e.useContext)(dc),{questionLabelIds:d,answers:f}=(0,e.useContext)(md),{examServerApi:p}=(0,e.useContext)(pc),[h,g]=(0,e.useState)(),m=Pc((e=>e.answers.answersById[o])),y=Pc((e=>e.answers.supportsAnswerHistory)),v=Pc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=Pc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=Wc(),x=(0,e.useRef)(null),w=m&&m.value,T=$l(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Ql(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=x;e&&("single-line"!==i&&"integer"!==i||(e.style.width="0",e.style.width=`${e.scrollWidth+2}px`))}));const C=(0,e.useCallback)((e=>{const t=e.currentTarget.value.trim(),n={type:"text",questionId:o,value:t,characterCount:ty(t),displayNumber:a};I($p(n)),g(void 0)}),[o,a]),[N,S]=(0,e.useState)((null==m?void 0:m.value)||""),k=(0,e.useCallback)((e=>{e.preventDefault(),e.currentTarget.classList.remove("text-answer--integer--input-error");const t=e.currentTarget.value.trim();if(/^-?\d*$/.test(t)){S(t);const e={type:"text",questionId:o,value:t,characterCount:ty(t),displayNumber:a};I($p(e)),g(void 0)}else e.currentTarget.classList.add("text-answer--integer--input-error"),setTimeout((e=>{e.classList.remove("text-answer--integer--input-error")}),200,e.currentTarget)}),[o,a]),j=(0,e.useCallback)(((e,t)=>{const n={type:"richText",questionId:o,value:e,characterCount:ty(t),displayNumber:a};I($p(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),O=(0,e.useCallback)((()=>I((e=>(0,Gu.action)("ANSWER_FOCUSED",e))(o))),[o]),L=(0,e.useCallback)((()=>I((e=>(0,Gu.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Gu.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}))(e,t))),[]);switch(i){case"rich-text":return t().createElement(t().Fragment,null,null!=c&&t().createElement(ey,{maxLength:c,id:Ql(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement($m,{answer:m,className:Sr()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:A,invalid:M,labelledBy:E}),t().createElement(Jm,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:v,supportsAnswerHistory:y,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Sr()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:O,onBlur:L,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(Nm,{score:s,size:"inline",id:T}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Sr()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:O,onBlur:L,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(Nm,{score:s,size:"inline",id:T}))}})),ry=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(ny,{...e}),s=je(n);return t().createElement(t().Fragment,null,t().createElement("span",{className:"anchor",id:`question-nr-${i}`}),o?t().createElement("label",{className:"e-nowrap"},s&&t().createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},Lm(i)),t().createElement(Qm,null,r(o)),a):a)}));var iy=a(6660),oy=a.n(iy);class ay extends t().PureComponent{constructor(e){super(e),this.inputValueChanged=()=>{this.props.onChange(this.props.answerIndex),this.labelInputRef&&this.labelInputRef.current&&this.labelInputRef.current.scrollIntoView({block:"center"})},this.entryInputRef=t().createRef(),this.labelInputRef=t().createRef()}componentDidMount(){this.entryInputRef.current&&0===this.props.answerIndex&&this.entryInputRef.current.focus()}render(){const{selected:e,croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}=this.props;return t().createElement("label",{ref:this.labelInputRef,className:"js-undo-history-entry"},t().createElement("input",{type:"radio",className:"e-undo-view-entry-tab",name:"undoHistory",value:o,checked:e,onChange:this.inputValueChanged,ref:this.entryInputRef}),t().createElement(sy,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const sy=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=Ul(),s=[n>0?a("undo.answerCharacterCount",{count:n}):null,r>0?a("undo.answerImageCount",{count:r}):null].filter((e=>null!==e));return t().createElement("div",{className:"e-undo-view-entry js-undo-entry-content"},t().createElement("div",{className:"js-undo-history-entry-time"},0===i?a("undo.latestVersion"):a("undo.minutesSinceAnswer",{minutes:o})),t().createElement("div",{className:"e-undo-view-answer-cropped js-undo-history-entry-answer"},e||a("undo.answerNoText")),t().createElement("div",{className:"e-undo-view-answer-length js-undo-history-entry-stats"},s.map(((e,n)=>t().createElement(t().Fragment,{key:n},e,n<s.length-1&&t().createElement("span",null,", "))))))};var ly=a(4867),cy=a.n(ly);const uy=oy().CancelToken;function dy(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function fy(e){const{selectedAnswer:n}=e;return n?"richText"===n.type?t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail",dangerouslySetInnerHTML:{__html:n.value}}):t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail plainText"},n.value):null}function py(e){const{selectedAnswer:n,selectedAnswerIndex:r,restoreAnswer:i,questionId:o}=e,a=!n||0===r;return t().createElement("div",{className:"e-undo-view-bottom-bar"},t().createElement("button",{className:"e-button-default e-button js-restore-answer-button",disabled:a,onClick:()=>n&&i({...n,questionId:o})},t().createElement(xy,null)))}function hy(e){return("text"===e.type?e.value:function(e){const t=document.createElement("div");return t.innerHTML=e,t.innerText}(e.value)).replace(/\s+/g," ").trim()}function gy(e,t=50){const n=hy(e);if(n.length<=t)return n;const r=t-1,i=Math.ceil(r/2),o=r-i;return n.substr(0,i)+"…"+n.substr(n.length-o)}function my(e){return hy(e).replace(/\s/g,"").length}function yy(e){const t=document.createElement("div");t.innerHTML=e.value;const n=t.querySelectorAll("img").length,r=t.querySelectorAll('img[src=""]').length;return n-t.querySelectorAll('img[src^="/math.svg"], img[src^="data:image/svg+xml"]').length-r}class vy extends t().PureComponent{constructor(e){super(e),this.source=uy.source(),this.toggleBodyScroll=e=>document.documentElement.classList.toggle("e-exam-body-no-scroll",!e),this.keydownListener=e=>{if(13===e.keyCode){const e=this.state.answers[this.state.selectedAnswerIndex];this.props.restoreAnswer({...e,questionId:this.props.questionId}),this.close()}else 27===e.keyCode&&this.close()},this.state={answers:[],selectedAnswerIndex:0,loading:!0,loadRetryTimeout:null}}componentDidMount(){this.toggleBodyScroll(!1),document.addEventListener("keydown",this.keydownListener,!1),this.fetchAnswerHistory(this.props.questionId)}componentWillUnmount(){this.source.cancel(),document.removeEventListener("keydown",this.keydownListener,!1),this.toggleBodyScroll(!0)}componentDidUpdate(e){this.props.questionId!==e.questionId&&this.fetchAnswerHistory(this.props.questionId)}overlayClicked(e){e.target.className.includes("js-undo-overlay")&&this.close()}async fetchAnswerHistory(e){try{const t=(await oy().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(dy);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){oy().isCancel(t)||this.setState({loadRetryTimeout:window.setTimeout((()=>{this.fetchAnswerHistory(e)}),4e3)})}}close(){const e=this.state.loadRetryTimeout;e&&clearTimeout(e),this.source.cancel(),this.props.close()}render(){const e=this.state.answers[this.state.selectedAnswerIndex],n=(new Date).getTime();return t().createElement(cy(),null,t().createElement("div",{onClick:this.overlayClicked.bind(this),className:"e-overlay js-undo-overlay","aria-modal":"true"},t().createElement("div",{id:"undo",className:"e-undo-view"},t().createElement(Iy,{close:this.close.bind(this)}),this.state.loading?t().createElement(by,null):t().createElement("div",{className:"e-undo-view-content"},t().createElement("div",{className:"e-undo-view-answer-index js-undo-answer-index"},this.state.answers.map(((e,r)=>{const i=n-new Date(e.answerTime).getTime(),o=Math.round(i/1e3/60);return t().createElement(ay,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:gy(e),minutesSinceAnswer:o,characterCount:my(e),screenshotCount:yy(e)})}))),t().createElement("div",{className:"e-undo-view-right-panel"},t().createElement("div",{className:"e-undo-view-header js-undo-view-header"},t().createElement("h3",{className:"e-undo-view-title js-undo-view-title"},this.props.title)),t().createElement(fy,{selectedAnswer:e}),t().createElement(py,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const by=()=>{const{t:e}=Ul();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},Iy=({close:e})=>{const{t:n}=Ul();return t().createElement("div",null,t().createElement("img",{src:"img/closeButton.svg",id:"closeUndoDialogButton",className:"e-undo-view-close-overlay-button js-close-undo-dialog-button",onClick:e,tabIndex:0,role:"button","aria-label":n("undo.close")}))},xy=()=>{const{t:e}=Ul();return t().createElement("div",null,e("undo.restoreAnswer"))},wy=e=>{const{t:n}=Ul(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(Ay,{...e}):""," ",t().createElement(dg,{...e}))},Ty=({displayNumber:e,characterCount:n})=>{const{t:r}=Ul();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function My({validationErrors:e,inExam:n}){return e.length>0?t().createElement("div",{className:Sr()({"error-indicator e-bg-color-error e-color-off-white":n,"e-font-size-xs":n},"e-columns e-columns--inline e-pad-1 e-mrg-r-1"),role:"alert"},t().createElement("div",{className:"e-column e-column--narrow",style:{color:"#f90"}},t().createElement(Ka,{size:"lg",icon:fs,fixedWidth:!0,className:"e-mrg-r-1"})),t().createElement("div",{className:"e-column e-column--gapless"},e.map((e=>{const n=e.type+e.displayNumber;return"ExtraAnswer"===e.type?t().createElement(wy,{...e,key:n}):t().createElement(Ty,{...e,key:n})})))):null}const Ay=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(dc),i=Ae(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Ae(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},Ey=t().memo((()=>{const e=Pc((e=>e.answers.validationErrors));return t().createElement(My,{validationErrors:e,inExam:!0})})),Cy=t().memo((function(){const e=Pc(Kc),{t:n}=Ul();return"initial"===e?null:t().createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:Sr()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),Ny=Ms({attachment:yg,"attachment-link":bc("link"),"attachment-links":Ic("link"),audio:Xu,"audio-title":ac,"audio-group":ig,"audio-test":og,"choice-answer":bg,"dropdown-answer":km,"exam-footer":jm,"external-material":Ku,file:ed,formula:td,image:id,question:Um,"question-number":vd,translation:bd,"question-instruction":_m,"question-title":Bm,hints:Pm,references:lg,"scored-text-answer":ry,"scored-text-answers":Pm,"section-instruction":Vm,section:qm,"section-title":Ym,"text-answer":ry,video:cd,"image-overlay":gd}),Sy=()=>{const{t:e}=Ul();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},ky=t().memo(hc(fc((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotations:u,onClickAnnotation:d,onSaveAnnotation:f})=>{const{date:p,dateTimeFormatter:h,dayCode:g,examCode:m,language:y,resolveAttachment:b,root:I,subjectLanguage:x}=(0,e.useContext)(dc),w=Ae(I,"exam-title"),T=Ae(I,"exam-instruction"),M=Ae(I,"table-of-contents"),A=Ae(I,"external-material"),E=I.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=ic((()=>rg(Nd(n),r,i,o,a))),S=ic((()=>hg({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=ic((()=>hg({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=ic((()=>zl(y,m,g)));(0,e.useEffect)(_l(j,y)),(0,e.useEffect)(rc,[]);const[D,O]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(L),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const L=e=>e.forEach((e=>{const t=e.target.getAttribute("data-toc-id");P((n=>e.isIntersecting?[...n,t]:n.filter((e=>e!==t))))})),[R,P]=(0,e.useState)([]);(0,e.useEffect)((()=>{R.forEach((e=>{const t=e.replace("question-",""),n=document.querySelector(`.table-of-contents li[data-list-number="${t}."]`);if(n){const e=(e=>{const t=e.getBoundingClientRect();return t.top>=100&&t.bottom<=window.innerHeight-100})(n),t=document.querySelector(".sidebar-toc-container .table-of-contents");if(!e&&t){const e=t.getBoundingClientRect().height,r=n.offsetTop-e/2;t.scrollTo({behavior:"smooth",top:r})}}}))}),[R]);const z=void 0!==a.examineExam,U="[Kokelaan Nimi]"===s;return t().createElement(Zc,{store:N},t().createElement(ms,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ve.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||O((t=>[...t,e]))}}},t().createElement(v,{i18n:j},t().createElement("main",{className:"e-exam",lang:x,"aria-labelledby":Hl,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:b(E)}),t().createElement("div",{className:"e-toc-and-exam"},M&&t().createElement("div",{className:"sidebar-toc-container","aria-hidden":"true"},t().createElement(S,{element:M,renderChildNodes:Ny})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Wm,{studentName:s}),t().createElement(lc,{"aria-labelledby":Hl},w&&t().createElement(oc,{id:Hl},Ny(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(Dm,{element:T,renderChildNodes:Ny}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:Ny})),A&&t().createElement(Ku,{element:A,renderChildNodes:Ny,forceRender:!0})),Ny(I),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(Om,null),t().createElement(Sy,null))))),(U||z)&&t().createElement(ag,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(mg,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(Ey,null),t().createElement(Cy,null)),l&&z&&t().createElement(vy,{...c}))))))})))),jy=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${cc(n)})`,r},Dy=t().createContext({}),Oy=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(Dy),{displayNumber:o}=(0,e.useContext)(md);return t().createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},i?t().createElement(i,{element:n,displayNumber:o}):r(n))},Ly=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(md),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(ey,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(Oy,{element:o,renderChildNodes:r}));if(1===i.length)return s;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Ae(n,"hint");return t().createElement("div",{className:"e-mrg-l-8"},t().createElement("p",{className:"exam-question-title"},t().createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},e," "),o&&r(o)," ",t().createElement(Nm,{score:i})),s)}},Ry=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=Ul();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Py=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),zy=yd((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(md);return t().createElement("div",{className:Sr()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:i,"data-annotation-anchor":i},t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),r(n,1))})),Uy=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=Ul(),o=Ae(e,["audio-title","video-title"]);return t().createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},t().createElement("summary",null,t().createElement("strong",null,i("recording"))," ",o&&t().createElement("em",null,n(o))),n(r))}return null},_y=mc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement(lc,{className:"e-grading-instruction-section","aria-labelledby":Vl(i)},r(n))})),Fy=({EditorComponent:e,children:n})=>t().createElement(Dy.Provider,{value:{EditorComponent:e}},n),By=jy((({element:e})=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction"]))),Gy=jy((({element:e})=>null==Me(e,["external-material"]))),Zy=Ms({"accepted-answer":Ry,attachment:sc,"attachment-link":Gy(bc("plain")),"attachment-links":Gy(Ic("plain")),audio:Uy,"audio-group":sc,"choice-answer":Ly,"choice-answer-option":Ry,"dropdown-answer":Ly,"dropdown-answer-option":Ry,"external-material":sc,file:By(ed),formula:By(td),hints:sc,image:By(id),question:zy,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(md),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:Sr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${Td(i)} `),r(n)," ",t().createElement(Nm,{score:o,size:0===a?"large":"small"})))},"question-instruction":_m,"question-grading-instruction":Oy,"question-number":vd,translation:bd,"scored-text-answer":Ly,"text-answer":Ly,section:_y,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(dc),{displayNumber:o}=(0,e.useContext)(gc),{t:a}=Ul();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:Vl(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Uy}),Hy=()=>{const{t:e}=Ul();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},qy=t().memo(fc((({doc:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o,EditorComponent:a})=>{const s=n.documentElement,{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,subjectLanguage:p}=(0,e.useContext)(dc),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),y=hg({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=ic((()=>zl(f,d,u)));return(0,e.useEffect)(_l(b,f)),(0,e.useEffect)(rc,[]),t().createElement(ms,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Fy,{EditorComponent:a},t().createElement(v,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(lc,{"aria-labelledby":Hl},t().createElement(oc,{id:Hl},t().createElement(Hy,null)," ",h&&Zy(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Py,{element:g,renderChildNodes:Zy}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(y,{element:m,renderChildNodes:Zy}))),Zy(s)))))}))),Vy=t().createContext({}),Yy=uc(Vy,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Rd(i,"questionId"),s=function(e,t,n,r){return Pn(e.map((e=>function(e,t,n,r){const i=Pn(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=Wy(t,e);return i?null===(r=i.options.find((e=>e.id===Number(n.value))))||void 0===r?void 0:r.score:0})(i,o):(e=>{var t,r;const i=Qy(n,e);return i&&(null===(r=[i.inspection,null===(t=i.censoring)||void 0===t?void 0:t.scores[0],i.autograding,i.pregrading].find(Boolean))||void 0===r?void 0:r.score)||0})(i):0})));return 0===Ie(e,"question").length&&i<0?0:i}(e,t,n,r))))}(Te(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function Wy(e,t){const n=(null==e?void 0:e.questions.filter((e=>"choicegroup"===e.type)))||[];for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,n=r.choices.length;e<n;e++)if(r.choices[e].id===t)return r.choices[e]}}function Qy(e,t){return e.find((e=>e.questionId===t))}const Jy=()=>{const{gradingStructure:t}=(0,e.useContext)(Vy);return void 0===t},Xy=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(md),c=Jy(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Vy),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=Ul();return c?null:t().createElement("span",{className:Sr()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":o}),id:u},f&&t().createElement("div",{className:"non-answer"},p("grading.non-answer-not-graded")),t().createElement("span",{className:"e-result-scorecount-border-wrap"},n.length>1&&r&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),$y=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(md),{t:s}=Ul(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(Xy,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))}));function Ky({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=Ul(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:Sr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":n})},e(r)),d=({narrow:e=!1})=>t().createElement(t().Fragment,null,t().createElement("input",{type:"radio",className:Sr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(Qm,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Sr()("e-columns",{"e-correct-answer-left":a,"e-columns--inline":null==we(r,["image","video"])})},t().createElement(d,{narrow:!0}))):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:Sr()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const ev=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Vy),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=Wy(s,l),p=c&&(null===(o=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.find((e=>e.id===Number(c.value))))||void 0===o?void 0:o.score),h=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement($y,{score:p,maxScore:h,questionId:l}),t().createElement("div",{className:Sr()("e-choice-answer",d,{"e-columns":"horizontal"===u})},Se(n,(e=>{var n;const i=Ce(e,"option-id"),o=null!=c&&Number(c.value)===i,a=null===(n=null==f?void 0:f.options)||void 0===n?void 0:n.find((e=>e.id===i));return t().createElement(Ky,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),tv=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=Ul(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Vy),{answers:c}=(0,e.useContext)(md),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=Jy(),h=Wy(l,u),g=(null==h?void 0:h.options.filter((e=>e.correct)).map((e=>e.id)))||[],m=Array.from(n.children).filter((e=>g.includes(Ce(e,"option-id")))),y=f&&g.includes(Ce(f,"option-id")),v=Lm(n.getAttribute("display-number")),b=d&&(null===(i=null==h?void 0:h.options.find((e=>e.id===Number(d.value))))||void 0===i?void 0:i.score)||0,I=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,v),t().createElement("span",{className:Sr()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":y,"e-dropdown-answer__answered--wrong":!y}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Qm,null,o("screen-reader.answer-end")),y&&t().createElement(Qm,null,o("screen-reader.correct-answer"))),!p&&!y&&t().createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},m.map(((e,n)=>t().createElement(t().Fragment,{key:n},r(e),n<m.length-1&&", ")))),null!=b&&t().createElement($y,{score:b,maxScore:I,displayNumber:v,questionId:u}))}));function nv({pregradingAnnotations:e,censoringAnnotations:n,singleGrading:r}){return e.length||n.length?t().createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},r?t().createElement("div",{className:"e-column e-column--10"},t().createElement(rv,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(rv,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(rv,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const rv=({i18nTitleKey:e,annotations:n})=>{const{t:r}=Ul();return n?t().createElement(t().Fragment,null,e&&t().createElement("h5",null,r(e)),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},n.map((({numbering:e,message:n})=>t().createElement("li",{"data-list-number":e,key:e},n))))):null},iv=t().memo((function(){const{answers:n}=(0,e.useContext)(md),{scores:r,singleGrading:i}=(0,e.useContext)(Vy),o=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);void 0!==i&&n.push(i)}return n}(n||[],(e=>{const t=Ce(e,"question-id"),n=Qy(r,t);return n&&e&&(e=>{var t,n,r,i;return Boolean((null===(n=null===(t=null==e?void 0:e.pregrading)||void 0===t?void 0:t.annotations)||void 0===n?void 0:n.length)||(null===(i=null===(r=null==e?void 0:e.censoring)||void 0===r?void 0:r.annotations)||void 0===i?void 0:i.length))})(n)?[e,n]:void 0})),a=(e,t,r=0)=>Vp(e,(([e,i])=>{var o,a,s;return null!==(s=null===(a=null===(o=i[t])||void 0===o?void 0:o.annotations)||void 0===a?void 0:a.filter((e=>e.message.length)).map(((t,i)=>{const o=`${((e,t)=>e.length>1?Lm(t.getAttribute("display-number")):"")(n,e)+String(r+i+1)})`;return{numbering:o,message:t.message}})))&&void 0!==s?s:[]})),s=a(o,"pregrading"),l=a(o,"censoring",s.length);return t().createElement(nv,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),ov=t().memo(yd((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Vy),{displayNumber:l,level:c}=(0,e.useContext)(md),u=function(e,t){return ke(e).some((e=>{var n;return null===(n=t[Ce(e,"question-id")])||void 0===n?void 0:n.value}))}(n,a),{i18n:d}=Ul(),f=null===(i=null==s?void 0:s.questions)||void 0===i?void 0:i.find((e=>e.displayNumber===l)),p=f&&("choices"in f?f.choices[0].id:f.id),h=!!p&&(null===(o=a[p])||void 0===o?void 0:o.answerNonAnswer);return t().createElement("div",{className:Sr()("e-exam-question",`e-level-${c}`,{"e-mrg-b-8 e-clearfix":0===c,"e-mrg-l-8 e-mrg-y-4":c>0,"no-answer":!u,"non-answer":h}),id:l,"aria-description":u?void 0:d.t("examineExam.questionHasNoAnswer")},r(n),t().createElement(iv,null))}))),av=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(md),c=`h${Math.min(3+o,6)}`,u=Jy();return t().createElement(t().Fragment,null,t().createElement(c,{className:Sr()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:Sr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${Td(i)} `),r(n)," ",u&&t().createElement(Nm,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Fm,null),t().createElement(dg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),sv=t().memo(mc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement(lc,{"aria-labelledby":Vl(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),lv=5;function cv(e,t,n,r=!0){const i=[...t,...n],o=i.filter((e=>e.message));for(const[n,a]of i.entries()){const i=t.includes(a)?"pregrading":"censoring",s=o.indexOf(a)+1||void 0,l="pregrading"===i?n:n-t.length;switch(a.type){case"line":case"rect":fv(e,a,i,l,s,r);break;default:hv(e,a,i,l,s,r)}}}function uv(e,t){const n=e.style,r=e=>100*e+"%";"rect"===t.type?(n.left=r(t.x),n.top=r(t.y),n.right=r(1-(t.x+t.width)),n.bottom=r(1-(t.y+t.height))):(n.left=r(t.x1),n.top=r(t.y1),n.right=r(1-t.x2),n.bottom=r(1-t.y2))}function dv(e){const t=e.parentElement;if(t instanceof HTMLSpanElement)return t;const n=De("span",{className:"e-annotation-wrapper"});return t.insertBefore(n,e),n.appendChild(e),n}function fv(e,t,n,r,i,o){const{attachmentIndex:a}=t;return pv(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function pv(e,t,n,r,i,o){const a=dv(e),s=function(){const e=De("mark",{className:Sr()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===r,"e-annotation--censoring":"censoring"===r}),title:t,"data-list-index":String(i),"data-type":r,...o&&{"data-index":String(o)},...n.message&&{"data-message":n.message}});return uv(e,n),o&&e.appendChild(gv(o,"shape",n.message)),e}();return a.appendChild(s),s}function hv(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(!l(f)&&!function(e){return"SUP"===e.nodeName}(f)&&!function(e){return"BR"===e.nodeName}(f)&&p>=a){const a=De("mark",{className:Sr()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:o?t.message:"","data-list-index":String(r),"data-type":n,...i&&{"data-index":String(i)},...t.message&&{"data-message":t.message}});null===(g=f.parentElement)||void 0===g||g.insertBefore(a,f);const l=d(a,f,h);l>0?e(c(a),p+s-l,l):i&&a.appendChild(gv(i,"text",t.message))}else f instanceof Text&&p+u(f)>a&&f.splitText(a-p),e(function(e){return l(e)?e.childNodes[0]:c(e)}(f),p+u(f),h)}(e.childNodes[0],0,s);function l(e){return"MARK"===e.nodeName}function c(t){const n=t.nextSibling;if(n)return n;const r=t.parentElement;if(null===r||r===e)throw new Error("Bug: the answer seems to be too short for the current set of annotations.");return c(r)}function u(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}function d(e,t,n){if(!t||l(t)||0===n)return n;t instanceof Text&&u(t)>0&&u(t)>n&&t.splitText(n);const r=t.nextSibling;return e.appendChild(t),d(e,r,n-u(t))}}function gv(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>lv?`${e})`:n,"data-message":n})}const mv=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=Ul(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&cv(c.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement(t().Fragment,null,n&&o.length>1&&t().createElement("sup",null,n),t().createElement("span",{className:Sr()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Qm,null,s("screen-reader.answer-end"))),a)})),yv=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(md),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Vy),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Lm(n.getAttribute("display-number")),d=Qy(o,a),f=null==d?void 0:d.autograding;return t().createElement(mv,{answers:r,displayNumber:u,value:c,score:d},t().createElement($y,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function vv({maxScore:e}){const{t:n}=Ul();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function bv({shortCode:e}){return t().createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},t().createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),t().createElement("span",null,e))}function Iv({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=Ul();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(xv,{className:Sr()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(xv,{className:"e-result-scorecount-shortcode"},n),t().createElement(xv,{className:"e-mrg-r-0"},a(r)))}function xv({className:e,children:n}){return t().createElement("span",{className:Sr()("e-mrg-r-1 e-nowrap",e)},n)}function wv({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function Tv(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const Mv=t().memo((function({scores:n,maxScore:r,displayNumber:i,multilineAnswer:o,questionId:a}){var s,l,c,u,d;const{answers:f}=(0,e.useContext)(md),p={answers:f,displayNumber:i,multilineAnswer:o,questionId:a},h=null===(l=null===(s=null==n?void 0:n.censoring)||void 0===s?void 0:s.nonAnswerDetails)||void 0===l?void 0:l.shortCode;return t().createElement(Xy,{...p},null!=(null===(c=null==n?void 0:n.pregrading)||void 0===c?void 0:c.score)||(null===(d=null===(u=null==n?void 0:n.censoring)||void 0===u?void 0:u.scores)||void 0===d?void 0:d.length)?t().createElement(t().Fragment,null,function(e,n){var r;return[e.inspection&&(r=e.inspection,{score:r.score,shortCode:r.shortCodes?r.shortCodes.join(", "):"",type:"grading.inspection-grading-abbrev"}),...e.censoring?Tv(e.censoring):[],e.pregrading&&wv(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(Iv,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(bv,{shortCode:h})):t().createElement(vv,{maxScore:r}))})),Av=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=Ul(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&cv(s.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement("div",{className:Sr()("e-multiline-results-text-answer e-line-height-l e-pad-x-2 e-mrg-b-1",{"no-answer":!i}),"aria-description":i?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Qm,null,o("screen-reader.answer-begin")),"rich-text"===n?t().createElement("div",{dangerouslySetInnerHTML:{__html:i||""},ref:s}):t().createElement("div",{className:"e-pre-wrap",ref:s},i),t().createElement(Qm,null,o("screen-reader.answer-end")))},Ev=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(md),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Vy),{t:s}=Ul(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Lm(n.getAttribute("display-number")):void 0,p=Qy(a,l),h=null===(r=null==p?void 0:p.pregrading)||void 0===r?void 0:r.comment,g=n.getAttribute("type")||"single-line",m=Ce(n,"max-length");return"rich-text"===g?t().createElement(t().Fragment,null,null!=m&&t().createElement(ey,{maxLength:m}),t().createElement(Mv,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(Av,{type:g,value:d,score:p}),t().createElement(Jm,{answer:u,element:n}),h&&t().createElement(t().Fragment,null,t().createElement("h5",null,s("comment")),t().createElement("p",{className:"e-italic"},h))):t().createElement(mv,{answers:i,score:p,displayNumber:f,value:d},t().createElement(Mv,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),Cv=({onEndSession:e,sessionEnded:n})=>{const{t:r}=Ul();return t().createElement("div",{className:"e-logout-container"},t().createElement("div",{className:"e-bg-color-off-white e-pad-6 shadow-box"},n?t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.thankYouTitle")),t().createElement("p",null,r("examineExam.shutdownComputer"),t().createElement("br",null),r("examineExam.returnUsbStick"))):t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.endExamTitle")),t().createElement("p",null,r("examineExam.afterInspectingYourAnswers"),t().createElement("br",null),r("examineExam.youCanNotReturnToExam"))),!n&&t().createElement("button",{id:"endSession",className:"e-button",onClick:()=>{e()}},r("examineExam.endExamTitle"))))},Nv=Ms({attachment:ac,"attachment-link":bc("plain"),"attachment-links":Ic("plain"),"audio-group":ac,"choice-answer":ev,"dropdown-answer":tv,formula:td,question:ov,hints:ac,image:jy((({element:e})=>null!=Me(e,"choice-answer")))(id),"question-instruction":_m,"question-number":vd,translation:bd,"question-title":av,section:sv,"section-title":Ym,"text-answer":Ev,"scored-text-answer":yv,"scored-text-answers":ac}),Sv=()=>{const{t:e}=Ul();return e("examineExam.returnToExam")},kv=()=>{const{t:e}=Ul();return t().createElement("div",{className:"e-section examine-exam-page-instructions shadow-box"},t().createElement("h3",null,e("examineExam.checkYourAnswersTitle")),t().createElement("ul",null,t().createElement("li",null,e("examineExam.hereAreYourAnswers")),t().createElement("li",null,e("examineExam.checkYourAnswers")),t().createElement("li",null,e("examineExam.removeExcessAnswers")),t().createElement("li",null,t().createElement("span",{className:"no-answer-example"},e("examineExam.emptyAnswersAreHighlighted")),e("examineExam.thereMayBeOptionalQuestions"))))};function jv(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Vy),{t:i}=Ul();return t().createElement("div",{className:"e-column--narrow"},t().createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},t().createElement("tbody",null,t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grading-total")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},i("points",{count:r}))),n&&t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grade")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n)))))}const Dv=t().memo(Yy(fc((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,resolveAttachment:f,root:p,subjectLanguage:h}=(0,e.useContext)(dc),{answersByQuestionId:g}=(0,e.useContext)(Vy),m=Ae(p,"exam-title"),y=p.getAttribute("exam-stylesheet"),b=ic((()=>zl(d,u,c)));(0,e.useEffect)(_l(b,d)),(0,e.useEffect)(rc,[]);const I=Jy(),x=void 0!==i,w=!I&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(v,{i18n:b},t().createElement("main",{className:Sr()("e-exam e-results",{"examine-exam-page":I,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),y&&t().createElement("link",{rel:"stylesheet",href:f(y)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(Sv,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement(oc,{id:"title",className:"e-column e-mrg-b-0"},Nv(m),s&&`, ${l.format(s)}`),!I&&t().createElement(jv,null)),!w&&t().createElement(kv,null),t().createElement(My,{validationErrors:Qp(Nd(n),g),inExam:!1}),Nv(p),(x||a)&&t().createElement(Cv,{onEndSession:I?()=>{try{document.querySelectorAll("main > *:not(.e-logout-container)").forEach((e=>{const t=e;t.style.height=`${t.clientHeight}px`})),setTimeout((()=>{i()}),50)}catch(e){console.error(e)}}:()=>Promise.resolve(),sessionEnded:o})),t().createElement(ag,null))})))),Ov=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var Lv=Math.max;const Rv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ud(n);return i<0&&(i=Lv(r+i,0)),Ov(e,Sn(t),i)};var Pv=Math.max,zv=Math.min;const Uv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ud(n),i=n<0?Pv(r+i,0):zv(i,r-1)),Ov(e,Sn(t),i,!0)},_v=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ln(e,t,n)},Fv=function(e){return e!=e},Bv=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ov(e,Fv,n)};var Gv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zv="\\ud800-\\udfff",Hv="["+Zv+"]",qv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vv="\\ud83c[\\udffb-\\udfff]",Yv="[^"+Zv+"]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",Qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Jv="(?:"+qv+"|"+Vv+")?",Xv="[\\ufe0e\\ufe0f]?",$v=Xv+Jv+"(?:\\u200d(?:"+[Yv,Wv,Qv].join("|")+")"+Xv+Jv+")*",Kv="(?:"+[Yv+qv+"?",qv,Wv,Qv,Hv].join("|")+")",eb=RegExp(Vv+"(?="+Vv+")|"+Kv+$v,"g");const tb=function(e){return function(e){return Gv.test(e)}(e)?function(e){return e.match(eb)||[]}(e):function(e){return e.split("")}(e)};var nb=/^\s+/;const rb=function(e,t,n){if((e=xn(e))&&(n||void 0===t))return e.replace(nb,"");if(!e||!(t=In(t)))return e;var r=tb(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&Bv(t,e[n],0)>-1;);return n}(r,tb(t));return _v(r,i).join("")},ib=function(e,t,n){if((e=xn(e))&&(n||void 0===t))return e.slice(0,or(e)+1);if(!e||!(t=In(t)))return e;var r=tb(e),i=function(e,t){for(var n=e.length;n--&&Bv(t,e[n],0)>-1;);return n}(r,tb(t))+1;return _v(r,0,i).join("")};function ob(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(ab),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(sb)})),n}function ab(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Ae(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function sb(e){const t=e=>/\S/.test(e.textContent),n=(()=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;n.nextNode();)t.push(n.currentNode);return t})(),r=Rv(n,t),i=Uv(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=rb(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=ib(n[i].textContent))}const lb=function({pregrading:e,censoring:n,singleGrading:r}){const i=(e,t=0)=>{var n;return null!==(n=e.filter((e=>e.message.length)).map(((e,n)=>({numbering:`${String(t+n+1)})`,message:e.message}))))&&void 0!==n?n:[]},o=i(e),a=i(n,o.length);return t().createElement(nv,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let cb;function ub(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];cb=t.length,t.forEach((e=>{e.complete?setTimeout((()=>db(e)),0):e.addEventListener("load",(()=>db(e)))}))}function db(e){cb--;const t=e.parentElement,n=null==t?void 0:t.nextSibling,r=n instanceof HTMLElement&&n.classList.contains("full-size-image"),i=e.naturalWidth>e.width;null==t||t.classList.toggle("e-large-image",i),i?r||null==t||t.insertAdjacentHTML("afterend",`<div class="full-size-image"><a target="_blank" href="${e.src}"></a>`):r&&(null==n||n.remove())}function fb({characterCount:e,maxLength:n}){const{t:r}=Ul(),i=(o=e,!(a=n)||o<=a?0:Math.floor(100*o/a-100));var o,a;return t().createElement("div",{className:"e-font-size-xs e-grading-answer-length"},r("answer-length",{count:e}),i>0?t().createElement("span",{className:"e-grading-answer-max-length-surplus"},r("max-length-surplus",{maxLength:n,percentage:i})):"")}function pb(n){const r=ic((()=>zl(n.language)));return(0,e.useEffect)(_l(r,n.language)),t().createElement(v,{i18n:r},t().createElement(hb,{...n}))}function hb({answer:{type:n,characterCount:r,value:i},language:o,isReadOnly:a,gradingRole:s,annotations:l,saveAnnotations:c,maxLength:u,popupTopMargin:d=25}){const f=(0,e.useRef)(null),p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)(null);let m,y;const v={start:void 0,element:void 0,img:void 0};let b,I,x,w,T,M=!1;const[A,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=document.querySelectorAll("img[src]");function t(){E((e=>e+1))}return E(0),N(e.length),e.forEach((e=>{e.addEventListener("load",t)})),()=>{e.forEach((e=>{e.removeEventListener("load",t)}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(y=l,wr(g.current,!1),wr(p.current,!1),F(y),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",z)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>ub(f.current)),1e3)},()=>{window.removeEventListener("keydown",B),window.removeEventListener("mouseup",P),window.removeEventListener("mousemove",_)})));const{t:S}=Ul();return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)v.element||D(n);else if("LI"===n.tagName){const e=null===(t=n.dataset.listNumber)||void 0===t?void 0:t.replace(")",""),r=document.querySelector(`.e-annotation[data-index="${e}"]`);D(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&k()}(e),className:"e-grading-answer-wrapper"},0!==C&&A!==C&&t().createElement("div",{className:"loading-images"},t().createElement("span",null,S("grading.loading-images")," (",A,"/",C,")")),t().createElement("div",{className:"e-grading-answer e-line-height-l e-mrg-b-1",ref:f,onMouseDown:e=>function(e){var t;if(a||0!==e.button)return;window.addEventListener("mouseup",P);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",xr),v.start=function(e,t){const n=t.closest(".e-grading-answer"),r=Array.from(n.querySelectorAll("img")).findIndex((e=>e===t)),i=n.querySelectorAll(".e-annotation-wrapper").item(r).getBoundingClientRect(),o=e.clientX,a=Ir((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:Ir((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),v.img=n,window.addEventListener("mousemove",_))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||yr()&&!a||v.element||D(t)}(e.target)}),t().createElement(fb,{characterCount:r,maxLength:u}),t().createElement(lb,{censoring:l.censoring,pregrading:l.pregrading,singleGrading:"pregrading"===s}),t().createElement("form",{style:{display:"none"},ref:p,className:"e-grading-answer-popup e-grading-answer-add-annotation",onSubmit:e=>function(e){e.preventDefault();const t=h.current.value;b?y[b.role][b.index].message=t:y[s]=vr(f.current,{...m,message:t},y[s]||[]),wr(p.current,!1),c(y)}(e)},t().createElement("input",{onFocus:()=>function(){if(!Tr()&&f.current){const e={...y};e[s]=vr(f.current,m,y[s]),F(e)}}(),name:"message",className:"e-grading-answer-add-annotation-text",type:"text",ref:h}),t().createElement("button",{className:"e-grading-answer-add-annotation-button",type:"submit","data-i18n":"arpa.annotate"},S("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),R()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(x)},onMouseOut:k},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(wr(g.current,!1),L(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),k(),y[b.role].splice(b.index,1),b=void 0,c(y)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function k(){x=setTimeout((()=>{wr(g.current,!1)}),400)}function j(e){"MARK"===e.target.tagName&&(clearTimeout(x),k()),f.current.removeEventListener("mouseout",j)}function D(e){clearTimeout(x);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),I=e.getBoundingClientRect(),mr(I,f.current,t,d),t.querySelector(".e-grading-answer-tooltip-label").textContent=i||"–",b={index:Number(r),role:n,message:i||""},f.current.addEventListener("mouseout",j)}function O(e,t){b=void 0,L(e,t)}function L(e,t){window.removeEventListener("keydown",B),mr(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",B)}function R(){m=void 0,v.element=void 0,v.img=void 0,M=!1,window.removeEventListener("keydown",B),wr(p.current,!1),F(y)}function P(){var e,t;if(null===(e=v.img)||void 0===e||e.removeEventListener("dragstart",xr),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",P),v.element)return void O(null===(t=v.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&yr()){const e=n.getRangeAt(0),t=pr(f.current,e);if(!t)return;const r=hr(y[s],t.startIndex,t.length);m={...t,type:"text",message:r},O(e.getBoundingClientRect(),r);const i={...y};i[s]=vr(f.current,m,y[s]),F(i)}}function z(){Tr()||(clearTimeout(T),T=setTimeout(U,500))}function U(){const e=window.getSelection();if(e&&null!==f.current&&yr()){const t=e.getRangeAt(0),n=pr(f.current,t);if(!n)return;const r=hr(y[s],n.startIndex,n.length);M=!0,h.current.value=r,mr(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function _(e){xr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=Ir((e.clientX-t.left)/t.width),l=Ir((e.clientY-t.top)/t.height),c=Math.abs(o-e.clientX)<=10,u=Math.abs(a-e.clientY)<=10;switch(c||u?"line":"rect"){case"rect":return{type:"rect",attachmentIndex:n,x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i),message:""};case"line":return{type:"line",attachmentIndex:n,x1:c?r:Math.min(r,s),y1:u?i:Math.min(i,l),x2:c?r:Math.max(r,s),y2:u?i:Math.max(i,l),message:""}}}(e,v.start),v.element?uv(v.element,m):v.element=pv(v.img,"",m,s,999)}function F(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(dv),ub(t)):t.textContent=i,cv(t,e.pregrading,e.censoring,!1)}function B(e){"Escape"===e.key&&M&&(e.stopPropagation(),R())}}})(),s})()));
|